* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f9;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;

}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logout-btn {
    padding: 10px 30px;
    background-color: #f90;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 900;
}

.hero-text img {
    width: 100%;
    height: auto;
    overflow-x: auto;
    margin-bottom: 30px;
    display: flex;
}

.carousel {
    display: flex;
    overflow-x: auto;

    gap: 15px;

    margin-top: 10px;
    margin-bottom: 30px;
}



.carousel img {
    height: 200px;
    border-radius: 5px;
}

.layout {
    display: flex;
}

.sidebar {
    width: 15%;
    background-color: #ffffff;

    margin-bottom: auto;
    margin-top: 20px;
    border-radius: 20px;
    margin-left: 50px;
    text-align: center;
    display: grid;
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    background-color: #22333b;
    color: white;
    padding: 12px;
    text-align: center;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}


.sidebar button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
}

.sidebar a {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    color: #000;
    /* make text black */
    text-decoration: none;
}

.sidebar a:hover {
    background: #f0f0f0;
}

.sidebar a.active {
    background: #ffb845;
    color: #000;
    font-weight: bold;
}

.sidebar button.active {
    background: #f90;
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 20px;
    background-color: white;
    height: 150px;
    margin-right: 50px;
}

.filters select,
.filters input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#searchBar {

    width: 900px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 30px;
    background-color: #edf0f7;
    height: auto;
    display: flex;
    flex-wrap: wrap;

}

.lahi {
    margin-top: 0px;
}

#yearFilter {
    border-radius: 50px;
}

#courseInput {
    border-radius: 50px;
    background-color: #edf0f7;

}

#programInput {
    border-radius: 50px;
    background-color: #edf0f7;

}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-right: 50px;
}

.book-card {
    background: white;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;

}

.book-card img {
    height: 180px;
    margin-bottom: 10px;
}

footer {
    padding: 10px;

    background: #05014a;
    color: white;
    text-align: center;
    margin-top: 40px;
}

.foter {

    align-items: center;

}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 75%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    /* side-by-side */
    gap: 25px;
    position: relative;
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}



.close:hover {
    color: #000;
}


.close {
    float: right;
    cursor: pointer;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 50%;
        box-shadow: none;
        padding: 10px;
    }

}

.carousel-container {
    position: relative;
    width: 100%;

    margin: auto;
    overflow: hidden;



}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.arrow.left {
    left: -15px;
}

.arrow.right {
    right: -15px;

}

.arrow svg {
    width: 30px;
    /* larger arrow */
    height: 30px;
    fill: black;
    color: blue;
}


.arrow:hover {
    background-color: #f8f8f8;
}

#e-book {
    text-align: center;
    background-color: #ffb845;
    border-radius: 40px;

    width: 200px;
    align-items: center;
    margin-left: 10px;
}

h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 600;
    margin-left: 35px;
}


footer {
    background-color: #05014a;
    width: 100%;
    height: 4rem;
    padding: 1rem;

}

.footer-img {
    max-width: 100%;
    height: 2rem;
}

.a51-footer {
    text-align: center;
}

.a51-footer h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

.modal-wide {
    width: 70%;
    max-width: 900px;
}

.modal-body-flex {
    display: flex;
    gap: 25px;
}

.modal-left img {
    width: 250px;
    height: auto;
    border-radius: 8px;
}

.modal-right {
    flex: 1;
}