/* General Reset & Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f08 100%);
    color: #eee;
    overflow: hidden;
}

/* Game UI */
#game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 5;
}

#score, #lives {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Canvas */
canvas {
    background: linear-gradient(135deg, #4a2c1a 0%, #2d1810 50%, #1a0f08 100%);
    border: 3px solid #8B4513;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
    display: block;
}

/* Instructions Screen */
#instructions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#instructions-content {
    background-color: #2a2a2a;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #8B4513;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

#instructions-content h2 {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#instructions-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #ccc;
}

#instructions-content h3 {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#instructions-content ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    display: inline-block;
}

#instructions-content li {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 8px;
}

/* Style for keys */
#instructions-content code {
    background-color: #8B4513;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
    margin-right: 8px;
}

/* Start Button */
#startButton {
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#startButton:hover {
    background-color: #FFA500;
}