@font-face {
  font-family: "Mojita";
  src: url('fonts/Mojita.ttf') format('truetype');
}
html {
  background-color: rgb(0, 0, 0);
}
body {
  margin: 0;
  padding: 0;
  font-family: "Canva Sans", Arial, Helvetica, sans-serif;
  overscroll-behavior: contain;
}
.wrapper {
  position: relative;
}
a[xlink\:href] {
  pointer-events: all;
  cursor: pointer;
  display: inline-block;
}
svg {
  display: block;
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  pointer-events: none;
}

a[xlink\:href] * {
  pointer-events: auto;
}
.scrollElement {
  position: absolute;
  height: 6000px;
  width: 100%;
  top: 0;
  z-index: 4;
  min-height: 8000px;
}
.btn {
  position: fixed;
  bottom: 5%;
  right: 0px;
  transform: translateX(-50%);
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: 0.9rem;
  padding: 0.5rem 0.7em;
  background-color: transparent;
  color: #ffffff;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
  transition: all .3s;
  z-index: 11;
}
.btn_works {
  left: 100px;
  right: unset;
  text-decoration: none;
}
.btn:hover {
  background: #ffffff;
  color: rgb(65, 40, 224);
}
.cls-1 {
  font-family: Mojita, Mojita;
  font-size: 60px;
}
.title_text {
  fill: #fff;
  stroke: #231f20;
  stroke-miterlimit: 10;
  stroke-width: 0.1;
}
.cls-7 {
  letter-spacing: 0em;
}
.asimovian-regular {
  font-family: "Asimovian", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.snazzy-svg-text1 {
  font-family: "Mojita","Asimovian", sans-serif;
  font-size: 24px;
  fill: #231f20;
}
.snazzy-svg-text2 {
  font-family: "Mojita","Asimovian", sans-serif;
  font-size: 14px;
  fill: #231f20;
}
.snazzy-svg-text3 {
  font-family: "Mojita","Asimovian", sans-serif;
  font-size: 24px;
  fill: #f30ca2;
}
.snazzy-svg-text4 {
  font-family: "Mojita","Asimovian", sans-serif;
  font-size: 24px;
  fill: #f30ca2;
}
.title-text1 {
  font-family: "Mojita","Asimovian", sans-serif;
  font-size: 48px;
  fill: #5f6772;
}

#testing2 {
  z-index: 50;
}
#mushroom {
  filter: drop-shadow(0 0 10px #1c79f3);
}
#x-logo {
  pointer-events: all;
  cursor: pointer;
}
#t-logo {
  pointer-events: all;
  cursor: pointer;
}
#scene2_text, #testing2, #scene3_text, #stars, #x-logo, #t-logo, #bird {
  opacity: 0;
}
#h2-1, #h2-2, #h2-3, #h2-4, #h2-5, #h2-6, #h3-1, #h3-2, #h3-3, #h3-4, #h3-5 {
  transform: none;
}
#bird {
  will-change: opacity;
}
#particle-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 3000 !important;
}
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 30;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup.active {
  display: flex;
}
.popup-content {
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 48rem;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #6b7280 #e5e7eb;
}
.popup-content::-webkit-scrollbar {
  width: 8px;
}
.popup-content::-webkit-scrollbar-track {
  background: #e5e7eb;
}
.popup-content::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}
.table-container {
  overflow-x: auto;
}
.nav-menu {
  position: fixed;
  top: 0;
  left: -100% !important;
  width: 220px;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  padding: 75px 20px 20px;
  z-index: 1999;
  pointer-events: none;
  transition: left 0.3s ease;
}
.nav-menu.active {
  left: 0 !important;
  pointer-events: auto !important;
}
.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.nav-menu li {
  margin: 10px 0;
}
.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.3s ease;
}
.nav-menu a:hover {
  color: #00ff88;
}
.hamburger {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hamburger .line {
  width: 18px;
  height: 2px;
  background: white;
  margin: 3px 0;
  border-radius: 2px;
  transform-origin: center;
}
.hamburger:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.1);
}
#musicToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-family: sans-serif;
  z-index: 2001;
  outline: none;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 36px;
  transform-origin: 50% 50%;
  transition: background 0.3s ease, opacity 0.3s ease;
}
#musicToggle:hover {
  background: rgba(0,0,0,0.7);
  opacity: 0.95;
}
#musicToggle * {
  pointer-events: auto;
}

#bgMusic {
  display: none;
}


@media (min-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0 !important;
    width: 100%;
    height: auto;
    padding: 10px;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: flex-start;
    pointer-events: auto !important;
    z-index: 1999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding-left: 10px;
  }
  .nav-menu li {
    margin: 0;
  }
  .nav-menu a {
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
  }
  .hamburger {
    display: none;
  }
  #musicToggle {
    position: absolute;
    top: 50%;
    right: 40px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    transform-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 36px;
    z-index: 2001;
    font-family: sans-serif;
  }
}
@media (max-width: 767px) {
  .nav-menu {
    left: -100% !important;
  }
  .nav-menu.active {
    left: 0 !important;
  }
  #musicToggle {
    pointer-events: auto !important;
  }
}
@media (max-width: 490px) {
  #text1, #text2top, #text3, #text4, #text5, #text6, #text7, #text8, #text9, #text10, #text11, #text12, #text13, #arrow {
    transform-origin: 50% 90%;
    transform: translateY(-85px) translateX(-7px) scale(0.8);
  }
  .snazzy-svg-text1 {
    font-family: "Mojita","Asimovian", sans-serif;
    font-size: 18px;
    fill: #eaff00;
  }
  .snazzy-svg-text2 {
    font-family: "Mojita","Asimovian", sans-serif;
    font-size: 14px;
    fill: #231f20;
  }
  .snazzy-svg-text3 {
    font-family: "Mojita","Asimovian", sans-serif;
    font-size: 22px;
    fill: #F4F6F0;
  }
  .snazzy-svg-text4 {
    font-family: "Mojita","Asimovian", sans-serif;
    font-size: 24px;
    fill: #5f6772;
  }
  .title-text1 {
    font-family: "Mojita","Asimovian", sans-serif;
    font-size: 36px;
    fill: #5f6772;
  }
}


th {
  text-align: left;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* Add dots under the hoverable text */
  cursor: pointer;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  width: 130px;
  top: 100%;
  left: 50%;
  margin-left: -65px;
  background-color: black;
  color: white;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
}
