body {
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

canvas {
    display: block;
    background: #000;
}

#mainMenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('assets/menu_bg.jpg');
    background-size: cover;
    color: white;
}

#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: none; /* Initially hidden */
}

.gameOverMenu {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #fff;
}

h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px #000;
}

h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 20px;
}

h3 {
    font-size: 2rem;
    margin-top: 0;
}

.controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}

#timer {
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button.selected {
    background-color: #a0a0a0;
}

.gameOverButtons button {
    background-color: #f44336;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.gameOverButtons button:hover {
    background-color: #e53935;
}

#finalTime {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#winnerImage {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 5px solid white;
}
