*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #1b1b1b;
    color: #fff;
    font-family: sans-serif;
}

header {
    text-align: center;
    padding: 20px 10px;
    font-size: 1.4em;
}

small {
    font-size: .6rem;
}

footer {
    padding-top: 30px;
    text-align: center;;
}



.hidden {
    display: none !important;
}



#my-movies {
    display: flex;
    flex-flow: row wrap;
    padding: 10px;
}

.movie-item {
    display: flex;
    background-color: #16161f;
    border: 1px solid #9696a5;
    min-width: 350px;
    margin: 5px;
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
}

.movie-title {
    margin: 10px 0;
}

.movie-item img {
    max-width: 110px;
    align-self: flex-start;
}

.movie-item-detail {
    padding-left: 10px;
    font-size: 13px;
}

.platforms {
    display: flex;
    align-items: stretch;
    padding-bottom: 5px;
}

.platform-wrapper {
    display: flex;
    align-items: center;
    margin-right: 10px;
    border-radius: 8px;
    margin-right: 15px;
}

.platforms .platform-wrapper:last-child {
    margin: 0;
}

.platform {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

.platform-wrapper--button {
    padding: 5px;
    border: 2px solid gray;
    background-color: black;
}

.formats .platform-wrapper--button {
    padding: 0 5px;
}

.platform-wrapper:last-child {
    margin: 0;
}

.platform-wrapper--button.included {
    border: 2px solid #38fa46;
}

.platform.format--BluRay4K {
    width: 70px;
}

.platform.format--BluRay {
    width: 40px;
}

.platform.format--DVD {
    width: 40px;
    height: 40px;
}

.format--DVD {
    background-image: url("./img/dvd-icon.svg");
}

.format--BluRay {
    background-image: url("./img/blu-ray-icon.svg");
}

.format--BluRay4K {
    background-image: url("./img/uhd-icon.svg");
}

.retailers {
    padding-top: 5px;
}

.retailer--AppleTV {
    background-image: url("./img/A-icon.svg");
}

.retailer--FandangoAtHome {
    background-image: url("./img/FAH-icon.svg")
}

.retailer--AmazonPrime {
    background-image: url("./img/APV-icon.svg");
}

.retailer--MoviesAnywhere {
    background-image: url("./img/MA-icon.png");
}

.retailer--YouTube {
    background-image: url("./img/YT-icon.svg")
}




section#movie-details {
    width: 100%;
    overflow: hidden;
    padding: 15px;
}

.toolbar {
    position: absolute;
    top: 10px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.icon {
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.icon.arrow_back {
    background-image: url("./img/arrow_back-icon.svg");
}

.icon.save {
    background-image: url("./img/save-icon.svg");
}

.search-bar {
    display: flex;
    justify-content: center;
}

.search-bar input {
    height: 40px;
    width: 280px;
    font-size: 1rem;
    padding: 0 10px;
}

.icon.search {
    background-image: url("./img/search-icon.svg");
}

.movie-detail {
    width: 100%;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #9696a5;
}

.movie-detail_background-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    opacity: .6;
}

.movie-detail-poster {
    position: relative;
    margin-top: 50px;
    width: 90px;
}

.movie-info {
    position: relative;
    flex: 0 1 auto;
    padding: 0 20px 0 10px;
    margin-top: 40px;
}


#search-results {
    padding: 10px;
    display: flex;
    flex-flow: row wrap;
}

#search-results .movie-item {
    flex-direction: column;
    width: 33%;
    min-width: 120px;
    align-items: center;
    max-width: 50%;
}

#search-results .movie-item img {
    align-self: center;
    max-width: 100%;
}