@font-face {
  font-family: 'Open Sans Variable Italic';
  src: url('fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 300 800;

  font-stretch: 75% 125%;

  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans Variable';
  src: url('fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
  font-weight: 300 800;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: black;
  color: white;
  font-family: 'Open Sans Variable', sans-serif;
  margin: 0;
  /* display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; */
  position: relative;
  overflow: hidden;
}

#p5-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  display: block;
}

#all-content-wrapper {
  position: relative;
  /* Crucial: Establishes a new stacking context */
  z-index: 1;
  /* This ensures it sits above #p5-background */
  min-height: 100vh;
  /* Make sure it's at least the height of the viewport */
  width: 100vw;
  /* Make sure it's at least the width of the viewport */
  /* Add padding or other styles to space out your content from the edges */
  padding-top: 20px;
  /* Example padding */
  box-sizing: border-box;
  /* Include padding in dimensions */

  /* If you want to center all your content, you can add flexbox here */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.main-text {
  font-size: 2em;
  text-align: center;
  position: relative;
  z-index: 1;
  color: white;
}

.about-text {
  font-size: 1.25em;
  text-align: left;
  margin: 100px;
  color: white;
}

.hamburger-menu {
  /* position: absolute; */
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: 0.3s;
  /* For smooth animation */
}

.menu-items {
  /* position: absolute; */
  position: fixed;
  top: 0;
  left: 0;
  /* background-color: black; */
  background-color: rgba(0, 0, 0, 0.9);
  width: 200px;
  height: 100vh;
  /* Cover the whole viewport */
  padding-top: 60px;
  /* To make space for the hamburger */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-200px);
  /* Initially hidden off-screen */
  transition: transform 0.3s ease-in-out;
  /* Smooth slide-in/out */
  z-index: 11;
}

.menu-items.open {
  transform: translateX(0);
  /* Slide in when open class is added */
}

.menu-items a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  width: 100%;
  box-sizing: border-box;
}

.menu-items a:hover {
  background-color: #333;
}

/* Styles for the "X" close button */
.hamburger-menu.open .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 5px);
}

.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -5px);
}

a:link {
  color: #00BCD4;
  /* Aqua */
  text-decoration: none;
}

a:visited {
  color: #8BC34A;
  /* Lime Green */
}

a:hover {
  color: #00E5FF;
  /* Lighter Aqua on hover */
  text-decoration: underline;
}

.secondary-text {
  color: #B0BEC5;
  /* Light grey blue for subtle details */
}
