* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chivo Mono', monospace;
    background-image: url('images/aaabstract.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: backgroundZoom 8s ease-in-out infinite;
}

@keyframes backgroundZoom {
    0% {
        background-size: 100% 100%;
    }
    50% {
        background-size: 110% 110%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Header */
header {
    padding: 0.5rem 0.5rem;
    text-align: center;
}

.logo {
    text-align: center;
}

.logo-image {
    max-width: 100px;
    width: 100%;
    height: auto;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem 1rem 1rem;
}

.content-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Lock Status Indicator */
.lock-indicator {
    background: #333;
    color: #fff;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 100;
    letter-spacing: 1px;
}

.flashing-dot {
    width: 8px;
    height: 8px;
    background: #0084F2;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: flash 1.5s infinite;
    box-shadow: 0 0 10px #0084F2;
}

@keyframes flash {
    0% { opacity: 1; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Locked State Styles */
.lock-indicator.locked {
    background: #333;
    color: #fff;
}

.lock-indicator.unlocked {
    background: #333;
    color: #fff;
}

.flashing-dot.red {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.flashing-dot.green {
    background: #00ff44;
    box-shadow: 0 0 10px #00ff44;
}

/* Disabled Button State */
.join-btn.disabled {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: #999;
    border: 1px solid rgba(102, 102, 102, 0.6);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.join-btn.disabled:hover {
    transform: none;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Timer */
.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
}

/* Description */
.description {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Bold specific words */
.bold-word {
    font-weight: 700;
}

/* CTA Text */
.cta-text {
    font-size: 0.9rem;
    font-weight: 100;
    margin-bottom: 2rem;
}

/* Join Button */
.join-btn {
    background: linear-gradient(135deg, #0084F2 0%, #0056b3 100%);
    color: #fff;
    border: 1px solid rgba(0, 132, 242, 0.6);
    padding: 1rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 100;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(0, 132, 242, 0.4);
    position: relative;
    overflow: hidden;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 132, 242, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.join-btn:hover {
    background: rgba(0, 132, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 132, 242, 0.4),
        0 0 25px rgba(0, 132, 242, 0.3);
}

.join-btn:hover::before {
    left: 100%;
}

/* Scrolling Tiles */
.scrolling-tiles {
    padding: 2rem 0;
    overflow: hidden;
}

.tiles-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tiles-row {
    display: flex;
    gap: 1rem;
    animation: scroll 10s linear infinite;
    white-space: nowrap;
}

.tiles-row:nth-child(2) {
    animation-delay: -10s;
}

.tiles-row:nth-child(3) {
    animation-delay: -20s;
}

.tile {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 100;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 4px 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
        inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
    z-index: 1;
}

.tile:hover::before {
    left: 100%;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
footer {
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    font-size: 0.8rem;
    display: flex;
    gap: 1rem;
    color: #fff;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .content-card {
        max-width: 500px;
        padding: 3rem;
    }
    
    .timer {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .tiles-container {
        gap: 1.5rem;
    }
    
    .tile {
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }
}
