html,
body {
    width: 100%;
    height: 100%;
    background: black;
    margin: 0;
    z-index: -3;
    overflow: hidden;
     /* Evite la scrollbar */
    
    /* Center items */
    
}
.control{
    position: relative;
    margin: 20px auto;
    display: flex;
    width: 60%;
    justify-content: space-between;
    z-index: 4;
}
button{
    cursor: pointer;
    padding: 5px 15px;
    background-color: #4bd5ee;
    border: 1px solid black;
    border-radius: 5px;
    transition: all .3s;
    box-shadow: 3px 3px 10px 0px #4bd5ee;
    font-size: 1.3em;
    font-weight: 600;
}
button:hover{
    transform: scale(1.2);

}

#zero{
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
}
#zero h1{
    margin: auto;
    font-size: 3.5em;
    color: #ffff66;
    margin-bottom: 50px;
    text-align: center;
}
.bouton{
    display: flex;
    width: 50%;
    margin: auto;
    justify-content: space-evenly;
}
section{
    display: none;
    width: 100%;
    height: 100%;
}
#first{
    display: none;
    width: 100%;
    height: 100%;
   
    
}

p{
    line-height: 1.4em;
}
.a-long-time-ago {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /* cosmétique */
    font-size: 32px;
    color: #4bd5ee;
    /* Animation */
    /* Apparition et disparition progressive */
    opacity: 0;
    z-index: 10;
    animation-delay: 1s;
    animation-duration: 3.5s;
    animation-name: a-long-time-ago;
    animation-timing-function: ease-out;
}

@keyframes a-long-time-ago {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.crawl {
    /* centrage de l'élément' */
    position: absolute;
    
    left: 50%;
    width: 80vw;
    z-index: 2;
    top: auto;
    bottom: 0;
    
    /* cosmétiqu    e */
    color: #ffff66;    
    font-size: 64px;
    text-align: justify;
    /* Applique la transformation  */
    transform-origin: center bottom;
    transform:  translateX(-50%) perspective(300px) rotateX(17deg);
}

#defile {
    /* positionne la div en bas de l'écran (non visible) */
    /* l'animation la fait remonter progressivement */
    position: absolute;
    top: 100%; 
    z-index: 2;
    
}
.choice{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    margin: 50px auto;
}

.choice button, .replay{
    font-size: 25px;
}
.galaxy{
    position: absolute;
    height: 55%;
    background-color: transparent;
    top: 00%;
    left: 0;
    width: 100%;
    z-index: 3;
    background: linear-gradient(to top, transparent, black 20%);
}

@layer prout{
.para p{
    color: #ffff66;    
    font-size: 3em;
    text-align: justify;
}}
.para{
    transform-origin: center bottom;
    transform:  translate(-50%,-50%)   ;
    position: absolute;
    left: 50%;
    width: 80%;
    top: 50%;
    text-align: center;
}

.plus{
    
    animation-play-state: paused;
}

.encore{
    animation-play-state: running;
}

.separate{
    display: flex;
    width: 80%;
    margin: auto;
    justify-content: space-between;
}
.pp{font-size: 2em;
    color: #ffff66;
    
    
  
    
    }

.anim{animation: both cubic-bezier(0.66, 0.01, 0.2, 0.98) 1s scintille ;
}

@keyframes scintille{
    0%{
        transform: scale(0) ;
    }
    
    
    100%{
        transform: scale(1);
    }
    
}
.transform{
    transform: translate(-50%,-50%) perspective(300px) rotateX(5deg);
    top: 50%;
    transform-origin: center bottom;
}
.p{
    font-size: 2em;
}


.p-min{font-size: 1.5em;}

body{
    font-family: sans-serif;
}

@keyframes apparition1 {
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(0%);
    }
}
@keyframes apparition2 {
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(0%);
    }
}
@keyframes apparition3 {
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(0%);
    }
}
@keyframes apparition4 {
    0%{
        transform: translateY(100%);
    }
    100%{
        transform: translateY(0%);
    }
}
@keyframes apparition5 {
    0%{
        transform: scale(0);
    }
    100%{
        transform: scale(1);
    }
}

.readMore{
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background-color: #4bd5ee;
    box-shadow: 3px 3px 10px 0px #4bd5ee;
    animation: bop 3s infinite;
}
.readMore:hover{
    
    animation-play-state:paused;
    
}

.readMore::before{
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-bottom: 4px solid black;
    border-right: 4px solid black;
    background-color: transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}


@keyframes bop {
    0%{transform: translateY(0%);
    }
    50%{transform: translateY(20%);}
    100%{transform: translateY(0%);}

    

    
    
}


.transition1{
    animation: apparition1 .5s cubic-bezier(0, 0, 0.19, 0.92);
}

.transition2{
    animation : apparition2 .5s cubic-bezier(0, 0, 0.19, 0.92);
}

.transition3{
    animation : apparition3 .5s cubic-bezier(0, 0, 0.19, 0.92);
}
.transition4{
    animation : apparition4 .5s cubic-bezier(0, 0, 0.19, 0.92);
}
.transition5{
    animation: apparition5 .5s cubic-bezier(0, 0, 0.19, 0.92);
}
@media (max-width:1200px) {
    .p, .pp{
        font-size: 1.5em;
    }
    p{font-size: 1.5em;}
    
}

@media (max-width:800px){
   .separate{flex-direction: column;}
   .bouton{
    flex-direction: column;
   }
   .separate button{
    margin-bottom: 20px;
   }
   .bouton button{
    margin-bottom: 20px;
   }
   .choice{flex-direction: column;}
   .choice button{
    margin-bottom: 20px;
   }
   .crawl{text-align: left;}
   #defile p{
    font-size:0.7em ;
   }
   .p-min{
    font-size: 0.9em;
   }
}