@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Poppins:ital,wght@0,400;0,700;1,700&family=Sour+Gummy&display=swap');

:root {
    --page-inner-margin: 20px;
    --white: #ffffff;
    --heading-color: #0B0096;
    --accent-color-1: #F30083;
    /*pink*/
    --accent-color-2: #F97600;
    /*orange*/
    --accent-color-3: #009ffa;
    /*blue*/
    --stroke-style: 3px solid #1502A0;
}

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

html {
    scroll-behavior: smooth;
    margin: 0px;
    padding: 0px;
}

a {
    color: var(--heading-color);
    font-weight: bold;
    text-underline-offset: 4px;
}

body {
    font-family: sans-serif;
    font-size: 1.3rem;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    margin: 0px;
    padding: 0px;
    background: orange;
}

.landing {
    background:white;
    background: url("/back-pain/assets/fine-speckled-paper.webp");
    
    margin: 0px;
    padding: 0px;
    padding-top: 5vh;
    padding-bottom:5vh;
}

.two-col {
    border-top:var(--stroke-style);
    background:url("/assets/abstract-bg.png");
    background-size:cover;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    /* Allows items to wrap to the next line */
    gap: 20px;
    /* Space between columns (you can adjust this) */
    padding-left: 20px;
    padding-right: 20px;
    align-items: stretch;
    padding-top:10vh;
    padding-bottom: 10vh;
    
}

.intro-section {
    margin: auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
    margin-top: 0px;
    padding-top: 30px;
}

.intro-section p {
    line-height: 1.2em;
    /*
    font-weight:bold;
    color:black;*/
}

.book-section {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: flex-start;
    margin: auto;
    scroll-margin-top: 40px;
    padding: 30px 40px;
    text-align: center;
    /*background-color: rgba(255, 255, 255, 0.96);*/
    background-color: white;
    border: var(--stroke-style);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    \

    /*
    
    margin-top: 80px;
    margin-bottom: 80px;
    
    */
}


.two-col .book-section {
    margin-top: 0px;
    margin-bottom: 0px;
    flex: 1;
    min-width: 400px;
    /* Minimum width for a column before wrapping */
    flex-grow: 1;
}


.book-description p {
    /*font-size: 1.2rem;*/
    line-height: 1.3em;
    line-height: 1.05em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.coming-soon-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 500px;
}

.coming-soon-list li {
    font-family: "Afacad Flux";
    font-weight: 300;
    line-height: 1.1em;
    text-align: center;
    border-bottom: 3px dotted var(--accent-color-2);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.coming-soon-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.tooltip {
    position: relative;
    display: inline;
    border-bottom: 3px dotted var(--accent-color-2);
    z-index:0;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: white;
    color: black;
    text-align: center;
    border-radius: 6px;
    /*border: var(--stroke-style);*/
    padding: 8px;

    font-size: 0.85em;
    line-height: 1em;
    font-weight:normal;

    position: absolute;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index:999;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* These styles are the same as book styles */
.big-button {
    background: white;
    background: #fffcf5;
    border: var(--stroke-style);
    color: var(--heading-color);
    border-radius: 7px;
    padding: 13px 25px;
    font-size: 28px;
    font-family: "Sour Gummy", sans-serif;
    text-transform: uppercase;
    margin: 0px auto auto auto;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Addition */
    display: inline-block;
    /* Addition */
}

.big-button:hover {
    background-color: #00C6FA;
    background-color: var(--accent-color-2);
    color: black;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    /* Addition */
}



#entry-title {
    /*padding-top: 2vh;*/
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.8rem;
    /* Larger title */
    line-height: 1.2;
}

h1,
h2,
h3,
.toc {
    font-family: "Poppins";
    font-weight: bold;
    text-transform: uppercase;
    color: var(--heading-color);
    line-height: 1.15em;
    margin-top: var(--page-inner-margin);
}

h2 {
    font-size: 2rem;
    /* Adjusted for secondary headings */
    text-align: center;
    /* Center book titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    margin-top: 0px;
    margin-bottom: 15px;
    color: var(--accent-color-2);
}

p {
    font-family: "Afacad Flux";
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.4em;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.f1,
.f2,
.f3 {
    font-weight: 750;
    letter-spacing: 0.8px;
}

.f1 {
    color: var(--accent-color-1);
}



/* Animations from core.css */
@keyframes grow {
    0% {
        transform: scale(0, 0);
    }

    100% {
        transform: scale(1, 1);
    }
}

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.text-entry-anim p,
.text-entry-anim li {
    /* Apply opacity to children of text-entry-anim */
    opacity: 0;
}

.text-entry-anim.is-visible * {
    animation: appear 250ms;
    -webkit-animation: appear 250ms;
    -moz-animation: appear 250ms;
    -o-animation: appear 250ms;
    -ms-animation: appear 250ms;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-delay: calc(50ms + var(--animation-order) * 120ms);
}


/* Container for the language switcher bar */
.language-switcher-bar {
    position: relative;
    /* Allows for absolute positioning of internal elements if needed later */
    display: block;
    width: fit-content;
    margin: 0 5vw 0 auto;
    z-index: 999;

    display: flex; /* Horizontal display */

    background-color: white;
    border-radius: 3px;
    overflow: hidden; /* Ensures internal rounded corners blend */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Soft shadow */


}

/* Individual language item within the bar */
.language-switcher-bar .language-bar-item {
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: center;
    padding: 9px 15px; /* Ample padding for touch targets */
    
    font-family: "Sour Gummy", sans-serif;
    text-transform: uppercase;
    font-size: 0.8em;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    color: var(--heading-color);
    
    transition: background-color 0.2s ease, color 0.2s ease;
    
    /*border-right: 1px solid #e0e0e0;*/ /* Separator between items, to add back in once there are more than two options */
}

/* Remove the last item's border */
.language-switcher-bar .language-bar-item:last-child {
    border-right: none;
}

/* Hover and Focus states for individual items */
.language-switcher-bar .language-bar-item:hover,
.language-switcher-bar .language-bar-item:focus {
    background-color: var(--accent-color-2);
    color: white;
    outline: none; /* Remove default focus outline */
}

/* Active language item styling */
.language-switcher-bar .language-bar-item.active {
    background-color: var(--accent-color-3);
    /* Primary blue for active item */
    color: white;
    /* White text for active item */
    font-weight: 600;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    /* Subtle inner shadow for active state */
}

/* Flag Icon Styling */
.language-switcher-bar .flag-icon {
    font-size: 1.2em;
    /* Adjust size of emoji flags */
    margin-right: 8px;
    /* Space between flag and text */
    /* When replacing with image sprites, use these properties: */
    /* width: 24px; */
    /* Example width */
    /* height: 16px; */
    /* Example height (3:2 aspect ratio) */
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    /* border: 1px solid rgba(0,0,0,0.1); */
    /* Subtle border for image flags */
    /* border-radius: 2px; */
    /* Slight roundness for image flags */
}


/* Responsive adjustments */
/* NB: Unlike the books, this page is desktop-first */
@media only screen and (max-width: 768px) {
    /*
    .landing .book-section {
        width: 90%;
        padding: 20px 20px 40px 20px;
        border-radius: 0px;
    }*/

    .two-col .book-section {
        min-width: 90%;
    }

    #entry-title {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.3rem;
    }

    .big-button {
        font-size: 24px;
        padding: 12px 25px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .landing {
        padding-top: 0px;
    }

    .language-switcher-bar {
        width: 100%;
        float: none;
        margin: 0px;
    }

}