html{
    width: 100%;
    height: 100%;
   
}


.black label{
    color: black;
}

#global-page{
    display: block;
}

.hidden{
    display: none !important;
}



*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
 
}

a{
    color: black;
    text-decoration: none;
}




/*-----------------------*/
/* start navbar */

#navbar{
    margin-bottom: 70px;
    text-align: center;
    margin-top: 50px;
}

#first{
    font-family: 'Lobster', monospace;
    font-size: 2.5rem;
}

#second, #third{
    font-family: 'Inter', sans-serif;
    color: #ff0000;
    font-size: 1.5rem;
    display: inline-block;
}




/* end navbar */
/*-----------------------*/
/* Start sidenav */

#sidenav{
    cursor: pointer;
    text-align: center;
    width: 100px;
    height: 43px;
    position: fixed;
    /* stay at the front of the screen */
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 650%);
    border-radius: 30px ;
    background-color:  #c2c2c2;


}

#plus{
    font-size: 2.05rem ;
 
}




/* end sidenav */
/*-----------------------*/
/* start section home */


#filter{
    text-align: center;
    margin: 0 auto ;
    margin-bottom: 50px;
    border: solid 1px;
    border-color: rgba(27, 31, 35, 0.15);
    padding-top: 20px;
    padding-bottom: 20px;
    max-width: 340px;
    border-radius: 30px;
    background-color:  rgba(27, 31, 35, 0.15);
    box-shadow: 10px 10px #c9c9c9; 
   
}

#bytitle{
    border-color: rgba(27, 31, 35, 0.336);

}


#bystars, #bydate, #reset{
    background-color: white;
    border: solid 1px;
    border-color: rgba(27, 31, 35, 0.15);
    border-radius: 20%;
    margin: 6px;
    margin-top: 20px;
    border-color: rgba(27, 31, 35, 0.336);

}

#bystars:hover, #bydate:hover, #reset:hover{
    background-color:  rgba(27, 31, 35, 0.15);

}

#bystars{
    color: #ff0000;
    font-size: 1.6rem;
    padding-top: 0.37rem;
    padding-bottom: 0.6rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;

}

#bydate{
    font-size: 1.3rem;
    padding: 0.7rem;

}

#reset{
    font-size: 1.3rem;
    padding: 0.7rem;

}




#home{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
    "cont cont cont cont";
    row-gap: 60px;
 
}

.content-image{
    grid-area: cont;
    justify-self: center;
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
    text-align: center;
    position: relative;
    max-width: 300px;
    min-width: 300px;
    background-color: #ddddde;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 30px;
    border: solid 1px;
    border-color: rgb(214, 214, 214);
    box-shadow: 10px 10px #c9c9c9;  
}

/* .content-image:hover, .content-image:active {
    box-shadow: 7px 7px #c9c9c9;
} */

.image{
    width: 250px;
    height: 300px;
    object-fit: cover; 
    border-radius: 30px;
    vertical-align: middle;
 
}

#delete{ 
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    color:rgba(221, 2, 2, 0.555);
    font-size: 1.5rem;
    position: absolute;
    top: 7%;
    left: 90%;
    transform: translate(-50%, -50%);
    border: solid 1px;
    border-color:  rgba(214, 214, 214);
    background-color: #f0f0f0;

}

.content{
   text-align: center;
   margin-top: 10px;
}

.title{
    font-family: 'Lobster', monospace;
    font-size: 1.7rem;

}


.rating0:before {
    content: "☆☆☆☆☆";
}

.rating1:before {
    content: "★☆☆☆☆";
}

.rating2:before {
    content: "★★☆☆☆";
}

.rating3:before {
    content: "★★★☆☆";
}

.rating4:before {
    content: "★★★★☆";
}

.rating5:before {
    content: "★★★★★";
}

.rating:before {
    color: red;
    font-size: 25px;
}


.watching-date{
    display: block;
    margin-bottom: 3px;
    margin-top: 5px;
}

.day{
    font-family: 'Lobster', monospace;
}

.alphabetical-month{
    font-family: 'Lobster', monospace;
}

.year{
    font-family: 'Lobster', monospace;
}




/* end section home */
/*-----------------------*/



em{
    font-style: normal;
    color:  rgba(0, 110, 255);
    
}

em:hover{
    text-decoration:underline;
    cursor: pointer;
    
}



h1{
    text-align: center;
    margin-top: 1px;
    font-weight: 200;
}


.form{
    border-radius: 30px;
    border: solid 1px;
    border-color: rgb(214, 214, 214);
    box-shadow: 10px 10px #c9c9c9;  
    margin: 0 auto;
    width: 300px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: #ddddde;
}


#error-add-movie, #error{
    text-align: center;
    border-radius: 30px;
    border: solid 1px;
    border-color: rgb(214, 214, 214);
    box-shadow: 8px 8px #c9c9c9;  
    margin: 0 auto;
    width: 300px;
    margin-top: 20px;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    font-size: 0.875rem;
    background-color: #ddddde;
    
}




.primarybutton{
    display: block;
    text-align: center;
    font-size: 1rem;
    width: 230px;
    height: 35px;
    margin: 0 auto;
    background-color: rgb(46, 164, 79);
    color: white;
    padding-top: 5px;
    padding-left: 12px;
    padding-bottom: 5px;
    padding-right: 12px;
    border-radius: 30px;
    border-bottom-style:solid ;
    border-bottom-color:rgba(27, 31, 35, 0.15) ;
    border-bottom-width: 0.8px;
    border-left-style: solid;
    border-left-color: rgba(27, 31, 35, 0.15) ;
    border-left-width: 0.8px;
    border-right-style:solid ;
    border-right-color:rgba(27, 31, 35, 0.15) ;
    border-right-width: 0.8px;
    border-right-style: solid;
    border-top-style:solid ;
    border-top-color:rgba(27, 31, 35, 0.15) ;
    border-top-width: 0.8px;
    border-top-style: solid;
    
}

.primarybutton > a{
    color:white;
}


label{
    font-size: 1rem;
}


.password, .date, .pseudo, .title-movie, .picture, .star {
    width: 230px;
    margin: 0 auto;
    padding-bottom: 1rem;
}

.primarybutton:hover{
    background-color:  rgb(37, 134, 64);
}

.primarybutton:disabled{
    background-color:  rgb(37, 134, 64);
}


button:hover{
    cursor: pointer;

}


input, select{
    background-color: white;
    width:230px; 
    font-size: 1rem;
    height: 35px;
    padding-top: 5px;
    padding-left: 12px;
    padding-bottom: 5px;
    padding-right: 12px;
    border-radius: 30px;
    border-bottom-style:solid ;
    border-bottom-color:rgba(27, 31, 35, 0.15) ;
    border-bottom-width: 0.8px;
    border-left-style: solid;
    border-left-color: rgba(27, 31, 35, 0.15) ;
    border-left-width: 0.8px;
    border-right-style:solid ;
    border-right-color:rgba(27, 31, 35, 0.15) ;
    border-right-width: 0.8px;
    border-right-style: solid;
    border-top-style:solid ;
    border-top-color:rgba(27, 31, 35, 0.15) ;
    border-top-width: 0.8px;
    border-top-style: solid;

}


input:focus{
    border-color: rgba(0, 110, 255, 0.2);
}


.newto{
    box-shadow: 8px 8px #c9c9c9;
    margin: 0 auto;
    text-align:center ;
    margin-top: 23px;
    width:300px; 
    font-size: 0.870rem;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 30px;
    border-bottom-style:solid ;
    border-bottom-color:rgba(27, 31, 35, 0.15) ;
    border-bottom-width: 0.8px;
    border-left-style: solid;
    border-left-color: rgba(27, 31, 35, 0.15) ;
    border-left-width: 0.8px;
    border-right-style:solid ;
    border-right-color:rgba(27, 31, 35, 0.15) ;
    border-right-width: 0.8px;
    border-right-style: solid;
    border-top-style:solid ;
    border-top-color:rgba(27, 31, 35, 0.15) ;
    border-top-width: 0.8px;
    border-top-style: solid;

}

#error, #error-add-movie{
    background-color:  rgba(107, 0, 0, 0.15);
    color: rgb(150, 0, 0);

}



footer{
    margin:100px
}

/* new */
@media screen and (max-width: 1500px), screen and (max-device-width: 1500px){

    #home{
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
        "cont cont cont";
    }
    
}


@media screen and (max-width: 1000px), screen and (max-device-width: 1000px){

    #home{
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
        "cont cont";
    }
   
}


@media screen and (max-width: 700px), screen and (max-device-width: 700px){

    #home{
        grid-template-columns: 1fr;
        grid-template-areas:
        "cont";
    }

    #sidenav{
        transform: translate(-50%, 630%);
        top: 40vh;
    }
    
    
}