/* GLOBAL RESET for all elements, including pseudo-elements */
*, 
*::before, 
*::after {
  box-sizing: border-box; /* fixing sizing issues */
}

/* THEMES */
/* Dark theme override is kept under each original design theme */

/*Theme 1 */
:root {
      --primary-color: #ffffff; /*Orchid Sunrise as Default */
      --secondary-color: #cc0066;
      --background-color: #f9ecf2;
      --text-color: #660066;
      --tertiary-color: #b0daff;
      --quaternary-color: #ffe5b3;
      --extra-color: #a9d2b8;
      --box-shadow: 102, 0, 102; /*purple*/
}
  @media (prefers-color-scheme: dark) {
    html:not([data-override="original"]) body:not(.theme-peaches):not(.theme-lagoon):not(.theme-carnival) {
      --background-color: #230c1c;
      --text-color: #bc91b5;
      --primary-color: #440e3a;
      --secondary-color: #4da053;
      --tertiary-color: #184835;
      --quaternary-color: #762255;
      --extra-color: #292756;
      --box-shadow: 188, 145, 181;
    }
  }

/*Theme 2 */
body.theme-peaches {
  --primary-color: #fff0f5; /* Peaches & Cream */
  --secondary-color: #00b386;
  --background-color: #ffd6cc;
  --text-color: #ff1a66; /*Bright old one was #ff1a66 */
  --tertiary-color: #a8eddd;
  --quaternary-color: #fff7c2; /*old color was pastel pink #ffbad1*/
  --extra-color: #a7ffea; /* old color was pastel teal #a7ffea*/
  --box-shadow: 255, 26, 102; /*hot peach*/
}

  @media (prefers-color-scheme: dark) {
  html:not([data-override="original"]) body.theme-peaches {
    --background-color: #371419;
    --text-color: #d3998a;
    --primary-color: #44171d;
    --secondary-color: #357786; /*old color #9e3d25 maybe use for links later*/
    --tertiary-color: #1f492b;
    --quaternary-color: #be895e;
    --extra-color: #5d2b10;
    --box-shadow: 211, 153, 138; 
    }
  }

/*Theme 3 */
body.theme-lagoon {
      --primary-color: #020d17; /* Midnight Lagoon */
      --secondary-color: #7979d2;
      --background-color: #062746;
      --text-color: #c7e6a7;
      --tertiary-color: #ff27cd;
      --quaternary-color: #ff87e3;  /*#ff27cd*/
      --extra-color: #1616b4; /* old one was brighter #4343ff*/
      --box-shadow: 230, 255, 204; /*pastel gloworm green*/
} 
  @media (prefers-color-scheme: dark) {
  html:not([data-override="original"]) body.theme-lagoon {
    --background-color: #1c1c29;
    --text-color: #9197bc;
    --primary-color: #201f49;
    --secondary-color: #497367;
    --tertiary-color: #67276a;
    --quaternary-color: #412663;
    --extra-color: #27432c;
    --box-shadow: 145, 151, 188;
    }
  }

/*Theme 4 */
body.theme-carnival {
      --primary-color: #060824; /* Carnival Hijinks */
      --secondary-color: #ffbe0d;
      --background-color: #1c0a47;
      --text-color: #fec7ff;
      --tertiary-color: #4fa300;
      --quaternary-color: #8a0000; /*old one was brighter #6a2aff*/
      --extra-color: #d600bd;
      --box-shadow: 169, 112, 243;
}
  @media (prefers-color-scheme: dark) {
  html:not([data-override="original"]) body.theme-carnival {
    --background-color: #0e2114;
    --text-color: #a17cd2;
    --primary-color: #21245d;
    --secondary-color: #b49339;
    --tertiary-color: #3a793b;
    --quaternary-color: #710f0f;
    --extra-color: #7b0f6e;
    --box-shadow: 161, 124, 210;
    }
  }

/* use variables for color across site where themes are enabled. if you want to override for something, just set a specific color. Remember to always set a fallback color when using variables (just take from the :root's definitions) */

html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
}
body {
  background-color: var(--background-color, #f9ecf2);
  color: var(--text-color, #660066);
  font-family: "Alegreya Sans", Tahoma;
  font-size: 1.25rem;
  padding-top: 6rem;
}

/* HEADER STUFF */
#header-container {
  width: 100%;
  height: auto;
}
.header-content {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color, #ffffff);
  border-bottom: 1px solid var(--secondary-color, #cc0066);
}
#hamburger-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger-svg {
  color: var(--secondary-color, #cc0066);
  margin: 4px 0;
  transition: 0.4s;
}

/* header default style */
.headerH1 {
  margin: 0 0;
  font-size: 1.5rem;
  line-height: 2.0rem;
  letter-spacing: 0.20rem;
  color: var(--secondary-color, #cc0066);
  font-family: Tahoma;
}

/*THEME PICKER STUFF*/
.theme-picker {
  position: absolute bottom left;
}
#theme-toggle {
  background: none;
  border: none;
  color: var(--secondary-color, #cc0066);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
}
#theme-panel {
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  padding: 1rem;
  background-color: var(--primary-color, #ffffff);
  color: var(--text-color, #660066);
  border: 1px solid var(--secondary-color, #cc0066);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 250px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: top center;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-panel-hidden {
  opacity: 0 !important;
  transform: translateY(0) scale(0.8) !important;
  pointer-events: none;
}
.theme-labelH3 {
  margin: 0 0;
}
/* style of ul */
#theme-options-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
/* styling the li */
#theme-options-list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  color: var(--text-color, #660066); 
  background-color: var(--background-color, #f9ecf2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
/* hover/focus state */
#theme-options-list li:hover,
#theme-options-list li:focus {
  background-color: var(--tertiary-color, #ffe5b0);
  outline: none; 
}
/* icon placeholder */
.theme-icon {
  width: 24px; 
  height: 24px;
  margin-right: 0.75rem;
  flex-shrink: 0; /* shrinkage prevention */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* mode buttons stuff */
.mode-toggle-container {
  display: flex;
  gap: 10px;            /* Adds a clean space between the two buttons */
  margin-top: 15px;     /* Separates the buttons from the list above */
  width: 100%;          /* Ensures it spans the width of your panel */
}
/* Base styling for the buttons to share the space equally */
.mode-btn {
  flex: 1;              /* Forces both buttons to be the exact same width */
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 4px;   /* Softens the corners */
  font-weight: bold;
  font-size: 0.85rem;   /* Keeps them slightly smaller than main headers */
  border: 1px solid var(--text-color);
  background-color: var(--primary-color);
  color: var(--text-color);
  transition: all 0.2s ease;
}
/* Subtle hover effect using your existing theme variables */
.mode-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}


/*NAVIGATION STUFF*/
/* base styles */
#main-nav {
  visibility: visible;
}

.sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 500;
    overflow-y: auto;
    overflow-x: hidden;
    top: 0;
    left: 0;
    height: 100vh;
    width: 20rem;
    /* theme stuff for it */
    background-color: var(--primary-color, #ffffff); 
    color: var(--secondary-color, #cc0066);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-right: 1px solid var(--secondary-color, #cc0066);
}
.sidebar.open {
    transform: translateX(0);
}
.sidebarHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    top: 0;
    background-color: var(--primary-color, #ffffff);
    padding-bottom: 1rem;
}
.navH2 {
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    line-height: 2rem;
    font-family: Tahoma;
}
#nav-close-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}
#nav-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.exitIcon {
  margin-top: 0.4rem;
  margin-left: 0.35rem;
  color: var(--text-color, #660066);
}

/*list and link bases*/
/* The entire ul */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
}
/* targets only li children of the ul above */
.nav-list > li {
    width: 100%;
}
/* targets only links/<a> tags within the ul (Applies to ALL links) */
.nav-list a {
    text-decoration: none;
}

/*item containers (critical for flex stuff)*/
/* Targets the LIs */
.nav-item {
  padding: 0 1rem;
  /* transition: background-color 0.2s; */
  background-color: var(--background-color, #f9ecf2);
  border-radius: 4px;
  border: none;
}
/* Hover rule must come after the base rule */
.nav-list .nav-item:hover {
    background-color: var(--tertiary-color, #ffcc66);
}
.nav-item .nav-link {
    color: var(--text-color, #660066);
    font-size: 1.15rem;
    font-weight: bold;
}
.inner-nav-item {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  /* gap: 0.5rem; */
}
.nav-icon {
  background-color: var(--primary-color, #ffffff);
  border-radius: 10px;
  padding: 0;
  margin-left: -1rem;
}
.nav-text {
  margin-left: 2rem;
}

/* for making a shared class for complex lis with submenus*/
.nav-item-has-submenu {
  position: relative;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  border: none;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* submenu specific stuff*/
/*targets the entire ul sublist inside of the <li> (named .nav-item)*/
.subnav-toggle {
  background: none;
  border: none;
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  /* gap: 0.25rem; */
  margin-left: 0.5rem;
  margin-right: -0.3rem;
  background-color: var(--text-color, #660066);
}
.plus,
.minus {
  color: var(--primary-color, #ffffff);
}
.subnav-toggle .plus {
  display: inline;
}
.subnav-toggle .minus {
  display: none;
}
.subnav-list {
    list-style: none;
    z-index: 1000;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 6.5rem;
    display: flex;
    align-items: left;
    flex-direction: column;
    font-size: 1rem;
    /* gap: 0.5rem; */
    /* margin: -0.1rem 4rem -0.9rem;
    padding: 0.5rem 1rem; */
    color: var(--tertiary-color, #b0daff);
    background-color: var(--primary-color, #ffffff);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    /* transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out; */
}
.subnav-list.expanded {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 6.5rem;
    max-height: 500px; 
    opacity: 1;
    visibility: visible;
    /* transition: max-height 0.5s ease-in, opacity 0.5s ease-in, visibility 0.5s ease-in; */
}
.nav-item-has-submenu.expanded .subnav-toggle .plus {
  display: none;
}
.nav-item-has-submenu.expanded .subnav-toggle .minus {
  display: inline;
}
.subnav-item {
  margin-top: 0.2rem;
  padding: 0;
}




/*MAIN CONTENT*




/* Intro section stuff */
.singular-container {
  margin-left: 10rem;
  margin-right: 10rem;
  margin-bottom: 3rem;
  overflow: hidden;
  background-color: var(--primary-color, #ffffff);
  box-shadow: -13px 15px 20px -6px rgba(var(--box-shadow, 102, 0, 102), 0.2);
  border-radius: 1.5rem;
}
.introH2{
  font-size: 1.75rem;
  padding: 0.5rem 1.5rem 0.25rem;
  margin: 0;
  /* background-color: rgba(var(--extra-color, 28, 141, 77), 0.4); */
  background-image: radial-gradient(
    circle at top left, 
    var(--extra-color, #a9d2b8),
    var(--quaternary-color, #ffe5b3)
    );
}
.oc-greeting-box {
  display: block;
  box-sizing: border-box;
  width: 90%;
  margin: 0 3rem 3rem;
  overflow: hidden;
}
.introOC {
  width: 30%;
  float: left;
  margin-right: 2rem;
  margin-bottom: 0.5rem;
}
.introP {
  padding: 1.5rem 1.5rem 1.5rem;
  margin: 0;
}
.options-box {
  display: block;
  width: 90%;
  box-sizing: border-box;
  margin: 0 auto 2rem;
  background-color: var(--background-color, #f9ecf2);
  border: 1px white solid; /* get rid of this later*/
  border-radius: 1rem;
}
.option-unit {
  display: block;
  box-sizing: border-box;
  margin: 1rem;
  padding: 2rem 1.5rem 1.5rem;
  background-color: var(--primary-color, #ffffff);
  border: 1px aqua solid;
  border-radius: 1rem;
}
.option-unit .small-img {
  float: left;
  width: 15%;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  object-fit: contain;

}
.small-img {
  width: 15%;
  float: left;
}
.optionsH3 {
  margin: 0 0 0.5rem 0;
}
.option-unit p {
  margin: 0;
  line-height: 1.5;
  font-size: 1.1rem;
}
.option-unit::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 768px) {
    .singular-container {
        margin: 0 1rem 1.5rem;
        border-radius: 0.75rem;
    }
    .introH2 {
      font-size: 1.6rem;
      padding:0.25rem 1rem 0.5rem;
      margin: 0;
    }
    .introP {
      font-size: 1.1rem;
      padding: 1rem 1rem 1rem;
      margin: 0;
    }
}

/* Two-column container stuff */
.column-container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  margin-left: 10rem;
  margin-right: 10rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .column-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .column-container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}
.column-unit {
  /*padding: 0.3rem 1rem 1rem;*/
  margin: 0;
  overflow: hidden;
  background-color: var(--primary-color, #ffffff);
  box-shadow: -13px 15px 20px -6px rgba(var(--box-shadow, 102, 0, 102), 0.2);
  border-radius: 1.5rem;
}
@media (max-width: 768px) {
.column-unit {
    border-radius: 0.75rem;
  }
}
.contentH3 {
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem 0.25rem;
  margin: 0;
  background-image: radial-gradient(
    circle at top left, 
    var(--extra-color, #a9d2b8),
    var(--quaternary-color, #ffe5b3)
    );
}
@media (max-width: 768px) {
.contentH3 {
    font-size: 1.4rem;
  }
}

/*special gradient container, to be paired with centeredH3 usually*/
.gradient-container {
  margin-left: 10rem;
  margin-right: 10rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: -13px 15px 20px -6px rgba(var(--box-shadow, 102, 0, 102), 0.2);
  border-radius: 1.5rem;
  background-image: linear-gradient(
    to bottom,
    var(--quaternary-color, #ffe5b3),
    var(--primary-color, #ffffff)
    );
}
/*centered H3 for anytime you want to center it and have no color effect*/
.centeredH3{
  font-size: 1.5rem;
  padding: 0.5rem 1.5rem 0.25rem;
  margin: 0;
  text-align: center;
}

/* Folder with tabs style of container */
.folder-container {
  margin-left: 10rem;
  margin-right: 10rem;
  margin-bottom: 3rem;
  background-color: var(--primary-color, #ffffff);
  box-shadow: -13px 15px 20px -6px rgba(var(--box-shadow, 102, 0, 102), 0.2);
  border-radius: 1.5rem;
}

/* Flexbox aligns tabs in a row */
.folder-tabs {
  display: flex;
  gap: 4px;
}

/* Styling buttons to look like folder tabs */
.tab-btn {
  padding: 10px 20px;
  background: #d1c2a5; /* Dull folder flap color */
  border: 2px solid #8b7d6b;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}

/* Active tab blends perfectly into the folder body */
.tab-btn.active {
  background: #f4ecd8; /* Bright manila paper color */
  z-index: 3;
  margin-bottom: -2px; /* Overlaps the border below */
  padding-bottom: 12px;
}

/* Main folder page asset */
.folder-body {
  background: #f4ecd8;
  border: 2px solid #8b7d6b;
  border-radius: 0 8px 8px 8px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Hide inactive content panels by default */
.tab-content {
  display: none;
}

/* Show the active content panel */
.tab-content.active {
  display: block;
}


/*2 Column Content Containers*/
/*It's equivalent to introP's settings, solely for padding and 0 margin*/
/*Re-use for any two-column set ups across site*/
._2col-content-container {
  padding: 1.5rem 1.5rem 1.5rem;
  margin: 0;
}
.spotlight-scroll-area {
  max-height: 800px;
  overflow: auto;
}
.contentH4 {
  margin-bottom: 0.5rem;
}


/*Carousel container stuff for the explore map or any carousel*/
.carousel-wrapper {
  max-width: 1280px;
  margin: 2rem;
  position: relative;
}
.carousel-container {
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 3rem;
}
.carousel-track {
  display: flex;
  width: 1100%;
  transition: transform 0.5 ease-in-out;
}
.carousel-slide {
  display: flex;
  max-height: 400px;
  width: 9.0909%;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
}
.carousel-unit {
  flex: 0 0 calc(33.333% - 13.333px);
  overflow: hidden;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
  background-color: var(--primary-color, #ffffff);
  padding: 15px;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.carousel-unit:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}
/*Carousel button stuff*/
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  background: var(--tertiary-color, #ffe5b0);
  color: var(--secondary-color, #cc0066);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
}
.carousel-nav:hover {
  opacity: 1;
  background-color: var(--tertiary-color, #ffe5b0);
  color: var(--secondary-color, #cc0066);
}
.prev-btn {
  left: -10px;
}
.next-btn {
  right: -10px;
}
/* Hide disabled buttons (as managed by the JavaScript) */
.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--primary-color, #ffffff);
  color: var(--primary-color, #ffffff);

}
/*Responsive carousel for mobile*/
@media (max-width: 768px) {
    .carousel-wrapper {
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }
    .carousel-container {
      width: 90%;
      margin: 0 auto;
      padding: 0 5px;
    }
    .carousel-slide {
        width: 9.0909%;
        gap: 10px;
        padding: 5px;
    }
    .carousel-unit {
        flex: 1 0 100%;
    }
    .carousel-nav {
        padding: 8px 12px;
        font-size: 20px;
    }
    .prev-btn {
      left: 5px;
    }
    .next-btn {
      right: 5px;
    }
}

/*Bottom container stuff*/
.bottom-container {
  margin-left: 10rem;
  margin-right: 10rem;
  background-color: var(--primary-color, #ffffff);
  border-radius: 1.5rem;
  padding: 2rem;
}
@media (max-width: 768px) {
    .bottom-container {
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 0.75rem;
    }
}
