body {
    width: 80%;
    background-color: #1a1a1a;
    margin: 3em auto 0 auto;
    font-family: 'Open Sans', sans-serif;;
    min-width: 450px;
}

body.modal-open {
    overflow: hidden;
}

.hidden {
    display: none;
}

.search-form {
    top: 3em;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 50px;
}

.search-form input {
    padding: 0.35em 0.75em;
    font-size: 1.2em;
    flex: 2 0;
    border-radius: 20px;
}

.search-form button {
    flex: 1 0;
    font-size: 1.3em;
    margin-left: 20px;
    border-radius: 20px;
}

.search-form button i {
    margin-right: 10px;
}

@media (max-width: 450px) {
    .search-form {
        display: block;
    }
    .search-form input {
        padding: 0.35em 0.75em;
        font-size: 1.2em;
        width: 100%;
    }
    .search-form button {
        width: 100%;
        margin-left: 0px;
    }
  }

.movies-grid {
  display: grid;
  width: 90%;
  max-width: 990px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-bottom: 50px;
}

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

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
         transform: rotate(360deg);
    }
}

.loader i {
    margin: 0 auto;
    display: block;
    color: #cccccc;
    font-size: 64px;
    width: 64px;
    height: 64px;
    animation: 2.5s linear infinite spinner;
}

.loader.hidden {
    display: none;
}

.movie-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    color: white;
}

.movie-item img {
    pointer-events: none;
    opacity: 0;
    -moz-transition: opacity 1s;
    -webkit-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
}

.movie-item img.loaded {
    opacity: 1;
}
.movie-item .movie-text-container {
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    pointer-events: none;
    background: rgba(0,0,0,0);
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0)), color-stop(100%, rgba(0,0,0,0.85)));
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    background: -o-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

.movie-item .movie-text-container .movie-title {
    font-size: 20px;
    padding: 0 10px;
    box-sizing: border-box;
    pointer-events: none;
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
}

.no-results {
    color: #eeeeee;
    text-align: center;
}

.detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
    overflow-y: scroll;
}

.detail-modal {
    position: relative;
    width: 90%;
    margin: 3em auto 3em auto;
    padding-top: 68px;
    background-color: #262626;
    border-radius: 5px;
    max-width: 990px;
    min-width: 450px;
}

.detail-modal .player {
    width: 84%;
    display: block;
    margin: 0 auto;
}

.detail-modal .player.hidden {
    display: none;
}

.detail-modal .close-button {
    position: absolute;
    font-size: 1.7em;
    right: 25px;
    top: 20px;
    color: #eeeeee;
}

.detail-modal .metadata {
    padding: 30px;
}

.detail-modal .metadata h2 {
    color: #eeeeee;
}

.detail-modal .metadata h4 {
    color: #dddddd;
}

.detail-modal .metadata .description {
    color: #cccccc;
}