* {
    box-sizing: border-box;
}

body {
    background-color: #373b69;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin: 0;
    color: #ffffffd8;
}

input:focus {
    outline: none;
}

header {
    background-image: url(./img/pngwing.png);
    background-repeat: no-repeat;
    background-size: 30rem;
    background-position: center center;
    color: #fffffff6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    letter-spacing: .8rem;
    text-transform: uppercase;
}

img.poster_img {
    cursor: pointer;
    border-radius: 5px;
}

img.poster_img:hover {
    opacity: .7;
}

form {
    position: relative;
    width: 500px;
    max-width: 100%;
}

form input {
    border: 0;
    background-color: #373b69;
    border: 1px solid #ffffff;
    border-radius: 50px;
    font-size: 16px;
    padding: 15px 30px;
    width: 100%;
    color: whitesmoke;
    opacity: 0.7;
}

form input:focus {
    background-color: #1c2152;
}

form input::placeholder {
    color: #fffffff6;
}

form input:focus::placeholder {
    color: transparent;
}

form button {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: skyblue;
    border: 0;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    padding: 14px 30px;
    /* opacity: 1; */
}

.container {
    margin: 30px auto;
    max-width: 100%;
    width: 1000px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.movie {
    background-color: #373b69;
    border-radius: 3px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    margin: 1rem;
    width: 200px;
}

.movie img {
    width: 100%;
}

.movie-info {
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 1rem;
    letter-spacing: 0.5px;
}

.movie-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.movie-info span {
    background-color: #22254b;
    border-radius: 3px;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
}

.modal-container {
    position: fixed;
    background-color: rgba(0,0,0,0.5);
	display: none;
    z-index: 2;
    pointer-events: none;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
}

.modal-content {
    border-radius: 40px;
    background-color: rgb(76, 102, 92);
    border-radius: 40px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 700px;
    height: 600px;
    left: 50%;
    top: 50%; 
    transform: translate(-50%, -50%);
}

.modal-container.show {
    animation: modal .3s ease-in;
	display: block;
	pointer-events: auto;
}

@keyframes modal {
    from {
        /* opacity: 0; */
        transform: translateY(-50%);
    }
    to {
        /* opacity: 1; */
        transform: translateY(0);
    }
}

.close-btn {
    padding: 6px 15px;
    opacity: .7;
    border-top-right-radius: 40px;
    font-size: 25px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    z-index: 3;
}

.box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    /* flex-grow: 1; */
    /* width: 600px; */
    /* width: 10rem; */
}

.box0 {
    flex-basis: 100%;
}

.box1 {
    flex-basis: 50%;
}

ul.movies {
    list-style-type: none; /* remove o bullet icon da lista */
    padding: 0; /*remove o espaço default da lista */
    margin-top: -15px;
}

ul.movies li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.container p {
    text-align: left;
}

.centered {
    display: flex;
    justify-content: center;
}

.centered button {
    transform: scale(1.3);
    margin: 15px;
}

img.imdb {
    margin-left: -23px;
    margin-top: -30px;
}

h1.title {
    width: auto;
    position: relative;
    margin: 0 0 30px;
    padding: 20px 30px;
}

p.runtime {
    font-size: 14px;
    position: absolute;
    left: 0;
    font-weight: lighter;
    width: inherit;
    padding: 0 30px;
}

img.poster {
    border: #fffffff6 2px solid;
    object-fit: contain;
    max-width: 250px;
    margin-top: -60px;
}

h1.html {
    opacity: 0;
}

li span.green {color: rgb(39, 189, 39); }
li span.orange {color: orange;}
li span.red {color: rgb(189, 42, 42);}

li span.rating {
    margin-left: 5px; 
    background-color: black; 
    padding: 0 .2rem; 
    border-radius: .4rem;
}

ul.movies li.rating {
    justify-content: flex-start;
}

p.searchRes {
    flex-basis: 100%;
    /* text-align: center; */
    font-size: 24px;
    border-bottom: ivory 1px solid;
    margin-bottom: 35px;
}

.loader {
    opacity: 0;
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transition: opacity 0.3s ease-in;
}
  
.loader.show {
    opacity: 1;
}
  
.circle {
    background-color: #fff;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px;
    animation: bounce 0.5s ease-in infinite;
}
  
.circle:nth-of-type(2) {
    animation-delay: 0.1s;
}
  
.circle:nth-of-type(3) {
    animation-delay: 0.2s;
}
  
@keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }
  
    50% {
      transform: translateY(-10px);
    }
}

@media all and (max-width: 600px) {
    .box1 {
        flex-basis: calc(100% - 60px);
    }
    h1.title {
        width: auto;
    }
    ul.movies {
        margin-top: 0;
        max-width: 305px;
    }
    .movie {
        width: 120px;
        margin: .5rem;
    }
    .movie-info h3 {
        font-size: .8rem;
    }
    .modal-container {
        position: absolute;
        /* height: auto; */
        width: 90%;
        /* top: 90%; */
    }
    .poster {
        display: none;
    }
    
}    
