@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background: rgb(2,0,36);
    background: linear-gradient(109.6deg, rgb(0, 0, 0) 11.2%, rgb(11, 132, 145) 91.1%);
;
    color: #1e202f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.disclaimer {
    border: 1px solid #33D59F;
    color: #33D59F;
    background-color: #010c0d;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0;
    max-width: 80vw;
    text-align: center;
    font-size: 0.9em;
    font-weight: 400;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.search-bar #search-input {
    padding: 8px 10px;
    font-size: 1em;
    color: #33D59F;
    background: #010c0d;
    border: 2px solid #010c0d;
    border-radius: 5px;
    outline: none;
}

.search-bar button {
    padding: 8px 12px;
    background-color: #010c0d;
    color: #33D59F;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #031d20;
}

.header-banner {
    width: 100%; /* Ensures full width */
    background-size: cover; /* Ensures the image covers the entire header */
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0; /* Adds some padding to the top and bottom */
}

.top-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;  
}

.leaderboard-title {
    font-size: 3em;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    color: #33D59F;
}

.leaderboard-selection, .search-bar {
    margin: 0;
    
}

.leaderboard-selection {
    display: flex;
    flex-direction: row;
    align-items: center;

}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;

}

.footer {
    margin-top: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    color: #33D59F;
}

.tbl-header table, .tbl-content table {
    table-layout: fixed;
    width: 100%;
    color: #33D59F;
    text-align: center;
}

.tbl-header table th, .tbl-content table td {
    padding: 10px 15px;
    background: #010c0d; /* Slightly transparent orange background for table cells */
    transition: background 0.2s;
    scrollbar-color: #33D59F;
}

.tbl-header, .tbl-content {
    max-width: 80vw;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    
}

.tbl-content {
    height: 60vh;
    overflow-y: auto;
    
}

.tbl-content table tr:hover {
    background-color: #33D59F; /* Lighter orange on hover */
    cursor: pointer;
    
}

.tbl-header {
    background: rgba(232, 132, 20, 0.4); /* Orange header background */
}


.leaderboard-selection label {
    font-size: 1.2em;
    margin-right: 10px; /* Add right margin */
    font-weight: 400;
    border: none;
    color: #33D59F;
}

.leaderboard-selection select {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 10px;
    font-size: 1em;
    color: #33D59F; /* Dark color for select text */
    background: #010c0d; /* Orange background for the select box */
    border: none;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="#1e202f" viewBox="0 0 24 24" width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Dark arrow for dropdown */
    background-repeat: no-repeat;
    background-position: 95% center;
}

.leaderboard-selection select:hover {
    background-color: #06444b; /* Slightly darker orange on hover */
}

.toggle-disclaimer {
    background-color: #010c0d;
    color: #33D59F;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-disclaimer:hover {
    background-color: #06444b; /* slightly darker orange on hover */
}

.disclaimer-content {
    margin-top: 10px;
}

/* For mobile screens */
@media (max-width: 768px) {
    .disclaimer {
        font-size: 0.8em;
        padding: 5px 10px;
        max-height: 60px; /* This sets a limit to its height */
        overflow-y: auto; /* This will allow scrolling if the content exceeds the set max-height */
    }

    .top-controls {
        flex-direction: column; /* Stack them vertically */
        align-items: stretch;   /* Let them take full width */
        gap: 15px;              /* Introduce some vertical spacing */
    }

    .tbl-header, .tbl-content {
        max-width: 100vw;
    }

    .search-bar #search-input {
        width: 100%;            /* Let the input take the full width */
    }

    .header-banner {
        background-size: 100% auto;   /* Adjust background to fit mobile screens better */
        padding: 15px 0;              /* Reduce some padding for compactness */
    }
    
    .leaderboard-selection label {
        margin-right: 5px;       /* Less margin for compactness */
    }
    
    .leaderboard-title {
        margin-top: 15px;       /* Some spacing between title and controls */
    }
    
    .policy-links {
        margin-top: 20px;
        font-size: 0.8em;
    }
    
    .policy-links a {
        color: #33D59F;
        text-decoration: none;
        padding: 0 5px;
        transition: color 0.3s;
    }
    
    .policy-links a:hover {
        color: #06444b; /* slightly darker color on hover */
    }
}

