/* Resetting default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* Navigation styles */
nav {
    background-color: #333;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav button {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
}

/* Style for the new button linking to index.html */
nav a img {
    width: 40px; /* Adjust the width as needed */
    height: 40px; /* Adjust the height as needed */
    margin: 0 5px; /* Space on the sides of the button */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: transform 0.3s ease; /* Smooth transition effect */
    align-self: center; /* Align the image vertically with the buttons */
}

nav a img:hover {
    transform: scale(1.1); /* Slightly increase the size on hover */
}

/* Leaderboard container styles */
.leaderboard-container {
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Leaderboard headers styles */
.leaderboard-headers {
    display: flex;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.header {
    flex: 1;
    text-align: center;
    padding: 10px 0;
}

/* Leaderboard item styles */
.user {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.user span {
    flex: 1;
    text-align: center;
}

/* Map leaderboard container styles */
.map-leaderboard-container {
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

.map-leaderboard-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Select styles */
#mapSelect {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Responsive styles */
@media (max-width: 768px) {
    .leaderboard-container,
    .map-leaderboard-container {
        width: 90%;
    }
}
