@import url("./font-open-sans.css");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --background1: #f4f1e5;
    --background2: #ded1bd;
    --gray: #8e8d8a;
    --primary: #e85a4f;
    --secondary: #e98074;
    --black: #3a3a3a;
    --white: #ffffff;
    --accent: #ffba4b;
    --fontcol1: #803e08;
}

/* ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #f1eaea;
    border-radius: 10px;
} */

/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #bea579;
    border-radius: 10px;
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #c4b5ac;
} */

/* .main-content {
    min-height: 80vh;
} */

body {
    color: var(--black);
    font-family: "Open Sans", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: var(--background1);
}

header,
footer {
    background-color: var(--background2);
}

header a,
footer a,
#login_form a,
#register_form a,
#forgotPasswordCard a {
    /* color: var(--black); */
    color: #613d0e;
    text-decoration: none;
    transition: 0.2s;
}

.nav-link {
    font-size: small;
    color: var(--black);
}

.nav-link:hover,
header a:hover,
#login_form a:hover,
#register_form a:hover,
#forgotPasswordCard a:hover {
    /* color: var(--secondary); */
    color: #803e08;
}

.nav-link:focus,
header a:focus,
#login_form a:focus,
#register_form a:focus,
#forgotPasswordCard a:focus {
    /* color: var(--secondary); */
    color: #803e08;
}

label {
    font-size: small;
    font-weight: 600;
}

.form {
    position: relative;
}

.form .fa-search {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #9ca3af;
}

.form span {
    position: absolute;
    right: 17px;
    top: 13px;
    padding: 2px;
    border-left: 1px solid #d1d5db;
}

.left-pan {
    padding-left: 7px;
}

.left-pan i {
    padding-left: 10px;
}

.form-input {
    height: 55px;
    text-indent: 33px;
    border-radius: 18px;
}

.form-input:focus {
    box-shadow: none;
    border: none;
}

.magazine_card,
.custom_card {
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: 0.3s;
    width: 12rem;
    margin: 0.6rem;
}

.magazine_card:hover {
    scale: 104%;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
        rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

.magazine_card_img {
    width: 10rem;
    height: 12rem;
    padding: 0;
    padding-top: 0.75rem;
    margin: 0 auto;
    object-fit: cover;
}

.magazine_card_description_div {
    padding: 0.75rem 1rem 1.5rem 1rem;
    font-size: 0.8rem;
}

.btn-custom {
    background-color: #7a5537;
    color: #ffffff;
}

.btn-custom:focus {
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(222, 162, 129, 0.5);
}

.btn-custom:active {
    color: #fff;
    background-color: #8d6647;
    border-color: #7a5537;
}

.btn-custom:hover {
    color: #fff;
    background-color: #694a31;
    border-color: #69482d;
}

.btn-custom-outlined {
    color: #7a5537;
    background-color: transparent;
    border: 1px solid #7a5537;
}

.btn-custom-outlined:hover {
    color: #fff;
    background-color: #694a31;
    border-color: #69482d;
}

.btn-custom-outlined:focus {
    color: #7a5537;
    box-shadow: 0 0 0 0.25rem rgba(222, 162, 129, 0.5);
}

.btn-custom-outlined:active {
    color: #fff;
    background-color: #8d6647;
    border-color: #7a5537;
}

.magazine_card_description_span {
    font-size: 0.7rem;
    display: block;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.view_details_button {
    font-weight: 300;
    text-align: center;
    font-size: 1rem;
    width: 10rem;
    background-color: black;
    height: 11.2rem;
    position: absolute;
    margin: 0.75rem 0;
    padding: 4rem 0;
    color: white;
    opacity: 0;
    transition: 0.25s;
}

.view_details_button:hover {
    cursor: pointer;
    opacity: 0.5;
}

.pdf_doc_preview {
    width: 100%;
    height: 75vh;
    margin: 0 auto;
    display: flex;
}

.main_container {
    display: flex;
    justify-content: center;
}

small {
    font-weight: 600;
    font-size: 0.8rem;
}

ul {
    list-style-type: none;
}

ul a {
    text-decoration: none !important;
}

.customLoader {
    position: absolute;
    z-index: 2;
    background-color: #ffffffb3;
    height: 100vh;
    width: 100vw;
    padding: 40vh 40vw;
    transition: 0.3s;
}

.hollowLoader {
    width: 3em;
    height: 3em;
    -webkit-animation: loaderAnim 1.25s infinite ease-in-out;
    animation: loaderAnim 1.25s infinite ease-in-out;
    outline: 1px solid transparent;
}

.hollowLoader .largeBox {
    height: 3em;
    width: 3em;
    background-color: #9a784b;
    outline: 1px solid transparent;
}

.hollowLoader .smallBox {
    height: 3em;
    width: 3em;
    background-color: #ffffff;
    z-index: 1;
    outline: 1px solid transparent;
    -webkit-animation: smallBoxAnim 1.25s alternate infinite ease-in-out;
    animation: smallBoxAnim 1.25s alternate infinite ease-in-out;
}

@-webkit-keyframes smallBoxAnim {
    0% {
        transform: scale(0.2);
    }

    100% {
        transform: scale(0.75);
    }
}

@keyframes smallBoxAnim {
    0% {
        transform: scale(0.2);
    }

    100% {
        transform: scale(0.75);
    }
}

@-webkit-keyframes loaderAnim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }
}

@keyframes loaderAnim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(90deg);
    }
}

.file_preview_img {
    width: 45vw;
    margin: auto;
}

#pdf_doc_preview_div {
    display: flex;
    height: 75vh;
    overflow-y: scroll;
}

.doc_controls_div {
    display: flex;
    justify-content: center;
}

.doc_control_btn {
    font-size: 1.25rem;
    padding: 0 0.35rem;
    margin: 8px;
    border-radius: 25px;
}

.total_document_count_div {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    width: 16rem;
    border: 1px solid #dbc3ad;
    border-radius: 18px;
}

#alphabet_btns_div,
.year_btns_div,
.category_name_btns_div,
.month_btns_div {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
}

#alphabet_btns_div,
#book_filter_btns_div {
    max-height: 60vh;
    overflow-y: scroll;
    padding: 2px;
}

.alphabetBtn {
    width: 18px;
    text-align: center;
}

.filterDivBtn {
    color: #555555;
    text-decoration: none;
    cursor: pointer;
    padding: 0 6px;
    margin: 2px;
    border-radius: 12px;
    transition: 0.3s;
}

.filterDivBtn:hover {
    scale: 120%;
    color: #000000 !important;
}

.accordion {
    font-size: 0.8rem;
    width: 100%;
    margin: none;
}

.accordion-button {
    font-size: 0.9rem !important;
    padding: 0.2rem 1rem;
}

.accordion-button::after {
    background-image: initial;
}

.accordion-button:not(.collapsed) {
    color: #76460b;
    background-color: #fff9e7;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);
}

.accordion-button:not(.collapsed)::after {
    background-image: initial;
    color: #76460b;
    background-color: #fff9e7;
}

.accordion-button:focus {
    border-color: #fec886;
    box-shadow: 0 0 0 0.25rem rgba(253, 121, 13, 0.25);
}

#login_form label,
#register_form label {
    font-family: "Montserrat", "sans-serif";
    font-weight: 500;
}

#img_drag_prevent {
    z-index: 5;
    position: absolute;
    background-color: #000000;
    opacity: 0.5;
    /* top: 3.5rem;
    left: 3.5rem; */
    top: 0;
    left: 0;
}
