/* Scrolling styles*/
.nav.scrolling {
    top: 0rem !important;
}

.scrolling .navbar {
    border-top: 0 !important;
    border-radius: 0 0 0.8rem 0.8rem !important;
    background-color: #0b0d16;
}

.scrolling img {
    height: 1.9rem !important;
}

.scrolling .nav-logo .nav-logo-title {
    font-size: 1.7rem !important;
}

.scrolling .discord-link a {
    border-radius: 0.6rem;
    padding: 0.2rem 0.3rem;
}

/* Navbar */
.nav {
    top: 1rem;
    left: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 8;
    transition: all 0.25s;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #aa9cd9;
    box-shadow: 0 0 20px #aa9cd9;
    border-radius: 0.8rem;
    margin: 0 1rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 70rem;
}

.nav a {
    color: #FFF;
    text-decoration: none;
    cursor: pointer;
}

/* Nav logo  */
.nav-logo {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-logo img {
    height: 2.8rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.7s;
}

.nav-logo .nav-logo-title {
    font-size: 2rem;
    transition: all 0.5s;
}

/* Nav links  */
.nav-links ul {
    display: flex;
    list-style: none;
    font-weight: 600;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}

.nav-links li {
    padding: 0.6rem;
    transition: all 0.3s;
    border-bottom: #aa9cd9 solid 0px;
}

.nav li a {
    display: inline-block;
    position: relative;
}

.nav li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background-color: #aa9cd9;
    transition: width 0.3s ease-out;
}

.nav li a:hover::after {
    width: 100%;
}

/* Right Links */
.right-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Discord link  */
.discord-link a {
    border: 2px solid #aa9cd9;
    padding: 0.7rem;
    margin-right: 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    transition: all 0.7s;
}

.discord-link a:hover {
    background-color: #aa9cd9;
    color: #0f121f;
    box-shadow: 0 0 15px #aa9cd9;
}

div.right-links>div>a:nth-child(2) {
    display: none;
}

/* Open menu button */
#open-button {
    font-size: 2rem;
    background-color: transparent;
    border: none;
    color: #FFF;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

#open-button:hover {
    transform: rotate(5deg);
}

/* T.O.S */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    z-index: 10;
    transition: all 0.3s;
    overflow: hidden !important;
}

.popupContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0f121f;
    color: #FFF;
    padding: 0 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 90%;
    overflow: auto;
    max-width: 65rem;
    width: 80%;
    line-height: 1.1;
}

.popupContent::-webkit-scrollbar-thumb,
.popupContent::-webkit-scrollbar-track {
    border-radius: 0 10px 10px 0;
}

.modal-body {
    padding: 1rem 3rem;
}

.popupContent h4 {
    font-size: 3rem;
    margin: 1.8rem auto;
    text-align: center;
}

.popupContent p {
    font-size: 1.2rem;
}

.closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    cursor: pointer;
    color: #aa9cd9;
    background-color: #0f121f;
    border: none;
    transition: all 0.3s;
}

.closeButton:hover {
    transform: rotate(5deg);
    color: #887CAD;
    cursor: pointer;
}

.agree {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
}

.agree-btn {
    font-size: 1.2rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
    background-color: #aa9cd9;
    color: #FFF;
    text-align: center;
    display: flex;
    margin: 0 auto;
    cursor: pointer;
}

.agree-btn:hover {
    box-shadow: #aa9cd9 0px 0px 20px 0px;
}

@media screen and (min-width: 1000px) {

    #close-button,
    .right-links>button {
        display: none !important;
        padding: 0 !important;
    }
}

@media screen and (max-width: 1000px) {
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOutRight {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(100%);
        }
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 450px;
        background-color: #0b0d16;
        transform: translateX(100%);
        z-index: 10;
    }

    .nav-links ul {
        flex-direction: column;
        padding-top: 2rem;
        padding-left: 2em;
        font-size: clamp(1.1rem, 0.9286rem + 0.9143vw, 1.5rem);
    }

    .nav-links #close-button button {
        background-color: transparent;
        border: none;
        color: #FFF;
        position: absolute;
        top: 0;
        right: 0;
        padding: 1rem;
        font-size: 2rem;
        cursor: pointer;
        transition: all 0.3s;
    }

    .nav-links #close-button button:hover {
        transform: rotate(5deg);
    }

    /* T.O.S */
    .popupContent {
        padding: 0;
        width: 90%;
    }

    .popupContent h4 {
        font-size: clamp(1.6rem, 1rem + 3.2vw, 3rem);
        line-height: 1;
    }

    .closeButton {
        font-size: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .discord-link a {
        margin-right: 0;
    }

    .nav-logo-title {
        display: none;
    }

    div.right-links>div>a:nth-child(2) {
        display: block;
    }

    div.right-links>div>a:nth-child(1) {
        display: none;
    }

    /* T.O.S */
    .popupContent p {
        font-size: 1rem;
    }
}
