/* GLOBAL STYLES */
body {
    background-color: #282a36; /* Dark purple/grey background */
    color: #f8f8f2; /* Light text color */
    font-family: sans-serif;
    display: flex;
    flex-direction: column; /* Stacks the card and links vertically */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    color: #f8f8f2;
}

/* LEADERBOARD CARD STYLES (The dark box) */
.leaderboard-card {
    background-color: #1e1e24; /* Even darker card color */
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* LIST STYLES */
#leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#leaderboard-list li {
    background-color: #383a47; /* Default item background (dark grey) */
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.2s;
}

/* TOP RANK STYLES (Green highlight for #1) */
.top-rank {
    background-color: #008069 !important; /* Green for the top donor */
    border-left: 5px solid #50fa7b; /* Optional green border */
}

/* DONATION LINKS STYLES */
.donation-links {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1em;
    color: #bd93f9; /* Light purple text */
}

.donation-links p {
    margin: 5px 0;
}

.donation-links a {
    color: #50fa7b; /* Bright green link color */
    text-decoration: none;
    font-weight: bold;
}

.thanks-message {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

/* === MOBILE VISIBILITY FIX === */
/* CRITICAL: Ensures the leaderboard card is visible on small screens */
@media screen and (max-width: 768px) {
    body {
        /* Prevents the body from stretching wide, keeping content centered */
        padding: 10px; 
    }
    
    .leaderboard-card {
        /* Overrides any rule hiding it on mobile */
        display: block !important; 
        max-width: 95%; /* Adjusts width for very small screens */
    }
}