body {
    /* Full viewport height */
    height: 100vh;
    /* Remove default body margin */
    margin: 0;
    /* Remove default body padding */
    padding: 0;
    font-family: 'Century Gothic', sans-serif;
}

h1 {
    font-size: 26px;
    font-family: 'Century Gothic', sans-serif;
}

h2 {
    font-size: 20px;
    font-family: 'Century Gothic', sans-serif;
    text-align: center;
    vertical-align: middle;
    color: #2a2a2a
}

h3 {
    font-size: 18px;
    font-family: 'Century Gothic', sans-serif;
    text-align: center;
    vertical-align: middle;
    color: #2a2a2a
}

.Container p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 20px;
    text-align: center;
    align-items: center;
}

.Container {
    text-align: center;
}

.Login {

    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 1px 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    text-align: center;
    align-items: center;
    transform: translate(0%, -20%);
    animation: fadeInLogin 0.6s ease-in;
    margin-top: 20%;
}

.Login input[type="text"],
.Login input[type="password"] {
    width: calc(100% - 10px);
    /* Adjusted width to account for padding */
    padding: 5px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.Login button[type="submit"] {
    width: calc(100% - 10px);
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #77a7b5;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

div {
    font-family: verdana;
    font-size: 16px;
    left: 25%;
    animation: fadeIn 0.3s ease-in;
}

.divNoFade {
    font-family: verdana;
    font-size: 16px;
    text-align: center;
    left: 25%;
}

* {
    box-sizing: border-box;

}

@keyframes fadeInLogin {
    from {
        opacity: 0;
        transform: translateY(-22%);
    }

    to {
        opacity: 1;
        transform: translateY(-20%);
    }
}

@keyframes fadeIn {
    from {
        transform: translateY(-1%);

        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(-0%);
    }
}

body {
    margin: 0;
    font-family: 'Century Gothic', sans-serif;
}

.navBar {
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    letter-spacing: 1.3px;
    font-weight: 400;

    margin: 0px;
    top: 0;
    overflow: hidden;
    width: 100%;
    height: auto;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navBar .nav-logo {
    max-width: 100%;
    max-height: 60%;
    margin-right: 10px;
}

.navBar .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 65%;
    width: 100%;
}

.navBar a {
    flex: 1;
    display: block;
    color: black;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: background-color 0.0s ease, box-shadow 0.3s ease;
    /* Added box-shadow transition */
    margin: 2px;
}

.navBar a:hover {
    background: linear-gradient(40deg, #a3d8b1 10%, rgb(184, 215, 184) 100%);
    box-shadow: 0px 0px 20px rgba(255, 216, 145, 0.807);
    border-radius: 20px;
    color: black;
}

.navBar a.active {
    background: linear-gradient(40deg, #2e8846 10%, rgb(53, 155, 56) 100%);
    color: white;
    border-radius: 20px;
}


.navBar input[type=text] {
    border: none;
    font-size: 17px;
    padding: 6px;
    margin-right: 16px;
    height: 28px;
    /* Example height for input */
}



@media screen and (max-width: 600px) {

    .topnav a,
    .topnav input[type=text] {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .topnav input[type=text] {
        border: 1px solid #ccc;
    }
}

form {
    align-items: center;
    text-align: center;
}

.grid-container {
    display: grid;
    gap: 50px;
}

html,
body {
    height: 100%;
}

.wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button {
    min-width: 70px;
    min-height: 40px;
    display: inline-flex;
    font-family: 'Century Gothic', sans-serif;
    font-size: 15px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.3px;
    font-weight: 700;
    color: white;
    background: #2e8846;
    background: linear-gradient(40deg, #2e8846 10%, rgb(53, 155, 56) 100%);
    border: none;
    border-radius: 1000px;
    transition: all 0.3s ease-in-out 0s;
    cursor: pointer;
    outline: none;
    position: relative;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;

}

.button::before {
    content: '';
    border-radius: 1000px;
    min-width: calc(100px + 12px);
    min-height: calc(40px + 12px);
    box-shadow: 0 0 60px rgba(0, 0, 0, .0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all .3s ease-in-out 0s;
}

.button:hover,
.button:focus {
    color: #ffe89e;
    box-shadow: 0px 0px 20px rgba(255, 216, 145, 0.807);
    transform: translateY(-6px);

}

.button:hover::before,
.button:focus::before {
    opacity: 1;
}

.button::after {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border: 0px solid #023f17;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button:hover::after,
.button:focus::after {
    animation: none;
    display: none;
}

@keyframes ring {
    0% {
        width: 30px;
        height: 30px;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

#recentlyRead {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 3px;
    flex-wrap: wrap;
    max-height: 204px;
    overflow: auto;
    scroll-snap-type: y mandatory;
    padding-top: 5px;
    row-gap: 7px;
}

#currentlyReading{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 3px;
    flex-wrap: wrap;
    max-height: 204px;
    overflow: auto;
    scroll-snap-type: y mandatory;
    padding-top: 5px;
    row-gap: 7px;
}

.book-item {
    margin-left: 2px;
    margin-right: 2px;
    padding: 5px;
    transition: transform 0.3s ease-in-out;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    /* Center content vertically within each item */

}

.book-item img {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.695);
    border-radius: 1px;
}


.book-item:hover {
    transform: scale(1.1);
    /* Scale up on hover */
}

.book-details {
    display: none;
    /* Hide details by default */
    background-color: rgba(255, 255, 255, 0.607);
    padding: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    overflow: auto;

}

.modal-header {
    align-items: center;
    text-align: center;
    vertical-align: middle;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, background-color 0.5s ease;
}

.modal-overlay.show {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    text-align: center;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-body {
    overflow-y: auto;
    max-height: 60vh;
}

.modal img {
    max-width: 60%;
    height: auto;
    margin-bottom: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 15px;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
}


.button {
    margin-top: 20px;
}
