/* KEYFRAMES */

@keyframes fadeInBackground {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeInUpText {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    90% {
        opacity: 0.9;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
  
/*  MAIN  */

.main {
    opacity: 0;
    visibility: hidden;
    animation: fadeInBackground 0.5s ease 0.5s forwards;
    /* background-image: url("../../pictures/image-trail.png"); */
    /* background-color: transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; */
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    /* color: var(--main-white); */
}

.videoDiv {
    width: 90%;
    margin: auto;
    margin-top: 1em;
    text-align: center;
}

.subtitle {
    padding: 1em;
    font-size: 1.5em;
}

.main > a {
    opacity: 0;
    animation: fadeInUpText 1.5s ease 1.5s forwards;
    background-color: var(--main-light-red);
    text-decoration: none;
    color: var(--main-white);
    padding: 0.3em;
    border: 1px solid var(--main-light-red);
    border-radius: 0.4em;
}

.counter {
    opacity: 0;
    animation: fadeInUpText 1s ease 1s forwards;
    font-size: 1.1em;
    padding: 0.1em;
    /* text-shadow: 2px 2px black; */
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.3em;
    width: 80%;
}

.title > img {
    width: 50%;
    padding: 0.3em;
    margin-bottom: 1.5em;
}

.title__date {
    opacity: 0;
    animation: fadeInUpText 0.75s ease 0.75s forwards;
    /* text-shadow: 2px 2px black; */
}

h1 {
    display: none;
}

.description {
    opacity: 0;
    animation: fadeInUpText 1.25s ease 1.25s forwards;
    font-size: 1em;
    line-height: 1em;
    text-align: center;
    width: 60%;
    padding: 0.1em;
    padding-bottom: 0.3em;
    /* text-shadow: 2px 2px black; */
}

.afficheAccueil {
    max-width: 90vw;
}

@media (min-width: 900px) {
   .counter {
        font-size: 2em;
        padding: 0.7em;
    }

    .description {
        font-size: 1.7em;
    }

    .title__date {
        font-size: 2.5em;
    }
    .title > img {
        width: 30%;
        padding: 0.7em;
    }
    .main > a {
        padding: 1em;
        border: 1px solid var(--main-light-red);
        border-radius: 0.6em;
        font-size: 1.4em;
    }
    .video {
        width: 800px;
        height: 500px;
    }
    .afficheAccueil {
        max-width: 700px;
    }
}

@media (min-width: 1200px) {
    .video {
        width: 1100px;
        height: 750px;
    }
    .subtitle {
        font-size: 2.5em;
    }
}

@media (min-width: 1600px) {
    .video {
        width: 1500px;
        height: 1050px;
    }
    .afficheAccueil {
        max-width: 1000px;
    }
}