@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;
    }
}

/* Main Content */
.STOP {
    margin-top: 110px;
    position: relative;
}

.SubHeader {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 40px;
    width: 80%;
    margin: 0 auto 20px;
}

.SUBheadersubheader {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.Videos {
    height: 40px;
    background-color: transparent;
    border: 2px solid;
    border-color: transparent transparent #FFFFFF transparent;
}

.VideosImg {
    height: 35px;
}

.Videos:hover {
    border-bottom-color: #FFB500;
    cursor: pointer;
}

.Pics {
    height: 40px;
    background-color: transparent;
    border: 2px solid;
    border-color: transparent transparent #FFB500 transparent;
    cursor: default;
}

.PicsImg {
    height: 35px;
}

.turnitoff {
    text-decoration: none;
}

/* Tabs */
.tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto;
    width: 80%;
    max-width: 70vw;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background-color: #141414;
    color: white;
    font-family: 'Daggersquare', sans-serif;
    font-size: 2rem;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #FFB500;
    background-color: #252525;
}

.tab-btn.active {
    background-color: #252525;
    color: #FFB500;
    border-bottom: 2px solid #FFB500;
}

.tab-content {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1vw;
    width: 100%;
}

.image-grid img {
    width: 100%;
    height: auto;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background-color: #494949;
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.05);
    border: 2px solid #FFB500;
    box-shadow: 0 0 10px #FFB500;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.popup-close {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 70px;
    font-weight:700 ;
    color: #ffffff;
    cursor: pointer;
    z-index: 1003;
    padding: 10px;
    line-height: 1;
}

.popup-close:hover {
    color: #FFB500;
}

.popup img {
    position: absolute;
    transform: translateX(-50%);
    top: 100px;
    left: 50%;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #ffffff;
    border-radius: 5px;
    background-color: #494949;
    z-index: 1002;
}

/* 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;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    body {
        margin-left: 1em;
        margin-right: 1em;
        font-size: 18px;
    }

    .STOP {
        margin-top: 100px;
    }

    .SubHeader {
        width: 90%;
        font-size: 30px;
    }

    .SUBheadersubheader {
        gap: 15px;
    }

    .Videos, .Pics {
        height: 35px;
    }

    .VideosImg, .PicsImg {
        height: 30px;
    }

    .tab-nav {
        width: 90%;
        gap: 8px;
    }

    .tab-btn {
        font-size: 1.5rem;
        padding: 8px 15px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5vw;
    }

    .popup-close {
        top: 25px;
        font-size: 70px;
        font-weight:700 ;
    }

    .popup img {
        max-width: 85%;
        max-height: 75vh;
        position: absolute;
        transform: translateX(-50%);
        top: 100px;
        left: 50%;
    }

    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;
    }

    .STOP {
        margin-top: 90px;
    }

    .SubHeader {
        width: 95%;
        font-size: 24px;
    }

    .SUBheadersubheader {
        gap: 10px;
    }

    .Videos, .Pics {
        height: 30px;
    }

    .VideosImg, .PicsImg {
        height: 25px;
    }

    .tab-nav {
        width: 95%;
        gap: 5px;
    }

    .tab-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }

    .image-grid {
        gap: 1vw;
    }

    .popup-close {
        top: 25px;
        font-size: 60px;
        font-weight:700 ;
    }

    .popup img {
        max-width: 80%;
        max-height: 70vh;
        position: absolute;
        transform: translateX(-50%);
        top: 100px;
        left: 50%;
    }

    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;
    }
}

@media (min-width: 601px) {
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1001px) {
    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1401px) {
    .image-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}