body {
    margin: 0;
    background-color: #090d0e;
    scroll-behavior: smooth;
    opacity: 0;
    animation: fade 2s forwards;
}

@keyframes fade {
    to {
        opacity: 1;
    }
}

.monsterrat-100 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
  }

.ibm-plex-sans-400 {
    font-family: "IBM Plex Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
}

.ibm-plex-serif-thin {
    font-family: "IBM Plex Serif", serif;
    font-weight: 100;
    font-style: normal;
}  

.poppins-thin {
    font-family: "Poppins", serif;
    font-weight: 100;
    font-style: normal;
}

.noto-sans-jp-400 {
    font-family: "Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;
}
  

.racing-sans-one-regular {
    font-family: "Racing Sans One", serif;
    font-weight: 400;
    font-style: normal;
}

.jura-400 {
    font-family: "Jura", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.gruppo-regular {
    font-family: "Gruppo", serif;
    font-weight: 400;
    font-style: normal;
}

.palanquin-dark-regular {
    font-family: "Palanquin Dark", serif;
    font-weight: 400;
    font-style: normal;
}  
/* header */
.header {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: fixed;
    top: 0;
    right: 0;
    
    z-index: 100;
    width: 100%;
    height: 110px;
    
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}

/* hide navbar on scroll down */
.scroll-down .header {
    transform: translate3d(0, -100%, 0); 
    /* moves the header off screen */
}

.scroll-up .header {
    width: 100%;
    height: fit-content;
    background-color: #090d0e;
    padding: 0px 5px;
}

.top-nav {
    width: 100%;
    max-height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.nav-bar {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    position: relative;
    right: 50px;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.nav-bar img {
    display: none;

    transition: transform .3s ease-in-out;
}

.nav-logo {
    height: 100%;
    transition: all 1s ease-in-out;
}

.nav-logo:hover {
    filter: drop-shadow(0 0px 6px rgb(141, 253, 251)); 
}

.scroll-up .nav-logo {
    width: 100px;
    height: 100px;
    filter: none;
}

.scroll-down .nav-logo {
    width: 100px;
    height: 100px;
    filter: none;
}

.nav-list {
    display: flex;
    gap: 20px;
}

a.nav-link {
    padding: 10px;

    font-size: 16px;
    font-family: "Montserrat", serif;
    font-weight: 200px;

    color: white;
    text-decoration: none;
    transition: all 0.6s ease-in-out; 
}

.scroll-up .nav-link:hover {
    text-shadow: 0 0 10px #8dfdfb, 0 0 20px #8dfdfb;
    color: white;
}

.overflow-nav {
    width: 100%;
    height: fit-content;

    display: none;
    justify-items: center;
    
}

@media screen and (width < 760px) {
    .header {
        background-color: #090d0e;
        height: 100px;
    }

    .nav-bar {
        right: 20px;
        flex-wrap: wrap;
    }

    a.nav-link {
        font-size: 10px;
    }
    a.nav-link:hover {
        color: #8dfdfb;
    }
    .nav-logo {
        width: 100px;
        height: 100px;
        left: 20px;
    }
    
}

@media screen and (width < 630px) {
    .header {
        height: 75px;
        padding: 0;
    }

    .nav-bar {
        width: 50px;
        height: 50px;

        border: 1px solid white;
    }

    .nav-bar img {
        display: block;
    }

    .header:hover .nav-bar img {
        transform: rotate(45deg);
    }

    .header:hover {
        height: fit-content
    }

    .header:hover .overflow-nav {
        display: block;
    }

    .nav-bar .nav-list .nav-link {
        display: none;
    }

    .nav-logo {
        width: 75px;
        height: 75px;
        padding: 0;
       
    }
}

a.nav-link:hover {
    text-shadow: 0 0 10px #8dfdfb, 0 0 20px #8dfdfb;
}

p3 {
    font-family: "Montserrat", serif;
    font-weight: 100;
    font-size: 16px;
    color: white;
}

.gallery {
    height: 800px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 800px;
}

.gallery-slide {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: inherit; 
    height: inherit; 
    opacity: 0.4;
    object-fit: cover; 
    object-position: center;

    border-radius: 5px;
}

.slide {
    width: 100%;
    height: 100%;
}

.fade {
    animation: fadeOut 4.5s infinite;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    66% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.gallery-content {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 60%;

    width: 40%;
    text-overflow: ellipsis;
    line-height: 80%;

    opacity: 1;
    font-family: "Bebas Neue", serif;
    font-size: 100px;
    color: white;
}

.welcome-content {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);

    width: 80%;
    height: 50%;

    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;

    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: white;
    text-align: center;
}

.discord-join {
    width: 250px;
    height: 70px;
    border-radius: 40px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30%;

    font-family: "Montserrat", serif;
    font-weight: 600;
    font-size: 24px;
    color: black;
    background-color: white;

    text-align: center;
}

.discord-join-button {
    width: height;
    height: 60%;
    padding: 10px;
    border-radius: 50%;
    

    display: flex;
    justify-content: center;
    align-content: center;
    background-color: #7289da;
}

.gallery-content-details {
    color: white;
    font-size: 28px;
    font-family: "Bebas Neue", serif;
    font-weight: 100px;
}

@media screen and (width < 1380px) {
    .gallery-content p {
        font-size: 80px;
    }
}

@media screen and (width < 700px) {
    .gallery-content {
        transform: translate(-50%, -60%);
    }
}

.section-title {
    position: relative;
    z-index: 2;

    align-content: center;
    text-align: center;

    width: 100%;
    height: 100px;

    color: white;
    font-size: 45px;
    font-family: "Bebas Neue", serif;
    text-shadow: 0 0 4px #659191, 0 0 4px #8dfdfb;
}

.events-container {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    z-index: 1;

    width: 100%;
    height: 600px;

    margin: 30px 0px;

}

.calendar-container {
    position: relative;
    z-index: 2;
    width: 50%;
    height: 100%;
    
    margin-left: 20px;

    border-radius: 20px;
    overflow: hidden;
    
    align-self: center;
}

.events-title {
    
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);

    width: 100%;
    color: white;
    font-size: 50px;
    font-family: "Bebas Neue", serif;
    text-align: center;

}

.events-list {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;

    width: 40%;
    height: 600px;

    margin: 10px 0px;
}


.events-item {
    position: relative;
    z-index: 3;

    width: 100%;
    height: fit-content;
    margin-bottom: 10px;

    display: flex;
    flex-direction: row;
    text-align: center;
    
    align-content: center;
    align-items: center;
    justify-content: center;

    background-color: black;
    color: white;

    border-radius: 10px;
    
    overflow: hidden;

    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

@media screen and (width < 700px) {
    .events-container {
        flex-direction: column;
        height: fit-content;        
    }
    .events-list {width: 100%; height: fit-content;}
    .events-item {width: 90%; height: 100%;}
    .calendar-container {display: none;}
    .event-button-container {display: flex; justify-content: center;}
}

.event-img {
    z-index: 2;
    opacity: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    transition: opacity 0.4s ease;
    backface-visibility: hidden;
    opacity: .5;
}

.events-item:hover .event-img {
    opacity: 1;
}

.events-item:hover .events-title {
    opacity: 0;
}

.event-button-container {
    width: 100%;
    height: fit-content;
    text-align: right;
}

a.event-button {
    text-decoration: none;
    color: white;
    font-family: "Bebas Neue", serif;
    font-size: 24px;
    display: flex;
    align-content: flex-end;
}

a.event-button:hover {
    opacity: 0.5;
}

iframe {
    filter: invert(.9) saturate(0.5) hue-rotate(145deg);
}

.teams-container {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-items: center;
    align-items: center;

    width: 100%;
    height: 660px;
    margin: 10px 0px;
}

.rng-teams {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 50%;
    height: 100%;
    margin-right: 20px;
    
    border-radius: 10px;
    overflow: hidden;
}

#rng-teams-img{
    opacity: 1;
    transition: opacity .5s ease-in-out;
}

#rng-teams-img:hover {
    opacity: .6;
}

.teams-list {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    width: 40%;
    height: 100%;
}

.team-banner {
    position: relative;
    width: 100%;
    height: 100px;
    
    margin-bottom: 10px;
    
    border-radius: 10px;

    color: white;
    text-align: center;
    align-content: center;
    font-family: "Montserrat", serif;
    font-weight: 800;
}

#team-banner { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: bottom; 
    border-radius: inherit;

    filter: grayscale(60%);

    transition: object-position .5s ease-in-out, filter .5s ease-in-out;
}

#team-banner:hover {
    object-position: 50% 30%;
    filter: grayscale(0);
}

#team-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.teams-desc {
    font-family: "Bebas Neue";
    color: aqua;
    font-size: 60px;
    white-space: nowarp;
    text-align: center;
    width: 100%;
    height: fit-content;
}

@media screen and (width < 750px) {
    .teams-container {
        width: 100%;
        flex-direction: column;
        height: fit-content;
    }
    .rng-teams {
        width: 90%;
        height: 30%;
        margin-right: 0;
    }
    .teams-list {
        width: 90%;
        height: 60%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }
    .team-banner {
        width: 45%;
        margin: 5px;
    }
}

@media screen and (width < 500px) {
    .team-banner {
        width: 40%;
    }
}

.merch-container {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: center;
    
    align-items: center;

    width: 100%;
    height: 500px;
    margin-top: 20px;
    
}

@media screen and (width < 750px) {
    .merch-container {
        flex-direction: column-reverse;
        height: fit-content;
    }
    .merch-container .collection-container  {
        width: 90%;
        height: 40%;
    }
    
    .merch-list .merch-item {
        display: none;
    }

    .merch-container .merch-list {
        display: none;
    }
}

.collection-container {
    height: 100%;
    width: 30%;
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border: 1px solid white;
    border-radius: 10px;

    overflow: hidden;
}

.collection-container:hover img {
    opacity: 0.9;
}

.collection-desc {
    font-family: "Bebas Neue";
    color: aqua;
    font-size: 60px;
    white-space: nowarp;
    text-align: center;
    width: 100%;
    height: fit-content;
    
}

.merch-list {
    width: 60%;
    height: 100%;

    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;

    margin-right: 20px;
    margin-left: 20px;
}

.merch-item {
    margin: 0px 10px;

    width: 40%;
    height: 95%;
    border-radius: 10px;
    transition-property: box-shadow;
    transition-duration: .25s;
    transition-delay: .25s;
    transition-timing-function: ease-in-out;
    
    background: transparent;
    display: flex;
    justify-content: center;
    border: 1px solid white;
}

.merch-img {
    position: relative;

    width: 100%;
    height: 70%;

    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}

.merch-details {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    flex-direction: column;
    
}

.merch-name {
    width: 100%;
    color: white;
    font-family: "Bebas Neue", serif;
    font-size: 32px;
    text-align: center;
}

.merch-price {
    width: 100%;
    color: white;
    text-align: center;
    font-family: "IBM Plex Sans", serif;
}

.partners-container {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: center;
    
    align-items: center;

    width: 100%;
    height: fit-content;
    margin-top: 20px;
    margin-bottom: 50px;
}

.partners-list {
    width: 90%;
    padding: 10px;
    height: 100%;

    margin-top: 10px;

    display: flex;
    flex-direction: row;
    justify-content: center;
}

.partners-list img {
    object-fit: contain;
    object-position: center;

    width: 150px;
    height: 150px;
}

@media screen and (width < 500px) {
    .partners-list img {
        width: 100px;
        height: 100px;
    }
}

.footer {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: center;

    flex-wrap: wrap;

    width: 100%;
    height: fit-content;

    color: #8DFDF8;
    
    font-family: "IBM Plex Sans", serif;
    font-size: 20px;
    text-decoration: none;
    padding-bottom: 50px;

    
}

.footer-container {
    width: 90%;
    height: fit-content;

    border-top: 1px solid white;
    padding-top: 20px;

    display: flex;
    justify-content: center;
    flex-direction: row;
}

.footer-item {
    position: relative;
    width: fit-content;
    height: fit-content;

    display: flex;
    flex-wrap: nowrap;

}

.footer-list {
    position: relative;
    width: fit-content;
    height: fit-content;

    font-family: "Bebas Neue", serif;
    font-size: 25px;
    text-align: left;

    margin: 0px 20px;
}

#newsletter-footer {
    width: fit-content;
    height: fit-content;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.footer-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
}

.socials-icon {
    width: 40px;
    height: 40px;
}

.email-input {
    width: 300px;
    height: 30px;

    font-family: "IBM Plex Sans", serif;
    color: white;
    padding-left: 5px;
    outline: none;
    transition: 0.25s;
    -webkit-transition: 0.25s;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 5px;
    margin: 0px;
}

.email-input:focus {
    border: 3px solid #8DFDF8;
    border-radius: 5px;
}

.email-submit {
    height: 30px;
    width: 30px;
    padding: 5px;
    margin: 0px;

    background-color: transparent;
    border: transparent;
    color: white;
}

a.footer-link {
    color: white;
    font-family: "IBM Plex Sans", serif;
    font-size: 12px;
    text-decoration: none;
}

@media screen and (width < 860px){
    .footer-container {
        flex-direction: unset;
        flex-wrap: wrap;
        justify-items: center;
    }

    .footer-list {
        width: 50%;
    }
}