html, body{
    overflow: clip;
}
body{
    margin: 0;
    background-color: #121217;
    color: white;
    font-family: "Space Grotesk", sans-serif;
}

/*  TEXT  */
a{
    all: unset;
    text-decoration: underline;
    cursor: pointer;
    transition: color ease-in-out 0.2s;
}

a:hover{
    color: #cfcfcf;
}

h1{
    font-size: 30px;
}
h2{
    font-size: 25px;
}
p{
    font-size: 20px;
}

ul{
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

li{
    font-size: 18px;
}

/*  HEADER  */
header{
    display: grid;
    height: 100px;
    padding-left: 5%;
    padding-right: 5%;
    border-bottom: #E5E8EB solid 1px;
    grid-template-columns: 5fr 1fr 1fr 1fr 1fr;
    background-color: #121217;
}
header > h1{
    justify-self: left;
    align-self: center;
    font-weight: bold;
}
header > button{
    all: unset;
    width: fit-content;
    height: fit-content;
    padding: 15px 20px;
    align-self: center;
    justify-self: center;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: color, background ease-in-out 0.25s;
}

header > img{
    display: none;
    width: 40%;
    align-self: center;
    justify-self: center;
}

header > button:hover:not(.active){
    color: black;
    background-color: white;
    
}
header > button.active{
    background-color: #2B6BED;
}
header > button.active:hover{
    background-color: #112c63;
    
}

/*  FOOTER  */
footer{
    display: flex;
    flex-direction: column;
    position: absolute;
    border-top: #E5E8EB solid 1px;
    background-color: #121217;
    bottom: 0;
    gap: 25px;
    width: 100%;
    height: 125px;
    align-items: center;
    justify-content: center;
}

footer > p {
    margin: 0;
    font-size: 15px;
    text-align: center;
}

#links{
    display: flex;
    gap: 15px;
    height: 25%;
}

#links > img{
    height: 100%;
    transition: filter ease-in-out 0.2s;
    cursor: pointer;
}

#links > img:hover{
    filter: drop-shadow(0 0 5px rgb(186, 196, 221));
}

/*  MENU  */
menu{
    display: grid;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    top: 0;
    left: -100vw;
    position: fixed;
    background-color: #121217;
    z-index: 2;
    transition: left ease-in-out 0.5s;
    grid-template-rows: 100px 1fr 1fr 1fr 1fr;
}

menu > img{
    height: 30%;
    justify-self: left;
    align-self: center;
    padding-left: 30px;
}

/*  SECTION  */
#section-carrousel{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: center;
    justify-content: left;
    width: fit-content;
    height: calc(100svh - 225px);
    transition: transform ease-in-out 0.5s;
}

#section-carrousel > section{
    display: flex;
    min-height: calc(100svh - 225px - 4vw);
    flex: 0 0 84vw;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 2vw 8vw;
    gap: 20px;
}

#section-carrousel > section::-webkit-scrollbar{
    width: 10px;
    background-color: transparent;
}

#section-carrousel > section::-webkit-scrollbar-thumb{
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #555;
}

section > video{
    width: 60%;
}

/*  LIST  */
#contact-list{
    display: flex;
    gap: 10px;
    flex-direction: column;
}


/*  POPUP  */
.popup{
    display: flex;
    position: fixed;
    background-color: #2B6BED;
    box-shadow: 0 5px 12px 0px #112c63;
    border-radius: 10px;
    padding: 25px 15px;
    z-index: 2;
    left: 50%;
    transform: translate(-50%, 0);
    transition: bottom ease-in-out 0.25s;
}

/*  BUTTON  */
button{
    all: unset;
    width: fit-content;
    height: fit-content;
    padding: 15px 20px;
    align-self: center;
    justify-self: center;
    text-align: center;
    border: #cfcfcf solid 2px;
    border-radius: 10px;
    cursor: pointer;
    transition: color, background ease-in-out 0.25s;
}

button:hover:not(.active){
    color: black;
    background-color: white;
    
}
button.active{
    background-color: #2B6BED;
}
button.active:hover{
    background-color: #112c63;
    
}

/*  IFRAME  */

iframe{
    aspect-ratio: 1/calc(sqrt(1.625));
    width: 50%;
    height: max-content;
}


@media screen and (width <= 774px ){
    html{
        overflow-x: hidden;
        overflow-y: auto;
    }
    body{
        overflow: hidden;
    }
    h1{
        font-size: 25px;
    }
    h2{
        font-size: 20px;
    }
    p{
        font-size: 15px;
    }
    header{
        padding-left: 2%;
        grid-template-columns: 1fr 6fr;
        gap: 2%;
    }
    header > button{
        display: none;
    }
    header > img{
        display: block;
    }
    footer{
        position: relative;
    }
    section > video{
        width: 80%;
    }
    #section-carrousel > section{
        height: fit-content;
        overflow: hidden;
    }
}