/* 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, #0f1419 0%, #1a2332 50%, #2d3748 100%);
    color: #eee;
    overflow: hidden;
}

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

#score, #level, #gravity {
    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, #87CEEB 0%, #98FB98 100%);
    border: 3px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    display: block;
}

/* Power Meter */
#power-meter {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 200px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
}

#power-bar {
    height: 100%;
    background-color: #ff6b6b;
    width: 0%;
    transition: width 0.1s;
}

/* 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 #4CAF50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

#instructions-content h2 {
    font-size: 2.5rem;
    color: #4CAF50;
    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;
}

/* Start Button */
#startButton {
    background-color: #4CAF50;
    color: white;
    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: #45a049;
}