[id^="deepDiveOverlay-"] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

[id^="deepDiveOverlayContainer-"] {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 40px 5vw;

    /* HIDE SCROLLBAR (cross-browser) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

[id^="deepDiveOverlayContainer-"]::-webkit-scrollbar {
display: none; /* Chrome, Safari */
}

[class^="deep-dive-overlay-panel-"] {
    scroll-snap-align: center;
    flex: 0 0 85vw;
    margin: 0px 2.5vw;
    text-align: center;
    background: white;
    font-size: 14px;
    font-weight: 600;
    padding: 25px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid #c8c8c8;
    height: 400px;
    overflow: hidden;
}

[id^="deepDiveOverlay-"] h1 {
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0px;
    color: #333;
}

[class^="deep-dive-overlay-panel-"] h2 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
    margin-bottom: 5px;
    line-height: 1.4em;
}

[id^="openDeepDiveOverlayButton-"] {
    display: inline-flex;               /* enables horizontal layout */
    align-items: center;               /* vertical centering */
    gap: 15px;                          /* space between icon and text */
    padding: 12px 20px;
    min-width: 300px;
    /* background-color: #462200; */
    background-color: #000;
    border-radius: 200px;
    font-size: 17px;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
}

[id^="openDeepDiveOverlayButton-"] .icon svg {
    color: white;
}


[id^="openDeepDiveOverlayButton-"] .icon {
    display: flex;
    align-items: center;
}

[id^="openDeepDiveOverlayButton-"] svg {
    display: block;
    width: 24px;
    height: 24px;
}

.not-ready-icon {
    width: 32px;     /* change as needed */
    height: 32px;
    fill: #555;      /* change to your desired color */
    margin-top: 30px; /* optional spacing */
}

/* Default -notReady styles */
#openDeepDiveOverlayButton-notReady.not-ready-button {
    display: block;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.8px;
    height: 55px;
    width: 90%;
    min-width: auto;
    background-color: transparent;
    border: 2px solid black;
    color: black;
    margin-top: -10px;
}

.overlay-deep-dive-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

[id^="closeDeepDiveOverlayButton-"] {
    position: absolute;
    top: 30px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: red;
    cursor: pointer;
    z-index: 10000;
    background-color: rgb(255 0 0 / 10%);
    padding: 0px 12px;
    border-radius: 5px;
}

/* Dot indicators */
[id^="overlayDeepDiveDots-"] {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bbb;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

/* HEADER CSS */

/* Top fixed header inside each panel */
.deep-dive-panel-header {
    position: sticky;
    /* top: 0; */
    background: transparent;
    margin: -25px -20px 0px -20px;
    padding: 25px 30px 0px 30px;
    z-index: 2;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0px 10px 10px rgb(255, 255, 255, 0.7);
  }
  
  /* Tab toggle container */
  .deep-dive-tab-toggle {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 5px;
  }
  
  /* Tab buttons */
  .tab-btn {
    background: none;
    border: none;
    min-width: 100px;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 5px;
    cursor: pointer;
    border-bottom: 2px solid #333;
    color: #333;
    transition: color 0.3s, border-color 0.3s;
  }
  
  .tab-btn.active {
    border-bottom: 2px solid #006fe7;
    color: #006fe7;
  }
  
  /* Tab content areas */
  .deep-dive-tab-content {
    display: none;
    height: 100%;
  }
  
  .deep-dive-tab-content.active {
    display: flex;
    flex-direction: column;
  }

  /* SCROLLABLE CONTENT AREA */

  .deep-dive-scrollbox {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10px;
    max-height: calc(100% - 80px);
  }
  
  /* Optional: smooth scrollbars */
  .deep-dive-scrollbox::-webkit-scrollbar {
    width: 6px;
  }
  .deep-dive-scrollbox::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }
  .deep-dive-scrollbox {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }

  /* REFERENCE LOCATION CSS */

  .reference_location {
    font-weight: 800;
    color: #3960B5;
  }

  .commandment_number {
    font-size: 20px;
    font-weight: 800;
    color: #3960B5;
  }

  /* DARK THEME CSS */

  body.dark-mode [id^="openDeepDiveOverlayButton-"] {
    background-color: #fff;
    color: black;
}

body.dark-mode [id^="openDeepDiveOverlayButton-"] .icon svg {
    color: black;
}

body.dark-mode [id^="deepDiveOverlay-"] { 
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-mode [id^="deepDiveOverlay-"] h1 {
    color: #ccc !important;
}

body.dark-mode [id^="closeDeepDiveOverlayButton-"] {
    background-color: rgb(255 0 0 / 30%);
}

body.dark-mode [class^="deep-dive-overlay-panel-"] {
    background: #121212;
    border-color: #505050;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

body.dark-mode [class^="deep-dive-overlay-panel-"] h2 {
    color: white;
}

body.dark-mode .tab-btn {
    color: #979797;
    border-color: #979797;
}

body.dark-mode .tab-btn.active {
    color: #3d9bff;
    border-color: #3d9bff;
}

body.dark-mode .deep-dive-panel-header {
    border-color: #323232;
    box-shadow: 0px 10px 10px rgb(21 21 21 / 70%);
}

body.dark-mode .reference_location {
    color: #8db1ff !important;
}

body.dark-mode .dot {
    background-color: #333;
}

body.dark-mode .dot.active {
    background-color: #bbb;
}

body.dark-mode .deep-dive-scrollbox::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .deep-dive-scrollbox {
scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* NOT READY DARK MODE */
body.dark-mode #openDeepDiveOverlayButton-notReady.not-ready-button {
    color: white !important;
    border-color: white !important;
}

body.dark-mode .not-ready-icon {
    fill: #5a8de8;
}