/* Global */
.btn-primary {
    background-color: #1d3c47;
    border-width: 2px;
    border-color: #1d3c47;
}
.btn-primary:hover {
    background-color: #E9CC1E;
    color: #1d3c47;
} 
/* Index Page */
body {
    font-family: "Mulish", sans-serif !important;
}
.hero img {
    max-width: 100%;
}
.section {
    padding: 50px 0;
}
.footer {
    background-color: #12262d;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.custom-btn {
    background-color: #1d3c47;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.5s;
}
.custom-btn:hover {
    background-color: #E9CC1E;
    color: #1d3c47;
}

.btn-outline {
    background-color: #fff;
    color: #1d3c47;
    border: 1px solid #1d3c47;
    padding: 10px 20px;
    border-radius: 5px;
}
.btn-outline:hover {
    background-color: #1d3c47;
    color: #fff;
}

.illustration {
    max-width: 100%;
}

@media only screen and (max-width: 600px) {
    .custom-btn {
        width: 100%; /* Auto width on larger screens */
    }

    .h1 {
        margin-top: 40px;
    }
}


/* Resource Page */
.resource-card img {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.resource-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}
.resource-card:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.resource-card .card-body {
    padding: 10px;
}

/* Book Reader */
#contents-list .thumb-canvas {
    max-width: 100% !important; /* adjust as needed */

}


@media only screen and (max-width: 600px) {
    /* Book Reader */
    .book-container {
        flex-direction: column;
    }

    .sidebar {
        flex-direction: row !important;
        height: auto !important;
        width: 100% !important;
    }

    .pdf-container {
        height: calc(100vh - 285px) !important;
    }

    .right-controls {
        height: auto !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        width: 100% !important;
    }

    .col-md-10 {
        width: 100% !important;
    }

    #bookmark-sidebar {
        margin-top: 0 !important;
    }
}

