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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    max-width: 900px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: white;
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-item {
    text-align: center;
}

.label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
}

#gameCanvas {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border: 4px solid white;
    border-top: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    cursor: pointer;
}

.controls-hint {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 1.1em;
    opacity: 0.9;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-large {
    font-size: 1.5em;
    padding: 15px 40px;
}

.start-screen, .game-over-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    z-index: 100;
}

.start-screen h2, .game-over-screen h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.instructions {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.instructions p {
    margin-bottom: 15px;
}

.instructions strong {
    color: #667eea;
}

.bird-color-selection {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.bird-color-selection h3 {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.color-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.color-btn {
    color: white;
    border: 3px solid transparent;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.color-btn:active {
    transform: translateY(0);
}

.color-btn.selected {
    border-color: white;
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
    transform: scale(1.05);
}

.game-over-screen {
    text-align: center;
}

.final-score, .best-score {
    font-size: 1.3em;
    color: #333;
    margin: 15px 0;
}

.final-score span, .best-score span {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .value {
        font-size: 1.5em;
    }
    
    .start-screen, .game-over-screen {
        padding: 30px 20px;
    }
    
    .start-screen h2, .game-over-screen h2 {
        font-size: 2em;
    }
}
