body {
    font-family: 'Roboto', sans-serif; /* A modern, readable font */
    background-color: #1a1a2e; /* Dark background */
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/d/de/Charles_Leclerc_2022.jpg");
    background-size:cover;
    color: #e0e0e0; /* Light text color */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    margin: 0;
    padding: 20px;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.highscore-container {
    background-color: #2a2a4a80; /* Slightly lighter dark background for the container */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Deeper shadow */
    padding: 35px 45px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #4a4a6e; /* Subtle border */
}

h1 {
    font-family: 'Sans Serif', cursive; /* Pixelated retro font for the title */
    color: #00f0ff; /* Bright cyan */
    margin-bottom: 30px;
    font-size: 4.2em; /* Larger title */
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7); /* Glow effect */
}

.highscore-table {
    width: 100%;
    border-collapse: collapse; /* Removes space between borders */
    margin-bottom: 30px;
}

.highscore-table th,
.highscore-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a5e; /* Lighter separator */
    background-color: #2a2a4a;
}

.highscore-table th {
    background-color: #3b3b5b; /* Header background */
    color: #e0e0e0;
    font-weight: 700; /* Bold */
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.highscore-table tbody tr:nth-child(even) {
    background-color: #2f2f4f; /* Alternate row background for readability */
}

.highscore-table tbody tr:hover {
    background-color: #4a4a6e; /* Highlight on hover */
    transition: background-color 0.2s ease;
}

/* Specific styling for Rank, Name, Score columns */
.highscore-table th:nth-child(1),
.highscore-table td:nth-child(1) {
    width: 15%; /* Rank column width */
    text-align: center;
    font-weight: bold;
    color: #aaffaa; /* Green for rank */
}

.highscore-table th:nth-child(2),
.highscore-table td:nth-child(2) {
    width: 55%; /* Name column width */
}

.highscore-table th:nth-child(3),
.highscore-table td:nth-child(3) {
    width: 30%; /* Score column width */
    text-align: right;
    font-weight: bold;
    color: #ffd700; /* Gold for score */
}

.footer-note {
    font-style: italic;
    color: #9999bb;
    margin-top: 25px;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .highscore-container {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .highscore-table th,
    .highscore-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}
