/* =================================
  Element Styles
==================================== */

* {
    box-sizing: border-box;
}

body {
    font: 1em/1.5 'Roboto', sans-serif;
    color: #222;
    background: #f6f7f7;
    padding-top: 145px;
    padding-bottom: 3em;
    margin: 0;
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

input {
    font-size: 1.12em;
    height: 46px;
    padding-bottom: 1em;
    padding-left: 0;
    background: none;
    border: none;
    outline: 0;
    border-bottom: 4px solid #e4e4e4;
    transition: border-color .4s;
}

input~input {
    margin-left: 5px;
}

input:focus {
    border-color: #c1c1c1;
}

button {
    width: 40px;
    height: 35px;
    border: 0;
    background: none;
    cursor: pointer;
    outline: 0;
    position: relative;
    z-index: 2000;
}


/* =================================
  Page Components
==================================== */

.main-title {
    font-size: 1.4em;
    line-height: 80px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.search-form input:last-of-type {
    margin-right: -40px;
}

.search-form input:nth-of-type(1) {
    width: 65%;
}

.search-form input:nth-of-type(2) {
    width: 35%;
}

.search-form input:only-of-type {
    width: 100%;
    padding-right: 35px;
}

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

.icn-search {
    font-weight: 700;
}

.icon-help {
    font-size: 6em;
    margin-bottom: 12px;
    color: #dfdfdf;
    display: block;
}


/* MOVIE LIST COMPONENTS -------- */

.no-movies {
    color: #b0b0b0;
    height: 140px;
    margin-top: 65px;
    text-align: center;
    font-size: 1.25em;
}

.movie-list li {
    margin: 1.925em 0 0;
}

.movie-list a {
    display: block;
    margin: auto;
}

.movie-title {
    display: block;
    font-size: 1.1em;
    line-height: 1.2;
    color: #000;
    font-weight: 500;
}

.movie-year {
    color: #9d9d9d;
}

.poster-wrap {
    background-color: #fff;
    margin-bottom: .8em;
    position: relative;
}

.poster-placeholder {
    color: #dadada;
    font-size: 5em;
    width: 80px;
    height: 80px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}


/* =================================
  Layout Styles
==================================== */

.inner, .main-content, .content-container {
    width: 90%;
    max-width: 1025px;
    margin: auto;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    min-height: 80px;
    z-index: 1000;
}


/* =================================
  Helper Classes
==================================== */

.clearfix::after {
    content: " ";
    display: table;
    clear: both;
}

.is-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


/* =================================
  Media Queries
==================================== */

@media (min-width: 0) and (max-width: 549px) {
    .movie-list li {
        text-align: center;
    }
}

@media (min-width: 550px) {
    .movie-list li {
        float: left;
        width: 50%;
    }
    .movie-list .no-movies {
        float: none;
        width: 100%;
    }
    .poster-wrap {
        height: 290px;
        border: 1px solid white;
        overflow: hidden;
    }
    .movie-poster {
        width: 100%;
        min-height: 100%;
        -webkit-transition: -webkit-transform .4s ease-out;
        transition: transform .4s ease-out;
    }
    .poster-wrap:hover .movie-poster {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    .movie-title {
        padding-right: 1.25em;
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 115px;
    }
    .main-title {
        float: left;
    }
    .search-form {
        width: 422px;
        float: right;
        margin-top: 34px;
    }
    .movie-list li {
        width: 33.333333333%;
    }
}

@media (min-width: 769px) and (max-width: 999px) {
    .movie-list li:nth-of-type(3n+1) {
        clear: left;
    }
}

@media (min-width: 1000px) {
    .movie-list li {
        width: 25%;
    }
    .movie-list li:nth-of-type(4n+1) {
        clear: left;
    }
}



/* ADDED STYLING */

/* search page */

.main-title a {
    color: inherit;
}

.loading-icon {
    display: none;
    position: relative;
    top: 4px;
}

/* Fix for Safari. */
input {
    -webkit-appearance: none;
}

#movies li:hover {
    cursor: pointer;
}

/* description page */

.loading-desc {
    width: 100%;
    position: absolute;
    top: 15px;
    text-align: center;
}

.loading-desc p {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 2px;
    background: white;
    color: #4c4c4c;
}

.desc-loading-icon {
    position: relative;
    top: 2px;
}

.description-page {
    display: none;
    margin: auto;
    color: #9d9d9d;
    background: #fff;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 80px;
    left: 0px;
    z-index: 1000;
}

.description-header-background {
    background-color: #4c4c4c;
}

.back-to-search {
    padding-top: 12px;
}

.back-to-search:hover {
    cursor: pointer;
    color: #fff;
}

.arrow {
    color: #fff;
    font-size: 1.5em;
    position: relative;
    top: 6px;
    left: -6px;
}

.description-container {
    float: right;
    width: 60%;
    margin: 0;
}

.desc-movie-name {
    color: #fff;
    padding: 55px 0 5px 0;
    margin: 0;
}

.desc-movie-rating {
    display: block;
    padding-bottom: 30px;
}

.poster-div {
    position: relative;
    max-width: 300px;
    width: 27%;
    float: left;
    margin-left: 3%;
    top: -125px;
}

.desc-poster-placeholder {
    color: #dadada;
    background-color: #f6f7f7;
    font-size: 5em;
    text-align: center;
    padding-top: 100px;
    border: solid #9d9d9d 10px;
    width: 280px;
    height: 380px;
}

.desc-poster-image {
    width: 100%;
    min-width: 200px;
    border: solid #f6f7f7 10px;
}

.desc-plot-synopsis {
    color: black;
    padding: 0;
    margin: 20px 0 0;
}

.desc-plot {
    padding: 10px 0 40px 0;
    margin: 0;
}

.imdb-link {
    padding: 15px 20px;
    color: white;
    border-radius: 3px;
    background: #42D5B2;
}
