@media only screen and (max-width: 1080px) {
    #bookcover{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 317px;
        height: 350px;
        background-color: #7A5E6B ;
        transition: transform 0.5s, width 0.5s;
        margin: 15px;
        overflow: visible;
    }

    #bookcover.stretch{
        width: 250px;
    }

    .book{
        position: relative;
        width: 150px;
        height: 250px;
        transition: transform 0.5s;
    }

    .front-content > img{
        width: auto;
        height: 250px;
    }

    h1{
        top:20%;
        font-size: 3em;
    }
}



/*
@font-face {
    font-family: 'Light Stories';
    src: url("C:/Users/SSD/Documents/font/light_stories") format('truetype');
    font-weight: normal;
    font-style: normal;
}
 */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body{
    height: 100vh;
    width: 100%; /* 90% de la largeur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Light Stories', sans-serif;
    background-image: url("/images/fond.png");
    background-color: #fbe5ef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1{
    position: fixed;
    top: 13%;
    color: #ffff;
    font-size: 6em;
    opacity: 100%;
    transition: opacity 0.2s;
}

.hidden {
    opacity: 0%;
}

#bookcover{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 680px;
    height: 750px;
    background-color: #7A5E6B ;
    transition: transform 0.5s, width 0.5s;
    margin: 15px;
    overflow: visible;
}

#bookcover.stretch{
    width: 1200px;
}

.book{
    position: relative;
    width: 480.72px;
    height: 661px;
    transition: transform 0.5s;
}

.front-content > img{
    width: auto;
    height: 661px;
}

.paper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    perspective: 2000px;
}

.front,
.back{
    background-color: #eaeade;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left ;
    transition: transform 0.5s;
}

.front{
    z-index: 1;
    backface-visibility: hidden;
    border-left: 3px solid #303030;
}



.front-content,
.back-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/*videos*/
.video-overlay{
    pointer-events: auto;
}

#f3, #f4, #f5, #f6, #f7 {
    pointer-events: auto;
}

#video1 {
    position: absolute; /* Positionnement relatif au conteneur parent */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(13%, -12%); /* Ajuste pour centrer */
    width: 40%; /* Ajustez la taille de la vidéo selon vos besoins */
    height: auto; /* Maintient le ratio de la vidéo */
    transform-style: preserve-3d;
    border: #7A5E6B 1px double;
}

#video2 {
    position: absolute; /* Positionnement relatif au conteneur parent */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-70%, 10%); /* Ajuste pour centrer */
    width: 60%; /* Ajustez la taille de la vidéo selon vos besoins */
    height: auto; /* Maintient le ratio de la vidéo */
    transform-style: preserve-3d;
    border: #5e7d59 1px double;
}

#video3 {
    position: absolute; /* Positionnement relatif au conteneur parent */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-27%, -100%); /* Ajuste pour centrer */
    width: 60%; /* Ajustez la taille de la vidéo selon vos besoins */
    height: auto; /* Maintient le ratio de la vidéo */
    transform-style: preserve-3d;
    border: #aaa9d3 1px double;
}

#video4 {
    position: absolute; /* Positionnement relatif au conteneur parent */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-68%, -60%); /* Ajuste pour centrer */
    width: 60%; /* Ajustez la taille de la vidéo selon vos besoins */
    height: auto; /* Maintient le ratio de la vidéo */
    transform-style: preserve-3d;
    border: #f4c5db 1px double;
}

#video5 {
    position: absolute; /* Positionnement relatif au conteneur parent */
    top: 50%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-35%, -36%); /* Ajuste pour centrer */
    width: 60%; /* Ajustez la taille de la vidéo selon vos besoins */
    height: auto; /* Maintient le ratio de la vidéo */

    transform-style: preserve-3d;
    border: #ab668a 1px double;
}


.back-content{
    transform: rotateY(180deg);
}

/* Paper flip effect */
.flipped .front,
.flipped .back{
    transform: rotateY(-180deg);
    pointer-events: none;
}


/*controller*/
button{
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.5s ease, padding 0.3s ease;
}

#prev-btn {
    margin-right: 30px ;
}


#next-btn{
    margin-left: 30px ;
}

button > img{
    width: 45px;
    height: 45px;
}

button:focus{
    outline: none;
}

button:hover{
    transform: scale(1.2);
}

/*play-btn*/
#play-btn,
#pause-btn,
#down-btn{
    position: absolute;
    font-size: 2rem; /* Taille du bouton */
    width: 100px;
    height:84px;
    color: white;
    padding: 0.5rem 1rem;
    margin-top: 15px;
    cursor: pointer;
    z-index: 5; /* Assurez-vous que le bouton est au-dessus */
    transition: transform 0.3s ease;
}

.idek{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(122, 94, 107, 0.38);
    width: 880px ;
    height: 70px;
}




/* Paper stack order */
#p1 {
    z-index: 6;
}

#p2 {
    z-index: 5;
}

#p3 {
    z-index: 4;
}

#p4 {
    z-index: 3;
}

#p5 {
    z-index: 2;
}

#p6 {
    z-index: 1;
}

#p7 {
    z-index: 0;
}


