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

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

.game-container {
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 3px;
}

.sound-button {
    background: none;
    border: 1px solid #333;
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 0px 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-button:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.1);
}

.sound-button.muted {
    opacity: 0.8;
    border-color: #999;
}

.score-display {
    margin-bottom: 0px;
    font-size: 1.2rem;
	font-weight: bold;
    color: #555;
}

canvas {
    border: 2px solid #333;
    background-color: #5484a4; /* background */
    display: block;
    margin: 0 auto;
}

/* Game Over Pop-up */
.game-over-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.game-over-overlay.show {
    display: flex;
}

.game-over-popup {
    background: #fdebd5;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 350px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.game-over-popup h2 {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 15px;
}

.game-over-popup p {
    font-size: 1.2rem;
    color: #1aafab;
    font-weight: bold;
    margin-bottom: 20px;
}

.game-over-popup button {
    padding: 12px 30px;
    font-size: 1.1rem;
    color: #fff;
    background-color: #1f77b4;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.game-over-popup button:hover {
    background-color: #145a8a;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
