* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --p2: #ffd84d;
  --p3: #0b1c3d;
  --p4: #0b1c3db2;
  --p5: #ffd84d75;
}

html {
  scroll-behavior: smooth;
}

#slide {
  padding: 0;
  position: relative;
  margin: 0;
  height: auto;
  width: 100vw;
  touch-action: none;
}

#slide * {
  pointer-events: none;
}

section {
  position: relative;
  width: 100vw;
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f4f8fb;
  background: transparent;
}

section > * {
  margin: 8px 0;
}

section p {
  font-family: "Open Sans", sans-serif;
  color: #333333;
  font-weight: 400;
  font-size: 15px;
  line-height: 19px;
}

section > h2:not(#contact h2),
.section > h2 {
  position: relative;
  border-bottom: 1.5px solid var(--p3);
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--p3);
  padding: 0px 8px;
  padding-left: 0px;
  width: auto;
  margin-right: auto;
  animation: h2Border linear both;
  animation-timeline: view();
  animation-range: entry 30% cover 40%;
  transform: scaleX(0.85);
  transform-origin: left;
}

#track img {
  width: 100%;
  height: 100%;
}

footer {
  height: auto;
  width: 100vw;
  background-color: var(--p3);
  color: rgba(255, 255, 255, 0.747);
  border-top: 0.1px solid var(--p2);
  text-align: center;
  padding: 4px;
  font-size: 15px;
  font-weight: 100;
}

.bluro {
  position: relative;
  height: 45vw;
  width: 100%;
  overflow: hidden;
}

.bluro > * {
  height: 100%;
  width: 100%;
  position: absolute;
  visibility: hidden;
  will-change: transform;
}

#vid {
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.arroww {
  background-color: var(--p3);
  height: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exe {
  width: 100%;
}

.exe a {
  border: 1px solid var(--p3);
  color: var(--p3);
  border-radius: 5px;
  padding: 0px 8px;
  height: 30px;
  font-weight: 500;
  background-color: transparent;
  display: flex;
  align-items: center;
}

.dline {
  display: flex;
  flex-direction: row;
}

.dline {
  margin-right: auto;
}

.map {
  width: 100%;
  height: 30vh;
}

#contact {
  background-color: var(--p3);
  color: white;
}

#contact h2 {
  color: white;
  font-size: 24px;
  font-weight: 900;
  width: auto;
  margin-right: auto;
  margin-bottom: 8px;
}

@keyframes dropDown {
  0% {
    max-height: 0vh;
  }
  100% {
    max-height: 50vh;
  }
}

@keyframes subDrop {
  0% {
    max-height: 0;
  }
  100% {
    max-height: 50vh;
  }
}

@keyframes slowBlur {
  0% {
    visibility: visible;
    transform: scale(1);
  }
  80% {
    filter: blur(0px);
    transform: scale(1);
  }
  100% {
    filter: blur(8px);
    visibility: hidden;
    transform: scale(0.9);
  }
}

@keyframes h2Border {
  0% {
    top: 36px;
  }

  100% {
    top: 0;
  }
}

#main {
  position: relative;
  width: 70vw;
  height: 90vw;
  margin: auto;
  perspective: 2000px;
  border-radius: 20px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.685);
}

#main * {
  border-radius: 20px;
}

#book {
  background-image: url("./res/table.jpg");
  background-size: cover;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 20px;
}

#front {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 23;
  transform-origin: left;
  transform-style: preserve-3d;
  backface-visibility: visible;
  display: flex;
}

#bgo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -90;
}

#back {
  padding: 34px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#back > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  overflow: hidden;
  gap: 14px;
}

#back h2 {
  font-size: 21px;
  text-align: center;
  color: var(--p3);
  font-weight: 700;
}

#founder {
  height: 100px;
  width: 100px;
  margin: 0 auto;
}

#back p {
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  height: auto;
  font-family: "Playfair Display", serif;
}

#back h3 {
  font-size: 12px;
  width: auto;
  text-align: center;
  line-height: 0.6;
}

img {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

@keyframes book {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-90deg);
  }
}

#bgpage {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  transition: top 0.5s ease-in-out;
}

.bgnone {
  background-color: transparent;
}

#coastalAreas {
  height: auto;
  width: 100vw;
}

#coastalAreas > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

#coastalAreas img {
  width: 45vw;
  height: auto;
}

#imgfocus {
  height: 100vh;
  width: 100vw;
  background-color: #0b1c3d8c;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  display: none;
}

#imgfocus * {
  z-index: inherit;
}

#imgfocus > svg {
  position: absolute;
  height: 10vw;
  width: 10vw;
  top: 5%;
  right: 5%;
}

#if-container {
  width: 100vw;
  min-height: 10vh;
  height: auto;
}

#if-container > img {
  width: 100%;
  height: auto;
}

#search {
  position: fixed;
  position-anchor: --header;
  position-area: bottom span-all;
  width: 100vw;
  height: auto;
  animation: dropDown 1s ease-in;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 1vh;

  overflow: hidden;
}

#searchBar {
  position: relative;
  height: 4.5vh;
  width: 100%;
  border-bottom: 1px solid var(--p3);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

#searchBar > * {
  height: 100%;
}

#searchBar > pre {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: normal;

  width: 20%;
  height: 4.5vh;
  font-size: 1.8vh;
  border: 0px;
  line-height: 0.8;
}

textarea:focus {
  outline: none;
}

#sb_main {
  width: 80%;
  background-color: transparent;
  border: 0px;
  border-left: 1px solid var(--p3);
  line-height: 4vh;
  text-align: left;
  padding: 0 15px;
  font-size: 2.5vh;
}

#sb_main::placeholder {
  color: var(--p3);
  line-height: 4vh;
  font-size: 2vh;
  text-align: center;
  font-weight: 300;
}

#searchBar > svg {
  position: absolute;
  right: 15px;
  pointer-events: all;
}

#sb_clear path {
  pointer-events: all;
}

#tab {
  width: 70%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.tab_elements {
  width: 100%;
  min-height: 4vh;
  color: var(--p3);
  border-bottom: 1px solid var(--p3);
  margin-bottom: 5px;
  padding: 0 10px;
}

.slider-container {
  width: 80%; /* Adjust width as needed for your site */
  max-width: 900px; /* Limits the max width */
  margin: 0 auto;
  position: relative; /* Essential for absolute-positioning children (arrows, captions) */
  overflow: hidden; /* Important: Hides the other slides */
  background-color: #fff; /* White background behind the images, if any */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow for a card effect */
}

/* 3. The Slide Wrapper (Moving Part) */
.slides {
  display: flex; /* Lines up images horizontally */
  transition: transform 0.5s ease-in-out; /* Creates the sliding animation */
}

/* 4. Individual Slides */
.slide {
  min-width: 100%; /* Each slide takes up 100% of the slider-container width */
  box-sizing: border-box;
  display: flex; /* Centers images within the slide */
  justify-content: center;
  align-items: center;
}

.slide img {
  aspect-ratio: 1/1.4;
  width: 60%; /* Ensures image fits within the container width */
  height: auto; /* Maintains aspect ratio */
  display: block;
}

/* 5. Styling the Navigation Arrows */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Centers the arrow vertically */
  width: auto;
  padding: 16px;
  color: var(--p4); /* Arrow color */
  font-weight: bold;
  font-size: 30px; /* Size of the arrow */
  transition: 0.6s ease;
  user-select: none; /* Prevents text selection on click */
  z-index: 10; /* Ensures arrows are on top of images */
}

/* Adjust positions for Left and Right arrows */
.next {
  right: 10px;
}
.prev {
  left: 10px;
}

/* Optional: Change background on hover for better user feedback */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Optional: Styling for Dot Indicators */
.dots-container {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: white;
}

#trustee {
  background-color: var(--p5);
  padding: 10px 0;
}

section#trustee h2 {
  width: 80vw !important;
  margin: 0 auto;
  text-align: left;
}

#founder-info {
  width: max-content;
  margin: 0 auto;
}

#founder-info h3 {
  font-size: 16px;
  text-align: center;
  color: var(--p3);
  line-height: 1;
}

#trustee-info p {
  text-align: center;
}

#trustee-names {
  font-size: 18px;
}

#founder-info #qualifications {
  font-size: 12px;
  text-align: right;
  line-height: 0.8;
}
