html {
    font-size: 16px;
}

body {
    margin: 0;
}

main {
    padding-top: 10dvh;
    max-width: 390px;
    margin: auto;
}

video {
    max-width: 100%;
    height: auto;
    width: 100%;
}

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

#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: #ddd;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

/* progress bar progress */
progress[value]::-webkit-progress-value {
    border-radius: 20px;
    background-color: lightseagreen;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.33) inset;
}

img {
    position: absolute;
    z-index: +1;
    margin-top: 0px;
}

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

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

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

/* #endregion */

/* #region buttons */
/* reset default button */
button {
    background-color: #ccc;
    border: 1px solid #333;
    color: #333;

}

/* ugly demo style */
button {
    background-color: rgba(0, 234, 255, 0);
    border: 3px solid rgba(255, 0, 212, 0);
    padding: .5rem 30px;
    color: rgb(242, 255, 0);

}

#video-controls {
    align-items: center;
}

#video-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
}

/* On superpose les contrôles */
#video-controls {
    position: absolute;
    bottom: 20px;
    /* ajuste comme tu veux */

    width: 100%;
    z-index: 50;
    /* plus que la vidéo */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Taille des icônes dans les boutons */
#video-controls button img {
    margin-top: 15px;
    width: 40px;
    /* Ajuste comme tu veux */
    height: 40px;
    /* idem */
    object-fit: contain;
    display: block;

}

/* #endregion */

/* #endregion */