* {
    margin:0;
    padding:0;
}
body {
    background-color: #000;
}
main {
    background-image:url('assets/bg.jpg');
    background-repeat:no-repeat;
    background-size:cover;
    background-position:center;
    position:absolute;
    width:100%;
    height:100%;
}

main:after{
    background-color:rgba(0, 0, 0, 0.68);
    content:'';
    height:100%;
    left:0;
    position:absolute;
    top:0;
    width:100%;
}

.header-movies {
    float:left;
    position: relative;
    padding: 15px 0;
    width:100%;
    z-index: 9;
}
.header-movies__title {
    color:red;
    font-family:'arial',sans-serif;
    font-size:40px;
    text-shadow:2px 2px #000000;
}

.section-movies {
    align-items:center;
    display:flex;
    justify-content:center;
    padding-bottom:60px;
    width:100%;
}
.container {
    margin-left:auto;
    margin-right:auto;
    max-width:90%;
    padding-left:15px;
    padding-right:15px;
    width:100%;
}
.app-movies {
    align-items:center;
    display:flex;
    flex-direction:column;
    position:relative;
    margin: 60px 0;
    z-index:9;
}
.app-movies__title {
    color:white;
    font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size:54px;
    max-width:70%;
    text-align:center;
}
.app-movies__subtitle {
    color:white;
    font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size:25px;
    font-weight: 300;
    margin:20px 0 30px;
}
.app-movies__msg {
    color:white;
    font-size:18px;
    font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
    margin-bottom: 20px;
}

.app-movies-all {
    display:grid;
    grid-gap:30px;
    grid-template-columns: repeat(auto-fit, 14.46%);
    position: relative;
    z-index: 9;
}

.app-movies-all__card {
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    transition: all .2s ease-in-out;
}
.app-movies-all__card:hover {
    top: -5px;
}

.app-movies-all__figure {
    height: 230px;
    box-shadow: 0 0px 9px 3px rgb(255,255,255,0.23);
}

.app-movies-all__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-movies-all__legend {
    display: flex;
    flex-direction: column;
}

.app-movies-all__year {
    color:rgba(255,255,255,0.76);
    font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size:13px;
    background-color:#e50914;
    max-width:30px;
    padding: 4px 10px;
    line-height: 1;
    margin: 8px 0;
    border-radius: 2px;
}

.app-movies-all__title {
    color:white;
    font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
    font-size:16px;
}

.form {
    display:flex;
    justify-content:center;
    width:100%;
}
.form__input {
    border: 0;
    background-color:#fff;
    border-radius:0;
    padding:15px 20px;
    width:35%;
}
.form__submit {
    background-color:#e50914;
    border:0;
    cursor:pointer;
    color:#fff;
    font-size:25px;
    padding:15px 30px;
    transition: all .2s ease-in-out;
}
.form__submit:hover {
    background-color:#c70913;
}

@media only screen and (max-width: 480px) {

    .app-movies {
        margin: 30px 0;
    }

    .header-movies__title {
        text-align: center;
    }

    .app-movies__title {
        font-size:40px;
        max-width:100%;
    }

    .app-movies__subtitle {
        text-align: center;
    }
    
    .app-movies__msg {
        text-align: center;
    }

    .form {
        overflow: hidden;
        flex-direction: column;
    }

    .form__input {
        width: 100%;
        margin-bottom: 5px;
    }

    .form__submit {
        font-size: 16px;
    }

    .app-movies-all {
        grid-gap:15px;
        grid-template-columns: repeat(auto-fit, 47%);
    }

    .app-movies-all__figure {
        height: 190px;
    }
}