/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900

.onest-<uniquifier> {
  font-family: "Onest", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.popup-menu, .menu-content, .menu-content a {
  font-family: 'Onest', sans-serif;
}

/* Disable scrolling on the page */
html, body {
  overflow: hidden;
  height: 100%; /* Ensure the body takes up the full viewport height */
   font-family: 'Onest', sans-serif;
   background-color: black; /* Black background behind the video */
}


/* Video Background Container */
.video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Responsive Video Background */
.background-video {
	position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw; /* Ensures video fills width if viewport is wide */
    min-height: 100vh; /* Ensure it covers the full height */
  width: auto; /* Scale width proportionally */
  height: auto; /* Scale height proportionally */
  object-fit: cover; /* Ensures the video fills the container without distortion */

  z-index: 1;
}

/* Overlay Container */
.overlay {
  position: absolute;
  bottom: 0; /* Align to the bottom edge */
  right: 0; /* Align to the right edge */
  z-index: 998;
  /* No padding or margin */
}

/* Title PNG Styling */
.overlay img {
  max-width: 50vw; /* Constrain width to 50% of viewport width */
  max-height: 50vh; /* Constrain height to 50% of viewport height */
  width: auto;
  height: auto;
    z-index: 999;
  /* No margin or padding on the image itself */
}



/* Landscape Orientation */
@media (orientation: landscape) {
  .background-video {
    /* Ensure full-width in landscape */
    width: 100%;
    height: auto;
  }
  .overlay img {
    width: 60%;
  }
}

/* Portrait Orientation */
@media (orientation: portrait) {
  .background-video {
    /* Ensure full-height in portrait */
    width: auto;
    height: 100%;
  }
  .overlay img {
    width: 80%;
  }
}

/* Adjusting for Smaller Screens */
@media (max-width: 768px) {
  .overlay img {
    width: 60vw;
    height: 60vh;
  }
}

@media (max-width: 480px) {
  .overlay img {
    width: 70vw;
    height: 70vh;
  }
}

@media (min-width: 1600px) {
  .background-video {
    min-width: 100vw;
    min-height: auto; /* Override to ensure width fit on ultra-wide */
  }
  .overlay-text h1 {
    font-size: 3.5vw;
  }
  .overlay-text p {
    font-size: 1.8vw;
  }
}

/* Container for the menu button and side image */
.menu-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  z-index: 990; /* Higher z-index if it needs to be on top */
}



/* Sandwich Menu Button */
.menu-button {
  width: 40px; /* Width of the button */
  height: 35px; /* Height of the button */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

/* Individual bars of the sandwich icon */
.menu-button span {
  display: block;
  height: 6px; /* Thickness of each bar */
  width: 100%; /* Full width */
  background-color: white; /* White color for the bar */
  border: 1px solid black; /* Black contour/border */
  border-radius: 2px; /* Slight rounding for a smoother look */
}

/* PNG Image Styling */
.side-image {
  height: 25px; /* Matches the height of the menu button */
  margin-left: 10px; /* Space between the button and the image */
}


/* Full-Screen Pop-up Menu */
.popup-menu {
  position: absolute;
  top: 0; /* Adjust based on sandwich button's position */
  left: 0; /* Aligns with left side of sandwich button */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  padding: 10px;
  backdrop-filter: blur(10px); /* Optional: Blur effect */
  display: none; /* Hidden initially */
  transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth fade transition */
  z-index: 4; /* Ensure it's above other elements */
}

/* Menu Content Styling */
.menu-content {
  position: absolute;
  top: 4rem; /* Adjust to match sandwich button’s position */
  left: 1rem; /* Align with sandwich button */
  background: none; /* No background on menu items */
  text-align: left;
}

.menu-content a {
  display: block;
  padding: 8px 0;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.menu-content a:hover {
  color: deeppink;
}

/* Overlay Text Styling */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the text */
  text-align: center;
  color: white; /* Text color */
  z-index: 3; /* Ensure it's above the video */
  padding: 10px;
  

  
}

.overlay-text h1 {
   font-size: clamp(1.8rem, 6vw, 5rem); /* Min 1.5rem, preferred 5vw, max 4rem */
  font-weight: bold;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6); /* Optional shadow for readability */
}

.overlay-text p {
  margin-top: 10px;
  color: white;
  font-size: clamp(1rem, 2.2vw, 1.5rem); /* Min 1rem, preferred 2.5vw, max 2rem */
  padding: 10px 15px; /* Add padding for background */
  background-color: rgba(0, 0, 0, 0.1); /* 60% transparent black */
  border-radius: 12px; /* Optional: rounded corners */
  backdrop-filter: blur(7px); /* Apply blur effect */
  display: inline-block; /* Keeps background only around text */
  margin: 0 auto;
  
  
}

.overlay-text h1 {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.overlay-text h1.fade {
  opacity: 0;
}

/* Learn More Button Styling */
.learn-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 2px solid white; /* 2px white border */
  border-radius: 12px; /* Rounded corners */
  background-color: transparent; /* Transparent background */
  transition: all 0.3s ease; /* Smooth transition */
}

/* Hover Effect */
.learn-more-btn:hover {
  background-color: white; /* White background on hover */
  color: black; /* Black text on hover */
}

.fullscreen-container {
  position: absolute; /* Keeps the container in place relative to the viewport */
  top: 0; /* Starts 35px from the top */
  left: 0;
  right: 0;
  bottom: 0; /* Fills the screen up to the bottom */
  background-color: rgba(0, 0, 0, 0.3); /* Optional background color */
  overflow-y: auto; /* Allows scrolling if content exceeds viewport height */
    backdrop-filter: blur(20px); /* Apply blur effect */
}

.inner-container {
  margin-left: 40px; /* Adds a 40px margin on the left */
  height: 100%; /* Full height of the container */
  overflow-y: auto; /* Scrollable if content exceeds viewport height */
  padding: 20px; /* Optional padding for inner spacing */
}

.hidden-item {
   visibility: hidden;
}

/* Grid Styling */
.grid-container {
	  position: absolute;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 00); /* Semi-transparent background */
  padding: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the text */
  text-align: center;
  color: white; /* Text color */
  z-index: 10; /* Ensure it's above the video */
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 4 columns */
  grid-template-rows: repeat(6, auto); /* 7 rows */
  gap: 10px;
  max-width: 100%; /* Adjust as needed */
  margin: 0 auto;
}

.grid-item {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6); /* Optional shadow for readability */
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Text style for element symbol and name */
.grid-item small {
  display: block;
  font-size: 0.8rem;
  margin-top: 5px;
  color: #cccccc;
}

/* Hover effect */
.grid-item:hover {
  transform: translateY(0px);
  box-shadow: 0px 0px 7px 3px rgba(255, 255,255, 0.4);
}

#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #ffffff;
    border-top: 4px solid #888888;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#background-video {
    visibility: hidden;
}

/* Styles for the Hamburger Menu */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {

    display: block;
    width: 100%;
    height: 4px;
    margin-bottom: 5px;
    background-color: black;
    transition: transform 0.3s ease, opacity 0.3s ease;
	    background-color: white;
    box-shadow: 0 0 5px black;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Tooltip for Hamburger Menu */
.hamburger::after {
    content: "SOON";
    position: absolute;
    top: 35px;
    left: 0;
    padding: 5px 10px;
    background-color: black;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hamburger:hover::after, .hamburger:active::after {
    opacity: 1;
}