@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

*, html {  
    font-family: 'Mulish', sans-serif;
}

a {
    text-decoration: none;
    color: #0084D7;
}

body {
    background-color: #f4f4f4;
}

tr {
    box-shadow: 1px 5px 5px rgba(0,0,0,.04);
}

.cta {
    padding-top: 20px;
}

.logo img {
    margin-bottom: 20px;
}

.s-read {
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    display: inline-block;
    padding: 5px 30px;
}

.card {
    padding: 0 0 40px 0;
}

.card img {
    height: 300px;
    object-fit: cover;
    object-position: center-center;
}

.card-body {
    min-height: 100px;
}

.book-img {
    width: 100px;
    height: auto;
    border: 5px solid white;
    box-shadow: 1px 3px 5px rgba(0,0,0,.3);
}

.book-details {
    text-align: left;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.price {
    margin-top: 10px;
    font-size: 16px;
}

.discount {
    color: red;
    font-size: 12px;
}

.card-btn {
    background: transparent;
    width: 200px;
    margin: 0 auto;
    border-radius: 4px;
    font-size: 14px;
    color: #0084D7;
    border: 1px solid rgb(218, 220, 224);
}

.card-btn:hover {
    color: rgb(118, 120, 124);
    border: 1px solid rgb(218, 220, 224);
}

.badge {
    border: 1px solid rgb(255, 255, 255);
}

.fa-info-circle {
    font-size: 18px;
}

/* Pop-up container */
.popupBkg {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    z-index: 1000;
    display: none;
    overflow: auto;
    position: sticky;
}

.popup {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    z-index: 1000;
    display: none;
    color: #616161;
    max-width: 100%;
    position: sticky;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 10px rgba(10, 0, 0, 0.05);
}

/* Pop-up content */
.popup-content {
    padding: 30px;
    position: relative;
    animation: rise 0.5s ease-out;
}

/* Close button */
span.close {
    position: absolute;
    top: -5px;
    right: 5px;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    color: red;
}

/* Animation for the pop-up */
@keyframes rise {
    from {
        transform: translateY(100%) scaleY(0.2);
        opacity: 0;
    }
    to {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .popupBkg {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        display: none;
        overflow: auto;
        position: fixed;
    }
    .popup {
        width: 98%;
        height: 100%;
        padding-top: 20%;
        max-height: 100vh;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.97);
    }
    span.close {
        top: -35px;
        right: 15px;
        font-size: 24px;
    }
}

.text-primary {
    color: #0084D7;
}


.form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
    background-color: white;
}

.form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
}

.form-container input[type=text] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
}

.form-container .cancel {
    background-color: red;
}

.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10;
    padding: 2% 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 96%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 500px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/*Bootstrap Alterations*/


@media screen and (max-width: 786px) {
    .card {
        margin: 0 auto;
    }
}