@import url(../style/reset.css);
@import url(../style/fonts.css);
@import url(../style/variables.css);

/* #region Page */
.page {
    max-width: var(--max-Desktop-width);
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.no-scroll {
    overflow-y: hidden;
}

.breadcrumbs {
    margin-top: 10px;
    font-size: 20px;

}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.breadcrumbs ul li {
    &:not(:last-child)::after {
        content: "/";
        margin-left: 5px;
    }
}

.side-bar {
    display: none;
}

button {
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}


button a {
    text-decoration: none;
    color: var(--accentColor);
}

button a:hover {
    color: white;
}

article {
    text-align: justify;
}

/* #endregion Page */
/* #region Burger Menu */
.side-bar {
    display: none;
    background-color: var(--sortList-color);
    height: 50px;
    padding-right: 5%;
    flex-direction: row-reverse;
    align-items: center;
}

.side-bar__icon {
    width: 32px;
}

/* #endregion Burger Menu */
/* #region Mobile SorlList */
.sortList-mobile {
    display: none;
    max-width: 1023px;
    background-color: var(--sortList-color);
    transition: 0.5s ease;

    position: fixed;
    top: 0;
    right: 0;
    left: 0;

}

.sortList-mobile__item {
    font-family: voljaFont;
    font-size: 24px;
    color: var(--accentColor);
    padding: 5% 20%;
    transition: 0.5s ease-in-out;
    text-align: center;
    padding-block: 30px;
}

.sortList-mobile__item:hover,
.sortList-mobile__item:active {
    font-family: voljaFontBold;
    background-color: var(--productsContainer-color);
    cursor: pointer;
}

.sortList-mobile__contianer {
    padding-block: 40px;
}

/* #endregion Mobile SortList */
/* #region Header */
.header__background {
    background-image: radial-gradient(circle, rgba(230, 227, 211, 0.4023984593837535) 0%, rgba(206, 198, 164, 0.9598214285714286) 86%), url(../img/cut.png);
    background-size: cover;
}

.header__container {
    height: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    padding: 2% 3%;
}

.header__logo-photo {
    border-radius: 4px;
    width: 250px;
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);

}

.header__text {
    padding: 2% 1%;
}

.header__text-image {
    width: 280px;
}

/* #endregion Header */
/* #region Main */
.main {
    display: flex;
    flex: 1;
}

strong {
    font-family: var(--boldFont-family);
}

.main-content__container {
    text-align: justify;
}

.main-content__mobile-poem {
    display: none;
    text-align: right;
}


/* #endregion Main */
/* #region Sort List */
.sortList {
    background-color: var(--sortList-color);
    flex: 1;
}

.sortList {
    flex: 1;
    background-color: var(--sortList-color);
}

.sortList__list {
    display: flex;
    flex-direction: column;
    margin-top: 15%;
}

.sortList__item {
    font-family: voljaFont;
    font-size: 30px;
    color: var(--accentColor);
    padding: 10% 0 10% 15%;
    transition: 0.5s ease-in-out;
}

.sortList__item:hover,
.sortList__item:active {
    font-family: voljaFontBold;
    background-color: var(--productsContainer-color);
    cursor: pointer;
}

/* #endregion Sort List */
/* #region Breadcrumbs */
.breadcrumbs a {
    color: var(--accentColorTwo);
    text-decoration: none;
    font-size: 1.25rem;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--accentColorTwo);
}


.breadcrumbs li {
    color: var(--accentColorTwo);
}

.breadcrumbs ul {
    margin-top: 20px;
    margin-bottom: 30px;
}



/* #endregion Breadcrumbs */
/* #region Main Content */
.main-content {
    font-family: var(--mainFont-family);
    line-height: 1.5;
    font-weight: 400;
    font-size: var(--font-size);
    background-color: var(--productsContainer-color);
    flex: 3;
}

.main-content__container {
    padding-inline: 5%;
    padding-bottom: 50px;
}


strong {
    font-family: var(--boldFont-family);
}

.main-content__mobile-poem {
    display: none;
}


/* #endregion Main Content */
/* #region BookCatalog */
.book-catalog {
    display: none;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* justify-content: center; */
}

.book-catalog__item {
    max-width: 200px;
    transition: transform 0.3s ease;
}

.book-catalog__item:hover {
    cursor: pointer;
    transform: scale(1.1);
    z-index: 2;
}

.book-catalog__item:hover .book-catalog__title {
    cursor: pointer;
    color: var(--accentColor);
    text-shadow: 4px 6px 9px white;
    z-index: 2;
}


.book-catalog_cover-photo:hover {
    cursor: pointer;
    box-shadow: 6px 6px 16px -1px rgba(77, 49, 39, 1);
    border-radius: 10px;
}


.book-catalog_cover-photo {
    display: flex;
    justify-content: center;
}

.book-catalog__cover-photo-style {
    border-radius: 10px;
}

.book-catalog__title {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 25px;
    /*font-family: var(--mainFont-family);*/
    font-weight: 700;
    font-style: normal;
}

/* #endregion Book Catalog */
/* #region EachBook */
.book-container {
    display: flex;
    flex-direction: column;
    font-family: var(--mainFont-family);
    font-size: var(--font-size);
}

.book-container__content {
    display: flex;
    gap: 10%;
    padding-bottom: 50px;

}

.book-container__info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.book-container__year {
    font-style: italic;
}

.book-container__image-style {
    width: 200px;
    border-radius: 10px;
}

.book-container__title {
    font-size: 30px;
    font-weight: bold;
}

.btn__download {
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

    background-color: var(--sortList-color);
    color: var(--accentColor);
    border-radius: 10px;
}

.btn__download:active,
.btn__download:hover {
    color: white;
    transform: translate(0, -10px);
    background-color: var(--accentColorTwo);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}


.bookDisActive {
    display: none;
}

.book-container__article-style {
    text-align: justify;
}

/* #endregion EachBook */
/* #region Articles */
.articles__container {
    font-size: var(--font-size);
    font-family: var(--mainFont-family);
    font-weight: 400;
    line-height: 1.5;
}

.article__title-link {
    color: var(--accentColor);
    text-decoration: none;

    font-size: 25px;
    font-family: var(--boldFont-family);
    font-weight: 700;
    font-style: normal;
    text-align: start;
}

.article__title-link:hover {
    cursor: pointer;
    color: var(--accentColor);
    text-shadow: 4px 6px 9px white;
    z-index: 2;
    transform: translateY(-8px);
}

.article__source {
    font-style: italic;
}

.article__title {
    font-family: var(--boldFont-family);
    font-weight: 700;
    font-style: normal;
    color: var(--accentColor);
    font-size: 25px;
}

/* #endregion Articles */
/* #region Each Article */
.article__image-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.article__image-wrapper p {
    font-size: 16px;
    display: block;
    max-width: 300px;
    text-align: center;
}

.article-img-size {
    max-width: 300px;
}

.article__title {
    margin-bottom: 20px;
}

.article__container pre {
    font-style: italic;
}


.article-signature {
    display: block;
    text-align: right;
    font-style: italic;
}

.article__btns {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.article__btn {
    width: 200px;
}

/* #endregion Each Article */
/* #region Footer */
footer {
    max-width: var(--max-Desktop-width);
    height: 100px;
    background-color: var(--accentColorTwo);
    margin-top: auto;
    margin: 0 auto;
}

/* #endregion Footer */
/* #region 404 page */
.error-picture__wrap {
    font-family: var(--mainFont-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 100vh;

}

.error-picture {
    width: 600px;
}

.error__link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 10px;
    padding-inline: 2vw;
    cursor: pointer;
    text-decoration: none;
    color: rgb(194, 151, 127);
    border: 2px solid rgb(194, 151, 127);
    border-radius: 5px;

}

.error__link:hover,
.error__link:active {
    color: var(--accentColor);
    border: 2px solid var(--accentColor);
    transform: translate(0, -10px);
}


/* #endregion 404 page */
/* #region Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .side-bar {
        display: flex;
    }

    .sortList {
        display: none;
    }

    .book-catalog {
        justify-content: center;
    }

    .error-picture {
        width: 500px;
    }
}

/* #endregion Tablet */
/* #region Mobile */
@media only screen and (max-width: 767px) and (orientation: portrait) {

    /* phones */
    .header__logo-photo {
        margin-bottom: 40px;
    }

    .main-content__container {
        padding-top: 20px;
    }

    .side-bar {
        display: flex;
    }

    .sortList {
        display: none;
    }

    .header__text {
        display: none;
    }

    .header__container {
        justify-content: center;
    }

    .book-catalog {
        justify-content: center;
        margin-top: 50px;
        gap: 60px;

    }

    .book-container__content {
        margin-top: 50px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .book-container__info {
        margin-top: 40px;
    }

    .article__btns {

        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .error-picture {
        width: 300px;
    }

    .main-content__mobile-poem {
        font-style: italic;
        margin-top: 50px;
        display: flex;
        justify-content: end;
    }


}

.error__btn {
    padding: 15px;
}

/* #endregion Mobile */