@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Architects Daughter', cursive;
    font-weight: bolder;
}

body{
    background-color: #272532;
    display: flex;
    flex-direction: column;
    text-align: center;
}

h1{
    color: #EBE5E2;
    margin-top: 1rem;
    letter-spacing: 1px;
    font-size: 50px;
}

h6{
    color: #EBE5E2;
    margin-bottom: 1rem;
    font-size: 15px;
}

.search{
    border-radius: 50px;
    background: #83CFDF;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 240px;
}

.search:focus{
    background: #83CFDF;
}

main{
    justify-content: space-evenly;
    display: flex;
    flex-wrap: wrap;
}

.movie{
    width: 200px;
    border-radius: 7px;
    background: #EBE5E2;
    color: black;
    margin: 1rem;
    position: relative;
}

.movie img{
    max-width: 100%;
    background-color: #272532;
    border-radius: 5px 5px 0px 0px;
}

.movieinfo{
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}
 
.movieinfo span{
    background-color: #272532;
    color: #eee;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    letter-spacing: 1.5px;
}

.movieinfo span.green{
    color: rgb(68, 209, 68);
}

.movieinfo span.orange{
    color: yellow;
}

.movieinfo span.red{
    color: red;
}

.synopsis{
    position: absolute;
    /* top: 0; */
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1rem;
    visibility: hidden;
    background: #EBE5E2;
    font-size: 12px;
    overflow: auto;
    max-height: 100%;
    /* transition: transform 1s ease-in-out; */
}

.synopsis h4{
    font-size: 15px;
    letter-spacing: 1px;
}

.movie:hover .synopsis{
    visibility: visible;
}