body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a !important; /* Force dark background */
    color: #e0e0e0;
    overflow-x: hidden; /* Allow vertical scroll */
}

/* Ensure all elements inherit the dark theme */
html {
    background-color: #1a1a1a !important;
}

/* Common styles */
h1, h2, h3 {
    color: #e0e0e0;
    margin-top: 0;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

a {
    color: #4CAF50;
    text-decoration: none;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

a:hover {
    text-decoration: underline;
}

/* Header section with counter */
#header-section {
    width: 100vw;
    height: 60vh;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a !important; /* Force consistent background */
    border-bottom: 2px solid #333;
}

/* Counter container styles */
#container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a !important; /* Force consistent background */
}

canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

/* Site logo overlay - PNG image only, no background or effects */
.site-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 300;
    pointer-events: none;
    /* Remove all background and effects */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-logo img {
    width: 216px; /* 360px at 60% scale */
    height: auto;
    display: block;
    /* Remove all filters and effects */
    filter: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* DEPRECATED: Old site-title class - DO NOT USE */
.site-title {
    display: none !important; /* Force hide old title */
}

/* Content section */
#content-section {
    background: #1e1e1e !important; /* Consistent dark background */
    padding: 60px 20px;
    min-height: 40vh;
    border-top: 1px solid #444;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-title {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

.content-description {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 25px;
    text-align: justify;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3) !important; /* Darker background for text blocks */
    border-radius: 8px;
    border-left: 4px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

.highlight-text {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(76, 175, 80, 0.3);
}

.warning-text {
    color: #FF9800;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255, 152, 0, 0.3);
}

/* Countdown end overlay styles */
.countdown-end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    transition: background-color 2s ease-in-out;
}

.countdown-end-overlay.show {
    display: flex;
}

.countdown-end-overlay.fade-in {
    background-color: rgba(0, 0, 0, 0.95);
}

.click-message {
    cursor: pointer;
    padding: 20px 40px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    transition: opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    
    /* Remove all effects */
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.click-message img {
    width: 306px; /* 510px at 60% scale */
    height: auto;
    display: block;
    /* Remove all filters and effects */
    filter: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: filter 0.3s ease;
}

.click-message.show {
    opacity: 1;
    transform: translateY(0);
    /* Ensure no effects are applied when shown */
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.click-message:hover img {
    filter: brightness(1.1) !important;
    /* Remove any other hover effects */
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    backdrop-filter: none !important;
}

/* FORCE OVERRIDE ANY INHERITED STYLES */
.site-logo *, .click-message *, .site-logo img, .click-message img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Remove all neon flicker animations */
@keyframes neonFlicker { /* Keep keyframe to prevent errors, but make it do nothing */ }
@keyframes neonFlickerFast { /* Keep keyframe to prevent errors, but make it do nothing */ }

/* Admin page styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #2a2a2a !important; /* Consistent dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e0e0e0;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #333 !important; /* Force dark input background */
    color: #e0e0e0;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

input:focus, select:focus {
    border-color: #4CAF50;
    outline: none;
    background-color: #333 !important; /* Maintain dark background on focus */
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

button:hover {
    background-color: #45a049;
}

.current-settings {
    background-color: #333 !important; /* Consistent dark background */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

.footer-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Loading screen with GIF */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000 !important; /* Force black loading screen */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 2s ease-in-out;
    opacity: 1;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
    color: white;
    font-family: 'Consolas', 'Courier New', monospace; /* Unified monospace font */
}

.loading-gif {
    width: 600px;
    height: 200px;
    max-width: 90vw;
    max-height: 50vh;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    /* Remove all filters and effects */
    filter: none !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    outline: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Keep the @keyframes spin for any other elements that might use it */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Canvas element styles - added for fixed aspect ratio */
canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

/* Force dark theme for any system overrides */
@media (prefers-color-scheme: light) {
    body, html {
        background-color: #1a1a1a !important;
        color: #e0e0e0 !important;
    }
    
    #header-section, #container {
        background-color: #1a1a1a !important;
    }
    
    #content-section {
        background: #1e1e1e !important;
    }
}

@media (prefers-color-scheme: dark) {
    body, html {
        background-color: #1a1a1a !important;
        color: #e0e0e0 !important;
    }
    
    #header-section, #container {
        background-color: #1a1a1a !important;
    }
    
    #content-section {
        background: #1e1e1e !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body, html {
        background-color: #1a1a1a !important; /* Force dark background on mobile */
    }
    
    #header-section {
        height: 50vh;
        background-color: #1a1a1a !important;
    }
    
    #container {
        background-color: #1a1a1a !important;
    }
    
    .site-logo {
        top: 15px;
        left: 15px;
    }

    .site-logo img {
        width: 173px; /* 80% of 216px for tablet */
    }
    
    .content-title {
        font-size: 28px;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }
    
    .content-description {
        font-size: 16px;
        padding: 15px;
        margin-bottom: 20px;
        background: rgba(0, 0, 0, 0.4) !important; /* Darker background on mobile */
    }
    
    #content-section {
        padding: 40px 15px;
        background: #1e1e1e !important;
    }
    
    .click-message {
        padding: 15px 30px;
        margin: 0 20px;
    }

    .click-message img {
        width: 245px; /* 80% of 306px for tablet */
    }
    
    .container {
        padding: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
        background-color: #2a2a2a !important;
    }
    
    button {
        width: 100%;
    }
    
    /* Loading GIF responsive */
    .loading-gif {
        width: 480px; /* 80% of 600px for tablet */
        height: 160px; /* 80% of 200px for tablet */
        max-width: 85vw;
    }
}

@media (max-width: 480px) {
    body, html {
        background-color: #1a1a1a !important; /* Force dark background on small mobile */
    }
    
    #header-section {
        height: 45vh;
        background-color: #1a1a1a !important;
    }
    
    #container {
        background-color: #1a1a1a !important;
    }
    
    .site-logo {
        top: 10px;
        left: 10px;
    }

    .site-logo img {
        width: 130px; /* 60% of 216px for small mobile */
    }
    
    .content-title {
        font-size: 24px;
        margin-bottom: 25px;
        letter-spacing: 0.5px;
    }
    
    .content-description {
        font-size: 15px;
        padding: 12px;
        margin-bottom: 18px;
        line-height: 1.6;
        background: rgba(0, 0, 0, 0.4) !important; /* Darker background on small mobile */
    }
    
    #content-section {
        padding: 30px 10px;
        background: #1e1e1e !important;
    }
    
    .click-message {
        padding: 12px 24px;
        margin: 0 15px;
    }

    .click-message img {
        width: 184px; /* 60% of 306px for small mobile */
    }
    
    /* Loading GIF responsive for small mobile */
    .loading-gif {
        width: 360px; /* 60% of 600px for small mobile */
        height: 120px; /* 60% of 200px for small mobile */
        max-width: 80vw;
        max-height: 40vh;
    }
}