
/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.container_pop {
    height: 350px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
}

.form {
    position: absolute;
    max-width: 430px;
    width: 100%;
    padding: 0px 30px 30px 30px;
}

.form.signup {
    opacity: 0;
    pointer-events: none;
}

.forms.show-signup .form.signup {
    opacity: 1;
    pointer-events: auto;
}

.forms.show-signup .form.login {
    opacity: 0;
    pointer-events: none;
}

header {
    font-size: 28px;
    font-weight: 600;
    color: #232836;
    text-align: center;
}

.field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
    border-radius: 6px;
}

.field input,
.field button {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
}

.field input {
    outline: none;
    padding: 0 15px;
    border: 1px solid #CACACA;
}

.field input:focus {
    border-bottom-width: 2px;
}

.field button {
    color: #fff;
    background-color: #0171d3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.field button:hover {
    background-color: #016dcb;
}

.form-link {
    text-align: center;
    margin-top: 10px;
}

.form-link span,
.form-link a {
    font-size: 14px;
    font-weight: 400;
    color: #232836;
}

.form a {
    color: #0171d3;
    text-decoration: none;
}

.form_content a:hover {
    text-decoration: underline;
}

/* Hide number input spinners for Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input spinners for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Modal CSS */
.modal_pop {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 20px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal_content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 500px;
    border-radius: 30px;
}

.close_pop {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
}

.close_pop:hover,
.close_pop:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 550px) {
    .modal_content {
        width: 97%;
    }
}

/* main_head_div start */

.main_head_div {
    margin-top: 15px;
    padding: 10px;
}

.main_book_container {
    border: 1px solid;
    padding: 20px;
}

.sub_container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.left_side,
.right_side {
    width: 49%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.left_side {
    border-right: 1px solid;
}

.book_img {
    width: 85%;
}

.book_h2 {
    margin-bottom: 10px;
}

.book_h3 {
    margin-bottom: 20px;
    color: #016dcb;
}

.button_book {
    display: inline-block;
    padding: 15px 25px;
    width: 100%;
    min-width: 290px;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #fff;
    background-color: #c18307;
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px #999;
}

.logout_btn {
    background-color: #ff2a3c;
    color: white;
    border: none;
    padding: 5px 20px;
    display: block;
    width: 200px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout_btn:hover {
    background-color: #ff4b5c;
}

.logout_div {
    margin-bottom: 20px;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader.hidden {
    display: none;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 7px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.7s linear infinite;
}

@keyframes spinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.card_div {
    margin-top: 25px;
}

@media (width < 700px) {
    .sub_container {
        flex-direction: column-reverse;
    }

    .left_side {
        border-right: none;
        border-top: 1px solid;
        margin-top: 25px;
    }

    .book_img {
        width: 100%;
    }

    .left_side,
    .right_side {
        width: 100%;
    }
}

@media (width < 370px) {
    .button_book {
        font-size: 14px;
    }
}

