* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #87CEEB; /* Sky blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.game-container {
    position: relative;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.game-intro, .game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.game-over {
    display: none;
}

h1 {
    color: #FF6B6B;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h2 {
    color: #4D96FF;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.instructions {
    margin-bottom: 30px;
    background-color: #F9F9F9;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #4D96FF;
}

.instructions p {
    margin: 10px 0;
    font-size: 1.1rem;
}

button {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #FF5252;
}

.game-area {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #87CEEB;
    overflow: hidden;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

#game-canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .instructions p {
        font-size: 1rem;
    }
    
    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .game-area {
        height: 500px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .game-area {
        height: 400px;
    }
}