/***************** Reset styles ***************/

h1, h2, h3, h4, h5, h6, img, b, i, dl, dt, dd, ol, ul, li, a,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, footer, header, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

article, footer, header, nav, section {
    display: block;
}

/********************  Global styles  *******************/

body {
    position: relative;
    line-height: 1;
    font-family: Roboto, sans-serif;
}

.page {
    min-width: 1065px;
    max-width: 1065px;
    height: min-content;
    margin: 0 auto 10px;
}

/********************  Header  *******************/

.header {
    width: 100%;
    height: 650px;
    position: relative;
    overflow: hidden;
    margin-bottom: 84px;
}

.header__menu-open {
    display: none;
}

.header__main-image {
    width: 100%;
    height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
}

.header__main-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    position: absolute;
    text-shadow: 1px 1px 2px black;
    left: 50%;
    top: 26%;
    transform: translate(-50%, 0);
}

.header__home-button {
    position: absolute;
    height: 50px;
    width: 50px;
    left: 5px;
    top: 5px;
    background-color: rgb(210, 53, 53);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 45px;
    line-height: 42px;
    opacity: 0.8;
}

/********************  Main Menu  *******************/

.main-menu {
    width: 100%;
    height: 130px;
    padding: 0;
    margin: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: wrap;
}

.main-menu__close {
    display: none;
}

.main-menu__item {
    width: 251px;
    height: 55px;
    display: block;
    border-radius: 20px;
    text-align: center;
    line-height: 55px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.main-menu__item:hover {
    opacity: 0.8;
}

.main-menu__item--selected {
    border: 2px solid red;
}

.main-menu__item--night-town {
    background: linear-gradient(-57deg, #021E20, #BC13FE);
}

.main-menu__item--school-nostalgia {
    background: linear-gradient(-57deg, #E5E52A, #FE8113);
}

.main-menu__item--endless-clouds {
    background: linear-gradient(-57deg, #2C7EEA, #FFFFFF);
}

.main-menu__item--sweet-romance {
    background: linear-gradient(-57deg, #E80595, #93577F);
}

.main-menu__item--exiting-adventures {
    background: linear-gradient(-57deg, #2AE55C, #FE1313);
}

.main-menu__item--so-scary {
    background: linear-gradient(-57deg, #333333, #666666);
}

.main-menu__item--magical-charm {
    background: linear-gradient(-57deg, #05D9E8, #BC13FE);
}

.main-menu__item--cozy-retro {
    background: linear-gradient(-57deg, #615F49, #F5DA91);
}

/********************  Main content  *******************/

.content {
    width: 100%;
    height: min-content;
    padding: 0 75px;
    box-sizing: border-box;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 344px;
    height: 88px;
    margin: 60px auto;
    border-radius: 20px;
}

.pagination__pages {
    font-size: 32px;
    font-weight: bold;
    line-height: 88px;
}

.pagination__arrow {
    font-weight: bold;
    line-height: 88px;
    color: inherit;
    display: block;
    font-size: 64px;
    text-decoration: none;
}

.pagination__arrow--disabled {
    opacity: 0.8;
    cursor: default;
}


/********************  Footer  *******************/

.footer {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 20px;
}

.footer__copyright {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 20px;
}

.bottom-menu {
    width: 540px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.bottom-menu__item {
    color: inherit;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

/********************  Pop-Up  *******************/

.pop-up {
    display: grid;
    gap: 10px;
    padding: 20px 10px 10px;
    box-sizing: border-box;
    grid-template-columns: 349px 1fr 1fr 1fr;
    grid-template-rows: 110px 410px 1fr;
    width: 1067px;
    height: 750px;
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translate(-50%, 0);
}

.pop-up__cross {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}


.pop-up__image {
    grid-column: 1/3;
    grid-row: 1/3;
    border-radius: 10px;

    width: 338px;
    height: 507px;
    background-color: #000000;
    background-repeat: no-repeat;
    background-size: cover;
}

.pop-up__title {
    grid-column: 2/5;
    grid-row: 1/2;
    align-self: start;
    line-height: 115px;
    font-size: 40px;
    font-weight: bold;
    margin-top: -10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-up__information {
    display: flex;
    grid-column: 2/4;
    grid-row: 2/3;
    flex-direction: column;
    gap: 20px;
}

.pop-up__information-item {
    font-size: 20px;
    font-weight: bold;
}

.pop-up__annotation {
    grid-column: 1/5;
    grid-row: 3/4;
    box-sizing: border-box;
}

.pop-up__annotation-style {
    font-size: 20px;
    font-weight: bold;
    align-self: center;
}

.pop-up__seasons {
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-self: start;
    grid-column: 4/5;
    grid-row: 2/3;
}

/********************  Anime item  *******************/

.anime-item {
    width: 100%;
    min-height: 418px;
    height: min-content;
    margin: 60px 0;
    display: flex;
    flex-direction: row;
    padding: 10px;
    justify-content: space-between;
    gap: 40px;
    cursor: pointer;
    box-sizing: border-box;
}

.anime-item__cover {
    min-width: 275px;
}

.anime-item__cover-image {
    width: 100%;
}

.anime-item__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    position: relative;
}

.anime-item__content::after {
    content: "";
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.anime-item__title {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.anime-item__info {
    display: grid;
    grid-template-columns: min-content min-content;
    gap: 10px;
}

.anime-item__info-title {
    width: min-content;
    max-width: min-content;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}

.anime-item__info-title:not(:empty)::after {
    content: ":";
}

.anime-item__info-value {
    min-width: min-content;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    margin-inline-start: 0;
}

.anime-item__description {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: bold;
    overflow: hidden;
}

/********************  Mobile devices styles  *******************/

@media only screen and (max-width: 1067px) {
    body {
        margin: 0;
    }

    .page {
        min-width: 100%;
        max-width: 100%;
        height: min-content;
        margin: 0;
    }

    .content {
        padding: 0;
    }

    .header {
        width: 100%;
        height: unset;
        position: relative;
        overflow: hidden;
        margin: 5px auto 14px;
        aspect-ratio: 2.128;
    }

    .header__menu-open {
        display: block;
        width: 32px;
        height: 27px;
        position: absolute;
        right: 9px;
        top: 6px;
        cursor: pointer;
    }

    .header__main-image {
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
    }

    .header__main-title {
        font-size: 6vw;
        font-weight: bold;
        color: white;
        position: absolute;
        text-shadow: 1px 1px 2px black;
        left: 50%;
        top: 34%;
        transform: translate(-50%, 0);
    }

    .main-menu {
        display: flex;
        width: 290px;
        height: min-content;
        position: fixed;
        z-index: 100;
        right: 0;
        top: 0;
        padding: 66px 14px 22px;
        margin: 0;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 14px;
        background-color: #E0E6ED;
        border-bottom-left-radius: 20px;
        box-shadow: -1px 3px 2px 0 #888888;
    }

    .main-menu--mobile-hidden {
        display: none;
    }

    .main-menu__close {
        display: block;
        width: 18px;
        height: 18px;
        position: absolute;
        right: 14px;
        top: 14px;
        cursor: pointer;
    }

    .anime-item {
        gap: 20px;
        margin: 15px auto;
        padding: 10px;
        box-sizing: border-box;
        width: 97%;

    }

    .anime-item__cover {
        width: 33%;
        min-width: 33%;
    }

    .anime-item__content {
        width: 46%;
        min-width: 46%;
    }

    .anime-item__title {
        font-size: 16px;
    }

    .anime-item__description {
        font-size: 14px;
        line-height: 1.2;
        font-weight: bold;
        overflow: hidden;
    }

    .anime-item__info-title {
        font-size: 16px;
    }

    .anime-item__info-value {
        font-size: 16px;
    }

    .pop-up {
        display: grid;
        gap: 10px 15px;
        padding: 20px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 40px;
        grid-auto-rows: auto;
        width: 99%;
        height: min-content;
        position: fixed;
        top: 5px;
    }

    .pop-up__cross svg {
        width: 24px;
        height: 24px;
    }

    .pop-up__image {
        grid-column: 1/2;
        grid-row: 2/4;
        border-radius: 10px;
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        max-width: 320px;
        height: unset;
        max-height: unset;
        aspect-ratio: 0.66;
    }

    .pop-up__title {
        grid-column: 1/3;
        grid-row: 1/2;
        align-self: start;
        line-height: 30px;
        font-size: 20px;
        font-weight: bold;
        margin-top: 0;
    }

    .pop-up__information {
        display: flex;
        grid-column: 2/3;
        grid-row: 2/3;
        flex-direction: column;
        gap: 15px;
    }

    .pop-up__information-item {
        font-size: 14px;
        font-weight: bold;
    }

    .pop-up__annotation {
        grid-column: 1/3;
        grid-row: 4/5;
        box-sizing: border-box;
    }

    .pop-up__annotation-style {
        font-size: 14px;
        font-weight: bold;
        align-self: center;
    }

    .pop-up__seasons {
        display: flex;
        flex-direction: column;
        justify-content: right;
        align-self: start;
        grid-column: 2/3;
        grid-row: 3/4;
    }

    .footer__copyright {
        font-size: 14px;
        font-weight: normal;
    }

    .bottom-menu {
        width: 100%;
        gap: 20px;
        justify-content: flex-start;
    }

    .bottom-menu__item {
        font-size: 14px;
        font-weight: normal;
    }

    .footer {
        height: 80px;
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: space-between;
        padding: 10px;
        box-sizing: border-box;
    }
}