@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Reset some default browser styles */
* {
    box-sizing: border-box
}

body {
    font-family: Verdana, sans-serif;
    margin: 0;
    background-image: url("../imgs/Backgrounds/background3.jpeg");
}

.mySlides {
    display: none
}

.mySlides img {
    vertical-align: middle;
}

.header {
    position: relative;
    top: 0;
    width: 100%;
    padding: 20px;
    background-color: #121212;
    height: 100px;
    opacity: 0.8;
}

.header img {
    float: left;
    border-radius: 50%;
    border: 2px solid white;
    height: 65px;
    cursor: pointer;
}

.name {
    margin-top: 15px;
    position: relative;
    margin-left: 100px;
    font-size: 28px;
    color: white;
    font-family: "Work Sans", sans-serif;
    cursor: pointer;
}

.footer {
    text-align: center;
    position: fixed;
    width: 100%;
    padding: 5px;
    background-color: #1f1e1e;
    opacity: 0.9;
    color: white;
    bottom: 0;
}

.footer a:default {
    color: white;
}

.footer a:visited {
    color: red
}

.footer a {
    color: red
}

.container {
    width: 70%;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0.9;
    position: relative;
    border: 4px solid black;
}

.banner {
    text-align: center;
    width: 100%;
    background-color: darkred;
    color: white;
    position: absolute;
    height: 50px;
    opacity: 0.8;
}

.banner-2 {
    text-align: center;
    width: 100%;
    background-color: darkred;
    color: white;
}

.banner-2 a:active {
    color: red;
}

.banner-2 a:visited {
    color: red;
}

.library-container {
    width: 100%;
    margin: 30px auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.book-view-container {
    width: 100%;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border: 4px solid black;
}

.book-view-container a {
    color: red;
}

.book-view-container a:visited {
    color: red;
}

.filter-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.filterDiv {
    width: 270px;
    height: 300px;
    margin: 20px;
    cursor: pointer;
    display: none;
}

.filterDiv img {
    width: 270px;
    height: 300px;
}

.filterDiv img:hover {
    border: 3px solid white;
}

.filterDiv p {
    margin-top: -70px;
    background-color: white;
    border: 1px solid black;
    opacity: 0.6;
}

.filterDiv p:hover {
    margin-top: -70px;
    background-color: white;
    border: 1px solid black;
    opacity: 0.9;
}

.filterDiv a {
    color: black;
    text-decoration: none;
}

.filterDiv a:visited {
    color: black;
}

/* Style the buttons */
.btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    background-color: #f1f1f1;
    cursor: pointer;
    margin: 5px;
}

.btn:hover {
    background-color: #ddd;
}

.btn.active {
    background-color: #666;
    color: white;
}

.show {
    display: block;
}

.back {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    color: black;
}

back:visited {
    color: black;
}

.book-view-container img {
    float: left;
    padding: 25px;
}

.book-view-container li {
    padding: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="subject"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group input[type="submit"] {
    background-color: red;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background-color: #4cae4c;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 4px solid black;
    transition: 0.6s ease;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    bottom: 50%;
    width: auto;
    padding: 17px;
    color: black;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Caption text */
.text {
    color: black;
    font-size: 35px;
    padding: 8px 12px;
    position: absolute;
    width: 100%;
    bottom: 50%;
    opacity: 0.9;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.6s ease;
    font-weight: 1000;
    background-color: white;
    border: 2px solid black;
}

.active,
.text:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Number text (1/3 etc) */
.numbertext {
    color: white;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {

    .name,
    .prev,
    .next,
    .text {
        font-size: 11px
    }
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    border: 4px solid white;
}

.sidebar a {
    padding: 18px 18px 18px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: red;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
    position: fixed;
    top: 25px;
    right: 15px;
}

.openbtn:hover {
    background-color: #444;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

@media (max-width: 900px) {

    /* CSS that should be displayed if width is equal to or less than 800px goes here */
    .footer {
        text-align: center;
        position: fixed;
        width: 100%;
        padding: 5px;
        background-color: #1f1e1e;
        opacity: 0.9;
        color: white;
        bottom: 0;
        height: 50px;
        font-size: 10px;
    }

    .footer a:default {
        color: white;
    }

    .footer a:visited {
        color: red
    }

    .footer a {
        color: red
    }

    /* Slideshow container */
    .slideshow-container {
        width: 400px;
        position: relative;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 10px;
        border: 4px solid black;
        transition: 0.6s ease;
    }

    /* Caption text */
    .text {
        color: black;
        font-size: 18px;
        padding: 8px 12px;
        position: absolute;
        width: 100%;
        bottom: 50%;
        opacity: 0.9;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.6s ease;
        font-weight: 1000;
        background-color: white;
        border: 2px solid black;
    }

    /* Next & previous buttons */
    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        bottom: 50%;
        width: auto;
        padding: 17px;
        color: black;
        font-weight: bold;
        font-size: 10px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
    }

    .name {
        margin-top: 15px;
        position: relative;
        margin-left: 100px;
        font-size: 18px;
        color: white;
        font-family: "Work Sans", sans-serif;
        cursor: pointer;
    }

    .book-view-container img {
        float: left;
        padding: 25px;
        width: 300px;
        height: 300px;
    }
}
