body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

canvas {
    display: block;
}

#score-container {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Moved to left */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    z-index: 5;
}

#leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    /* Top Right */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    pointer-events: none;
    z-index: 5;
}

#leaderboard h3 {
    margin: 0 0 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    font-size: 18px;
    text-transform: uppercase;
}

#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

#leaderboard-list li.player-rank {
    color: #ffd700;
    font-weight: bold;
}

#menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#menu-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#menu-content h1 {
    margin-top: 0;
    color: #ff8c00;
    font-size: 48px;
    margin-bottom: 10px;
}

#play-btn {
    background-color: #4CAF50;
    color: white;
    font-size: 24px;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.1s, background-color 0.2s;
    font-weight: bold;
}

#play-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#play-btn:active {
    transform: scale(0.95);
}