*{
    padding: 0;
    margin: 0;
}

@font-face {
    font-family: Rubik-Medium;
    src: url(../fonts/Rubik-Medium.ttf);
}

@font-face {
    font-family: Rubik-Regular;
    src: url(../fonts/Rubik-Regular.ttf);
}

@media screen and (max-width: 390px){
    .container{
        width: 385px;
        background-color: white;
        margin: 0 auto;
    }
    .header{
        height: 40px;
        background-color: white;
        margin-top: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header__logo{
        display: flex;
        align-items: center;
    }
    .header__logo-name{
        font-family: Rubik-Medium;
        font-size: 12px;
        color: #333333;
        margin-left: 3px;
    }
    .header__search-txt{
        width: 120px;
        height: 25px;
        border: none;
        border-bottom: 1px #333333 solid;
        font-family: Rubik-Medium;
        font-size: 10px;
        color: #333333;
    }
    .header__search-txt:focus{
        outline: none;
    }

    .header__search-txt::placeholder{
        font-size: 10px;
        color: #828282;
        font-family: Rubik-Regular;
    }

    .header__search-button{
        font-size: 10px;
        color: #E5261E;
        font-family: Rubik-Medium;
        border: none;
        background-color: white;
    }

    .header__button{
        width: 56px;
        height: 19px;
        background-color: #E5261E;
        font-family: Rubik-Regular;
        font-size: 12px;
        color: #FFFFFF;
        border: none;
        border-radius: 4px;  
    }

    .header__button:hover{
        background-color: #CC221B;
    }

    main{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav{   
        margin: 10px auto 10px auto;
        width: 230px;
        display: flex;
        justify-content: space-between;
        height: 40px;
    }

    .nav__a{
        font-family: Rubik-Medium;
        font-size: 20px;
        color: #333333;
        text-decoration: none;
    }

    .nav__a:hover{
        border-bottom: 2px #E5261E;
        padding-bottom: 9px;
        color: #E5261E;
    }

    .movies-h{
        font-family: Rubik-Medium;
        font-size: 22px;
        color: #333333;
        margin-bottom: 10px;
    }

    .movies{
        margin: 0 auto;
    }

    .ganres-gallery{
        margin: 0 auto;
    }

    main{
        width: 385px;
    }

    .new{
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 15px;
        
    }

    .new-item__img{
        border-radius: 8px;
    }

    .new-item{
        width: 280px;
        font-family: Rubik-Regular;
        font-size: 20px;
        color: #333333; 
        position: relative;
        margin-bottom: 15px;
    }

    .new-item__desk{
        width: 280px;
        height: 370px;
        background-color: rgba(51, 51, 51, 0.8);
        font-size: 16px;
        color: #FFFFFF;
        border-radius: 8px;
        padding: 16px;
        line-height: 140%;
        box-sizing: border-box;
        position: absolute;
        top: 0;
        right: 0;
        opacity: 0;
    }

    .new-item:hover .new-item__desk{
        opacity: 1;
        cursor: pointer;
    }

    .ganre{
        width:280px;
        height: 2000px;
        background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
        box-shadow: inset 0px 0px 16px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        opacity: 0.8;
    }

    .ganre_emj{
        font-size: 48px;
    }

    .ganre__p{
        font-family: Rubik-Regular;
        color: white;
        font-size: 20px;
        position: absolute;
        top: 160px;
    }

    .ganre:hover{
        opacity: 1;
    }

    .ganres-gallery{
        margin-top: 32px;
    }

    .ganres__item{
        width: 280px;
        height: 208px;
        background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
        box-shadow: inset 0px 0px 16px rgba(0, 0, 0, 0.15);
        border-radius: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        position: relative;
        opacity: 0.8;
        margin-bottom: 20px;
    }

    .comedy{
        background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
    }

    .drama{
        background: linear-gradient(127.83deg, #F2994A 8.44%, #EB5757 91.36%);
    }

    .factastic{
        background: linear-gradient(127.83deg, #56CCF2 8.44%, #2F80ED 91.36%);
    }

    .ugasi{
        background: linear-gradient(127.83deg, #828282 8.44%, #333333 91.36%);
    }

    .ganres__item-emj{
        font-size: 48px;
    }

    .ganres__item-p{
        font-family: Rubik-Regular;
        color: #FFFFFF;
        font-size: 20px;
        position: absolute;
        top: 160px;
    }

    .ganres__item:hover{
        opacity: 1;
        cursor: pointer;
    }

    .footer{
        background-color: #F2F2F2;
    }

    .footer-container{
        height: 120px;
        display: flex;
        align-items: center;
        background-color: #F2F2F2;
    }

    .footer__info{
        margin-left: 39.98px;
    }

    .footer__info-p{
        font-size: 12px;
        color: #333333;
        font-family: Rubik-Regular;
    }

    .footer__info-a{
        font-family: Rubik-Medium;
        font-size: 16px;
        text-decoration: none;
        color: #1F4766;
    }

    .footer__info-p:nth-child(2){
        margin: 6px 0 10px 0;
    }

}

@media screen and (min-width: 391px){
    .container{
    width: 1180px;
    background-color: white;
    margin: 0 auto;
}

.header{
    height: 40px;
    background-color: white;
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo{
    display: flex;
    align-items: center;
}

.header__logo-name{
    font-family: Rubik-Medium;
    font-size: 16px;
    color: #333333;
    margin-left: 11.88px;
}

.header__search-txt{
    width: 320px;
    height: 25px;
    border: none;
    border-bottom: 1px #333333 solid;
    font-family: Rubik-Medium;
    font-size: 16px;
    color: #333333;
}

.header__search-txt:focus{
    outline: none;
}

.header__search-txt::placeholder{
    font-size: 16px;
    color: #828282;
    font-family: Rubik-Regular;
}

.header__search-button{
    font-size: 16px;
    color: #E5261E;
    font-family: Rubik-Medium;
    border: none;
    margin-left: 32px;
    background-color: white;
}

.header__button{
    width: 113px;
    height: 38px;
    background-color: #E5261E;
    font-family: Rubik-Regular;
    font-size: 16px;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;  
}

.header__button:hover{
    background-color: #CC221B;
}

.nav{   
    margin: 44px auto 32px auto;
    width: 311px;
    display: flex;
    justify-content: space-between;
    height: 42px;
}

.nav__a{
    font-family: Rubik-Medium;
    font-size: 28px;
    color: #333333;
    text-decoration: none;
}

.nav__a:hover{
    border-bottom: 2px #E5261E;
    padding-bottom: 9px;
    color: #E5261E;
}

.movies-h{
    font-family: Rubik-Medium;
    font-size: 24px;
    color: #333333;
    margin-bottom: 16px;
}
.new{
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.new-item__img{
    border-radius: 8px;
    margin-bottom: 16px ;
}

.new-item{
    width: 280px;
    font-family: Rubik-Regular;
    font-size: 20px;
    color: #333333; 
    position: relative;
}

.new-item__desk{
    width: 280px;
    height: 370px;
    background-color: rgba(51, 51, 51, 0.8);
    font-size: 16px;
    color: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    line-height: 140%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}

.new-item:hover .new-item__desk{
    opacity: 1;
    cursor: pointer;
}

.ganre{
width:280px;
height: 208px;
background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
box-shadow: inset 0px 0px 16px rgba(0, 0, 0, 0.15);
border-radius: 6px;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
opacity: 0.8;
}

.ganre_emj{
        font-size: 48px;
}

.ganre__p{
    font-family: Rubik-Regular;
    color: white;
    font-size: 20px;
    position: absolute;
    top: 160px;
}

.ganre:hover{
    opacity: 1;
}

.ganres-gallery{
    margin-top: 32px;
}

.ganres__item{
    width: 280px;
    height: 208px;
    background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
    box-shadow: inset 0px 0px 16px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    opacity: 0.8;
}

.comedy{
    background: linear-gradient(127.83deg, #F2C94C 8.44%, #F29A4A 91.36%);
}

.drama{
    background: linear-gradient(127.83deg, #F2994A 8.44%, #EB5757 91.36%);
}

.factastic{
    background: linear-gradient(127.83deg, #56CCF2 8.44%, #2F80ED 91.36%);
}

.ugasi{
    background: linear-gradient(127.83deg, #828282 8.44%, #333333 91.36%);
}

.ganres__item-emj{
    font-size: 48px;
}

.ganres__item-p{
    font-family: Rubik-Regular;
    color: #FFFFFF;
    font-size: 20px;
    position: absolute;
    top: 160px;
}

.ganres__item:hover{
    opacity: 1;
    cursor: pointer;
}

.ganres{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer{
    background-color: #F2F2F2;
    margin-top: 72px;
}

.footer-container{
    height: 120px;
    display: flex;
    align-items: center;
    background-color: #F2F2F2;
}

.footer__info{
    margin-left: 39.98px;
}

.footer__info-p{
    font-size: 16px;
    color: #333333;
    font-family: Rubik-Regular;
}

.footer__info-a{
    font-family: Rubik-Medium;
    font-size: 16px;
    text-decoration: none;
    color: #1F4766;
}

.footer__info-p:nth-child(2){
    margin: 6px 0 10px 0;
}
}