/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    height: 100vh;
    cursor: none; /* Hide cursor for immersive experience */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Game container */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Full-screen button */
.fullscreen-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #333;
    border-radius: 15px;
    padding: 12px 20px;
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fullscreen-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Score container */
.score-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 15px 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid #333;
}

.score {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: scorePulse 0.5s ease-out;
}

.score-label {
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

@keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Game area */
.game-area {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Welcome message */
.welcome-message {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 4px solid #333;
    max-width: 600px;
    animation: welcomeFloat 3s ease-in-out infinite;
    z-index: 100;
}

@keyframes welcomeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.welcome-message h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 36px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message p {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.instructions {
    margin-top: 20px;
}

.instructions p {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

/* Effects container */
.effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Key press effect */
.key-effect {
    position: absolute;
    font-size: 60px;
    animation: keyEffect 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 60;
}

@keyframes keyEffect {
    0% {
        opacity: 1;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(360deg);
    }
}

/* Celebration overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: celebrationFade 0.5s ease-out;
}

.celebration-overlay.hidden {
    display: none;
}

@keyframes celebrationFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.celebration-content {
    text-align: center;
    animation: celebrationBounce 0.8s ease-out;
}

@keyframes celebrationBounce {
    0% { transform: scale(0.3); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.celebration-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.celebration-emoji {
    font-size: 120px;
    animation: celebrationSpin 2s linear infinite;
}

@keyframes celebrationSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particles container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particleFloat 3s ease-out forwards;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .welcome-message {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .welcome-message h1 {
        font-size: 28px;
    }
    
    .welcome-message p {
        font-size: 18px;
    }
    
    .score {
        font-size: 36px;
    }
    
    .fullscreen-button {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .score-container {
        top: 10px;
        left: 10px;
        padding: 10px 20px;
    }
}

/* Full-screen specific styles */
:fullscreen {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
}

:-webkit-full-screen {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
}

/* Hide welcome message when game is active */
.game-active .welcome-message {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Audio visualizer effect */
.audio-wave {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    z-index: 100;
}

.wave-bar {
    width: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: waveAnimation 0.5s ease-out;
}

@keyframes waveAnimation {
    0% { height: 5px; }
    50% { height: 30px; }
    100% { height: 5px; }
} 