/* Flappy Fish Game Styles */

.play-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 3px solid #000;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
    animation: float 3s ease-in-out infinite;
}

.play-button:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 5px 5px 0 #000;
    background: linear-gradient(135deg, #9f67ff, #8b5cf6);
}

.play-button:active {
    transform: translate(-50%, -50%) translateY(0);
    box-shadow: 1px 1px 0 #000;
}

.play-button::before {
    content: '🐟 PLAY';
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* Game Canvas */
.flappy-fish-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    z-index: 2000;
    display: none;
}

.flappy-fish-game.active {
    display: block;
}

/* Game UI */
.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2001;
}

.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    display: none;
    z-index: 2002;
}

.game-over-screen.active {
    display: block;
}

.game-over-screen h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.game-over-screen p {
    font-size: 18px;
    margin-bottom: 30px;
}

.restart-button {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: 3px solid #000;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: all 0.3s ease;
    margin: 10px;
}

.restart-button:hover {
    background: linear-gradient(135deg, #5dd5cc, #4fb3a0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-game-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: 3px solid #000;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 2003;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.2s ease;
    font-family: 'Roboto Mono', monospace;
}

.close-game-button:hover {
    background: linear-gradient(135deg, #9f67ff, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #000;
}

.close-game-button:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0 #000;
}

/* Dark mode styles */
body.dark-mode .play-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #fff;
    box-shadow: 3px 3px 0 #fff;
}

body.dark-mode .play-button:hover {
    background: linear-gradient(135deg, #9f67ff, #8b5cf6);
    box-shadow: 5px 5px 0 #fff;
}

body.dark-mode .flappy-fish-game {
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .play-button {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .game-ui {
        font-size: 20px;
    }
    
    .game-over-screen h2 {
        font-size: 28px;
    }
    
    .game-over-screen p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .game-ui {
        font-size: 18px;
    }
    
    .game-over-screen {
        padding: 20px;
    }
    
    .game-over-screen h2 {
        font-size: 24px;
    }
}
