/* Fonts */
@font-face {
    font-family: Chinese;
    src: url(../fonts/EggRollExpanded-gYw1.woff2) format("woff2"),
        url(../fonts/EggRollExpanded-gYw1.woff) format("woff");
}

@font-face {
    font-family: "Numbers";
    src: url(../fonts/MRKMaston-Regular.woff2) format("woff2"),
        url(../fonts/MRKMaston-Regular.woff) format("woff");
}

/* Reset CSS */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* General Styling */
html {
    scroll-behavior: smooth;
    width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100vw;
}

main {
    background-image: url(../img/background.jpg);
    background-attachment: fixed;
    background-size: cover;
    width: 100vw;
}

/* Header Styling */
header {
    height: 100vh;
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(0, 0, 0, 0.25) 35%,
            rgba(0, 0, 0, 0.7) 100%);
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.header-text {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
}

header h1 {
    font-family: Chinese, sans-serif;
    color: black;
    font-size: 3.5em;
    animation: float 3s ease-in-out infinite;
    padding-bottom: 15px;
}

header h2 {
    padding-top: 20px;
    font-size: 2em;
    border-top: 2px solid black;
    font-family: "Numbers", sans-serif;
    animation: float 3s ease-in-out infinite;
}

header p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    width: 700px;
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 6px 5px 28px 1px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    font-size: 1.05em;
    text-align: justify;
}

header .iconoir-arrow-down-circle-solid {
    font-size: 3em;
    margin: 0 auto;
    margin-top: 100px;
    color: rgba(255, 255, 255, 0.75);
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-5px);
    }

    100% {
        transform: translatey(0px);
    }
}

/* Popup Styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    z-index: 999;
}

.popup img {
    position: relative;
    width: 100%;
    margin: auto;
}

.popup-visible {
    display: block;
}

.popup-invisible {
    display: none;
}

.cache-fenetre {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2.3em;
    border: none;
    border-radius: 50%;
}

/* Sections styling */
.img {
    max-width: 40%;
    margin-left: 3rem;
}

.img-txt:hover .text-container {
    opacity: 1;
}

.sec .explications-analogies {
    font-size: 1.2em;
    font-family: "Montserrat", sans-serif;
    width: 500px;
    color: white;
    padding: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.img-txt {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    padding: 2rem;
    margin: 0 1rem;
}

.sec:nth-child(even) > .img-txt {
    flex-direction: row-reverse;
    text-align: right;
}

.sec {
    position: relative;
    font-family: Helvetica, sans-serif;
    font-weight: bold;
    background-image: url(../img/asian-bg-dark.jpg);
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid white;
    color: white;
}

.sec h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-family: "Numbers", sans-serif;
}

.sec .numero {
    font-family: "Numbers", sans-serif;
    color: white;
    position: absolute;
    top: 40px;
    left: -20px;
    font-size: 6rem;
}

.iconoir-nav-arrow-down {
    position: absolute;
    bottom: 10%;
    color: white;
    font-size: 2.5em;
    margin-top: 50px;
    border: 1px solid white;
    border-radius: 50%;
    z-index: 10;
}

.analogie-user {
    margin-top: 3rem;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    list-style: none;
    margin: 0;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    z-index: 99;
}

.navbar li {
    width: 25px;
    height: 25px;
}

.circle {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    background-color: #525252;
    display: block;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.3s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.circle:hover {
    transform: scale(1.3);
    border: 1px solid #ffffff;
    background-color: #501d21;
}

.home {
    font-size: 25px;
    color: black;
}

a {
    color: inherit;
}

/* Form Styling */
form {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    width: 600px;
    margin: auto;
    margin-top: 50px;
    padding: 2rem 3rem;
    border-radius: 2rem;
    border: 2px solid #501d21;
}

legend {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.3rem;
    color: #fff;
    padding: 3px 6px;
}

fieldset {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    width: 400px;
    margin-bottom: 1rem;
}

form h1 {
    margin-bottom: 1.5rem;
}

form label {
    margin-bottom: 0.5rem;
}

form input {
    margin-bottom: 1rem;
}

form input[type="text"] {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid black;
}

form input[type="button"],
form input[type="email"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid black;

    &[type="button"]{
        font-weight: bold;
    }
}



/* Light Mode Styling */
.light-mode main{
    background-image: url(../img/background2.jpg);
    color: white;
}

.light-mode .sec {
    background-image: url(../img/asian-bg-light.png);
    border-color: black;
}

.light-mode .sec p, 
.light-mode .sec h2,
.light-mode .sec a {
    color: black;
    border-color: black;
}

.light-mode h1,
.light-mode h2 {
    background-image: none;
    color: white;
    border-color: white;
}

.light-mode header p {
    background-color: rgba(0, 0, 0, 0.75);
}

/* Theme Styling */
.theme {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2em;
    z-index: 10;
}

/* Info Styling */
.info-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    z-index: 2;
}

.info-modal {
    position: fixed;
    overflow-y: auto;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 500px;
    font-family: "Numbers";
    text-align: center;
    z-index: 2;
    background-color: rgba(50, 50, 50, 1);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
}

.info-modal h1 {
    font-family: "Numbers", sans-serif;
    letter-spacing: 3px;
    margin-top: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid white;
}

.info-modal p {
    font-family: "Montserrat", sans-serif;
    padding-top: 25px;
    font-size: 1.3em;
    line-height: 2;
}

.info-modal .iconoir-xmark {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2.3em;
}

.modal-invisible {
    display: none;
}

.modal-visible {
    display: block;
}

/* Footer Styling */
footer {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    margin-top: 5rem;
}

.mentions-btn {
    padding-left: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.mentions-legales {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 600px;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    z-index: 999999999999;
    background-color: rgba(50, 50, 50, 1);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
}

.mentions-legales ul {
    list-style-type: none;
    line-height: 1.5;
}

.mentions-legales li a{
    text-decoration: underline;
}

.mentions-legales h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.mentions-legales .iconoir-xmark {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2.3em;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    /* ... */
}

@media (max-width: 1190px) {
    .sec .explications-analogies {
        align-items: start;
        margin-right: auto;
        margin-left: auto;
    }
}