/* <HEADER> */

.navbar {
    background: #fff;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom:solid #8989899c 1px;       
}

.left-navbar {
    width: 500px;   
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.right-navbar {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}

.navbar-list {
    min-width: 400px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0 2rem;
    align-items: center;
}
.navbar-list svg{
    color: #ae7c30;
}
.navbar-list svg:hover{
    cursor: pointer;
}
.cart-container {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.411);
    transition: all 0.5s ease;
}
.cart-header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
}
.cart-container.visible{
    display: grid !important;
    animation: dropdown 0.5s ease;
    flex-direction: column;
}
.cart-container.hide{
    animation: blowup 0.5s ease;
}
@keyframes blowup{
    0%{
        background: rgba(0, 0, 0, 0);
        transform: translateY(0);
    }
    100%{
        background: rgba(255, 255, 255, 0);
        transform: translateY(-100%);
    }
}
@keyframes dropdown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.cart {
    width: 600px;
    max-width: 95vw;
    min-height: 400px;
    max-height: 600px;
    background-color: #fff;
    color: #222;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 32px;
}
.navbar-list svg:hover{
    cursor: pointer;
}

.navbar-list li {
    display: inline;
}
.navbar-list a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.navbar-list a:hover {
    color: #c57c39;
}

.logo{
    font-weight: bold;
    font-size: 2em;
    color:#ae7c30;
}
.logo:hover{
    cursor:pointer;
}


.header {
    background-color: #ccc;
}

/* CLOSING <HEADER> */

* {
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* MAIN FONT OF THE DOCUMENT */
}

.container {
    /* CONTAINER WIDTH */
    max-width: 1820px;
    margin: 0 auto;
}

.sub-container {
    max-width: 1440px;
    margin: 0 auto;
}

.numeral {
    font-size: 42px;
}



/* RECOMMENDS_SECTION */

.recs {
    padding: 20px;
}

.recs__title {
    font-size: 3rem;
    font-weight: 500;
    color: #65520E;
    /* RECOMMENDS TITLE COLOR */
}

.recs__grid {
    padding: 40px 0;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, minmax(150px, 250px));
    column-gap: 25px;
    grid-template-rows: repeat(1, 385px);
    row-gap: 70px;
    margin: auto;
}

.first-book {
    grid-column-start: 1;
    grid-row-start: 1;
}

.second-book {
    grid-column-start: 2;
    grid-row-start: 1;
}

.third-book {
    grid-column-start: 3;
    grid-row-start: 1;
}

.fourth-book {
    grid-column-start: 4;
    grid-row-start: 1;
}

.text-inf {
    grid-column: 1/4;
    grid-row: 2;

    font-size: 24px;
    font-weight: 600;
    color: #65520E;
    /* TEXT INFORMATION COLOR */
    text-decoration: none;
}

.text {
    max-width: 800px;
}

.fifth-book {
    grid-column: 5;
    grid-row: 1;
}

.sixth-book {
    grid-column: 4;
    grid-row: 2;
}

.seventh-book {
    grid-column: 5;
    grid-row: 2;
}

.book__cover {
    padding: 20px;
    background-color: #c693609e;
    /* BACKGROUND COLOR OF CARD BOOK */
    height: 80%;
    border-radius: 3px;
}

.book__cover img{
    width: 100%;
    height: 100%;
}

.book__name {
    font-size: 24px;
    font-weight: 700;
    margin-left: 20px;
    margin-top: 10px;
}

.book_descr {
    font-weight: 400;
    margin-left: 20px;
}

.recs__elem {
    height: 100%;
}

/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */


/* FORM SECTION */


form {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 130px 90px 90px 130px 90px 130px 130px 130px 60px;
    row-gap: 25px;
}

.form {
    margin: 70px 0;
}

.form__item {
    border-top: #473a08 1px solid;
}

.form__title {
    font-size: 3rem;
    font-weight: 500;
    color: #65520E;
    /* FORM TITLE COLOR */
    text-align: center;
}

.form-block {
    position: relative;
    padding: 67px 134px;
    margin: 40px;
    background: linear-gradient(-135deg, #ffe6d3 10%, #feeee1 60%, rgb(255, 240, 217) 100%);
    /* BACKGROUND COLOR OF FORM */
    border-radius: 10px;
}

.form-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #cccccc90 url('../resources/loading.gif') center / 150px no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s all;
}


.form-block._sending::after {
    opacity: 1;
    visibility: visible;
}

.form__label {
    color: #473a08;
    /* COLOR OF QUESTIONS */
    font-size: 1.25em;
    font-weight: 600;
}

.form__input {
    display: block;

    padding: 5px 15px;
    font-size: 16px;
    border: none;
    width: 100%;
    max-width: 350px;
    min-height: 30px;
    border-radius: 2px;
    margin-top: 15px;
}

.submit-btn {
    justify-self: end;
    width: 250px;
    height: 60px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    background-color: #F29D1D;
    /* COLOR OF SUBMIT BUTTON */
    border: none;
    border-radius: 8px;
    transition: 0.4s all;
}

.submit-btn:hover {
    transform: scale(1.03);
}

.options__item {
    margin: 15px 0 20px 0;
}

.options__select_item {
    margin-top: 35px;
}

.options__select {
    display: none;
}

.form__select_label {
    display: inline-block;
    background-color: #ccc;
    padding: 15px 20px;
    border-radius: 3px;
    font-family: Arial;
    font-size: 16px;
    cursor: pointer;
    transition: 0.1s all;
}

.form__select_label:hover {
    background-color: #9c9c9c;
}

.options__select_item input[type="radio"]:checked+label {
    background-color: #65520E;
    color: #fff;
}


.options__item input[type="radio"] {
    font: inherit;
    color: currentColor;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid currentColor;
    border-radius: 50%;
}

/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */
/* ----------------------------------------------------------------- */

/* RESPONSE */

.response {
    position: relative;
    display: none;
    background: linear-gradient(-135deg, #ffe6d3 10%, #feeee1 60%, rgb(255, 240, 217) 100%);
    margin: 40px;
    padding: 67px 134px;
}

.response__info {
    font-size: 18px;
    font-weight: 600;
    color: #473a08;
}


.response::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #cccccc90 url('../resources/loading.gif') center / 150px no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s all;
}


.response._sending::after {
    opacity: 1;
    visibility: visible;
}


.hidden {
    display: none;
}
.show {
    display: block;
}