:root {
    --primary-color: #7e45f5;
    --secondary-color: #ffc301;
    --accent-color: #1ae2f7;
    --background-color: #f4f3f8;
    --text-color: #333;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Catamaran', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin:0;
    padding:0;
}

header {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 90px;
    margin:0 auto;
    min-height: 100vh;
}

.container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}
#currentPageContainer{
    max-width: 90%;
    min-height: 100vh;
    width: 1200px;
}

.header-content {
    display: flex;
    justify-content: center; /* Center all content */
    align-items: center;
    width: 100%;
}

#book-title {
    font-size: 1.8rem;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#tt-logo {
    max-width: 45px;
    height: auto;
}

.header-icons {
    display: flex;
    gap: 20px;
    position: absolute;
    right: 10px;
}

.header-icons i {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-icons i:hover {
    color: var(--secondary-color);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-menu ul li {
    margin: 1rem 0;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu .fa-times {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.fa-book{
    color: var(--primary-color);
}
.fa-circle-check{
    color: rgb(85, 207, 85);
}
.fa-heart{
    color: rgb(218, 94, 94);
}
#markCompleteBtn {
    position: absolute;
    right: 150px; /* Adjust according to your layout needs */
    font-size: 1rem;
    font-weight: 600;
    padding: 7px 10px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
}
#markCompleteBtn:hover {
    background-color: var(--primary-color);
}

h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
}
.page-title {
    font-size: 1.8rem;
    margin: 1rem auto;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    width:75%;
    min-width:500px;
}

/* Main container to hold the login form */
.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

/* Form Title */
.login-container h2 {
    color: var(--primary-color, #5A3DFF); /* Adjust primary color */
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Input Fields Styling */
.login-container input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Focus on input fields */
.login-container input:focus {
    border-color: var(--primary-color, #5A3DFF);
    outline: none;
}

/* Button Styling */
.login-container button {
    background-color: #00c3ff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    width: 100%; /* Full width */
}

.login-container button:hover {
    background-color: #009fd9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
#status-widget {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    animation: slideIn 0.3s ease-out;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

button {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(126, 69, 245, 0.2);
}


/*
button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}*/

#bookContainer {
    margin-top: 70px;
    width:100%;
    
}

.page {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    height: 100%;
    overflow-y: visible;
}

.page h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-content {
    margin-bottom: 1rem;
}

#bookPages {
    /* Adjusted margin */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering horizontally */
    gap: 1rem;
}

/* Image Section Styling */
.image-section {
    /*display: flex;
    flex-direction: column;
    align-items: center;*/
    margin-top: 20px; /* Add space above the image section */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.visible{
    opacity: 1;
}
.invisible{
    opacity: 0;
}

.image-section.visible {
    opacity: 1;
}
.image-section.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Main Image Styling */
.main-image-container {
    width: 100%;
    /*display: flex;
    justify-content: center;*/
    margin-bottom: 20px;
    display: inline-block;
}

.main-image img {
    width: 67%; /* Center the image and limit its size */
    min-width: 250px;
    max-width: 800px;
    height: auto;
}

/* Alternate Images Container */
.alta-images-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Individual Alternate Image Styling */
.alta-image img {
    max-width: 150px;
    height: auto;
}

/* Alternate Images Label */
.alt-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* Image Container */
.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.image-container.favorite {
    border: 2px solid #ffc301;
    border-radius: 5px;
    max-height: 125px;
}

.image-container p {
    margin-top: 5px;
    font-size: 0.8em;
}

/* Initial state for images (hidden) */
.image-container img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* When image is loaded, fade it in */
.image-container img.loaded {
    opacity: 1;
}

.full-screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    animation: fadeInFullScreen 0.3s forwards; /* Fade-in animation */
}

@keyframes fadeInFullScreen {
    to { opacity: 1; }
}

@keyframes fadeOutFullScreen {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.full-screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    /*height: calc(100% - 4rem);*/
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInFullScreen 0.3s ease-out forwards; /* Slide-in animation */
}

@keyframes slideInFullScreen {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.full-screen-image {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
}

.image-name-display {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
}
.favorite-toggle.favorite {
    background-color: #ffc301;
}

.fetching-banner {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.full-screen-buttons {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    font-size: 1.2rem;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure the buttons stay in a row */
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.8rem;
}


.full-screen-buttons button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.full-screen-buttons button:hover {
    background-color: var(--secondary-color);
}
.navigation-container {
    display: flex;
    justify-content: space-between; /* Keeps the buttons aligned on a row */
    gap:10px;
}

/* General Styling for Desktop (3-Column Layout) */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 100px;
}

.button-section {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for card effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.button-section:hover {
    transform: translateY(-5px); /* Lift the section slightly on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

.button-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.button-section button,
.button-section select {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-section button:hover {
    background-color: var(--secondary-color);
}

.button-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.2rem;
    color: #555;
}
input[type="color"]{
    margin-bottom: 10px;
    margin-top: -10px;
}

.emotions-textarea,
.vocab-textarea {
    height: 180px;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    color: #555;
}

.edit-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 50%;
    min-width: 500px;
    margin: 20px auto 40px auto;
}

.feedback-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 5px;

}
.generation-note{
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

.form-control {
    flex: 1;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 15px 0 0 15px; /* Rounded on the left */
    padding: 10px;
    font-size: 16px;
    resize: none;
    height: 80px;
    box-sizing: border-box;
    outline: none;
}

button.submit-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 0 15px 15px 0; /* Rounded on the right */
    cursor: pointer;
    font-size: 16px;
    height: 80px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button.submit-button:hover {
    background-color: var(--secondary-color);
}

.icon-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

.icon-button:hover {
    color: #333;
}

.load-all-button{
    margin:5px auto 20px auto;;
    text-align: center;
    background-color: #ffc401a9;
    font-size: 1.15rem;
    display: block;
}

/* Sticky Navigation Bar */
#customerStickyNav {
    position: fixed;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eaeaea;
    z-index: 1000;
}

/* Page Controls Container */
#pageControls {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between buttons and page selector */
}

/* Buttons Styling */
#prevPage, #nextPage, #frontCoverButton, #backCoverButton {
    background-color: #7e45f5; /* Bright and modern blue */
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

#prevPage:hover, #nextPage:hover, #frontCoverButton:hover, #backCoverButton:hover {
    background-color: #6d36e4; /* Darker shade on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Light hover shadow */
}

/* Page Selector Input */
#pageSelector {
    font-size: 1.1rem;
    color: #333;
}

#pageInput {
    width: 50px;
    padding: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

#pageInput:focus {
    border-color: #00c3ff;
    outline: none;
}

/* Tooltip styles */
.info-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-tooltip:hover {
    background-color: var(--secondary-color);
}

/* Info Modal styles */
.info-modal {
    position: fixed;
    z-index: 2001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darker background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.info-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px; /* Softer border */
    max-width: 600px; /* Set a max-width for larger screens */
    width: 100%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    animation: fadeIn 0.3s ease-out; /* Smooth fade-in */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

 

.info-modal-content h2 {
    font-size: 1.5rem;
    color: #5A2DC2; /* Title color */
    margin-bottom: 10px;
}

.info-modal-content p {
    font-size: 1.2rem;
    color: #333;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #333;
}

.base-appearance{
    min-width: 100px;
}
.character-interests{
    min-width: 150px;
}

.modal-content h2{
    text-align: center;
}

/* Floating Task Queue Icon */
/* Task Queue Modal */
#task-queue-widget {
    position: fixed;
    bottom: 80px; /* Increased from 20px to avoid the nav bar */
    right: 30px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    text-align: center;
}

  
  .task-queue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .task-queue-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    margin:100px auto;
  }
  
  
  .task-item span {
    display: block;
  }
  
  .task-item .task-status {
    color: green;
  }
  
  .task-item.failure .task-status {
    color: red;
  }
  
  .task-item.success .task-status {
    color: blue;
  }

.task-item{
    border-bottom: 1px solid #ddd;
    padding:10px;
    margin-bottom:10px;
}

.task-name{
    font-size:1.2rem;
    font-weight: 600;
    margin-bottom:3px;
}

#task-queue-list strong{
    font-size:1.2rem;
    margin-top:8px;
    font-weight: 600;
    
}
#task-queue-icon{
    margin-top:8px;
    font-size:36px;
}
.other-label{
    font-size:1.2rem;
    font-weight: 600;
    margin:5px auto;
    text-align: center;
}

.other-image{
    position: relative;
}

.toggle-other-images, .favorites-toggle button {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #ffc401a9;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-other-images:hover, .favorites-toggle button:hover {
    background-color: #e0e0e0;
}

.all-images-note{
    text-align: center;
    font-size: 0.8rem;
    color: #f12525;
}

.other-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    height: 40vh;
    overflow-y: auto;
}

.other-images-container img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}
.star-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    }

    .star-icon.favorite {
    color: gold;
    }

    .favorites-toggle {
        display: block;
        align-items: center;
        margin:5px auto;
        text-align: center;
    }
    .favorites-toggle label {
        align-items: center;
    }

@media (max-width: 768px) {
    
    header {
        padding: 5px; /* Reduce top/bottom padding on mobile */
    }
    main{
        padding-top:75px;
    }

    .container {
        padding: 0 5px;
    }
    #currentPageContainer{
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 2rem;
    }
    #bookContainer{
        margin-top:0px;
        text-align: center;
    }
    /* Header Content Adjustments */
    .header-content {
        justify-content: space-between;
        padding: 0;
    }
    #markCompleteBtn{
        display: none;
    }
    .main-image img{
        width: 100%; /* Center the image and limit its size */
        min-width: 200px;
        max-width: 100%;
    }

    /* Book title should shrink on mobile */
    #book-title {
        font-size: 1.1rem;
        text-align: center;
        transform: translateX(-50%);
        line-height: 1.05rem;
        text-wrap: balance;
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: block;
    }

    .header-icons {
        right: 50px;
        display: none;
    }
    .page-image {
        max-height: 60vh;
    }
    .modal-content {
        width: 95%;
        max-width: 500px;
        padding:0px;
    }

    .card-header {
        font-size: 1rem;
    }

    .card-content {
        padding: 10px;
        width: 100%;
        padding:0px;
    }
    .tools-section{
        text-align: left;
        max-width: 600px;
    }
    .buttons-container{
        width:50%;
        min-width: 500px;
    }

    .info-item {
        font-size: 1rem;
    }
    .page-title {
        font-size: 1.2rem;
        text-wrap: balance;
        line-height: 1.1rem;
        width:100%;
        min-width: 250px;
    }
    #frontCoverButton, #backCoverButton{
        display:none;
    }
    #customerStickyNav {
        padding: 5px; /* Slightly smaller padding on mobile */
    }

    #pageControls {
        gap: 5px; /* Smaller gap between controls */
    }

    #prevPage, #nextPage, #frontCoverButton, #backCoverButton {
        padding: 0.3rem 0.6rem; /* Smaller padding */
        font-size: 0.6rem; /* Smaller font size */
    }

    #pageSelector {
        font-size: 1rem; /* Reduced font size */
    }

    #pageInput {
        width: 35px; /* Narrower input box */
        font-size: 1rem;
        padding: 0.35rem;
    }
    .full-screen-buttons{
        width:90%;
    }
    .full-screen-content{
        height: calc(100% - 4rem);
        margin-top:25px;
    }
    .navigation-container {
        justify-content: space-around; /* Keeps the buttons evenly spaced on small screens */
    }
    .modal{
        font-size:1rem;
    }
    .modal-content{
        width: 90%;
        position:unset;
    }
    .close{
        top:5px;
        right:10px;
    }
    .card-header{
        font-size:1.1rem;
    }
    .info-item{
        font-size:1rem;
    }
    
    .character-card{
        padding: 5px;
        border:none;
    }
    .card-content{
        padding:5px;
        border:none;
    }
    .character-image-row {
        flex-direction: column; /* Stack name and images vertically */
        text-align: center; /* Center-align everything */
        padding: 0.5rem;
    }

    .character-image-container {
        padding: 5px 0; /* Reduce padding on mobile */
    }

    /* Images will be smaller and stacked vertically */
    .character-image-container img {
        max-height: 100px; /* Smaller images on mobile */
    }

    /* Reduce space between name and images */
    .character-image-row h3 {
        margin-bottom: 10px;
        font-size: 1.1rem; /* Slightly smaller font size */
    }
    .buttons-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 1200px;
    }

    .button-section {
        width: 100%;
        margin-bottom: 15px;
        padding: 10px;
    }

    .button-section button,
    .button-section select {
        width: 100%;
        margin-bottom: 15px;
    }

    .emotions-textarea,
    .vocab-textarea {
        width: 100%;
        height: 150px;
        font-size: 13px;
    }

    .form-control {
        display: block;
        float: left;
        width: 80%;
        font-size: 14px;
        height: 70px;
    }

    button.submit-button {
        display: block;
        float: left;
        width: 20%;
        font-size: 12px;
        text-align: center;
        text-align: center;
        height: 70px;
        padding: 0.1rem 0.5rem;
    }

    .edit-container {
        min-width: 95%;
        max-width: 95%;
        font-size: 14px;
    }
    .info-modal-content {
        max-width: 90%;
        max-height: 90%;
    }

    .info-modal-content h2 {
        font-size: 1.2rem;
    }

    .info-modal-content p {
        font-size: 0.9rem;
    }
    .fetching-banner {
        position: fixed;
        top: 55px;
        padding: 5px;
        font-size: 1.1rem;
    }
    .full-screen-image{
        max-width: 100%;   
    }
   
    .full-screen-buttons {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        gap: 10px; /* Adjust the gap between buttons */
        width:90%;
    }
    .full-screen-buttons button{
        font-size: 1.2rem;
    }
    .navigation-container button{
        font-size: 1.5rem;
    }
    .button-section label{
        font-size: 1.1rem;
        text-align: left;
    }
    .no-button{
        font-size: 1rem;
    }
    .confirm-button{
        font-size: 1rem;
    }
    .confirm-box p{
        font-size: 1.2rem;
    }
}
.icon-button i {
    font-size: 18px;
    color: #999;
    transition: color 0.3s ease;
}

.icon-button i:hover {
    color: #333;
}



/* Login Container Styles */
.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

/* Form Title */
.login-container h2 {
    color: var(--primary-color); /* Adjust primary color */
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Input Fields Styling */
.login-container input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Focus on input fields */
.login-container input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Button Styling */
.login-container button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;

    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    width: 100%; /* Full width */
}

.login-container button:hover {
    background-color: #14c7db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.error-message {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

.star-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.5em;
    color: rgba(255, 255, 0, 0.5);
    cursor: pointer;
}

.star-icon.favorite {
    color: yellow;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    font-size:1.25rem;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.character-card {
    background-color: #f9f9f9; /* Light background for contrast */
    border: 1px solid #ddd; /* Light border to define boundaries */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px; /* Space between characters */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

/* Character Header - Larger, more distinct title for each character */
.character-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Adding space between paragraphs */
.character-card p {
    margin: 5px 0;
}

/* Emphasize key attributes like Age, Gender, Species */
.character-card strong {
    color: #333;
}

/* Optional: Different background color for alternating characters */
.character-card:nth-child(odd) {
    background-color: #f4f4f4;
}

/* Character Row */
.character-image-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.character-image-container {
    flex: 1;
    text-align: center;
}

.character-image-container img {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.character-image-container p {
    margin-top: 0.5rem;
    font-weight: bold;
}

/* Header Styles */
.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 1.25rem;
}

/* Content Styles */
.card-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Info Item Styles */
.info-item {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-item p, .info-item ul {
    margin: 0;
    padding-left: 1rem;
}

.change-book-content {
    max-width: 350px;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Modal Heading */
.change-book-content h2, .character-image-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    text-align:center;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
    text-align: left;
    align-items: center;
}

.input-group label {
    display: block;
    font-size: 0.9rem; /* Smaller label text */
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Button */
#changeBookButton {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#changeBookButton:hover {
    background-color: var(--secondary-color);
}

/* Modal Close Button */
.close {
    position: absolute;
    right: 25px;
    font-size: 2rem;
    color: #222;
    cursor: pointer;
}

.close:hover {
    color: #999;
}
.fade-enter {
    opacity: 0;
    transition: opacity 0.5s;
}

.fade-enter-active {
    opacity: 1;
}

.fade-exit {
    opacity: 1;
    transition: opacity 0.5s;
}

.fade-exit-active {
    opacity: 0;
}

.loading-icon {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ffc301;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.confirm-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Modal Box */
.confirm-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Title */
.confirm-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Modal Text */
.confirm-box p {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Buttons */
.confirm-buttons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.confirm-button {
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Confirm Button (Yes) */
.yes-button {
    background-color: var(--primary-color);
    color: white;
}

.yes-button:hover {
    background-color: #5a16ec;
}

/* Cancel Button (No) */
.no-button {
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.2rem;
}

.no-button:hover {
    background-color: #e5a200;
}

/* Icons in Buttons */
.confirm-button i {
    font-size: 1.3rem;
}

/* Basic styling for better readability */
.field-container {
    margin-bottom: 20px;
}

.emotion-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.acceptable-emotion-select, .character-name-select {
    margin-right: 10px;
    padding: 5px;
}


.character-name {
    margin-right: 10px;
    font-weight: bold;
    width: 100px; /* Fixed width for alignment */
}

.emotion-description-input {
    flex: 1;
    padding: 5px;
}

.acceptable-emotion-select, .character-name-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.25rem;
}

.acceptable-emotion-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(126, 69, 245, 0.5);
}

.character-name-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(126, 69, 245, 0.5);
}

.character-name {
    margin: 0 10px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.25rem;
}

/* Container for all vocab entries */
.vocab-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

/* Each vocab row container */
.vocab-row {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vocab-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Styling for the vocab word input */
.vocab-word-input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

.vocab-word-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Styling for the definition textarea */
.vocab-definition-textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    resize: vertical;
    transition: border-color 0.3s ease;
    background-color: #f9f9fc; /* Slightly different background for contrast */
}

.vocab-definition-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Emotion description input field */
.emotion-description-input {
    flex: 1; /* Takes up remaining space */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.emotion-description-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(126, 69, 245, 0.5);
}
