/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
    text-align: center; /* Center align text */
}

/* Header Styles */
header {
    background-color: #d32f2f; /* Red background */
    color: #fff;
    padding: 20px 0;
}

/* Main Content Styles */
main {
    max-width: 800px;
    margin: auto; /* Center align the main content */
    padding: 20px;
    text-align: center; /* Center text and content */
}

/* Leaderboard Form Styles */
form {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px; /* Spacing below the form */
}

input[type="submit"] {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    cursor: pointer;
}

input[type="submit"].active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Chart Canvas Styles */
canvas {
    max-width: 100%; /* Ensures canvas is responsive */
    margin-bottom: 30px; /* Spacing below the canvas */
}

/* Footer Styles */
footer {
    background-color: #d32f2f; /* Red background */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Navigation Bar Styles */
nav {
    background-color: #333;
    overflow: hidden;
    text-align: center; /* Center navbar items */
}

.navbar a {
    display: inline-block;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar-right {
    float: right; /* Align the logout button to the right */
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Responsive Navbar */
@media screen and (max-width: 600px) {
    .navbar a, .navbar-right {
        display: block;
        float: none;
        text-align: left;
    }
}