body, p, select, textarea, input, button {
  font-family: "Lato-Regular", sans-serif;
  position: relative;
  /* needed for pseudo elements */
  overflow-x: hidden;
  background-color: #181a1b;
  color: #ffffff;
  border-width: 0px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 16px;
  margin: 0;
  padding: 0;
  will-change: filter;
}

/* Sidebar container */
.sidebar-toggle {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vw;
  width: 40px; /* Collapsed width */
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  transition: width 0.3s ease, background-color 0.3s ease;
  overflow-x: hidden;
  cursor: pointer;
  z-index: 1000;
  border-radius: 10px 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  box-sizing: border-box;
}

/* Expand sidebar on hover */
.sidebar-toggle:hover {
  width: min(300px, 50vw); /* Responsive max width */
  background-color: rgba(0, 0, 0, 0.8);
}

/* Adjust expanded width on tablets and smaller devices */
@media (max-width: 768px) {
  .sidebar-toggle:hover {
    width: min(140px, 40vw);
  }
}

/* Menu item container */
.sidebar-toggle .menu-item {
  width: 90%;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

/* Show menu items on hover */
.sidebar-toggle:hover .menu-item {
  opacity: 1;
}

/* Button styles */
.sidebar-toggle .menu-item button {
  max-width: 50%;
  white-space: normal;     /* Allows text to wrap */
  word-break: break-word;  /* Breaks long words if needed */
  height: auto;            /* Allow height to expand */
  display: inline-block;   /* Keep it behaving like a button */
  text-align: center;      /* Center the text */
  width: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

/* Button hover glow */
.sidebar-toggle .menu-item button:hover {
  box-shadow: 0 0 6px 2px white;
}

/* Optional: prevent text from shrinking too much */
.sidebar-toggle span {
  display: inline-block;

  transition: opacity 0.3s ease;
  opacity: 0;
}

/* Show span text on hover */
.sidebar-toggle:hover span {
  opacity: 1;
}




.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-black {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.lato-thin-italic {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.lato-light-italic {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.lato-regular-italic {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold-italic {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black-italic {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: italic;
}


/* Subtle background shapes with animation */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  opacity: 0.07;
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

body::before {
  width: 300px;
  height: 300px;
  background: #4a90e2;
  /* subtle blue */
  top: 10%;
  left: 15%;
  animation-name: float1;
  animation-duration: 10s;
}

body::after {
  width: 400px;
  height: 400px;
  background: #50e3c2;
  /* subtle teal */
  bottom: 20%;
  right: 10%;
  animation-name: float2;
  animation-duration: 12s;
}

@keyframes float1 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(10px) translateX(5px) rotate(5deg) scale(1.1);
  }

  50% {
    transform: translateY(20px) translateX(15px) rotate(10deg) scale(1.2);
  }

  75% {
    transform: translateY(10px) translateX(5px) rotate(5deg) scale(1.1);
  }

  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }

  25% {
    transform: translateY(-5px) translateX(-5px) rotate(-5deg) scale(1.1);
  }

  50% {
    transform: translateY(-15px) translateX(-10px) rotate(-10deg) scale(1.2);
  }

  75% {
    transform: translateY(-5px) translateX(-5px) rotate(-5deg) scale(1.1);
  }

  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
}

/* Button styles */
button {
  cursor: pointer;
  border-radius: 6px;
  background-color: cornflowerblue;
  color: black;
  border: none;
  padding: 1vw 2vw;
  font-size: 1.5vw;
  min-width: 20vw;
  min-height: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  box-shadow: 6px 6px 12px 0px rgba(0, 0, 0, 0.8);
  /* more blurry shadow */
}

button:active {
  box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.8);
}

.dr {
  position: fixed;
  bottom: -1vw;
  right: 3vw;
  z-index: 100;
}

.dr button {
  width: 2vw;
  height: 2vw;
  padding: 0.25vw;
  min-width: 20px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dr img {
  width: 100%;
  height: auto;
  max-width: 50px;
}

/* Scaling the button size */
.wrapper {
  padding: 2vw;
  margin: 2vw;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  justify-content: space-between;
}

.text {
  border: 10px;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.text input {
  width: 80%;
  padding: 1vw;
  margin: 1vw 0;
  font-size: 1.2vw;
  min-height: 20px;
  background-color: black;
  color: white;
  border: none;
}

.text button {
  margin: 1vw 0;
}

iframe {
  width: 98vw;
  height: 98vh;
  margin: 2vh auto;
  display: block;
  border: none;
}

.arrow-button {
  position: relative;
  display: inline-block;
  background-color: cornflowerblue;
  border-radius: 6px;
  cursor: pointer;
}

.arrow-button:before {
  content: '';
  position: absolute;
  left: -0.8em;
  top: 50%;
  transform: translateY(-50%);
  border-top: 1em solid transparent;
  border-right: 0.8em solid cornflowerblue;
  border-bottom: 1em solid transparent;
}

:root {
  --button-font-size: 1.5vw;
  --input-font-size: 1.2vw;
  --button-padding: 1vw 2vw;
}

/* === BODY BASE === */
body {
  position: relative;
  overflow-x: hidden;
  background-color: #181a1b;
  color: #ffffff;
  margin: 0;
  padding: 0;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  will-change: filter;
  z-index: 1;
  /* ensure body content stays above background pseudo-elements */
}

/* === BACKGROUND PSEUDO-ELEMENTS WRAPPER === */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  opacity: 0.07;
  filter: blur(25px);
  pointer-events: none;
  z-index: -1;
  /* lowered to stay beneath all content */
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

body::before {
  width: 300px;
  height: 300px;
  background: #4a90e2;
  top: 10%;
  left: 15%;
  animation-name: float1;
  animation-duration: 10s;
}

body::after {
  width: 400px;
  height: 400px;
  background: #50e3c2;
  bottom: 20%;
  right: 10%;
  animation-name: float2;
  animation-duration: 12s;
}

/* === IFRAMES (FORCED ABOVE BACKGROUND) === */
iframe {
  width: 98vw;
  height: 98vh;
  margin: 2vh auto;
  display: block;
  border: none;
  position: relative;
  z-index: 1;
  /* ensure iframe stays above background */
}

/* === BUTTON STYLING === */
button {
  cursor: pointer;
  border-radius: 6px;
  background-color: cornflowerblue;
  color: black;
  border: none;
  padding: var(--button-padding);
  font-size: var(--button-font-size);
  min-width: 20vw;
  min-height: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Uniform button styling for .text buttons too */
.text button {
  margin: 1vw 0;
  font-size: var(--button-font-size);
  padding: var(--button-padding);
}

/* === BUTTON INTERACTIONS === */
button:hover {
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.8);
}

button:active {
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.8);
}

/* === WRAPPER FIX === */
.wrapper {
  padding: 2vw;
  margin: 2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* only this needed */
  position: relative;
  z-index: 1;
}

/* === TEXT INPUT + BUTTON CONTAINER === */
.text {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.text input {
  width: 80%;
  padding: 1vw;
  margin: 1vw 0;
  font-size: var(--input-font-size);
  min-height: 20px;
  background-color: black;
  color: white;
  border: none;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media screen and (max-width: 768px) {
  :root {
    --button-font-size: 2.5vw;
    --input-font-size: 2vw;
    --button-padding: 1.5vw 3vw;
  }

  body {
    font-size: 14px;
  }

  h3 {
    font-size: 3vw;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --button-font-size: 3.5vw;
    --input-font-size: 3vw;
    --button-padding: 2vw 4vw;
  }

  body {
    font-size: 12px;
  }

  h3 {
    font-size: 4.5vw;
  }

  .text input {
    width: 90%;
  }

  .wrapper {
    padding: 3vw;
    margin: 3vw;
  }
}



/* === ENSURE DR, HEADER, ETC. ALSO ABOVE BG === */
.Header,
.text,
.wrapper {
  position: relative;
  z-index: 1;
}



h3 {
  font-size: 1.8vw;
  margin: 2vw;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h3 {
    font-size: 3vw;
  }

  button {
    font-size: 2.5vw;
    padding: 1.5vw 3vw;
  }

  .text input {
    font-size: 2vw;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 12px;
  }

  h3 {
    font-size: 4.5vw;
  }

  button {
    font-size: 3.5vw;
    padding: 2vw 4vw;
  }

  .text input {
    font-size: 3vw;
    width: 90%;
  }

  .wrapper {
    padding: 3vw;
    margin: 3vw;
  }
}

body.light-mode {
  background-color: #f0f0f0;
  color: #202225;
}

button.light-mode {
  background-color: lightblue;
  color: white;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

@media screen and (max-width: 768px) {
  .switch {
    width: 50px;
    height: 28px;
  }
}

@media screen and (max-width: 480px) {
  .switch {
    width: 40px;
    height: 24px;
  }
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

@media screen and (max-width: 768px) {
  .slider:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
  }
}

@media screen and (max-width: 480px) {
  .slider:before {
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
  }
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

@media screen and (max-width: 768px) {
  input:checked+.slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
  }
}

@media screen and (max-width: 480px) {
  input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
  }
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.Header {
  font-family: Georgia, 'Times New Roman', Times, serif;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0.2vw solid #525860;
}