/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    margin: 0;
    padding: 20px;
    background-image: url('images/eubackk.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    color: #ffffff;
}

/* Container setup */
.container {
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

.title-box {
    background-image: url('images/eu\ banner\ 2.webp');
    background-repeat:no-repeat;
    background-size:cover;
    border: 2.5px solid rgb(0, 0, 0);
    border-radius: 50px;
    color: rgb(255, 255, 255);
    padding: 0 px;
    display: block;
    margin: 20px auto;
    transition: background-color 0s;
    border-radius: 40px; 
    margin-bottom: 0px;
    max-width: 500px;
    
}
.title-box h1 {
    text-shadow: 2px 2px 6px rgb(0, 0, 0);
    margin-top: 0.5;
    margin-bottom: 0.2;
}

/* Discord box at the top */
.discord-box {
    margin-top: 0px;
    margin-bottom: 10px;
    background-image: url('images/discord\ shot.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 10px;
    padding: 15px;
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.s ease;
}

.discord-box:hover {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0.6;
    transition: 0.2s ease;
}


.discord-box h1 {
    font-size: 2.5em;
    margin: 0;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgb(0, 0, 0);
}

/* Link styles */
a, .discord-box a, .title-box a, .rank-box-link a {
    text-decoration: none;
    color: inherit;
}

a:hover, .discord-box a:hover, .title-box a:hover, .rank-box-link a:hover {
    text-decoration: none;
}

/* Leaderboard styles */
h1, h2 {
    color: #ffffff;
    text-shadow: 4px 4px 4px rgb(0, 0, 0);
    

}

.positive-change {
    color: green;
}

.negative-change {
    color: red;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: rgba(19, 49, 146, 0.856);
    border-color: #000000;
    border-width: 10px;
    border-radius: 4px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgb(0, 0, 0);
}

th {
    background-color: rgba(0, 0, 0, 0.74);
    border-color: #000000;
    border-width: 3px;
    border-radius: 0px;
    color: #ffffff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: rgba(23, 56, 150, 0.774);
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.849);
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .rank-box {
        width: 100%;
        font-size: 2em;
    }
    .title-box h1 {
        font-size: 2.5em;
    }
    .discord-box h1 {
        font-size: 2em;
    }
    table {
        font-size: 0.8em;
    }
    th, td {
        padding: 8px;
    }
}

/* Rank selector styles */
.rank-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rank-button {
    background-color:#1b1b1b;
    border: 2.5px solid rgb(0, 0, 0);
    border-radius: 50px;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0s;
    border-radius: 5px;
}

.rank-button h3 {
    font-size: 1.1em;
    margin: 0;
    color: #ffffff;
    text-shadow: 0px 0px 8px rgb(0, 0, 0);
}

.rank-button:hover {
    background-color: #5965f1;
}

.rank-button.active {
    background-color:#5965f1;
    font-weight: bold;
}

/* Leaderboard styles */
#leaderboardContainer {
    opacity: 1;
    transition: opacity 0s ease-in-out;
}

#leaderboardContainer.visible {
    opacity: 1;
}

/* ... (keep your existing table styles) ... */

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .rank-selector {
        flex-wrap: wrap;
    }
    
    .rank-button {
        margin: 5px;
    }
    
    /* ... (keep your existing responsive styles) ... */
}