body {
    font-family: Arial, sans-serif;
    background-image: url('../img/background.jpg');
    background-size: cover; /* Ensure the background covers the entire area */
    background-position: center; /* Center the background */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    color: #333;
    margin: 0;
    padding: 0;
}

/* Title styling */
.title {
    font-family: 'Lobster', cursive; /* Apply the fancy font */
    font-size: 2.5em;
    color: #0056b3;
    margin: 0;
    padding: 20px 0;
    text-align: center;
}

/* Container styling */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    min-height: 100vh;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8); /* Optional: Adds transparency to make text stand out */
    padding-top: 40px; /* Add padding to make space for the title */
}

/* Content area */
.content {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
}

/* Table row styling for side-by-side tables */
.table-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: space-between; /* Spacing between the tables */
    gap: 20px; /* Optional: Adds space between tables */
    margin-bottom: 20px;
}

/* Table container for consistent sizing */
.table-container {
    flex: 1; /* Allows the tables to grow and shrink */
    min-width: 300px; /* Ensures tables have a minimum width */
    max-width: 32%; /* Maximum width for each table to fit in one row */
}


/* Ensuring table layout is fixed for uniformity */
.ranking-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    table-layout: fixed;
}

.ranking-table th, .ranking-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    word-wrap: break-word;
}


.ranking-table th {
    background-color: #0056b3;
    color: white;
}

.ranking-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Action Buttons styling */
.action-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1em;
    background-color: #0056b3;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.action-buttons button:hover {
    background-color: #003d80;
}

/* Contact section */
.contact {
    margin-top: 20px;
}

.contact p {
    margin: 5px 0;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .main-content {
        flex-direction: column;
        justify-content: flex-start; /* Adjust alignment for tables */
    }
}

@media (max-width: 767px) {
    .title {
        font-size: 2em; /* Adjust title size for smaller screens */
    }

    .action-buttons button {
        padding: 8px 15px; /* Adjust padding for smaller screens */
        font-size: 0.9em; /* Adjust font size for buttons */
    }

    .contact p {
        font-size: 0.9em; /* Adjust contact text size for smaller screens */
    }

    .ranking-table th,
    .ranking-table td {
        padding: 8px; /* Adjust table cell padding for smaller screens */
    }

    /* Adjust the table row for mobile */
    .table-row {
        flex-direction: column; /* Stack tables vertically on smaller screens */
    }

    .table-container {
        max-width: 100%; /* Make tables take full width on mobile */
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8em; /* Further reduce title size for very small screens */
    }

    .action-buttons button {
        padding: 6px 10px; /* Smaller padding for very small screens */
        font-size: 0.85em; /* Smaller font size for buttons */
    }

    .container {
        padding: 10px; /* Adjust padding for very small screens */
    }

    .ranking-table th,
    .ranking-table td {
        padding: 6px; /* Further reduce table cell padding for very small screens */
    }
}
#top-bar {
    background-color: #00457c; /* Dark blue, change as needed */
    color: white;
    text-align: center;
    padding: 5px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays on top */
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 14px;
}

#top-bar p {
    margin: 0 10px;
}

body {
    padding-top: 50px; /* Add padding to the top of the body to avoid overlap with the fixed top bar */
}
 