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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0a0a0a;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    display: block;
    background: #87CEEB;
    width: 100vw;
    height: 100vh;
}

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

.screen.hidden {
    display: none;
}

.screen h1 {
    font-size: 48px;
    color: #790ECB;
    margin-bottom: 20px;
}

.screen p {
    font-size: 20px;
    color: #e0e0e0;
    margin: 10px 0;
}

#finalScore {
    color: #790ECB;
    font-weight: bold;
}

.sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 8px;
    background-color: #790ECB;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sound-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(121, 14, 203, 0.5);
}

.sound-toggle:active {
    transform: scale(0.95);
}

.sound-toggle.muted {
    background-color: #5a5a5a;
}

.sound-icon {
    user-select: none;
}
