/* 
Developer: Thibaut Julien
Date: 03.08.2024
Version: 1.0
*/

.shantell-sans {
    font-family: "Shantell Sans", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

.Nunito {
    font-family: "Shantell Sans", cursive;
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    max-height: 100vh;
    outline: none;
    border: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background-image: url('../images/background.png'); 
    background-attachment: fixed; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    font-family: Nunito;
    color: white;
}

.wrapper {
    padding: 0 20rem;
}

/* HEADER */
header img {
    width: 100%;
    display: flex;
}

header a {
    text-decoration: none;
}

header nav {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    max-width: 90px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;  
    gap: 3rem;
}

.nav-links .link a {
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
    text-transform: uppercase;
}

.link a::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #8f8f8f;
    transition: all 0.3s ease;
}

.link a:hover::after {
    width: 70%;
}

.link a:hover {
    color: #8f8f8f;
}

nav .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: black;
    background-color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav .btn:hover {
    background-color: #8f8f8f;
}

nav .btn a {
    color: black;
}

/* ARTICLE CAROUSEL */

.container {
    display: flex;
    /* align-items: center; */
    justify-content: space-around;
    margin-top: 10rem;
}

.carousel {
    width: 100%;
    max-width: 700px;
    margin: 0 5rem;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel img {
    width: 100%;
    max-width: 700px;
    height: auto;
    flex-shrink: 0;
}

.infos-container {
    text-align: center;
    margin: 0 5rem;
}

.typewriter-container h1 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 35px;
}

.infos-container p {
    /* width: 550px; */
    height: auto;
    text-align: justify;
    font-family: "Shantell Sans";
    margin-bottom: 3rem;
}

.infos-container a {
    text-decoration: none;
    color: black;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
}

.infos-container a:hover {
    background-color: #8f8f8f;
}

/* .infos-container img {
    width: 100px; 
    height: auto;
} */

@keyframes slide {
    0% { transform: translateX(0); }
    16.67% { transform: translateX(0); }
    33.34% { transform: translateX(-700px); }
    50.01% { transform: translateX(-1400px); }
    66.68% { transform: translateX(-2100px); }
    83.35% { transform: translateX(-2800px); }
    100% { transform: translateX(-3500px); }
}

/* ANIMATION CSS */

/* .typewriter-container {
    border-right: 2px solid black;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
} */

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}

#typewriter-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 100%;
    background: black;
    animation: blink-caret 0.75s step-end infinite;
}

.reveal-loaded .reveal {
    opacity: 0;
    transform: translateY(60px);
  }
  
  .reveal-loaded .reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
  }

/* FOOTER */
.container-footer {
    margin-top: 15rem;
}

.container-footer p {
    background-color: white;
    color: black;
    text-align: center;
    padding: 1.5rem 0;
}