/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0e6f5; /* Light purple background */
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Banner Section */
.banner {
    background-color: #b894d2; /* Medium purple - will show if image doesn't cover */
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 2em;
    font-weight: bold;
    justify-content: center;
    height: 30vh;
    
    /* New background properties */
    background-size: contain; /* or 'contain' depending on your preference */
    background-repeat: repeat; /* or 'repeat' if you actually want it to tile */
    background-position: center center;
}

.bannerh1{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Full-Screen Intro Section */
.intro-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Center content vertically */
    padding: 35px;
    background-color: #e0d1ea; /* Light lavender for main section background */
}


.second-page{
    justify-content: space-between;
    align-items: center; /* Center content vertically */
    height: auto; /* Full viewport height */
    background-color: #e0d1ea; /* Light lavender for main section background */
}

.profile {
    width: 45%;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    margin-right: 20px;
}

.profile .cool-pose {
    height: 30vh;
    margin-bottom: -5px;
}

.infobar {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Space between sidebar and section */
    width: 100%;
    height: 50vh;
    margin: auto;
}

.sidebar-wrapper {
    display: flex;
    justify-content: center;
    width: 25%;
    margin: auto;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}


.button {
    padding: 10px;
    font-size: 1.5em;
    background-color: #a675c3; /* Purple for sidebar buttons */
    color: #fff;
    border: none;
    border-style:solid;
    border-radius: 20px 0px 25px 0px;
    cursor: pointer;
    min-width: 124px;
    /*transition: background-color 0.3s ease;*/
}

.button1 {
    background-color: #4a3b59; /* Purple for sidebar buttons */
}


.sidebar button:hover {
    /*background-color: #8b5aa3; Darker purple on hover */
    border-style: dashed;
}

.sidebar-section {
    height: auto;
    min-height: 374px;
    margin-left: 0; /* Remove fixed margin */
    width: 60%; /* Adjusted width */
    flex-grow: 2; /* Take more space */
    background-color: #dbc3e3;
    border: 5px solid #9a79b4;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: #4a3b59;
    overflow-y: auto; /* Changed from scroll */
    -ms-overflow-style: none;
    scrollbar-width: none;
    font-size: 15pt;
}

/* About Section Layout *//* About Section Layout - Updated */
.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    background-color: #f0e0f5;
    gap: 20px;
    align-items: stretch;
    min-height: calc(100vh - 6vh); /* Viewport height minus footer height */
    box-sizing: border-box; /* Include padding in height calculation */
}

.about-wrapper {
    width: 22%;
    min-width: 280px; /* Minimum width before wrapping */
    flex-grow: 1; /* Allow growing if space available */
    text-align: center;
    color: #fff;
    border-radius: 8px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    height: auto; /* Remove fixed height */
}

.about-box {
    background-color: #d5a6d8;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    flex-grow: 1; /* Take available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* Minimum content height */
}

.about-box h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.about-box p {
    margin: 0;
    max-width: 90%;
    line-height: 1.4;
}

/* Updated buffer elements */
.about-buffer-left,
.about-buffer-right {
    width: 100%;
    height: auto;
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.about-buffer-left img,
.about-buffer-right img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
}

/* Fanart container adjustments */
.fanart-container {
    width: 48vw;
    min-width: 300px;
    height: auto;
    max-height: 68vh;
    margin: 10px;
    flex-grow: 2;
}

/* Responsive adjustments */
@media (max-width: 1265px) {
    .intro-section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* Changed from center to flex-start */
        padding: 35px;
        background-color: #e0d1ea;
        flex-wrap: wrap; /* Allow wrapping on small screens */
        gap: 20px; /* Add consistent spacing */
    }
    
    .profile {
        width: 45%;
        min-width: 300px; /* Minimum width before wrapping */
        flex-grow: 1; /* Allow growing if space available */
        text-align: center;
        border-radius: 8px;
        color: #fff;
        margin-right: 0; /* Remove fixed margin */
    }
    
    .infobar {
        display: flex;
        flex-direction: row;
        gap: 20px;
        width: 100%;
        min-height: 50vh; /* Changed from fixed height */
        height: auto;
        margin: auto;
        flex-wrap: wrap; /* Allow wrapping */
    }
    
    .sidebar-wrapper {
        display: flex;
        justify-content: center;
        width: 25%;
        min-width: 200px; /* Minimum width */
        margin: 0; /* Remove auto margin */
        flex-grow: 1; /* Allow growing */
    }

    .sidebar-section {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .button {
        min-width: 100px;
        font-size: 1.2em;
        padding: 8px;
    }
    
    .profile .cool-pose {
        height: auto;
        max-height: 30vh;
    }
    
    .video-container iframe {
        height: 50vw;
    }
}

/* Remove old conflicting styles */
/* Delete these if they exist: */
.about-buffer-right {
    margin-right: -35%; /* Remove this */
    margin-bottom: -20px; /* Remove this */
}

.about-buffer-left {
    margin-top: -35px; /* Remove this */
    margin-right: -10%; /* Remove this */
}

.fanart-carousel {
    background-color: transparent;
    width: 48vw;
    margin:auto;
    height: 68vh;
}

/* Footer Section */
.footer {
    background-color: #b989c8; /* Medium purple for footer */
    text-align: center;
    font-size: 0.9em;
    color: #fff;
    border-top: 2px solid #a675c3;
    height: 6vh;
}

.foot-element {
    height: 4vh;
    margin: 0.8vh;
    padding: 10px;
    background-color: #a675c3;
    border-radius: 4px;
    /* Add these properties for vertical centering */
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering (optional) */
    text-align: center; /* Fallback for text centering */
}



.reading {
    display: flex;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
    height: auto;
    background-color: #371150;
    width: 80%;
    border-radius: 15px;
}




.fanart-container {
    width: 48vw;
    height: 68vh;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.random-fanart-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#random-fanart {
    max-height: 70vh;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fanart-caption {
    margin-top: 1em;
    color: #1b031dc0;
    font-size: 1.2em;
    font-weight: bold;
}

/* Video container */
.video-container iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

/* Image styles */
.slime-hat,
.cat-vice {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Fanart carousel images */
.fanart-img {
    max-height: 90%;
    width: auto;
    margin: 1em 0;
}

/* Slide styles */
.slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.fanart-carousel {
    width: 50vw;
}
/* Social Media Buttons - Square Formation */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: fit-content;
    margin: 20px auto;
}

.social-button-solo {
    display: flex;
    width: 28%;
    margin: auto;
    margin-top: 5vh;
}

.social-button {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.social-button:hover {
    transform: scale(1.1);
    background-color: rgba(166, 117, 195, 0);
}

.social-button img {
    width: auto;
    height: 16vh;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}



/* Reading section*/
.reading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #b585d3;
}

.reading {
    width: 80%;
    max-width: 800px;
    background-color: #371150;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    flex-direction: column;
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.chapter-title {
    text-align: center;
    margin: auto;
    flex-grow: 1;
}

.chapter-button {
    background-color: #a675c3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chapter-button:hover {
    background-color: #8b5aa3;
}

.chapter-button.prev {
    margin-right: auto;
}

.chapter-button.next {
    margin-left: auto;
}

.story-area {
    text-align: center;
}

.story-area h1 {
    margin-bottom: 30px;
}

.story-content {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dialogue and Sound Effect Styles */
/* Dialogue and Sound Effect Styles */
.dialogue {
    margin: 12px 0;
    padding: 0 5px;
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 1.5;
}

.dialogue-woman {
    color: #ffffff; /* Pink text */
    text-shadow: 
        -1px -1px 0 #ff69b4,
        1px -1px 0 #ff69b4,
        -1px 1px 0 #ff69b4,
        1px 1px 0 #ff69b4; /* Black outline */
}

.dialogue-man {
    color: #ffffff; /* Purple text */
    text-shadow: 
        -1px -1px 0 #9370db,
        1px -1px 0 #9370db,
        -1px 1px 0 #9370db,
        1px 1px 0 #9370db; /* Black outline */
}

.sound-effect {
    color: #d3d3d3; /* Light gray */
    font-style: italic;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    margin: 15px 0;
    display: block;
}

/* Optional speaker labels */
.speaker {
    font-weight: bold;
    margin-right: 8px;
}

.speaker-woman::before {
    content: "♀ ";
    color: #ff69b4;
}

.speaker-man::before {
    content: "♂ ";
    color: #9370db;
}

.sound-effect {
    font-style: italic;
    color: #d3d3d3; /* Light gray */
    text-align: center;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.narration {
    color: #f0e6f5; /* Your existing light text color */
    margin: 15px 0;
    line-height: 1.6;
}

.story-area h1{
    margin-bottom: 40px;
    margin-top: 40px;
}

.sound-effect.dramatic {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dialogue.whisper {
    opacity: 0.8;
    font-size: 0.9em;
    border-style: dashed;
}

.dialogue.shout {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* For very small screens */
@media (max-width: 480px) {
    .reading {
        padding: 10px;
    }
    
    .chapter-button {
        padding: 5px 8px;
        font-size: 0.8em;
    }
    
    .story-area h1 {
        font-size: 1.3em;
        margin: 15px 0;
    }
    
    .dialogue, .narration, .sound-effect {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .reading-section {
        padding: 0; /* Remove padding to fill full width */
        background-color: #371150; /* Match reading box color */
    }
    
    .reading {
        width: 100%; /* Full width on mobile */
        border-radius: 0; /* Remove rounded corners on mobile */
        padding: 15px; /* Reduce padding on mobile */
        min-height: 100vh; /* Ensure it fills the screen */
    }
    
    .chapter-header {
        flex-direction: column; /* Stack navigation vertically if needed */
        margin-bottom: 20px;
    }
    
    .chapter-nav {
        flex-direction: row; /* Keep buttons side by side */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .chapter-button {
        padding: 6px 12px; /* Slightly smaller buttons */
        font-size: 0.9em;
    }
    
    .story-area {
        padding: 0 5px; /* Minimal side padding */
    }
    
    .story-area h1 {
        margin: 20px 0; /* Reduced margins */
        font-size: 1.5em; /* Smaller heading */
    }
    
    .dialogue, .narration, .sound-effect {
        margin: 10px 0; /* Reduced spacing between elements */
        font-size: 0.95em; /* Slightly smaller text */
    }
}




/* Base styles - show full text */
.chapter-button {
    background-color: #a675c3;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

/* Hide icons by default */
.chapter-button.prev::before,
.chapter-button.next::after {
    display: none;
}

/* Mobile styles - switch to icons */
@media (max-width: 400px) {
    .chapter-button {
        padding: 8px 12px; /* Adjust padding for icons */
    }
    
    /* Show icons and hide text */
    .chapter-button.prev::before {
        content: "←";
        display: inline;
    }
    .chapter-button.next::after {
        content: "→";
        display: inline;
    }
    .chapter-button span {
        display: none;
    }
    
    /* Make sure chapter title stays visible */
    .chapter-title h6 {
        font-size: 0.9em;
        white-space: nowrap;
    }
}

/* Optional: Smooth transition between states */
.chapter-button span {
    transition: opacity 0.2s ease;
}
@media (min-width: 401px) {
    .chapter-button.prev::before,
    .chapter-button.next::after {
        display: none !important;
    }
    .chapter-button span {
        display: inline !important;
    }
}


.chapter-button {
    padding: 8px 16px;
    color: white;
    background: #9642b8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-button:hover:not(:disabled) {
    background: #c254ee;
    transform: translateY(-1px);
}

.chapter-button:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}


.chapter-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #5a3b7a;
}

.chapter-header {
    margin-bottom: 30px;
}

.chapter-footer {
    margin-top: 30px;
}


/* Add to styles.css ???TODO REVIEW */
.chapter-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #5a3b7a;
    display: flex;
    justify-content: space-between;
}

.chapter-footer .chapter-nav {
    width: 100%;
    justify-content: space-between;
}

/* Ensure consistent button spacing */
.chapter-button.prev {
    margin-right: auto;
}

.chapter-button.next {
    margin-left: auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chapter-footer {
        margin-top: 30px;
        padding-top: 15px;
    }
}


/* Robotic narration style - mechanical and artificial */
.chip{
    font-family: 'Courier New', Courier, monospace;
    color: #a0a0a0;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 4px;
    padding: 8px 12px;
    letter-spacing: 0.8px;
    display: inline-block;
}

/* Internal dialogue for bots - yellow tinted */
.internal-dialogue-bot {
    color: #ffffa0;
    text-shadow: 
        -1px -1px 0 #cc9900,
        1px -1px 0 #cc9900,
        -1px 1px 0 #cc9900,
        1px 1px 0 #cc9900;
    font-style: italic;
    opacity: 0.8;
    font-family: inherit; /* Inherits from parent but keeps other styles */
}

/* Evaluators (machine-like text) */
.evaluator-positive,
.evaluator-negative {
    font-family: 'Courier New', Courier, monospace; /* Ensures monospace */
    letter-spacing: 0.5px;
    font-weight: bold;
    font-synthesis: none; /* Avoids fake bold if font lacks it */
}

.evaluator-positive {
    color: #88ff88;
    text-shadow: 
        -1px -1px 0 #006600,
        1px -1px 0 #006600,
        -1px 1px 0 #006600,
        1px 1px 0 #006600;
}

.evaluator-negative {
    color: #ff8888;
    text-shadow: 
        -1px -1px 0 #660000,
        1px -1px 0 #660000,
        -1px 1px 0 #660000,
        1px 1px 0 #660000;
}

.ev-neg{
    color: #ff8888;
    text-shadow: 
        -1px -1px 0 #660000,
        1px -1px 0 #660000,
        -1px 1px 0 #660000,
        1px 1px 0 #660000;
}

.ev-pos {
    color: #88ff88;
    text-shadow: 
        -1px -1px 0 #006600,
        1px -1px 0 #006600,
        -1px 1px 0 #006600,
        1px 1px 0 #006600;
}



.chip-alt {
    font-family: 'Courier New', Courier, monospace;
    color: #d4e6ff; /* Softer blue-white text */
    background-color: #0d2b4e; /* Deep blue background */
    border: 1px solid #3a6ea5; /* Brighter blue border */
    border-radius: 6px; /* Slightly rounder corners */
    padding: 8px 12px;
    letter-spacing: 0.8px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 82, 204, 0.2); /* Subtle blue glow */
    transition: all 0.2s ease; /* Smooth hover effects */
}


/* 
.chip-alt:hover {
    background-color: #12407c;
    border-color: #4d8ee6;
    box-shadow: 0 3px 6px rgba(0, 82, 204, 0.3);
    transform: translateY(-1px);
}
*/