/* Amiga Demo Scene Stylesheet */

/* Import retro pixel font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    overflow: hidden;
    font-family: 'Press Start 2P', monospace;
}

#root {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Canvas layers */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

/* Click to start overlay */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.start-overlay h1 {
    color: #00FFFF;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
    animation: glow 2s ease-in-out infinite;
}

.start-overlay p {
    color: #FF00FF;
    font-size: 1rem;
    animation: blink 1.5s step-start infinite;
}

/* CRT Scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* CRT glow effect */
.crt-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    box-shadow: inset 0 0 100px rgba(0, 100, 200, 0.1);
}

/* Animations */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
    }
    50% {
        text-shadow: 0 0 20px #00FFFF, 0 0 40px #00FFFF, 0 0 60px #00FFFF;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .start-overlay h1 {
        font-size: 1.5rem;
    }
    
    .start-overlay p {
        font-size: 0.75rem;
    }
    
    .music-toggle {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
}

/* Music toggle button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00FFFF;
    color: #00FFFF;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 10px 20px;
    cursor: pointer;
    text-shadow: 0 0 10px #00FFFF;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

.music-toggle:active {
    transform: scale(0.95);
}
