html,
body,
#root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 20px;
  left: 5%;
  color: rgb(103, 90, 133);
  font-family: "Kantumruy Pro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;

  z-index: 10;
}

/* Base styles for the navigation container */
.overlay {
  overflow: hidden; /* Ensure smooth height transition */
  transition: height 0.3s ease; /* Smooth height transition */
}

/* Expanded state for the navigation container */
.overlay.expanded {
  height: auto; /* Allow the container to grow */
}

/* Styles for sub-links */
.sub-links {
  margin-top: 1rem;
  padding-left: 1rem;
}

.sub-links .nav-link {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.overlay {
  font-size: clamp(1.5rem, 6vmin, 3rem);
}
.overlay h1 {
  font-size: clamp(2rem, 8vmin, 4rem);
}
.overlay h2 {
  font-size: clamp(2rem, 8vmin, 4rem);
}
.overlay a {
  font-weight: 600;
  margin-bottom: 0;
  display: block;
  margin-top: 1rem;
  color: white;
  text-decoration: none;
}

.overlay > a:hover {
  color: rgb(103, 90, 133);
}

.overlay > a:active {
  color: rgb(117, 133, 90);
}

h1 {
  font-size: 4rem;
  margin-bottom: -1rem;
}

h2 {
  font-size: 2.5rem;
}

#canvas {
  position: relative;
  width: 100%;
  height: 100vh;
}

.mobile-bg {
  position: absolute;
  width: 100%;
  height: 100vh;
  z-index: 5;
  background-color: transparent;
}

#leva__root {
  visibility: hidden;
}

.content-overlay {
  background-color: rgba(255, 255, 255, 0.247);
  padding-left: 1rem;
  padding-right: 1rem;
  position: absolute;
  top: clamp(40%, 30vw, 68%);
  right: 5%;
  width: 50%;
  color: rgb(103, 90, 133);
  font-family: "Kantumruy Pro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  z-index: 10;
}

.content-overlay > p {
  font-size: clamp(1.2rem, 2.8vh, 3.3vmin);
}

.cv-overlay {
  background-color: rgba(255, 255, 255, 0.247);
  padding-left: 1rem;
  padding-right: 1rem;
  position: absolute;
  top: clamp(30%, 30vw, 40%);
  right: 5%;
  width: 50%;
  color: rgb(103, 90, 133);
  font-family: "Kantumruy Pro", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  z-index: 10;
}

.cv-overlay h1 {
  font-size: clamp(1.5rem, 6.3vmin, 6.3vmin);
  margin-bottom: clamp(1rem, 6.3vmin, 4vmin);
}

.cv-overlay h2 {
  font-size: clamp(1rem, 2.8vmin, 4vmin);
}

.cv-overlay > p {
  font-size: clamp(1rem, 2.8vmin, 3.3vmin);
}

.nav-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.nav-link:hover {
  color: rgb(200, 50, 50);
}

.nav-link.active {
  color: #f74739;
}
@media (max-width: 450px) {
  .mobile-bg {
    background-color: #050f9756; /* Semi-transparent blue for small screens */
  }
  .sitecontrols {
    display: none !important;
  }
}
