@font-face {
    font-family: 'Daggersquare';
    src: url(Assets/WRLAfonts/DAGGERSQUARE.otf);
}

* {
    box-sizing: border-box;
}

body {
    background-image: url(Assets/WRLAbg.webp);
    background-size: 100%;
    padding: 0;
    margin-left: 2em;
    margin-right: 2em;
    font-size: 24px;
    overflow-x: hidden;
}

/* Navbar */
header {
    height: 90px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    box-shadow: 0 8px 15px #FFB500;
    z-index: 1000;
    font-family: 'Daggersquare', sans-serif;
}

nav {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    top: 0;
    padding: 0 1%;
    height: 90px;
    background-color: #000000;
}

nav .logo {
    float: left;
    width: 10%;
    height: 100%;
    display: flex;
    align-items: center;
}

.headerpic {
    width: 100px;
}

nav .links {
    padding: 0;
    margin: 0;
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.off {
    color: white;
    display: block;
    padding: 1em 1em;
    font-size: 30px;
    text-decoration: none;
    line-height: 1;
}

.off:hover {
    color: #FFB500;
    background-color: #141414;
}

nav .links li {
    list-style: none;
}

#nav-toggle {
    position: absolute;
    top: -100px;
}

nav .icon-burger {
    display: none;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}

nav .icon-burger .line {
    width: 30px;
    height: 5px;
    background-color: #fff;
    margin: 5px;
    border-radius: 3px;
    transition: all .3s ease-in-out;
}

@media screen and (max-width: 1075px) {
    nav .logo {
        float: none;
        width: auto;
        justify-content: center;
    }
    nav .links {
        position: fixed;
        z-index: 9;
        left: 0;
        right: 0;
        top: 90px;
        bottom: 100%;
        width: auto;
        height: auto;
        flex-direction: column;
        background-color: #141414;
        overflow: hidden;
        transition: all .5s ease-in-out;
        margin: 0;
        padding: 0;
    }
    nav .links a {
        font-size: 20px;
        padding: 1em;
    }
    nav :checked ~ .links {
        bottom: 0;
        top: 90px;
    }
    nav .icon-burger {
        display: block;
    }
    nav :checked ~ .icon-burger .line:nth-child(1) {
        transform: translateY(10px) rotate(225deg);
    }
    nav :checked ~ .icon-burger .line:nth-child(3) {
        transform: translateY(-10px) rotate(-225deg);
    }
    nav :checked ~ .icon-burger .line:nth-child(2) {
        opacity: 0;
    }
}

/* Dropdown */
nav .links .dropdown {
    position: relative;
    text-align: center;
}

nav .links .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav .links .dropdown .dropdown-menu a {
    display: block;
    padding: 10px 15px;
    font-size: 24px;
    color: white;
    text-decoration: none;
}

nav .links .dropdown .dropdown-menu a:hover {
    color: #FFB500;
    background-color: #141414;
}

@media screen and (min-width: 1076px) {
    nav .links .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Tables */
.tableholder {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 90%;
    margin: 120px auto;
}

.standings-container {
    flex: 1 1 30%; /* 3 per row at full width */
    min-width: 300px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 181, 0, 0.5);
    font-family: 'Daggersquare';
    color: #fff;
    text-align: center;
}

.standings-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #444;
}

th {
    background-color: #ffb500;
    color: black;
}

tr:hover {
    background-color: #252525;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.conf-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: -22px;
    margin-bottom: -50px;
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 20px;
    font-family: 'Daggersquare', sans-serif;
    font-size: 20px;
    margin-top: 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px #FFB500;
}

.toppon {
    height: 9vw;
    width: 25vw;
    max-width: 30%;
    margin-left: 2vw;
    margin-right: 2vw;
    background-image: url(Assets/Uno.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
}

.toppon2 {
    height: 9vw;
    width: 25vw;
    max-width: 30%;
    margin-left: 2vw;
    margin-right: 2vw;
    background-image: url(Assets/Uno2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
}

.toppon3 {
    height: 5vw;
    width: 4vw;
    max-width: 10%;
    margin-left: 2vw;
    margin-right: 2vw;
    background-image: url(Assets/Uno3.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: transparent;
    border: none;
}

.gg {
    text-decoration: none;
}

.toppon:hover, .toppon2:hover {
    transform: scale(1.03);
    background-color: #050505;
    border: 1px solid #FFFFFF;
}

/* Responsive Adjustments */
@media screen and (max-width: 1300px) {
    .standings-container {
        flex: 1 1 45%; /* 2 per row */
    }
}

@media screen and (max-width: 930px) {
    body {
        margin-left: 1em;
        margin-right: 1em;
        font-size: 22px;
    }

    .tableholder {
        margin: 100px auto 20px;
        gap: 15px;
    }

    .standings-container {
        flex: 1 1 100%; /* 1 per row */
        min-width: 0;
        padding: 15px;
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .team-name {
        font-size: 1.2rem;
        gap: 8px;
    }

    .conf-logo {
        width: 120px;
        height: 120px;
        margin-bottom: -30px;
    }

    th, td {
        padding: 10px;
    }

    footer {
        font-size: 16px;
        padding: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .toppon, .toppon2 {
        height: 15vw;
        width: 30vw;
        max-width: 30%;
        margin-left: 1vw;
        margin-right: 1vw;
    }

    .toppon3 {
        height: 8vw;
        width: 6vw;
        max-width: 10%;
        margin-left: 1vw;
        margin-right: 1vw;
    }

    footer p {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        margin-left: 0.5em;
        margin-right: 0.5em;
        font-size: 16px;
    }

    .headerpic {
        width: 80px;
    }

    .tableholder {
        margin: 90px auto 10px;
        gap: 10px;
    }

    .standings-container {
        padding: 10px;
    }

    .team-logo {
        width: 30px;
        height: 30px;
    }

    .team-name {
        font-size: 1rem;
        gap: 5px;
    }

    .conf-logo {
        width: 100px;
        height: 100px;
        margin-bottom: -20px;
    }

    th, td {
        padding: 8px;
    }

    footer {
        font-size: 14px;
        padding: 10px;
    }

    .toppon, .toppon2 {
        height: 20vw;
        width: 35vw;
        max-width: 35%;
        margin-left: 1vw;
        margin-right: 1vw;
    }

    .toppon3 {
        height: 10vw;
        width: 8vw;
        max-width: 10%;
        margin-left: 1vw;
        margin-right: 1vw;
    }
}