.header {
    background-color: rgb(30, 30, 36);
    background-image: url("/static/images/goblin-juice-cover.png");
    background-size: 935px 250px;
    text-align: center;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    width: 935px;
    height: 250px;
}

.center {
    display: block;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.comic-banner {
    width: 100%;
    height: 70px;
    background-color: rgb(80, 50, 60);
    border-bottom: 1px solid rgba(127, 255, 212, 0.192);
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 8px 20px;
}

.comic-banner-title {
    font-family: "jf_dot_ayu";
    color: aquamarine;
    font-size: 24px;
}

.comic-wrapper {
    width: 100%;
    background-color: rgb(15, 15, 18);
    min-height: 100vh;
    padding-top: 42px;
    padding-bottom: 0;
}

.comic-banner-title {
    font-family: "jf_dot_ayu";
    color: aquamarine;
    font-size: 24px;
}

.comic-wrapper {
    width: 100%;
    background-color: rgb(15, 15, 18);
    min-height: 100vh;
    padding-top: 42px;
}

.comic-wrapper {
    width: 100%;
    background-color: rgb(15, 15, 18);
    min-height: 100vh;
    padding-top: 42px;
}

.comic-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.comic-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.control-panel {
    position: relative;
    width: 100%;
    background-color: #202221;
    border: 1px solid rgba(127, 255, 212, 0.192);
    align-content: center;
    text-align: center;
    color: rgb(0, 0, 0);
    display: flex;
    padding: 8px;
    justify-content: center;
    box-sizing: border-box;
}

.control-panel-bottom {
    position: relative;
    width: 100%;
    background-color: #202221;
    border: 1px solid rgba(127, 255, 212, 0.192);
    text-align: center;
    display: flex;
    padding: 8px;
    justify-content: center;
    box-sizing: border-box;
}

.control-panel button {
    margin: 0 10px;
}

.control-panel span {
    margin: 0 10px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
    user-select: none;
    background-color: rgb(15, 15, 18);
    padding: 20px 0;
}

.carousel-slide {
    display: flex;
    align-items: center;
}

.carousel-image {
    display: none;
    visibility: hidden;
    max-width: 1080px;
    width: auto;
    display: none;
    height: auto;
    pointer-events: none;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.prev-overlay {
    left: 0;
}

.next-overlay {
    right: 0;
}

.carousel-overlay:hover {
    opacity: 0.5; /* Slightly visible on hover */
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.685); /* Slightly transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it appears above all other content */
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border-top: 4px solid rgb(26, 238, 210);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#scrollToTopButton {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    background-color: hsla(0, 0%, 0%, 0.5);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    transition: background-color .3s, opacity .3s ease-in-out;
}

#scrollToTopButton:hover {
    background-color: rgb(26, 238, 210);

}
#scrollToTopButton.show {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    border: 1px solid rgba(127, 255, 212, 0.192);
    background-color: #151616;
    padding: 20px;
    border-radius: 1px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.login-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}