@keyframes openFilterPanel {
    from {height: 0vh;}
    to {height: 6vh;}
}

@keyframes closeFilterPanel {
    from {height: 6vh;}
    to {height: 0vh;}
}

@font-face {
    font-family: "adventure";
    src: url("./typo/Adventure.ttf");
}

@font-face {
    font-family: "Nexa_Bold";
    src: url("./typo/Nexa Bold.otf");
}

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #03071e;
    color: #f9ae5d;

    position: relative;

    height: 100vh;
    overflow-x: hidden;

    font-family: "nexa_bold";
}

.title{
    color: #f9ae5d;
}

/* ######################## header #################### */

header{

    font-family: "adventure";
    font-size: 1.2vw;

    background-color: #03071e;
    /* box-shadow: 0px 0px 20px rgba(255, 255,255,0.4);  */

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 64px;    
}

/* ######################## nav #################### */

.nav{
    padding: 15px;

    display: flex;
    justify-content: space-around;
    align-items: base;

    width: 100vw;
    height: 2vw;

    /*  border-top: 2px solid #442849; */
    /* border-bottom: 2px solid #442849; */
}

.divButton{
    height: 100%;
    width: 5%;

    display: flex;
}

.parametre{

    -webkit-mask-image: url('./images/parametre.png');
    mask-image: url('./images/parametre.png');
    -webkit-mask-size: 85%;
    mask-size: 73%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;

    
    background-color: #d36f63;

    height: 100%;
    width: 50%;

    margin: 2px;

    border-radius: 5px;
}

.filter_button{

    -webkit-mask-image: url('./images/filter.png');
    mask-image: url('./images/filter.png');
    -webkit-mask-size: 85%;
    mask-size: 73%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;

    background-color: #d36f63;


    height: 100%;
    width: 50%;

    margin: 2px;

    border-radius: 5px;
}


.search_barDiv{
    position: relative;
    width: 40vw;

    display: flex;
}
.search_bar{
    width: 100%;
    border-radius:5px 5px 5px 5px;

    padding-left: 50px;
    font-family:"Nexa_Bold";
    font-size: 1.5vw;

    border: none;
    background-color: #f9ae5d10;
    border-bottom: 2px solid #d36f63;

    color: #f9ae5d;
}

.search_barDiv::before{
    position: relative;
    content: "";
    

    background-color: #d36f63;


    -webkit-mask-image: url('./images/loupe.png');
    mask-image: url('./images/loupe.png');
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;


    
    left: 40px;
    
    align-self: center;

    height: 30px;
    width: 30px;
}


.resultSearch{
    align-self: center;
    font-size: 1.2vw;
}

/* ################################# container ######################## */

.main_container{
    position: relative;
    height: 90%;

    width: 100vw;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.Titre{
    pointer-events: none;
    transition: all 0.5s;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;

    /* display: flex; */
    justify-content: center;
    align-items: flex-end;
    text-align: center;

    width: 100%;
    /* height: 100%; */


    text-shadow: rgb(0, 0, 0) 0px 0 2px,rgb(0, 0, 0) 0px 0 2px,rgb(0, 0, 0) 0px 0 5px,rgb(0, 0, 0) 0px 0 10px;

}

.container{
    height: 95%;
    width: 90%;

    margin-top: -1vh;

    overflow-y: hidden;

    display: flex;

    flex-wrap: wrap;
    row-gap: 20px;
    column-gap: 40px;
    justify-content: center;
    align-items: center;

    position: relative;

    
}

.arrow{
    z-index: 10;
    /* background-image: url("./images/arrow.png"); */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    -webkit-mask-image: url('./images/arrow.png');
    mask-image: url('./images/arrow.png');
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;


    background-color: #d36f63;

    top: 45%;

    /* filter: invert(1); */
    height: 80px;
    width: 80px;
}

.LEFT{
    position: absolute;

    left: 10px;
}
.RIGHT{
    position: absolute;

    right: 20px;
    transform: rotateZ(180deg);
}
.footer_content{
    display: none;

    z-index: 10;
    position: absolute;
    top: 2vh;
    right: 5vw;
}

.container_card{
    height: 15vw;
    width: 10vw;
    
}
.imageTile{
    border-radius: 15px;
    background-position: center;
    background-size: cover;



}

.imageTile:hover > .OverlayTile{
    opacity: 0.6;
    transition: 0.25s all;
    
}

.OverlayTile{
    opacity: 0.1;
    z-index: 2;

    transition: 2s all;
    border-radius: 15px;
    height: 100%;
    width: 100%;

    position: absolute;
    top: 0;
    left: 0;

    background: linear-gradient(0deg, #d36f63 0%, rgba(0,212,255,0) 90%);
}

.panel_background{
    
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 100000;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
}

.panel{
    z-index: 5000;
    
    border-radius: 15px;
    background-color: #151a31;
    height: 80vh;
    width: 80vw;

    position: absolute;
    top: 15%;
    left: 10%;

    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

.containerH{
    position: relative;
    top: 20px;
    left: 2%;
    display: flex;
    justify-content: spa;
    align-items: center;

    width: 75vw;
    height: 38vh;

    /* background-color: red; */
}

.cont{
    /* background-color: green; */
    position: relative;
    top: 2vh;
    left: 2%;
}



.cover{
    /* background-color: blue; */
    height: 100%;
    width: 15vw;
}

.containerH .titreFilm{
    font-size: 3vw;
    align-self: center;

    margin-left: 7%;
width: 50%;
}

.containerV{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.containerH embed{
    /* background-color: red; */
    height: 100%;
    width: 50%;

    position: absolute;
    right: 0;
}

.cross{


    width: 64px;
    height: 64px;

    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 60000;
}

.ratioLike{
    position: absolute;
    bottom: -15%;
    width: 100%;
    height: 10%;

    -webkit-mask-image: url('./images/stars.svg');
    mask-image: url('./images/stars.svg');
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.ratioLike::before{
    position: absolute;
    content: "";
    background-image: url('./images/like.png');
    background-size: contain;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    
    left: -10px;
    top: -5px;
    
    align-self: center;

    height: 2vw;
    width: 2vw;
}

.ratioLike::after{
    position: absolute;
    content: "";
    background-image: url('./images/dislike.png');
    background-size: contain;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    
    left: 90%;
    top: -5px;

    height: 2vw;
    width: 2vw;
}



.like{
    height: 50px;
    width: 50px;

    background-image: url("/images/like.png");
    background-position: center;
    background-size: contain;

    position: absolute;
    top: 130px;
    right: 20px;
}

.dislike{
    height: 50px;
    width: 50px;

    background-image: url("./images/dislike.png");
    background-position: center;
    background-size: contain;

    position: absolute;
    top: 190px;
    right: 20px;
}

.edit_button{

    -webkit-mask-image: url('./images/edit.png');
    mask-image: url('./images/edit.png');
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;

    height: 50px;
    width: 50px;
    position: absolute;
    top: 10px;
    right: 20px;

    background-size: cover;
    background-color: #d36f63;
}

.trash_button{

    -webkit-mask-image: url('./images/trash.webp');
    mask-image: url('./images/trash.webp');
    -webkit-mask-size: 85%;
    mask-size: 85%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;


    background-size: contain;
    height: 50px;
    width: 50px;

    position: absolute;
    top: 70px;
    right: 20px;

    background-color: #d36f63;
}

.adding_button{
    width: 50px;
    height: 20px;
}




.CateButton{
    width: 100px;
}

.Message{
    width: 500px;
    height: 20px;
}


/* Panel_Parameter */
.Panel_Parameter{

    transition: 2s all;
    opacity: 1;
    

    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 100000;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);

    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.Panel_Parameter > input[type=button]{
    opacity: 1;
    transition: 1s all;

    background-color: #d36f63;
    border: 2px solid #d36f63;

    border-radius: 10px;
    border: none;

    width: 20%;
    height: 5%;

    margin: 1%;

    font-family: "adventure";
    font-size: 1.5vw;
}

.Panel_Parameter > div{
    width: 15%;
    display: flex;
    justify-content: space-between;
    font-size: 1.5vw;
    margin: 1%;
}



/* filter */
.openFilter{
    animation: 1s openFilterPanel forwards;
    padding-top: 10px;
    padding-bottom: 10px;
}

.closeFilter{
    animation: 1s closeFilterPanel forwards;

    padding-top: 0px;
    padding-bottom: 0px;
}

.filterSection{
    /* animation: 2s closeFilterPanel forwards; */
    transition: 1s all;
    height: 0vh;
    width: 100vw;

    background-color: #f9ae5d20;

    display: flex;
    justify-content: space-around;
    align-content: center;

    border-top: 0.5px solid #f9ae5d;
    border-bottom: 0.5px solid #f9ae5d;


}

.filterSection > button{
    opacity: 0;
    transition: 1s all;

    background-color: #d36f63;

    border-radius: 10px;
    border: none;

    font-family: "Nexa_Bold";
    font-size: 1.2vw;
}

button:hover{
    transition: 0.25s all;
    letter-spacing: 0.2vw;
    transform: scale(1.2);
}

.openFilter > button{
    opacity: 1;
    transition: all 1s;
}


input{
    transition: 1s;
}


.Panel_Parameter > input:hover{
    transition: 0.3s all;
    border-radius: 10px;
    background-color: #d36f6380;
}


.panel_background_FilmEdit > .panel{
    display: flex;
    justify-content: center;
}

.panel .containerV{
    height: 100%;
}

.panel .centered{
    height: 50%;
}

.cont > .containerV{
    width: 50%;
}

form > input{
    margin: 2%;

    opacity: 1;

    /* transition: 0.25s all; */

    background-color: #d36f63;

    border-radius: 5px;
    border: none;
    
    width: 181%;
    height: 6%;

    margin: 2%;

    font-family: "Nexa_Bold";
    font-size: 1.5vw;

    padding: 1%;
    border: 2px solid #d36f63;
}

form > select{
    margin: 2%;

    opacity: 1;

    /* transition: 0.25s all; */

    background-color: #d36f63;

    border-radius: 5px;
    border: none;
    
    width: 120%;
    height: 6%;

    margin: 2%;

    font-family: "Nexa_Bold";
    font-size: 1.5vw;

    padding: 1%;
    border: 2px solid #d36f63;
}


form > input[type=submit]{
    width: 100%;
    border: 2px solid #f9ae5d;
}

form > input:hover{
    border-radius: 10px;
    background-color: #d36f6380;
}

form > select:hover{
    border-radius: 10px;
}

select option{
    font-family: "Nexa_Bold";
}



@media screen and (orientation:portrait) {

    header{
        font-size: 5.2vw;
    }


    .container_card {
        height: 68vw;
        width: 38vw;
    }

    .arrow{
        height: 40px;
        width: 40px;

        top: 48%;
    }


    .nav{
        height: 9vw;
    }

    .divButton {
        width: 17%;
      }

    .search_barDiv::before{
    left: 15%;
    }

    .search_bar{
        padding-left: 32px;
        font-size: 6vw;
    }

    .resultSearch{
        margin-right: 5%;
        font-size: 5.2vw;
    }



    .Panel_Parameter > input[type="button"] {
        width: 75%;
        height: 5%;
        margin: 3%;
        font-size: 6.5vw;
    }
    .Panel_Parameter > div {
        width: 52%;
        display: flex;
        justify-content: space-between;
        font-size: 6.5vw;
        margin: 3%;
    }


    .containerH embed {
        background-color: red;
        height: 50%;
        width: 100%;
        position: absolute;
        bottom: 0;
      }

      .containerH{
        align-items: flex-start;
        width: 60vw;
        justify-content: center;
      }

      .cont > .containerV {
        width: 100%;
      }

      .cont{
        width: 75vw;
      }

      .description{
        font-size: 4vw;
        text-align: center;
      }

      .cover {
        background-color: blue;
        height: 100%;
        width: 100%;
      }

      .containerH .titreFilm {
        font-size: 6vw;
        align-self: center;
        margin-left: 7%;
        width: 100%;

        position: absolute;
        bottom: 0;
        text-align: center;

        text-shadow: 1px 1px 15px black,1px 1px 15px black,1px 1px 15px black;
      }


      form > input {
        width: 80%;
        font-size: 4.5vw;
      }

      form > select {
        width: 70%;
        font-size: 7.5vw;
      }

      form > input[type="submit"] {
        width: 102%;
      }

      .filterSection{
        flex-wrap: wrap;
      }

      .filterSection > button{
        font-size: 3.2vw;
      }
}