html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
  }
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
    .tree ul {
      list-style-type: none;
      padding-left: 20px;
    }

    .tree li {
      cursor: pointer;
      margin: 5px 0;
    }

    .tree .collapsible {
      display: none;
    }

    .tree .open > .collapsible {
      display: block;
    }
  .container-1 {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
    flex: 1;
  }
  .display_text {
    position: absolute;
    top: 45%;
    transform: translateY(-40%);
    z-index: 1;
    animation: textFadeIn 0.5s 0.5s forwards;
    max-width: 50%; /* Match the book's max width */
    width: 100%;
    display: flex; /* Ensures child alignment */
    justify-content: center;
}

.book {
  width: clamp(250px, 40vw, 550px);
  height: auto;
  display: block;
  margin: clamp(7vh, 20vh, 23vh) auto 0 auto;
  filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.5));
  opacity: 0;
  animation: fadeInSlideIn 0.7s ease-in-out forwards;
  transform: translateY(10%);
  position: relative;
  z-index: 3;
}


.footer {
    background-color: #f8f9fa;  /* Optional styling */
    width: 100%;
    position: relative;
    bottom: 0;

}
.footer p {
    text-align: center;
    padding: 10px;
    margin: 0;
    font-family: 'EB Garamond', serif;
}
.text_container {

    width: 80%;
}
#indent-1 {
    margin-left: 3em;
}
#indent-2 {
    text-align: right;
}
#indent-char2 {
    text-align: right;
}
.banner_background {
    position: relative;
    width: 100vw;
    height: 90vh;
    overflow: visible; /* ← allow the book to flow outside */
    margin: 0;
    padding: 0;
    z-index: 1;
  }

.text-title {
  font-family: eb-garamond, serif;
}
.banner_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: black;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), 
                      url("/static/images/countryside.f8f326676e7d.webp");
    opacity: 0;
    transform: translateX(-10%);
    transform: translateY(10%);
    animation: fadeInSlideIn .7s ease-in-out forwards;
}
.banner_background_map {
  position: relative;
  width: 100vw;
  height: 75vh;
  overflow: visible; /* ← allow the book to flow outside */
  margin: 0;
  padding: 0;
  z-index: 1;
}

.banner_img_map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: black;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)), 
                    url("/static/images/map.b308cd63aa36.jpg");
  opacity: 0;
  transform: translateX(-10%);
  transform: translateY(10%);
  animation: fadeInSlideIn .7s ease-in-out forwards;
}

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

@keyframes fadeInSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10%);
        transform: translateY(10%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        transform: translateY(0);
    }
}


.banner_text {
    font-size: 5rem;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.icon_wrapper img{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 7vw;
}


.section-1 {
    background-color: white;
    height: inherit;
    z-index: 1;
}

.section-2 {
    background-color: black;
    height: inherit;
    z-index: 1;
}

.section-3 {
    position: relative;
    background-image: url("/static/images/OeduipusBlind.b807eec22dde.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.15);
}

.section-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 75vh;
    padding: 0 10%;
}

.section-photo-container {
    overflow: visible; /* Ensure anything outside the container is hidden */
    max-height: 100%; /* The container should not exceed its parent's height */
    width: 100%; /* Make sure the container takes the full width of its column */
    position: relative; /* Make sure the container positions elements relative to itself */
    margin: auto;
    display: flex;
    align-content: center;
}

.section-img {
    height: inherit;
    margin: auto;
    transform: translateX(-10%);
    transform: translateY(10%);
    opacity: 0;
    animation: fadeInSlideIn .7s ease-in-out forwards;

    keyframes fadeInSlideIn {
        from {
            opacity: 0;
            transform: translateX(-10%);
            transform: translateY(10%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
            transform: translateY(0);
        }
    }   
  }

.page_section_title {
    font-size: 3em;
    font-weight: bold;
    color:#01051e;
    text-align: right;
    font-family: "Bodoni Moda SC", serif;

}
.page_section_copy {
    font-size: 2em;
    font-style: italic;
    color: #01051e;
    text-align: justify;
}
.btn-width {
    width: 40%;
    margin: 1em auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-text {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin: auto;
    text-decoration: none!important;
    font-family: "Bodoni Moda SC", serif;
}
.page_section_copy_dark {
    font-size: 1.5em;
    color: white;
    font-style: italic;
    text-align: justify;
}
.page_section_title_dark {
    font-size: 3em;
    font-weight: bold;
    color:white;
    text-align: left;
    font-family: "Bodoni Moda SC", serif;
}

.toggle{
    position: fixed;
    background-color: grey;
    height: 3vw;
    width: 8vw;
    bottom: 5vw;
    right: 5vw;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1;
}
.toggle:hover{
    border: grey 1px solid;
}
.gr{
    font-size: large;
    color: white;
    z-index: 3;
}
.en{
    font-size: large;
    color: white;
    z-index: 3;
}
#selector-en{
    position: fixed;
    background-color: #001489;
    height: 3vw;
    width: 4vw;
    bottom: 5vw;
    right: 5vw;
    border-radius: 25px;
    z-index: 2;
    display: none;
}
#selector-gr{
    position: fixed;
    background-color: #001489;
    height: 3vw;
    width: 4vw;
    bottom: 5vw;
    right: 9vw;
    border-radius: 25px;
    z-index: 2;
    display: block
}

.text-block{
    margin: auto;
    width: 65%;
    font-size: 1.25vw;

}

.text-block p{
    margin: 0;
    padding: 0;
    line-height: 1.40;
}
.sub h3 {
    margin-top: .75em;
}

.text-block p strong{
    font-size: 1.25vw;
    line-height: 2;
}
.text-block-how{
    margin: auto;
    width: 50%;
    font-size: 1.25vw;
    font-family: 'EB Garamond', serif;
}
.text-block-how h2{
    font-size: 2vw;
    margin-top: 5rem;
    margin-bottom: 2rem;
}
.text-block-how p{
    margin: 0;
    padding: 0;
    line-height: normal;

}

.text-block-how p strong{
    font-size: 1.25vw;
    line-height: 2;
}
#e-text{
    display: none;
}

#g-text{
    display: block;
}
.test {
    color: blueviolet;
}

.sub a{
    vertical-align: sub;
    text-decoration: none;
    font-size: 0.6em;
    line-height: 1;
    display: inline-block;
}



.col-2 {
  font-size: 0.8em;
}
  .section_img {
    max-width: 100%;
    max-height: 80%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(-10%);
    transform: translateY(10%);
    animation: fadeInSlideIn .7s ease-in-out forwards;
  }

.chart-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.circle-label {
    text-anchor: middle;
    font-size: 12px;
    fill: #000;
}

.map-container {
    display: flex;
    width: 100%;
    height: 100vh; /* Full-height layout */
}
.map-image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(-10%);
    transform: translateY(10%);
    animation: fadeInSlideIn .7s ease-in-out forwards;
}
    .left-panel {
      width: 50%;
      border-right: 1px solid #ccc;
      overflow-y: auto; /* Scrollable tree panel */
    }
    .map-container{
        width: 100%;
    }
    .right-panel {
      width: 50%;
      padding: 10px;
      overflow-y: auto; /* Scrollable content display */
    }

    .tree ul {
        list-style-type: none;
      }
      
      .tree li {
        cursor: pointer;
        margin: 5px 0;
      }
      
      .tree .collapsible {
        display: none;
      }
      
      .tree .open > .collapsible {
        display: block;
      }
      
      /* Style for the arrow icon */
      .arrow {
        font-size: 12px;
        margin-right: 5px;
        transition: transform 0.3s ease;
      }
      
      .arrow.open {
        transform: rotate(90deg);  /* Rotate the arrow when open */
      }
      .description {
        margin-top: 10px;
        font-style: italic;
        width: 80%;
      }
      
      .query-placeholder {
        margin-top: 20px;
        color: #555;
        font-weight: bold;
      }
      .node-item {
        font-size: 1em;
      }
      .mapping-node {
        display: flex;
        border: 1px solid #ccc;
      }
      
      .mapping-node h6 {
        margin: auto 10px;  /* Add space between slug and link */ 
      }
      .mapping-node a {
        font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
        text-align: left;
        text-decoration: none;
        color: #333;
        font-size: 100%;
      }
        .mapping-node a:hover {
            text-decoration: underline;
            color: #555;
        }

      .mapping-title{
        font-size: 3em;
        font-weight: bold;
        color:#01051e;
        font-style: italic;
        text-align: center;
        font-family: "Bodoni Moda SC", serif; 
        margin-top: 3vw;
        margin-bottom: 1.5vw;
      }

      .mapping-text{
        font-size: 1.5em;
        font-family: "EB Garamond", serif;
        color: #01051e;
        text-align: justify;
        margin-bottom: 5vw;
      }
      .map-list-header{
        font-size: 2em;
        font-weight: bold;
        color:#01051e;
        text-align: center;
        font-family: "EB Garamond", serif; 
        margin-top: 3vw;
        margin-bottom: 1.5vw;
        display: flex;
        justify-content: center;
      }
        .map-list-list{
            font-size: 1.5em;
            font-family: Verdana, Geneva, Tahoma, sans-serif; 
            color: #01051e;
            text-align: justify;
            margin-bottom: 5vw;
            justify-content: center;
            border-top: 2px solid #01051e;
        }
        .map-list-subheader{
            font-size: 2em;
            font-weight: bold;
            color:#01051e;
            text-align: center;
            font-family: "Bodoni Moda SC", serif; 
            margin-top: 1vw;
            margin-bottom: 1.5vw;
          }


.triangle-section {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin: 0;
    background-color: #fdfdfc;
    position: relative;
    background-image: url("/static/images/papyrus.a4c8e72a82cc.webp"), linear-gradient(#fdf6e3, #f5e9d7);
    background-size: cover;
    background-blend-mode: multiply;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2); 
    border: 2px solid #d4caa3;
    padding: 40px;
    overflow: visible; /* or unset */
    z-index: 0; /* Lowered below .book */
    overflow: visible; /* Allow overlapping content to flow in */
}
.triangle-section svg {
  width: clamp(300px, 60vw, 800px);
  height: auto;
  display: block;
  margin-top: 5vw;
  margin-left: 45%;
  overflow: visible;
}

.mapping-count {
    font-weight: bold;
    color: #007bff; /* Bootstrap primary blue */
    margin-left: 8px;
    font-size: 0.9em;
}

.rubric-item {
    display: block; /* Stack content vertically */
    margin: 5px 0;
    font-size: 1em;
  }

.rubric-name {
    font-weight: normal; /* Regular text */
}

.rubric-code {
    font-weight: bold;
    color: #007bff;
    text-decoration: underline;
    margin-left: 1rem;
}

.mapping-count {
    font-weight: bold;
    color: #28a745;
    cursor: pointer; /* Indicates it's clickable */
}

.mapping-count:hover {
    color: #1e7e34; /* Darker green on hover */
}
.mapping-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.mapping-table th, .mapping-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.mapping-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.mapping-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mapping-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.text-block-how p{
    text-indent: 3rem;
}
.text-block-how p, li{
    margin-bottom: 1rem;
    padding: 0;
    line-height: normal;
}
.play-title{
    font-style: italic;
}
.mapping-item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers content */
    padding: 10px;
    border-bottom: 1px solid #ccc; /* Separator */
    min-height: 50px; /* Ensures enough space for centering */
}

.mapping-number {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.mapping-text {
    flex-grow: 1;
    color: #555;
    margin: auto;
}
.mapping-text p {
  margin-top: 1em;
}
.mapping-text a{
    text-decoration: none;
    color: #333;

}
.mapping-text a:hover{
    text-decoration: underline;
    color: grey;

}

.mappings-header {  
    font-size: 2.5em;
    font-family: 'EB Garamond', serif;
    font-weight: bold;
    color: #333;
    margin: 2rem 0;
}

.rubric-list,
.rubric-sublist {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}

.rubric-sublist {
  padding-left: 20px; /* Indents child rubrics */
}

.rubric-item {
  margin: 5px 0;
}

.rubric-name,
.rubric-code,
.mapping-count {
  display: inline-block;
}

.rubric-sublist {
    border-left: 1px solid #ccc;
    margin-left: 10px;
    padding-left: 10px;
  }

  .mapping-number-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.mapping-number-pill {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'EB Garamond', serif;
    color: #333;
    user-select: none;
    transition: background-color 0.2s ease;
}

.mapping-number-pill:hover {
    background-color: #e0e0e0;
}

.tooltip-bubble {
    position: fixed;
    bottom: 7vw;
    right: 5vw;
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9em;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .tooltip-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .tooltip-close {
    margin-left: 12px;
    cursor: pointer;
    font-weight: bold;
    float: right;
  }
  
  .tooltip-arrow {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #333;
  }
  
  

  
  svg text {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    fill: #fff;
    text-shadow: #555 1px 1px 2px;
    text-shadow: 1px 1px 2px #333;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none; /* Ensures clicks go to triangle polygons */
    overflow: visible; /* or unset */

}

.triangle-link polygon {
    fill: url(#marble-texture);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: goldenPulse 3s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
}

.triangle-link:hover polygon {
    transform: scale(1.3);
}


/* Pulse glow animation */
@keyframes goldenPulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    }
}

.brooch-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Push content to the right */
    align-items: center;
    padding-right: 10%; /* Create some right margin */
  }
  
  .section-text-container {
    max-width: 40%;
    text-align: left;
    margin-right: -5%; /* Pushes the whole container further to the right */
  }
  
  .section-text-container h2 {
    font-family: "Bodoni Moda SC", serif;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
  }
  
  .bronze-outline-btn {
    background-color: rgba(255, 255, 255, 0.7); /* Semi-opaque white */
    border: 2px solid black;
    color: black;
    text-transform: uppercase;
    font-family: 'EB Garamond', serif;
    padding: 12px 12px;
    font-size: 1.2rem;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.08em;
    backdrop-filter: blur(2px); /* Optional: soft blur effect behind */
  }
  
  
  .bronze-outline-btn:hover,
  .bronze-outline-btn:focus {
    background-color: #cd7f32;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.6);
  }
  .button-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  nav {
    z-index: 1000;
  }

  
  
  .triangle-instructions {
    position: absolute;
    bottom: 40px;
    left: 40px;
    max-width: 40%;
    background: linear-gradient(to right, rgba(80, 80, 80, 0.50), rgba(80, 80, 80, 0.0));
    padding: 1rem 1.5rem;
    font-family: 'EB Garamond', serif;
    color: white;
    font-size: clamp(1rem, 2.2vw, 2rem);
    line-height: 1.6;
    border-left: 3px solid #fff;
    z-index: 5;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

  /* Default: hide mobile version */
.mobile-instructions {
  display: none;
}

.owl-scroll-indicator {
  position: fixed; /* fixed so it stays relative to the viewport */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: auto;
  animation: owlFadeDescent 2.5s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}
@keyframes owlFadeDescent {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    transform: translate(-50%, 80px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0); /* snap back to top */
    opacity: 0;
  }
}

/* Mobile: override layout */

/* Small Screen */

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

  .book {
    max-width: 500px!important; /* Adjusted for larger screens */
    transform: none;
    transform: translate(0, 15%)!important;
  }
  .container {
    
    padding: 0!important;
    margin: 0!important;
  }

  .display_text {
    left: 35%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  
}
@media screen and (max-width: 950px) {

  .display_text {
    left: 35%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}

@media only screen and (max-width: 768px) {
  .display_text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .book {
    margin-top: 0 !important;
    position: relative;
    transform: none !important;
    max-width: 350px !important;
    margin-bottom: 0;
  }


  .triangle-section {
    padding: 20px;
    height: 75vh; /* Allow the section to adjust its height */
    justify-content: center;
    overflow: visible; /* or unset */
    align-items: center;
  }
  .bronze-outline-btn {
    font-size: 1rem;
    padding: 10px 10px;
    width: 100%;             /* Full width inside its container */
    box-sizing: border-box;  /* Prevents overflow from padding */
  }

  .section-text-container {
    max-width: 90%;          /* Allow more breathing room on small screens */
    padding: 0 5%;
    margin: 0 auto;
  }
  .triangle-instructions {
    display: none; /* Hide desktop version */
  }

  .mobile-instructions {
    display: block;
    max-width: 90%;
    margin: 1.5rem 0 0 -3.6%; 
    background-color: rgba(60, 60, 60, 0.9);
    color: white;
    font-family: 'EB Garamond', serif;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    border-left: 4px solid white;
    border-radius: 4px;
    line-height: 1.5;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    text-align: center;
  }
  .rubric-item {
    font-size: 0.9em;
  }

  .rubric-name {
    font-size: 1em;
  }

  .rubric-code {
    font-size: 1.1em;
  }

  .mapping-count {
    font-size: 0.9em;
  }

  .mapping-node h6 {
    font-size: 0.85em;
  }

  .mapping-node a {
    font-size: 0.95em;
  }

  .description {
    font-size: 0.9em;
    width: 100%;
    padding: 0 1rem;
  }

  .map-list-header,
  .map-list-subheader {
    font-size: 1.25em;
  }

  .mapping-text {
    font-size: 1em;
  }
  /* For mobile phones: */
  .banner_text {
      font-size: 3.5rem;
      font-weight: bold;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  .text-block-how{
      width: 93%;
      font-size: 3.5vw;
  }
  .toggle{
      height: 6vw;
      width: 16vw;
      bottom: 10vw;
      right: 10vw;
  }
  #selector-en{
      height: 6vw;
      width: 8vw;
      bottom: 10vw;
      right: 10vw;
  }
  #selector-gr{
      height: 6vw;
      width: 8vw;
      bottom: 10vw;
      right: 18vw;
  }
  .mapping-text{
      width: 100%;
      font-size: 2em;
      margin: 0 auto 10px auto;
      text-align: justify;
  }
  .map-list-header{
      font-size: 1.5em;
      font-weight: bold;
      color:#01051e;
      text-align: center;
      margin-top: 3vw;
      margin-bottom: 1.5vw;
      display: flex;
      justify-content: center;
    }
      .map-list-list{
          font-size: 1em;
          font-family: Verdana, Geneva, Tahoma, sans-serif; 
          color: #01051e;
          text-align: justify;
          margin-bottom: 5vw;
          justify-content: center;
          border-top: 2px solid #01051e;
      }
      .map-list-subheader{
          font-size: 1.5em;
          font-weight: bold;
          color:#01051e;
          text-align: center;
          font-family: "Bodoni Moda SC", serif; 
          margin-top: 1vw;
          margin-bottom: 1.5vw;
        }
      .left-panel {
          width: 50%;
          padding: 0%;
      }
      .right-panel {
          width: 50%
      }
      .node-item {
          font-size: .8em;
      }

      .tree ul {
          padding-left: 5px;
          font-size: 115%;
      }
      .mapping-node h6 {
          font-size: .75em;
      }
      .display_text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        width: 100%;
        justify-content: center;
      }
    
      .book {
        margin-top: 0 !important;
        position: relative;
        transform: none !important;
        max-width: 350px !important;
        margin-bottom: 0;
        transform: translate(0, 15%)!important;
      }
    
      .triangle-section svg {
        width: 90% !important;
        max-height: 60vh;
        height: auto;
        overflow: visible; /* or unset */
        display: block;
        margin: 0 auto;
        transform: translate(0, -15%);
      }
    
      .triangle-section {
        padding: 20px;
        height: clamp(70vh, 80vh,90vh); /* Allow the section to adjust its height */
        justify-content: center;
        overflow: visible; /* or unset */
        align-items: center;
      }
      .rubric-item {
        font-size: .85em;
      }
      .oracle-box {
        top: -40%!important; /* push it above the book */
        left: calc(18% + 1rem)!important; /* Just to the right of the book */
        transform: translateY(0)!important;
        transform: translate(-50%, -100%);
        max-width: 90vw;
        text-align: center;
      }
      
}

@media only screen and (max-width: 700px) {
  .book {
    max-width: 300px;
  }

  .display_text {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}
@media screen and (max-width: 800px) {

  .text-block {
    font-size: calc(1vw + 0.5rem)!important;
  }
}

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

  .text-block {
    font-size: calc(1vw + 0.25rem)!important;
  }
}

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

  .container {
    max-width: 95vw !important;
    width: 95vw !important;
    padding: 0 1rem !important;
  }
  .text-block {
    width: 100% !important;
    font-size: calc(1.5vw + 0.5rem); /* Scales with viewport width */
    word-break: keep-all;
    white-space: nowrap;
    overflow-x: auto;
  }
  .text-block p {
    white-space: nowrap;
  }
  .mapping-text, .mapping-text * {
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

.mapping-button {
  position: fixed;          /* fixed so it stays relative to the viewport */
  top: 12vw;                 /* near the top */
  right: 3vw;               /* pushed close to the right side */
  padding: 1vw 2vw;
  font-size: clamp(1rem, 2vw, 2rem);
  background-color: #001489;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  cursor: pointer;
  z-index: 1000;             /* HIGH z-index so it floats above all content */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}


.mapping-button:hover {
  background-color: #0033cc;
}


.oracle-box {
  position: absolute;
  top: 50%;
  left: calc(100% + 1rem); /* Just to the right of the book */
  transform: translateY(-50%);
  background-color: rgba(20, 20, 20, 0.9);
  padding: 1.5rem 2rem;
  border: 2px solid #fff;
  border-radius: 10px;
  color: white;
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  text-align: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  max-width: 300px;
  width: max-content;
  white-space: normal;
}

.oracle-box.show {
  opacity: 1;
}

.oracle-label {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #f5e9d7; /* Cream color */
  background: rgba(20, 20, 20, 0.9);
  padding: 0 0.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.oracle-text {
  display: inline-block;
  animation: goldenPulseFast 2s infinite ease-in-out;
}

/* Faster pulse for Oracle */
@keyframes goldenPulseFast {
  0%, 100% {
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 1);
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@supports not (background-image: url("/static/images/papyrus.a4c8e72a82cc.webp")) {
  .triangle-section {
    background-image: url("/static/images/papyrus.a88cd85aeba2.jpg"), linear-gradient(#fdf6e3, #f5e9d7);
  }
}

@supports not (background-image: url("/static/images/countryside.f8f326676e7d.webp")) {
  .banner_img {
    background-image: url("/static/images/countryside.89794a5d2220.jpg"), linear-gradient(#fdf6e3, #f5e9d7);
  }
}

.rubric-description {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: #444;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 750px;
  line-height: 1.6;
}

.rubric-tooltip {
  position: absolute;
  background: #f5f5dc;
  border: 1px solid #999;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.rubric-popup {
  cursor: pointer;
  color: rgb(148, 136, 64);
  font-weight: bold;
}
/* ZEUS BUTTON - larger and shifted left */
.zeus-btn {
  position: absolute;
  bottom: 20px;
  right: 130px; /* was 20px */
  z-index: 100;
  background-color: rgba(205, 127, 50, 0.85); /* bronze */
  border: none;
  padding: 16px 30px; /* slightly larger */
  font-family: 'EB Garamond', serif;
  font-size: 22px; /* bumped from 16px */
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px #00000066;
  transition: background-color 0.3s ease;
}

.zeus-btn:hover {
  background-color: rgba(205, 127, 50, 1);
}

/* ZEUS MODAL - shifted left to align with button */
.zeus-modal {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 10%;
  background: rgba(245, 245, 245, 0.8); /* light grey with 80% opacity */
  border: 2px solid gold;
  border-radius: 8px;
  padding: 16px 28px;
  color: #2d1c0b;
  font-family: 'EB Garamond', serif;
  font-size: 50px;
  width: 40%;             /* NEW */
  max-width: none;        /* Remove the 320px cap */
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  overflow-y: auto;
  max-height: 65%;
}

/* CLOSE BUTTON */
.zeus-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 32px; /* was 22px */
  font-weight: bold;
  color: #2d1c0b;
  cursor: pointer;
  line-height: 1;
}

/* TEXT INSIDE MODAL */
.zeus-content-text {
  font-size: 24px;
  line-height: 1.5;
}

/* MOBILE STYLING */
@media screen and (max-width: 768px) {

  .homepage-modal-container {
    margin: 0!important;
  }
  .zeus-btn {
    margin: 0 auto;
    font-size: 22px;
    padding: 16px 30px;
    background-color: rgba(205, 127, 50, 1);
    z-index: 11;
  }
}
@media screen and (max-width: 768px) {
  .banner_background {
    height: 100vh;
    min-height: 600px; /* or whatever keeps the book fully visible */
    position: relative;
    overflow: visible;
  }
  .zeus-modal {
    width: 90%; /* Full width on mobile */
    right: 29px;
  }
}

.footnote-list {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.footnote-item * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal; /* prevents nowrap issues */
    text-align: justify;
    font-size: .9em;
    font-family: 'EB Garamond', serif;

}

blockquote {
  margin-left: 2em;
  margin-top: 2em!important;
  padding-left: 1.2em;
  font-style: italic;
  color: #333;
  background-color: #f9f9f7;
  font-family: 'Georgia', serif;
  font-size: .8em;
}

.text-block-how,.no-indent p{
  text-indent:0 !important;
}