@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

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

body {
    background-color: #051024;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Fredoka One', sans-serif;
    touch-action: manipulation;
}

.bg-glow { position: fixed; top: -10%; left: -10%; width: 50%; height: 50%; background: radial-gradient(circle, rgba(0,242,255,0.04) 0%, transparent 70%); z-index: -1; pointer-events: none; }
.bg-glow-2 { position: fixed; bottom: -10%; right: -10%; width: 50%; height: 50%; background: radial-gradient(circle, rgba(255,215,0,0.04) 0%, transparent 70%); z-index: -1; pointer-events: none; }

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* No pixelated rendering here since we are using high-res images from the python repo usually, 
       but if they are pixel art, we can uncomment it */
    image-rendering: pixelated; 
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-display {
    font-size: 50px;
    color: white;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    margin-top: 10px;
    z-index: 10;
}

.screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 80%;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    pointer-events: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 4px solid #0088ff;
}

.screen.hidden {
    display: none;
}

.screen h1, .screen h2 {
    color: #0088ff;
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0 #000;
}

.screen p {
    color: #333;
    font-size: 1.1rem;
}

#logo-bird {
    width: 70px;
    height: auto;
    animation: flap 0.3s steps(2) infinite alternate;
}

@keyframes flap {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.score-board {
    background: rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.score-board p {
    font-size: 1.5rem;
    color: #333;
}

.score-board span {
    color: #e74c3c;
}

.btn {
    font-family: 'Fredoka One', cursive;
    background-color: #00f2ff;
    color: #0b1d3b;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 0 #0088ff;
    transition: all 0.1s;
    width: 100%;
    text-transform: uppercase;
}

.btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #0088ff;
}

.btn-secondary {
    background-color: #bdc3c7;
    color: #2c3e50;
    box-shadow: 0 5px 0 #7f8c8d;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:active {
    box-shadow: 0 0 0 #7f8c8d;
}
