/* general */
html {
    font-size: 18px;
    font-family: "Asap", sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: url(../../images/fond_noir.jpg);
    background-position: center;
    background-size: 100%;
}

/* presentation */
.presentation {
    background: url(../../images/presentation.png) no-repeat center/cover;
    height: 100vh;
    background-position: center bottom;
    padding-top: 2rem ;
}

.presentation .text {
    color: white;
    margin: 15px;
}

.presentation h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
}

.presentation p {
    font-size: 18px;
    margin-top: .5px;
}

/* fond section */
.fond {
    height: 200vh;
    background: url(../../images/saisons.png) center/cover;
    background-repeat: no-repeat;
}

/* video */
.video-section {
    padding: 2rem 1rem;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.videoplusframe {
    position: relative;
}

.frame {
    background: url(../../images/frame_video.png) no-repeat center/contain;
    position: absolute;
    inset: 0;
}

/* #region CONTROLS */
#video-controls {
    padding: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

#video-controls li {
    list-style: none;
    margin: 0 .5rem .5rem 0;

}

/* #region progress */
.progress,
#progress {
    width: 100%;
    margin: 0;
}

.progress {
    position: relative;
}

progress[value] {
    /* Reset the default appearance */
    -webkit-appearance: none;
    appearance: none;
    height: 15px;
    border-radius: 15px;
    background-color: bisque;
}

/* progress bar background */
progress[value]::-webkit-progress-bar {
    background-color: #e2c199;
    border-radius: 20px;
}

/* progress bar progress */
progress[value]::-webkit-progress-value {
    border-radius: 20px;
    background-color: rgb(255, 74, 74);
}


.marker,
#handle {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 6px;
    background-color: brown;
    transform: rotate(45deg) translateX(-5px);
    z-index: 2;
}

.marker {
    cursor: pointer;
    border: 2px solid #333;
}

#handle {
    top: 5px;
    border-radius: 15px;
    width: 15px;
    height: 15px;
    border: 2px solid rgb(255, 74, 74);
    background-color: rgb(255, 74, 74);
    transform: translateX(-5px);
    z-index: 3;
    cursor: grab;
}

/* #endregion */

/* #region buttons */


/* ugly demo style */
button {
    background-color: rgb(255, 74, 74);
    border: none;
    padding: .5rem .75rem;
    border-radius: 50px;
    height: 60px;
    width: 60px;
}

.boutons {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 0 auto;
}

/* #endregion */

.avion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35vw;           
    max-width: 650px;
    z-index: 0;            
    transition: opacity 0.4s ease-in-out;
}

.presentation,
.fond {
    position: relative;
    z-index: 1;      
}


.avion-wrapper {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    z-index: 0;
}

.avion {
    grid-area: 1 / 1;
    opacity: 0;
}

#planeA {
    opacity: 1; /* first visible */
}
