@font-face {
    font-family: 'Daggersquare';
    src: url(Assets/WRLAfonts/DAGGERSQUARE.otf);
}

* {
    box-sizing: border-box;
}

body {
    background-image: url(Assets/WRLAbg.webp);
    background-repeat: repeat-y;
    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: rgb(0, 0, 0);
    box-shadow: 0 8px 15px #FFB500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
    color: #fff;
}

.headerpic {
    width: 100px;
}

nav .links {
    padding: 0;
    margin: 0;
    width: 75%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.on {
    color: #FFB500;
}

.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;
    }
}

/* Super Conferences */
.SuperConferances {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    z-index: 100;
    position: relative;
    margin: 150px auto 20px;
    width: 90%;
    border: 5px solid #FFB500;
    column-gap: 2vw;
    background-color: #111111;
    padding: 15px;
}

.card-btn {
    width: 100%;
    height: 12vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #303030;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

.card-btn:hover {
    background-color: #111111;
    transform: scale(1.0);
}

.card-btn-apoce {
    background-image: url('Assets/Icons/ApOceDarkClear.png');
    cursor: pointer;
}

.card-btn-apoce:hover {
    background-image: url('Assets/Icons/ApOceClear.png');
}

.card-btn-eu {
    background-image: url('Assets/Icons/EUDarkClear.png');
    cursor: pointer;
}

.card-btn-eu:hover {
    background-image: url('Assets/Icons/EUClear.png');
}

.card-btn-casa {
    background-image: url('Assets/Icons/CASADarkClear.png');
    cursor: pointer;
}

.card-btn-casa:hover {
    background-image: url('Assets/Icons/CASAClear.png');
}

.card-btn-na {
    background-image: url('Assets/Icons/NAClear.png');
    background-color: #111111;
}

.card-btn-na:hover {
    background-image: url('Assets/Icons/NAClear.png');
}

/* Conferences/Tables */
.tableholder {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    width: 90%;
    margin: 120px auto 20px;
    overflow: hidden;
}

.standings-container {
    min-width: 300px;
    margin: 10px auto;
    flex-grow: 1;
    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;
    overflow: hidden;
}

.standings-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.team-name a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.team-name a:hover {
    color: #ffb500;
}

th, td {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #444;
}

th {
    background-color: #ffb500;
    color: black;
}

tr:hover {
    background-color: #252525;
}

.team-logo {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
}

.conf-logo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    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;
}

.line2 {
    width: 30%;
    margin-bottom: 20px;
    border-color: #fff;
}

/* Mobile Adjustments */
@media screen and (max-width: 1055px) {
    .tableholder {
        flex-direction: column;
        align-items: center;
    }
    .standings-container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        margin-left: 1em;
        margin-right: 1em;
        font-size: 18px;
    }

    .SuperConferances {
        grid-template-columns: 1fr 1fr;
        margin-top: 100px;
        padding: 10px;
        column-gap: 1vw;
        row-gap: 1vw;
        border-width: 3px;
    }

    .card-btn {
        height: 25vw;
    }

    .tableholder {
        margin: 20px auto;
        gap: 15px;
    }

    .standings-container {
        min-width: 0;
        padding: 15px;
    }

    .team-logo {
        width: 100px;
        height: 100px;
    }

    .team-name {
        font-size: 1.5rem;
        gap: 8px;
    }

    .conf-logo {
        width: 150px;
        height: 150px;
        margin-bottom: -30px;
    }

    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;
    }

    .SuperConferances {
        grid-template-columns: 1fr;
        margin-top: 90px;
        padding: 8px;
        border-width: 2px;
    }

    .card-btn {
        height: 40vw;
    }

    .tableholder {
        margin: 10px auto;
        gap: 10px;
    }

    .standings-container {
        padding: 10px;
    }

    .team-logo {
        width: 80px;
        height: 80px;
    }

    .team-name {
        font-size: 1.2rem;
        gap: 5px;
    }

    .conf-logo {
        width: 120px;
        height: 120px;
        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;
    }
}