/* Navbar */

nav {
    bottom: 0%;
    width: 100%;
    display: flex;
    position: fixed;
    /* justify-content: space-between; */
    z-index: 100;
    pointer-events: none;
    transition: height .5s ease-in-out, opacity .5s ease-in-out;
}

.nav-section {
    max-width: 33vw;
    width: 33vw;
    display: flex;
}

.nav-section:nth-of-type(2) {
    display: flex;
    justify-content: center;
}

#nav-right {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    margin: 16px;
    padding: 8px;
    background-color: #0A0A0A6b;
    border: 1px solid #F1F1F16b;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    animation: fadeIn 1s;
    pointer-events: all;
}

nav ul li {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', 'Alata', 'Poppins', sans-serif;
    font-weight: 700;
    list-style: none;
    border-radius: 8px;
    text-align: center;
}

nav.fr ul li {
    white-space: nowrap;
}

nav ul li a, nav img {
    padding: 4px 8px;
    color: white;
    text-decoration: none;
}

nav a {
    display: flex;
    white-space: nowrap;
}

.nav-divider {
    border-color: #F1F1F16b;
    height: 80%;
    width: 0px;
    margin: 0px 16px;
}

#languages-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#languages-section > a > .language-option {
    transition: color .25s ease-in-out;
}

#language-selector-menu {
    width: 252px;
    left: -8px;
    bottom: 64px;
    padding: 8px 8px 8px 8px;
    background-color: var(--dark-black);
    border: 1px solid #F1F1F16b;
    border-radius: 8px;
    position: absolute;
    display: none;
    flex-direction: column;
    overflow-x: hidden;
    transition: opacity .25s ease-in-out;
}

#language-selector-menu.fr {
    width: 296px;
}

#language-active, .language-option, .language-inactive {
    display: flex;
    align-items: center;
}

#language-text {
    margin: 0;
    padding: 0;
    padding-right: 8px;
    font-family: 'Josefin Sans', 'Alata', 'Poppins', sans-serif;
    font-weight: 700;
    list-style: none;
    white-space: nowrap;
    cursor: pointer !important;
    transition: color ease-in-out .25s, outline ease-in-out .25s;
}

#language-active img, .language-inactive img, #icon-menu img {
    width: 32px;
    cursor: pointer !important;
}

#icon-menu img {
    filter: invert(100%);
    transition: transform .5s ease-in-out;
}

.active {
    transform: rotate(45deg);
    transition: transform .5s ease-in-out;
}

#language-href {
    margin: 0;
    padding: 0;
    height: fit-content;
}

#language-active #language-text-wrapper, .language-option #language-text {
    overflow: hidden;
    max-width: 128px;
    transition: max-width .5s ease-in-out, color .5s ease-in-out;

    cursor: pointer !important;
}

/* Paramètres */
#settings-slider {
    height: 100vh;
    height: fill-available;
    height: available;
    width: 512px;
    top: 0;
    right: -513px;
    position: fixed;
    background-color: var(--dark-black-6b);
    backdrop-filter: blur(8px);
    border-left: 1px solid #F1F1F16b;
    z-index: 100;
    /* transform: skew(-8deg); */
    
    transition: right 1s cubic-bezier(0.075, 0.82, 0.165, 1), transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

#settings-slider.open {
    right: 0;
    /* transform: skew(0deg); */
    
    transition: right 1s cubic-bezier(0.075, 0.82, 0.165, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: .25s;
}

#settings-slider > div {
    padding: 16px;
}

#settings-slider hr {
    border-color: var(--dark-white-6b);
}

#settings-header-wrapper {
    min-height: 10%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#settings-header-wrapper h1 {
    margin: 0;
}

#settings-header-wrapper img {
    margin-right: 16px;
    width: 32px;
    filter: contrast(0%) brightness(200%);

    pointer-events: none;
    transition: filter .25s ease-in-out;
}

#settings-header-wrapper button:hover img, #settings-header-wrapper button:focus-visible img {
    filter: contrast(100%) brightness(100%);
    transition: filter .25s ease-in-out;
}

#settings-slider #options {
    height: auto;
}

#options table {
    min-width: 100%;
    box-shadow: none;
}

#options table tr, #options table td {
    background-color: transparent;
}

.options-section {
    display: flex;
    margin: 16px 0px;
}

.checklist-container {
    margin-bottom: 0;
    padding-left: 16px;
    height: 32px;
}

#settings-slider #disclaimer {
    position: fixed;
    bottom: 0;
    height: auto;
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

#settings-close-button {
    outline: 2px solid transparent;

    transition: outline ease-in-out .25s;
}

#settings-close-button:focus-visible {
    outline: 2px solid var(--dark-white);

    transition: outline ease-in-out .25s;
}

#settings-slider #disclaimer p {
    font-size: 16px;
    margin: 0;
    padding: 0;
}

#settings-slider #disclaimer p a {
    color: var(--dark-white);
    text-decoration: underline;
}

#settings-slider #disclaimer #cookie-text {
    margin: 4px 0px;
    font-size: 12px;
    color: var(--dark-white-6b);
}

.verticial-divider {
    margin: 0px 32px 0px 40px;
    width: 1px;
    height: 24px;
    border: 0;
    border-right: 1px solid white;
}


.menu-option {
    padding-right: 80px;
    height: 48px;
    /* padding: 8px 0px; */
    border-radius: 8px;
    transition: background-color .5s ease-in-out;
}

.menu-option a {
    width: 150%;
}

.menu-option:nth-of-type(2) {
    margin-top: 8px;
}

.menu-option:hover, .menu-option:focus-within {
    /* background-color: var(--dark-primary); */
    transition: background-color .5s ease-in-out;
}

.menu-option:hover #language-text, #language-active:hover #language-text, .language-option:hover #language-text, a:focus-visible #language-active #language-text, a:focus-visible .language-option #language-text, a:focus-visible .language-inactive #language-text {
    color: var(--dark-accent-primary);
    transition: color .25s ease-in-out;
}

/* #language-active:hover #language-text-wrapper, .language-inactive:hover #language-text-wrapper, #nav-right a:focus-visible #language-text-wrapper {
    max-width: 92px;
    transition: max-width .5s ease-in-out;
    transition-delay: .25s;
} */

/* Mobile */

#nav-mobile {
    min-width: 64px;
    width: 64px;
    border: 1px solid #F1F1F16b;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    z-index: 9;
    overflow: hidden;
    transition: .25s ease-in-out;
}

#nav-mobile.open {
    margin: 0px;
    padding: 8px;
    width: 100vw;
    border: 1px solid transparent;
    border-radius: 0px;
    background-color: var(--dark-black-6b);
    backdrop-filter: blur(8px);
    transition: .25s ease-in-out;
}

body:has(#nav-mobile.open) {
    overflow: hidden;
}

#nav-mobile.open #icon-menu-href {
    position: absolute;
    bottom: 8px;
}

#icon-menu-href {
    bottom: 4px;
    height: fit-content;
    position: absolute;
    transition: .25s ease-in-out;
}

#icon-menu {
    bottom: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: .25s ease-in-out;
}

#nav-mobile #nav-content {
    opacity: 0;
    height: max-content;
    max-height: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
    
    transition: .5s ease-in-out;
}

#nav-mobile.open #nav-content {
    margin: 0;
    height: max-content;
    max-height: 512px;
    width: 100%;
    opacity: 1;
    user-select: auto;
    pointer-events: auto;
    
    transition: .5s ease-in-out;
}

#nav-mobile a {
    margin: 0;
    padding: 0;
}

#nav-mobile > #nav-content > h1 {
    color: var(--dark-white);
    font-size: 48px;
    font-family: 'Josefin Sans', 'Alata', 'Poppins', Arial, Helvetica, sans-serif;
    text-decoration: underline;
    margin: 16px 0px;
}

nav.mobile-styling, nav.fr.mobile-styling {
    height: 100vh;
    transition: height .5s ease-in-out, opacity .5s ease-in-out;
}

#nav-mobile {
    padding: 12px;
}

#nav-mobile span#navigation-links > li, #nav-mobile span#other > li {
    font-size: 64px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

span#other {
    width: 256px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#language-options {
    /* margin: 8px; */
    /* padding: 8px; */
    width: max-content;
    min-width: max-content;
    /* background-color: var(--dark-black); */
    /* border: 1px solid #F1F1F16b; */
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-option img {
    width: 32px;
    cursor: pointer !important;
}

/* Media Queries */

@media screen and (max-width: 1400px) {
    nav {
        justify-content: space-between;
    }
    .nav-section {
        max-width: fit-content;
        width: fit-content;
    }
}

@media screen and (max-width: 1000px) {
    nav.fr {
        height: 72px;
        justify-content: center;
        transition: height .5s ease-in-out, opacity .5s ease-in-out;
    }

    nav.fr #nav-mobile {
        display: flex;
    }

    nav.fr #nav-left, nav.fr #nav-centre, nav.fr #nav-right {
        display: none;
    }

    nav.fr #icon-menu img {
        padding: 0;
        width: 32px;
    }

    nav.fr #nav-mobile a {
        font-size: 40px;
    }
    
    #nav-right {
        margin-left: 16px;
    }
}

@media screen and (max-width: 900px) {
    nav {
        height: 72px;
        justify-content: center;
        transition: height .5s ease-in-out, opacity .5s ease-in-out;
    }

    #nav-mobile {
        display: flex;
    }

    #nav-left, #nav-centre, #nav-right {
        display: none;
    }

    #icon-menu img {
        padding: 0;
        width: 32px;
    }

    #nav-mobile a {
        font-size: 40px;
    }

    #nav-mobile a#settings-open-button {
        font-size: 32px;
    }

    #settings-slider {
        width: 100vw;
        right: -101vw;
    }
}