@charset "UTF-8";


.crimson-text-regular {
font-family: "Crimson Text", serif;
font-weight: 400;
font-style: normal;
}

.crimson-text-semibold {
font-family: "Crimson Text", serif;
font-weight: 600;
font-style: normal;
}

.crimson-text-bold {
font-family: "Crimson Text", serif;
font-weight: 700;
font-style: normal;
}

.crimson-text-regular-italic {
font-family: "Crimson Text", serif;
font-weight: 400;
font-style: italic;
}

.crimson-text-semibold-italic {
font-family: "Crimson Text", serif;
font-weight: 600;
font-style: italic;
}

.crimson-text-bold-italic {
font-family: "Crimson Text", serif;
font-weight: 700;
font-style: italic;
}


/* VARIABLES */

:root {
  /* Color values */
  --color-background: rgba(255,255,255,1);
  --color-text: rgb(90, 75, 255);
  --secondary-color: #ecfd36;
  --color-text-link: rgba(0,0,255,0.8);
  --color-text-link-hover: rgba(0, 0, 255, 0.089);
  /* Font values */
  --font-text: 'Crimson Text', serif;
  --font-size: 25px;
  --font-small: 15px;
  --font-medium: 1.5rem;
  --font-large: 2.2rem;
  --font-family: 'Crimson Text', serif;
  /* Margin value */
  --margin: 17rem;
}



/* GENERAL STYLES */

html {
  font: var(--font-size) var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
}

body {
  position:relative;
  font-size: var(--font-size);
  font-family: var(--font-family);
  width:100%;
  height:auto;
  overflow-y:auto;
  overflow-x: hide;
  font-weight: 700;
 
}

header {
  word-break: keep-all;
  hyphens: none;
}

p, h2, h3, h4, h5, h6 {
  word-wrap: break-word; /* Ensures long words break properly */
  hyphens: auto; /* Helps with word splitting for better readability */
}

#bg-video-web {
  display: block;
}

#bg-video-mobile {
  display: none;
  z-index: -9999;
}

#bg-video-web, #bg-video-mobile{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -100; /* Ensure it stays behind everything */
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-style: italic;
}

a:hover {
  color: var(--color-text-link-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, figcaption, a, details {
  font: var(--font-weight) var(--font-size); 

}

h1{
  text-align: left;
  font-size: var(--font-large);
  line-height: 1;
  margin: 1rem 0;
}

h2{
  font-size: var(--font-medium);
  margin-top: 3.3em;
}

h3{
  margin-top: 3em;
  margin-bottom: 1em;
  font-style: italic;
}


h4 {
  margin-top: 2rem;
  
}

  h5, h6{
  margin: 0;
}

p{
  line-height: 1.3;
  font-size: var(--font-size);
}

#colophon {
  font-size: var(--font-small);
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
}


figure {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: var(--color-text) 1px solid;
  border-radius: 5px;
  margin: 3em auto; /* Auto centers the figure */
  background-color: #ffffff;
  text-align: center;
}

figure img {
  border-radius: 4px 4px 0 0;
  z-index: 10;
}

#img-padding {
  padding-top: 1em;
}


figcaption p {
  font-size: var(--font-small);
  padding: 0 2rem;

}

.figure-img-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}



.nav-container {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  padding-top: 1em;
  font-size: var(--font-small);
}

/* Default visible navigation */
.nav-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}

.nav-button {
  color: var(--color-text);
  background-color: #ffffff;
  border: var(--color-text) 1px solid;
  border-radius: 50px;
  padding: 8px 21px;
  cursor: pointer;
  height: 3.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-button:hover {
  background-color: var(--secondary-color);
}

.nav-button.active {
  background-color: var(--secondary-color);
}

/* Hamburger menu button (hidden by default) */
.hamburger-menu{
  display: none;
  background-color: white;
  color: var(--font-text);
  border: var(--color-text) 1px solid;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  width: fit-content;
}


/* When hovered */
.hamburger-menu:hover {
  background-color: var(--color-text);
  color: white;
  transition: all 0.3s;
}

/* Mobile Styles - Hide buttons, show hamburger */
@media (max-width: 1430px) {
  .nav-buttons {
    display: none;
    height: fit-content;
    flex-direction: column;
    position: absolute;
    justify-content: left;
    gap: 10px;
    top: 60px; /* Adjust to be below the sticky header */
    transform: translateY(5%);
  }

  .nav-button {
    flex-direction: row;
    justify-content: center;
    height: 3em;
  }

  .nav-button:hover {
    background-color: var(--secondary-color);
  }


  .nav-buttons.active {
    display: flex; /* Show menu when active */
  }

  /* Show the hamburger button */
  .hamburger-menu {
    display: block;
  }

  h2 {
    margin-top: 3em;
  }
}


.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  color: var(--color-text);
  border: solid 1px var(--color-text);
  border-radius: 50px;
  background-color: white;
  padding: 15px;
  font-size: var(--font-size);
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 999;
}

/* Hover effect for the button */
.back-to-top:hover {
  background-color: var(--secondary-color);
}

details {
  cursor: pointer;
}

nav-button:hover {
  font-style: italic;
  background-color: var(--color-text);
  color: white;
  text-decoration: none;
}


.littlefoot {
  --button-background-color: var(--color-text-link-hover);
  --button-active-background-color: var(--secondary-color);
  --button-active-text-color: var(--color-text);
  --button-text-color: var(--color-text);
  --button-font-size: 15px;
  --button-border-radius: 100px;
}

.littlefoot_button {
  background-color: var(--button-active-background-color);
  font-size: var(--button-font-size);
}

.littlefoot__tooltip {
  display: none;
}

.littlefoot__wrapper,
.littlefoot__content {
  background: transparent !important;
  box-shadow: none;
  padding: 0 !important;
  margin: 0 !important;
  overflow-y: auto;
  box-sizing: border-box;
}

.littlefoot__popover {
  max-height: 200px; /* Maximum height */
  overflow-y: auto; /* Adds scrolling when content exceeds max height */
  min-height: fit-content; /* Allows the popover to shrink if content is small */
  box-shadow: none;
  border-radius: 5px;
  border: 1px solid var(--secondary-color);
  background: var(--secondary-color);
  transition: opacity 0.25s, transform 0.25s;
  overflow-y: hidden;
  padding: 0;
  box-sizing: border-box;
  transform: translateY(40px);
  z-index: 1000;
}

.littlefoot__popover .littlefoot__content {
  width: fit-content;
  margin: 0;
}

.littlefoot__popover .littlefoot__content p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--font-small);
  margin: 0;
  color: var(--color-text);
  padding: 1em 3em 4em 1em;
  padding: 1em;
}


/* PAGE STYLES */

/* page structure */

div.page-wrapper {
  /* the element that 'wraps' everything */
  padding: 6.5em var(--margin);
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

}


main{
  margin-top: 7em;
}


/* UTILITY CLASSES */

/* hide desktop mobile etc */

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}



/* WEBSITE MEDIA QUERIES */

/* responsive typeface for various breaking points, sets the default 'rem' value */
@media (max-width: 299px) { :root{--font-size: 18px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 299px) and (max-width: 340px) { :root{--font-size: 19px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 340px) and (max-width: 440px) { :root{--font-size: 20px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 441px) and (max-width: 779px) { :root{--font-size: 19px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 780px) and (max-width: 992px) { :root{--font-size: 20px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 993px) and (max-width: 1200px) { :root{--font-size: 21px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 1201px) and (max-width: 1320px) { :root{--font-size: 22px;} html, body {font: var(--font-size) var(--font-text); } }
@media (min-width: 1321px) { :root{--font-size: 24px;} html, body {font: var(--font-size) var(--font-text); } }

/* styles for 'mobile', screen sizes up to 779px, should covers 'mobile' and 'tablet' */
/* style this one first and then use the subsequent ones in a cascading way (from general to specific) */


  /* utility classes, mobile */

  .desktop-only{
    display:none;
  }

  .mobile-only{
    display:block;
  }

@media (max-width: 1200px) {
  :root {
    --margin: 12rem;
    --font-large: 2.8em;
  }
  figcaption p {
    padding: 0 2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --margin: 12rem;
    --font-large: 2.8em;
  }
  figcaption p {
    padding: 0 1rem;
  }
}

/* Mid-sized tablets (max-width: 860px) */
@media (max-width: 860px) {
  :root {
    --margin: 9rem;
    --font-large: 2.6em;
  }
  figcaption p {
    padding: 0 1rem;
  }
  figure {
    width: 100%;
  }
}

/* Small tablets and landscape phones (max-width: 779px) */
@media (max-width: 779px) and (orientation: landscape) {
  :root {
    --margin: 5rem;
  }
  figcaption p {
    padding: 0 1rem;
  }
  figure {
    width: 100%;
  }
}

/* Large mobile screens (max-width: 600px) */
@media (max-width: 600px) {
  :root {
    --margin: 5rem;
    --font-large: 2em;
  }
  body, p, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Apply semi-bold for better readability */
  }
  .littlefoot__popover .littlefoot__content p {
    font-weight: 400;
  }
  .littlefoot__popover {
    border-radius: 0px;
  }
  figcaption p {
    padding: 0 1rem;
  }
  figure {
    width: 100%;
  }
}



/* Mobile phones (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --margin: 2rem;
    --font-large: 1.8em;
  }
  #bg-video-web {
    display: none;
  }
  #bg-video-mobile {
    display: block;
  }
  main {
    margin-top: 0;
  }
  figcaption p {
    padding: 0 1rem;
  }
  figure {
    width: 100%;
  }
  .littlefoot__popover .littlefoot__content p {
    font-weight: 400;
  }
  .littlefoot__popover {
    border-radius: 0px;
  }
}

/* Very small screens (max-width: 340px) */
@media (max-width: 340px) {
  :root {
    --margin: 1rem;
    --font-large: 1.8em;
  }
  main {
    margin-top: 0;
  }
  figcaption p {
    padding: 0 1rem;
  }
  figure {
    width: 100%;
  }
  .littlefoot__popover .littlefoot__content p {
    font-weight: 400;
  }
  .littlefoot__popover {
    border-radius: 0px;
  }
}