:root {
    --font: "BalsamiqSans";
}

@font-face {
    font-family: "BalsamiqSans";
    src: local("BalsamiqSans-Regular"),
    url("../fonts/BalsamiqSans-Regular.woff2") format("woff2"),
    url("../fonts/BalsamiqSans-Regular.woff") format("woff"),
    url("../fonts/BalsamiqSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BalsamiqSans";
    src: local("BalsamiqSans-Bold"),
    url("../fonts/BalsamiqSans-Bold.woff2") format("woff2"),
    url("../fonts/BalsamiqSans-Bold.woff") format("woff"),
    url("../fonts/BalsamiqSans-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "BalsamiqSans";
    src: local("BalsamiqSans-Italic"),
    url("../fonts/BalsamiqSans-Italic.woff2") format("woff2"),
    url("../fonts/BalsamiqSans-Italic.woff") format("woff"),
    url("../fonts/BalsamiqSans-Italic.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "BalsamiqSans";
    src: local("BalsamiqSans-BoldItalic"),
    url("../fonts/BalsamiqSans-BoldItalic.woff2") format("woff2"),
    url("../fonts/BalsamiqSans-BoldItalic.woff") format("woff"),
    url("../fonts/BalsamiqSans-BoldItalic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
}

* {
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

body {
    font-family: var(--font);
    background-color: #eff0eb;
}

p {
    margin: 0;
    cursor: default;
}

label {
    cursor: inherit;
}

header {
    margin-top: 0;
    padding-top: 0;
    height: 240px;
}

.header__nav {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-right: 10px;
    font-size: 18px;
    background-color: #292929;
    box-shadow: 0 0 4px 2px rgba(41, 41, 41, 1);
}

.burger__container {
    display: none;
}

.header__list {
    display: flex;
    margin: 0;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 10px;
    color: #fff;
}

.header__item {
    padding-right: 18px;
    padding-left: 18px;
    border-right: 1px dotted white;
}

.header__href {
    color: white;
}
.header__href:hover {
    text-decoration: underline;
    text-decoration-color: #dbd8d8;
}

.header__item:active {
    transform: scale(0.96);
}

.header__form {
    flex-grow: 2;
    border:1px solid black;
    border-radius: 50px;
    height: 28px;
    background-color: black;
}

.header__search {
    flex-grow: 1;
    background-color: black;
    border: none;
    border-radius: 50px;
    color: white;
    outline: none;
    height: inherit;
}

.header__right {
    display: flex;
    flex-grow: 2;
    align-items: center;
    margin-top: 3px;
    margin-bottom: 4px;
    padding-left: 40px;
    max-width: 540px;
    text-align: right;
}

@-moz-document url-prefix() {
    .header__right {
    margin-right: 50px;
    }
}

.header__form {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__form:hover {
    outline: 2px solid white;
}

.header__btn {
    border-radius: 50px;
    padding-left: 15px;
    padding-right: 15px;
    color: white;
    background-color: #323232;
}

.header__btn:hover {
    outline: 2px solid red;
    cursor: pointer;
}

.header__btn:active {
   transform: scale(0.85);
}

.header__bottom {
    padding-top: 40px;
    display: flex;
    background-color: white;
    height: 210px;
    box-shadow: 0 0 4px 2px rgba(255, 255, 255, 1);
}

.logo {
    margin-top: 40px;
    margin-left: 20px;
}

.header__center {
    display: flex;
    flex-grow: 2;
    justify-content: space-between;
    align-items: center;
    margin: 0 40px;
    width: 118px;
    object-fit: none;
}

.header__pictures {
    overflow: hidden;
}

.admin-panel {
    max-width: 200px;
    transition-property: color, font-size, font-weight;
    transition-duration: 300ms;
    transition-timing-function: ease-in;
    transition-delay: 1s;
}

.admin-panel__link {
    color: #df8e00;
}

.admin-panel__link:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* main */

main {
    display: flex;
}

.article__less1024 {
    display: none;
}

/* left-nav */

.left-nav {
    margin-right: 20px;
    margin-left: 20px;
    border-radius: 30px;
    width: 500px;
    min-height: 500px;
    background-color: white;
}

h1, h2 {
    box-shadow: 0 0 2px 1px rgba(41, 41, 41, 1);
}

h1 {
    margin: 0;
    padding: 10px 10px 10px 20px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    width: inherit;
    font-size: 24px;
    line-height: 1.5;
    text-transform: uppercase;
    color: #df8e00;
    background-color: #292929;
}

.left-nav__list {
    padding-left: 20px;
    width: inherit;
    font-size: 18px;
    line-height: 1.8;
    font-weight: bold;
}

.left-nav__item:first-child {
    padding-top: 7px;
}

.left-nav__list-addition .left-nav__item:last-child {
    padding-bottom: 8px;
}

.left-nav__item {
    border-bottom: 1px solid #eff0eb;
}

.left-nav__item:not(.what-more):hover {
    border: 2px dotted black;
    background-color: #7c7a7a;
}

.left-nav__item:not(.what-more):active {
    transform: scale(0.96);
}

.left-nav__href {
    display: block;
    width: 100%;
}

.what-more {
    padding: 10px 0 10px 20px;
    text-transform: uppercase;
    color: grey;
}

.left-nav__list-addition .left-nav__item:first-child {
    padding-top: 0;
}

/* section main content */

.content {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-right: 20px;
}

.content__item {
    margin-bottom: 20px;
    padding-top: 20px;
    background-color: white;
    border-radius: 30px;
}

.content__item:nth-child(2) {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

h2 {
    margin: 0;
    padding: 10px 10px 10px 20px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    font-size: 22px;
    line-height: 1.5;
    text-transform: uppercase;
    color: #df8e00;
    background-color: #292929;
}

.film-title {
    display: block;
    cursor: pointer;
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    border: 2px solid black;
    border-radius: 50px;
    font-size: 28px;
    line-height: 1.5;
    font-weight: bold;
    background-color: #7c7a7a;
}

.film-title:active {
    transform: scale(0.9);
    transform-origin: left top;
}

.film-title:hover {
    text-decoration: underline;
}

.content__img {
    display: block;
    width: 400px;
    margin: 0 auto 20px;
}

.wide-poster {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 20px;
}

.films-description {
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    border: 2px dotted grey;
    border-radius: 10px;
    background-color: rgb(196, 196, 196);
}

.watch-online {
    display: inline-block;
    margin: 20px 0 0 20px;
    padding: 30px 30px 30px 65px;
    height: max-content;
    font-weight: bold;
    font-size: 24px;
    line-height: 1.5;
    color: #df8e00;
    background-image: url("../img/tvhead.png");
    background-size: 64px;
    background-repeat: no-repeat;
    transform-origin: center;
    cursor: pointer;
}

.watch-online:hover {
    text-decoration: underline;
}

.watch-online:active {
    transform: scale(0.9);
}

/* main right block */

article {
    width: 500px;
    margin-right: 20px;
}

.right-nav {
    width: inherit;
}

.right-nav__list {
    margin: 0;
    padding-left: 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    font-size: 18px;
    line-height: 1.5;
    background-color: white;
}

.right-nav__item {
    padding-left: 25px;
    border-bottom: 1px solid #eff0eb;
    line-height: 1.8;
    background-color: white;
    background-image: url(../img/arrow.jpg);
    background-size: 10px;
    background-position-x: 10px;
    background-position-y: 7px;
    background-repeat: no-repeat;
}

.right-nav__item:hover {
    border: 2px dotted black;
    background-color: #7c7a7a;
}

.right-nav__item:active {
    transform: scale(0.96);
}


.right-nav__item:first-child {
    padding-top: 7px;
    background-position-y: 14px;
}

.right-nav__item:last-child {
    padding-bottom: 8px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.right-nav__href {
    display: block;
    width: 100%;
}

/* aside */

aside {
    margin-top: 20px;
    padding: 20px;
    border-radius: 30px;
    background-color: white;
}

h4 {
    margin: 0;
}

.news {
    font-style: italic;
}

/* footer */

footer {
    padding: 20px;
    border: 1px dashed black;
    background-color: #7c7a7a;
}

.title {
    font-weight: bold;
    font-size: 24px;
}

/* @Media */

@media (max-width: 2600px) {

    .header__pictures:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 1920px) {

    .header__pictures:nth-child(n+7) {
        display: none;
    }

    .left-nav,
    .right-nav {
        width: 300px;
    }

    .header__right {
        max-width: 340px;
    }
}

@media (max-width: 1600px) {

    .header__pictures:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 1400px) {

    .header__href_hidden {
        display: none;
    }

    .header__pictures:nth-child(n+5) {
        display: none;
    }

    .left-nav,
    .right-nav {
        width: 250px;
    }
}

@media (max-width: 1260px) {
    .header__nav {
        font-size: 16px;
    }

    .header__list {
        padding-top: 9px;
        padding-bottom: 8px;
    }

    .header__item {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header__right {
        margin-right: 10px;
        padding-left: 10px;
    }

    .header__pictures:nth-child(n+4) {
        display: none;
    }

    h1, h2 {
        font-size: 18px;
    }

    .film-title {
        font-size: 20px;
    }

    .left-nav__href,
    .right-nav__href,
    .news {
        font-size: 16px;
    }

    .left-nav,
    .right-nav {
        width: 200px;
    }
}

@media (max-width: 1023px) {

    .burger__container {
        display: block;
        position: relative;
    }

    .burger {
        display: flex;
        align-items: center;
        margin: 10px 0;
        padding-left: 50px;
        height: 100%;
        background-image: url("../img/burger.png");
        background-size: 20px 20px;
        background-repeat: no-repeat;
        background-position: 10px center;
        color: white;
    }

    .burger-menu {
        position: absolute;
        padding: 10px 0;
        background-color: #292929;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        width: 200px;
        overflow: hidden;
        transition-duration: .5s;
    }

    .burger-hidden {
        padding: 0;
        height: 0;
        overflow: hidden;
        transition-duration: .5s;
    }

    .burger-menu__list {
        padding: 0 10px;
    }

    .header__item-burger {
        padding: 5px 10px;
    }

    .header__list {
        display: none;
    }

    .header__bottom {
        display: none;
    }

    header {
        height: auto;
    }

    main {
        padding-top: 50px;
    }

    article {
        display: none;
    }

    .article__less1024 {
        display: block;
        width: 200px;
    }

    .content {
        flex-grow: 1;
    }

    aside {
        width: 200px;
    }

    .left-nav,
    .right-nav,
    aside {
        margin: 0 0 20px 10px;
    }

}

@media (max-width: 767px) {

    .header__right {
        padding-left: 30px;
    }

    .left-container {
        display: none;
    }

    .content {
        margin-left: 10px;
        margin-right: 10px;
    }

    .films-description {
        margin-bottom: 20px;
        padding-right: 2em;
        line-height: 1.2em;
        text-align: justify;
        overflow: hidden;
    }

    .watch-online {
        margin-top: 0;
    }
}

@media (max-width: 475px) {

    .header__right {
        padding-left: 10px;
    }

    .header__search {
        max-width: 120px;
    }

    .burger {
        height: 30px;
        padding-left: 40px;
        font-size: 14px;
    }

    main {
        padding-top: 60px;
    }

    h1, h2 {
        font-size: 15px;
    }

    .film-title {
        margin: 10px;
    }

    .film-title {
        font-size: 18px;
    }

    .films-description {
        margin: 10px;
        padding: 10px 2em 10px 10px;
        font-size: 14px;
    }

    .content__img {
        width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 310px) {

    .header__right {
        flex-grow: 0;
    }

    .header__form {
        display: none;
    }

    .content {
        margin: 0;
    }

    .watch-online {
        padding: 25px 5px 25px 55px;
        display: inline-block;
        font-size: 21px;
        line-height: 1.3;
        background-size: 44px;
        cursor: pointer;
    }
}

@media (max-width: 250px) {
    .watch-online {
        padding-top: 10px;
        max-width: 100px;
    }

    .title {
        font-size: 18px;
    }
}
