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

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10;
}

.hidden {
    display: none;
}

h1, h2 {
    color: #ff9900;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.7);
}

button {
    background-color: #ff9900;
    color: #000000;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #ffb84d;
    transform: scale(1.05);
}

.instructions {
    margin-top: 20px;
    text-align: center;
    line-height: 1.6;
}

.game-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 5;
}

#score, #level, #lives {
    font-size: 18px;
    font-weight: bold;
}

#pause-button {
    padding: 5px 10px;
    font-size: 14px;
}

#gameCanvas {
    background-color: #000000;
    display: block;
}

#final-score, #level-score {
    font-size: 24px;
    margin: 20px 0;
    color: #ff9900;
}

/* Animation for block destruction */
@keyframes blockDestroy {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Animation for power-up */
@keyframes powerUpGlow {
    0% {
        box-shadow: 0 0 5px #00ffff;
    }
    50% {
        box-shadow: 0 0 20px #00ffff;
    }
    100% {
        box-shadow: 0 0 5px #00ffff;
    }
}

/* Responsive design */
@media (max-width: 820px) {
    #game-container {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }
}
