:root {
    --bg: 0 0 0;
    --bg_h: 10 10 15;
    --bg0: 5 5 10;
    --bg2: 20 20 30;
    --bg3: 30 30 45;
    --bg4: 40 40 60;
    --fg: 193 177 146;
    --fg1: 193 177 146;
    --fg2: 193 177 146;
    --fg3: 140 130 110;
    --fg4: 193 177 146;
    --primary: 147 112 219;
    --primary_glow: 123 104 238;
    --accent: 193 177 146;
    --success: 0 255 0;
    --error: 255 0 0;
    --outl1: 60 60 80;
    --outl2: 40 40 60;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    background-image: url("/static/bg/bg-dis-03-purple.gif"), url("/static/bg/bg_main2-purple.gif");
    background-color: #9370DB;
    background-repeat: repeat, repeat;
    background-position: center center;
    background-size: auto, auto;
    color: #c1b492;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    letter-spacing: 8px;
    image-rendering: pixelated;
    font-smooth: never;
    -webkit-font-smoothing: none;
    min-height: 100vh;
}

/* Links */
a {
    color: #d2738a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    color: #d2738a;
}

a:hover {
    color: #c1b492;
    animation: wiredB2 1s ease-out infinite;
}

a:active {
    color: #d2738a;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times', 'Times New Roman', serif;
    font-weight: normal;
    color: #c1b492;
    letter-spacing: 8px;
}

h1 {
    font-size: 32px;
    clear: both;
}

h2 {
    font-size: 18px;
}

h6 {
    font-size: 20px;
}

/* Navbar / Container */
.navbar {
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    width: 800px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    box-shadow: black 0px 5px 10px;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Article / Section */
.article {
    width: 800px;
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    box-shadow: black 0px 5px 10px;
    text-align: center;
    letter-spacing: 8px;
    font-size: 13px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.article p {
    margin: 20px;
    font-size: 13px;
}

/* Footer */
.footer {
    margin-top: 70px;
    color: #c1b492;
    border: 0px;
    text-align: center;
    letter-spacing: 8px;
    font-size: 9px;
    margin-bottom: 20px;
}

.footer span {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3px;
}

.footer a {
    text-decoration: underline;
}

/* Blink Frame */
.blinkFrame {
    display: inline-block;
    float: left;
    width: 400px;
    font-weight: bolder;
    font-size: 24px;
}

/* Logo */
.logo {
    margin: 20px;
}

/* Navline */
.navline {
    font-size: 13px;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

/* Note */
.note {
    letter-spacing: 0px;
    font-size: 18px;
}

/* Date / Author */
.date {
    font-size: 9px;
    line-height: 0px;
    margin: 0px;
}

.author {
    font-size: 13px;
    line-height: 40px;
    margin: 0px;
}

/* Icon */
.iconA {
    background-image: url("/static/mebious_icon_02.gif");
    background-repeat: no-repeat;
    height: 16px;
    width: 16px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
}

/* HR */
hr {
    border-color: #9370DB;
    border-bottom-width: 2px;
}

/* Delayed Animations */
.del1s {
    animation: blink 2s linear infinite;
    animation-delay: 0s;
    letter-spacing: 0px;
}

.del1s5ms {
    animation: blink 2s linear infinite;
    animation-delay: 0.4s;
    letter-spacing: 0px;
}

.del2s {
    animation: blink 2s linear infinite;
    animation-delay: 0.8s;
    letter-spacing: 0px;
}

.del4s {
    animation: blink 2s linear infinite;
    animation-delay: 1.2s;
    letter-spacing: 0px;
}

.del5s {
    animation: blink 2s linear infinite;
    animation-delay: 1.6s;
    letter-spacing: 0px;
}

.del6s {
    animation: blink 2s linear infinite;
    animation-delay: 2s;
    letter-spacing: 0px;
}

/* Blink */
.blink {
    animation: blink 2s linear infinite;
}

.Bfast {
    animation: blink 2s ease-out infinite;
}

/* Wired Animations */
.wiredAnim {
    animation: wiredB 2s ease-in-out infinite;
}

.wdel1s {
    animation: wiredB 2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.wdel2s {
    animation: wiredB 2s ease-in-out infinite;
    animation-delay: 0.8s;
}

.wdel3s {
    animation: wiredB 2s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Keyframes */
@keyframes blink {
    50% {
        color: black;
    }
}

@keyframes wiredB {
    50% {
        color: #c1b492;
        text-shadow: #9370DB 1px 4px 5px;
    }
}

@keyframes wiredB2 {
    50% {
        color: #c1b492;
        text-shadow: #c1b492 1px 1px 6px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #9370DB;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFFFFF;
}

/* Buttons */
button {
    font-family: 'VT323', 'Courier New', monospace;
    background-color: transparent;
    color: #c1b492;
    border: 1px solid #9370DB;
    padding: 0.5em 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 8px;
    font-size: 13px;
}

button:hover {
    background-color: rgba(147, 112, 219, 0.1);
    color: #c1b492;
    animation: wiredB2 1s ease-out infinite;
}

/* Inputs */
input,
textarea,
select {
    font-family: 'VT323', 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.5);
    color: #c1b492;
    border: 1px solid #9370DB;
    padding: 0.4em 0.6em;
    outline: none;
    letter-spacing: 8px;
    font-size: 13px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #c1b492;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Selection */
::selection {
    background-color: rgba(147, 112, 219, 0.5);
    color: #c1b492;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Upload Area - Fauux Style */
.upload-area {
    border: 1px solid #9370DB;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    box-shadow: black 0px 5px 10px;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 8px;
}

.upload-area .upload-label {
    padding: 30px 50px;
    min-width: unset;
    width: 100%;
    max-width: 100%;
}

.upload-area .upload-label-text {
    font-size: 1.4rem;
    letter-spacing: 4px;
}

.upload-area .upload-label-sub {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.upload-area:hover {
    border-color: #c1b492;
    animation: wiredB2 1s ease-out infinite;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #9370DB;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: #9370DB;
    transition: width 0.3s ease;
}

/* File Cards */
.file-card {
    border: 1px solid #9370DB;
    padding: 12px;
    margin: 10px auto;
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    box-shadow: black 0px 5px 10px;
    width: 776px;
    transition: all 0.2s ease;
}

.file-card:hover {
    border-color: #c1b492;
    animation: wiredB2 1s ease-out infinite;
}

/* Stats */
.stats-section {
    border: 1px solid #9370DB;
    padding: 15px;
    margin: 20px auto;
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    box-shadow: black 0px 5px 10px;
    width: 770px;
}

/* Toast Notifications */
.toast-success {
    border: 1px solid #9370DB;
    background: rgba(147, 112, 219, 0.1);
    color: #c1b492;
    animation: wiredB2 1s ease-out infinite;
}

.toast-error {
    border: 1px solid #9370DB;
    background: rgba(147, 112, 219, 0.1);
    color: #9370DB;
}

/* Dialog */
dialog {
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    color: #c1b492;
    border: 2px solid #9370DB;
    box-shadow: black 0px 5px 10px;
}

/* Cookie Banner */
.cookie-banner {
    background-color: transparent;
    background-image: url("/static/bg-rip-02-purple.gif");
    border: 1px solid #9370DB;
    color: #c1b492;
    box-shadow: black 0px 5px 10px;
}

/* Override component styles for fauux theme */
body.fauux-theme .main-section,
body.fauux-theme .progress-section,
body.fauux-theme .preview-section,
body.fauux-theme .stats-section,
body.fauux-theme .server-stats-section,
body.fauux-theme .uploaded-files,
body.fauux-theme .file-card,
body.fauux-theme .progress-bar-container,
body.fauux-theme .progress-item,
body.fauux-theme .preview-item,
body.fauux-theme .stat-item,
body.fauux-theme .view-btn,
body.fauux-theme .btn-cancel,
body.fauux-theme .btn-confirm {
    background-color: transparent !important;
    background-image: url("/static/bg-rip-02-purple.gif") !important;
    background-size: cover !important;
    border: 1px solid #9370DB !important;
    color: #FFFFFF !important;
}

body.fauux-theme .progress-bar {
    background-color: #9370DB !important;
    background-image: none !important;
}

body.fauux-theme .view-btn.active {
    background-color: #9370DB !important;
    color: #c1b492 !important;
}

body.fauux-theme h3,
body.fauux-theme .stat-label,
body.fauux-theme .progress-name,
body.fauux-theme .progress-percent {
    color: #FFFFFF !important;
    text-shadow: 0 0 6px rgba(147, 112, 219, 0.5) !important;
}

body.fauux-theme .wrapper,
body.fauux-theme .fauux-wrapper {
    background-color: transparent !important;
    background-image: none !important;
}

main.fauux-main,
body.fauux-theme .fauux-main {
    background-color: transparent !important;
    background-image: none !important;
}

.wrapper.fauux-wrapper,
body.fauux-theme .fauux-wrapper {
    background-color: transparent !important;
    background-image: none !important;
}
