body {
    background: url('assets/bg.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    transition: background 1s ease;
}

body.erupting {
    background-blend-mode: multiply;
    background-color: #ff4500;
}

.game-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #CE2B37;
    text-shadow: 2px 2px #009246;
    margin-bottom: 10px;
    font-size: 3em;
}

#game-area {
    position: relative;
    display: inline-block;
}

canvas {
    border: 5px solid #009246;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 5px;
}

.overlay h2 {
    font-size: 3em;
    margin: 0 0 20px 0;
    color: #CE2B37;
    text-shadow: 2px 2px #fff;
}

.overlay p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.score-board {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

#restartBtn {
    padding: 15px 30px;
    font-size: 24px;
    background-color: #009246;
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s;
}

#restartBtn:hover {
    background-color: #007a3a;
    transform: scale(1.1);
}

.big-btn {
    padding: 20px 50px;
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #CE2B37 0%, #FF6B6B 100%);
    color: white;
    border: 4px solid #FFD700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.big-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #FF6B6B 0%, #CE2B37 100%);
}

.big-btn:active {
    transform: scale(1.05);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Eruption warning styling */
#eruptionWarning {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}