*{
    margin: 0;
    padding: 0;
}

body{
    height: fit-content;
    font-family: Arial, Helvetica, sans-serif;
}


header{
    background-color: black;
    color: white;
    text-align: center;
    z-index: 50;
    position: fixed;
    top: 0;
    width: 100%
}

header > h2{
    padding: 20px;
}

.container-search{
    position: fixed;
    z-index: 50;
    width: 90%;
    top: 100px;
    display: grid;
    text-align: center;
   
    
}
.input-search{
    padding: 5px;
    margin: 10px auto;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
}

.button-search{
    padding: 5px 10px;
    max-width: fit-content;
    margin: 10px auto;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
    background-color: white;
}

.button-search:hover{
    cursor: pointer;
    opacity: 0.6;
}

main{
    max-width: 90%;
    min-height: 100vh; 
    margin: 0 auto;
}

.notFound{
    width: 90%;
    top: 80px;
    position: fixed;
    text-align: center;
    margin: auto;
}

.container-result{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
    margin: 65px auto 0 auto;
}

.movie-item{
    height: max-content;
    display: grid;
    grid-template-rows: auto 1fr;
    background-color: white;
    text-align: center;
    
    box-shadow: 0 4px 0 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: 1s;
}

.movie-item:hover{
    transform: scale(1.02);
}

.movie-item-desc{
    margin-top: 10px;
}

.detail-button{
    margin-top: 10px;
    padding: 5px 10px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
}
.detail-button:hover{
    cursor: pointer;
    opacity: 0.6;
}


.detail-header{
    margin-left: 5px;
    padding: 5px 0 5px 0;
    
}

.container-detail-movie{
    position: fixed;
    margin: 20px 5px;
    z-index: 90;
    width: 80%;
    max-height: 400px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: auto auto;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
    background-color: white;
    overflow: scroll;
}

.movie-detail-template{
    margin-top: 20px;
    padding: 10px 10px;
}

.close-item{
    width: fit-content;
    text-align: center;
    z-index: 98;
    padding: 5px;
    font-weight: 600;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: white;
    border: none;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
}

.close-item:hover{
    cursor: pointer;
    opacity: 0.6;
}

footer{
    background-color: black;
    color: white;
    /* width: 100%; */
    text-align: center;
    position: relative; 
    bottom: 0px;
}

footer > p{
    padding: 10px;
}

@media screen and (max-width: 400px){
    .container-detail-movie{
        width: 90%;
        
        grid-template-columns: 1fr 1fr;
        margin: 10px auto;
    }
}

@media screen and (min-width: 600px){
    .container-result{
        grid-template-columns: 1fr 1fr;
    }

    .container-detail-movie{
        width: 80%;
        overflow: hidden;
    }
}

@media screen and (min-width: 820px){
    .container-result{
        grid-template-columns:1fr 1fr;
    }

    .container-detail-movie{
        width: 70%;
        margin: 20px 50x;
        overflow: hidden;
    }
}

@media screen and (min-width: 900px){
    .container-result{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .container-detail-movie{
        width: 60%;
        margin: 20px 50x;
        overflow: hidden;
    }
}

@media screen and (min-width: 1090px){
    .container-result{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .container-detail-movie{
        width: 50%;
        margin: 20px 50x;
        overflow: hidden;
        
    }

    .input-search{
        width: 400px;
    }
}