* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    color: white;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    transform: translateY(0);
    height: 100px;
}

.navbar.scrolled {
    background-color: #c1ba7a;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.logo img {
    height: 10px;
    width: auto;
}

.left-logo img {
    height: 60px;
    /* Custom size for left logo */
    width: auto;
}

.right-logo img {
    height: 90px;
    /* Custom size for right logo */
    width: auto;
    margin-right: 100px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 150px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    /* border-radius: var(--border-radius); */

}

.nav-links a:hover {
    color: rgba(212, 175, 55, 0.6);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* Main Container Styles */
.container,
.container1,
.container2,
.container3,
.container4 {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    width: 90%;
    animation: fadeIn 0.5s ease-out;
    top: auto;
}

/* Specific container adjustments */
.container {
    /* Leaderboard with 3 columns */
    max-width: 1000px;
    margin-top: 200px;
}


.container1,
.container2,
.container3,
.container4 {
    /* Individual champion containers with 4 columns */
    max-width: 1000px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}



/* Table Styles - General */
table {
    width: 100%;
    border-collapse: separate;
    /* 🔥 change this */
    border-spacing: 0 12px;
    /* horizontal | vertical */
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 30px;
    /* background: rgba(255, 255, 255, 0.05); */
    /* box-shadow: 0 0 25px rgba(255, 255, 255, 0.08); */
}

thead {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}


th,
td {
    padding: 1rem;
    text-align: center;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specific table styles */
#scoreboard {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0 15px;
}

/* Header cells base */
#scoreboard thead th {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

/* Left header cell */
#scoreboard thead th:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Right header cell */
#scoreboard thead th:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Left column */
#scoreboard td:first-child {
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Right column */
#scoreboard td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}


#scoreboard th:nth-child(2) {
    width: 50%;
}

#scoreboard th:nth-child(3) {
    width: 30%;
}

#scoreboard_ind {
    /* 4-column table */
    max-width: 900px;
    margin: 0 auto;
}

#scoreboard_ind th:nth-child(1) {
    width: 20%;
}

#scoreboard_ind th:nth-child(2) {
    width: 35%;
}

#scoreboard_ind th:nth-child(3) {
    width: 25%;
}

#scoreboard_ind th:nth-child(4) {
    width: 20%;
}

/* Table row styles */
tbody tr {
    /* border-bottom: 1px solid #eee; */
    transition: all 0.3s ease;
}


tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #000000;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Special styling for top positions */
#scoreboard tbody tr:nth-child(1) {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

#scoreboard tbody tr:nth-child(2) {
    background: rgba(255, 255, 255, 0.15);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); */
    font-weight: bold;
}

#scoreboard tbody tr:nth-child(3) {
    background: rgba(255, 255, 255, 0.15);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); */
    font-weight: bold;
}

#scoreboard tbody tr:nth-child(4) {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); */
    font-weight: bold;
}

/* Champion highlight styles */
#champion tbody tr:nth-child(1),
#champion_strict tbody tr:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.3);
    font-weight: bold;
    font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }

    .logo img {
        height: 40px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 15px 5%;
        height: 80px;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.5s ease;
    }

    .nav-links {
        display: flex;
        gap: 30px;
        margin-left: 0px;
    }


    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


    .logo img {
        height: 40px;
    }

    .left-logo img {
        height: 30px;
    }

    .right-logo img {
        height: 50px;
        margin-left: 10px;
    }


    .container,
    .container1,
    .container2,
    .container3,
    .container4 {
        padding: 1.5rem;
    }

    #scoreboard {
        /* 3-column table */
        max-width: 900px;
        margin: 0 auto;
    }


    th,
    td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.5rem;
    }

    th,
    td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Make tables scroll horizontally on small screens */


    .container,
    .container1,
    .container2 {
        padding: 1rem;
        width: 95%;
    }

    #scoreboard {
        /* 3-column table */

        max-width: 900px;
    }

    #scoreboard_ind {
        /* 3-column table */
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 900px;
    }


}

/* Animation for table rows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

tbody tr {
    animation: slideIn 0.3s ease-out;
    animation-fill-mode: both;
}

tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

tbody tr:nth-child(4) {
    animation-delay: 0.4s;
}

tbody tr:nth-child(5) {
    animation-delay: 0.5s;
}