html {
    min-height: 100%;
}

body {
    background:linear-gradient(to top right, #8c00ff, #eee, #8c00ff);
    background-repeat: no-repeat;
    height: 100%;
    margin: 0;
    padding: 0;
    background-size: cover;
    font-family: Comic Neue;
    
}

body.dark-mode, html.dark-mode {
    background: linear-gradient(to top right, #1a1a1a, #2c2c2c, #343454);
  color: rgb(255, 255, 255);
}

.heroSection {
  padding: 2rem;
  margin: auto;
}

#WW-logo {
    height: 80px;
    width: auto;
    display: flex;
    margin: 0;
}
.theme-btn.selected {
  outline: 2px solid cyan;
  font-weight: bold;
  background-color: #111;
  color: #0ff;
}

/* ROYGBIV Spectra Theme */
body.theme-spectra {
  background: linear-gradient(135deg, red, orange, yellow, green, blue, indigo, violet);
  color: black;
}

/* Optional: button style */
#toggleSpectra {
  background: transparent;
  border-radius: 8px;
  cursor: default;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 , body.dark-mode h4,
body.dark-mode p {
  color: #eee;
}
#toggleDark {
  background: transparent;
}

.dark-mode header, .dark-mode footer {
    background: linear-gradient(to top right, #2a2a2a, #4d4d4d, #777777);
}

.dark-mode .scroll-box {
  background-color: #939393;
}

.dark-mode .dropdown-content-tool {
    color: #000000;
}

.dark-mode a {
  color: #5aaeed;
}

.dark-mode .li-footer {
  color: #8c57d5;
  text-shadow: 4px 4px 4px #000;
}

.webweaversImage {
  display: flex;
  justify-content: right;
}


h1, h2, h3, h4, h5 {
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    color: #000000;
    font-family: Comic Neue;
    letter-spacing: 0.05em;
    
}

.subSection {
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  }

p :not(.faq-a) {
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    color: #000000;
    letter-spacing: 0.03em;
    flex-direction: column;
}

.p-footer, .li-footer {
  padding: 0;
  color: #2a004f;
  font-weight: 400;
  list-style:square ;
}

.faq-a {
  display: flex;
  flex-wrap: wrap;;
}

/* Remove default spacing */
.menu-list,
.menu-list li,
.submenu,
.submenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tighten vertical spacing if needed */
.submenu li {
  line-height: 1.4;
}

/* Optional: Remove whitespace gaps if using inline or flex */
.menu-list,
.submenu {
  font-size: 0; /* Removes inline gaps */
}

.menu-list li,
.submenu li {
  font-size: 1rem; /* Restore desired size */
}

/* Prevent extra spacing from anchors */
.menu-list a,
.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

hr {
    width: 100%;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border: none;
    height: 1px;
}

li :not(.faq-q) {
  list-style-type: decimal;
}

ol li::marker {
  color: #3d3d3d;
  font-weight: bold;
  content: "⁛ ";
}

.site-size {
  font-size: 0.9rem;
  color: #5ea4ff;
  border: 1px solid #5ea4ff;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: help;
}

#faq-section {
      display: flex;
    flex-direction: column;
    text-align: left;
    flex-wrap: wrap;
}

#tagline {
    color: #000000;
    margin: auto;
    padding: 1rem;
    text-align: center;
    font-family: Comic Neue;
}

#atDesc {
    color: #000000;
    font-size: 1rem;
    font-family: Comic Neue;
}


a {
    color: #0c00a6;
    text-decoration: none;
}

a:hover {
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-shadow: 0 0 10px rgb(255, 255, 255);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
}
/*#9c25fd <= purple */


.start-btn {
    background: #999;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    font-family: monospace;
    box-shadow: inset 1px 1px 0 #000000, inset -1px -1px 0 #000000;
    color: #eee;
}

.menu-list {
  opacity: 0;
  transform: translateY(-20px);
  visibility: hidden;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  pointer-events: none;
  /* your existing styles below */
  list-style: none;
  background: #eee;
  padding: 0;
  margin: 0;
  border: 1px solid #999;
  position: absolute;
  z-index: 100;
  width: 220px;
  font-family: 'Segoe UI', sans-serif;

}

.menu-list.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-list li {
  position: relative;
}

.menu-list li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
}

.menu-list li a:hover {
  background: #9c25fd;
  color: #fff;
}

/* Submenu Styling */
.has-submenu .submenu {
  opacity: 0;
  transform: translateX(-20px); /* Move it slightly to the left */
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: #eee;
  border: 1px solid #999;
  width: 220px;
}

.has-submenu:hover > .submenu {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.has-submenu:hover > .submenu {
  display: block;
}

#menu-li {
  list-style: none;
}

@media screen and (max-width: 425px) {
  .has-submenu .submenu {
    position: relative;
    top: 100%;   /* Drop *below* the parent */
    left: 0;     /* Align left edge with parent */
    width: 100%; /* Optional: make it full width */
    z-index: 100;
  }

  .has-submenu:hover .submenu {
    display: block;
  }
}

.zoom-wrap {
  border-radius: 8px;
  width: calc(50% - 0.5rem); /* or 100% on mobile */
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  transform-origin: center center; /* key to centering on zoom */
}

.zoom-wrap:hover img {
  transform: scale(1.05); /* moderate zoom to avoid breaking layout */
}

@media screen and (max-width: 768px) {
  .zoom-wrap {
    width: 100%;
    margin: 0 auto;
  }
}

/* Carousel */
#tawcarousel {
    margin: auto;
    padding: 0;
    width: fit-content;
    background: #d3d3d3;
    border-radius: 5px;
}

.carousel-nav button{
  text-align: center;
  display: inline-block;
  margin: 0 5px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  align-content: center;
  color: #FAF9F6;
  text-shadow: 0 4px 4px #000000;
}

.carousel-nav button {
  transition: transform 0.3s ease;
}

.carousel-nav button:hover {
  transform: scale(1.3);
}

.carousel-slide {
  display: none;
}
.carousel-slide.active {
  display: block;
}

.carousel-nav:hover {
    transition: 0.3s ease-in;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items:center;
    padding: 1rem;
    gap: 10rem;;
}

.carousel-slide {
  display: none;
}
.carousel-slide.active {
  display: block;
  text-align: center;
  padding: 0;
  margin: auto;
  border-bottom: 5px;
}

.web-weavers-article {
    background-color: rgba(197, 197, 197, 1);
    border-radius: 1rem;
    padding: 1rem;
    justify-items: center;
    /* margin: auto; */
    border-bottom: 1rem;
    box-shadow: 4px 4px 4px 2px #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Slideshow */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: row;
}

img {
    width: 25%;
    margin: auto;
    border-radius: 10px;
}

.mySlides {
    display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* About Section */

.about-wrapper {
  display: flex;
  min-height: 70vh;
  flex-wrap: wrap;
}

.about-nav {
  background-color: #ffffff55;
  padding: 20px 40px;
  min-width: 150px;
}

.about-nav ul {
  list-style-type: none;
  padding: 0;
  color: #000000;
}

.about-nav a {
  display: block;
  padding: 10px 0;
  color: #000000;
  text-decoration: none;
}

.about-nav a:hover {
  text-shadow: 0 0 10px#583ad2;
  text-decoration: underline;
}

#about-content {
  flex: 1;
  padding: 20px;
}

#about-content h1 {
  margin-top: 0;
}

#about-text {
  white-space: pre-line;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* adds spacing */
  gap: 1rem;                      /* optional spacing */
  margin: 0 1rem ;
}

.image-grid img {
  width: calc(50% - 0.5rem);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease; /* smooth zoom */
}

.image-grid img:hover {
  transform: scale(1.35); /* slight zoom in */
  z-index: 1;
  cursor: zoom-in;
}

.client-desc {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
    align-items: center;
}

.testimonial-intro {
  margin: auto;
    padding: 2rem;
    display: flex
;
    justify-content: center;
    color: #000000;
    letter-spacing: 0.03em;
    flex-wrap: wrap;
    text-align: center;
}

#contactInfo {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}


/* COOKIE */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #fef3e2, #f5dcff);
  color: #333;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  z-index: 999;
  display: none;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
  color: #333;
}

.cookie-banner button {
  background-color: #8c00ff;
  border: none;
  padding: 0.5rem 1.2rem;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #a64dff;
}


/* Media */
@media screen and (max-width: 320px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  .your-container-class, .cards-wrapper, .button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 1rem;
  }

  .card, .box, .panel {
    max-width: 100%;
    width: 100%;
    margin: 0.5rem 0;
  }

    footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
    footer > * {
    width: 100%;
    padding: 0.5rem 1rem;
  }


  /* optional: reduce text sizes too */
  h1, h2, h3 {
    font-size: 1.2rem;
  }

  button, .btn {
    font-size: 0.9rem;
  }
}
