* {
  font-family: "nasalization";
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100dvh;
  min-width: 100dvw;
  align-items: center;
  justify-content: center;
  display: flex;
}
.maindiv {
  /* border: #ff0004 2px solid; */
  height: 99dvh;
  width: 99dvw;
  display: flex;
}
.containerdiv {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "body"
    "footer";
  height: 99dvh;
  width: 99dvw;
}
.headerdiv {
  grid-area: header;
  /* border: #000000 2px solid; */
}

/* #region Menu related CSS */

.hmenu1,
.hmenu2,
.hmenu3,
.hmenu4 {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}
li {
  display: flex;
  width: 20%;
  align-items: center;
  justify-content: center;
  position: relative;
}
a {
  color: #ffffff;
  transition: color 0.2s 0.4s;
  overflow: hidden;
  border-radius: calc(1dvw + 1dvh);
  outline: 2px solid #2afd00;
  text-decoration: none;
  font-size: clamp(0.5rem, 2dvw + 1.5dvh, 4rem);
  z-index: 9;
  position: relative;
  text-align: center;
  width: 100%;
  padding: 0 0 1.5dvh 0;
}
@keyframes zoom {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(3deg) scale(0.97);
  }
}
a:hover,
a:focus {
  /* animation: zoom 0.4s ease-in-out infinite; */
  font-weight: 900;
  color: #000 !important;
}
a:not(.menuactive)::before {
  content: "";
  position: absolute;
  opacity: 0.1;
  background-color: #dee2e6;
  border-radius: calc(1dvw + 1dvh);
}
/* a:hover::after,
a:focus::after {
  transform: scaleX(1);
} */
/* a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.1em;
  width: 80%;
  height: 0.7dvh;
  border-radius: 50%;
  background: #e74c3c;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s;
} */

a.menuactive {
  background-color: #e74c3c;
  border-radius: calc(1dvw + 1dvh);
  color: #000;
}

a.menuactive::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.1em;
  width: 80%;
  height: 0.7dvh;
  background: #fff;
  border-radius: 50%;
  z-index: 5;
}
a.menuactive::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.1em;
  width: 80%;
  height: 0.7dvh;
  background: #fff; /* Important color for menu active underline animation*/
  border-radius: 50%;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s;
  z-index: 6;
}
a.menuactive:hover::after,
a.menuactive:focus::after {
  transform: scaleX(1);
}
a.menuactive:hover::before,
a.menuactive:focus::before {
  opacity: 0;
}
a.menuactive:hover,
a.menuactive:focus {
  /* animation: zoom 0.4s ease-in-out infinite; */
  font-weight: 900;
}
li.menuslider1 {
  left: 0px;
  right: auto;
}

li.menuslider2 {
  left: auto;
  right: 0px;
}

li.menuslider1,
li.menuslider2 {
  /* border-radius: calc(1dvw + 1dvh); */
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
  position: absolute;
  z-index: 8;
  /* transition: transform 0.5s ease-in-out, background-color 0.5s; */
  /* height: 82%; */
  height: 100%;
}
.rocket-img {
  position: absolute;
  display: block;
  pointer-events: none;
  width: 92%;
  height: 92%;
  margin: 4% auto;
  object-fit: contain;
}
.rocket-right {
  transform: none;
}
.rocket-left {
  transform: scaleX(-1);
  /* transform-origin: center; */
}
/* Remove or comment out these general selectors for .hmenu1: */
/*
.hmenu1 li:hover ~ .menuslider1,
.hmenu1 li:focus-within ~ .menuslider1,
.hmenu1 li:hover ~ .menuslider2,
.hmenu1 li:focus-within ~ .menuslider2 {
  opacity: 1;
}
*/
.hmenu1 li:nth-child(2):hover ~ .menuslider2,
.hmenu1 li:nth-child(2):focus ~ .menuslider2,
.hmenu1 li:nth-child(2):active ~ .menuslider2 {
  transform: translateX(-300%);
  opacity: 1;
  /* background-color: #9b59b6; */
}
/* .hmenu1 li:nth-child(3):hover ~ .menuslider1, 
  .hmenu1 li:nth-child(3):focus ~ .menuslider1, 
  .hmenu1 li:nth-child(3):active ~ .menuslider1 {
    left: 40%;
    background-color: #e67e22;
  } */
.hmenu1 li:nth-child(4):hover ~ .menuslider1,
.hmenu1 li:nth-child(4):focus ~ .menuslider1,
.hmenu1 li:nth-child(4):active ~ .menuslider1 {
  transform: translateX(300%);
  opacity: 1;
  /* background-color: #e67e22; */
}
.hmenu1 li:nth-child(5):hover ~ .menuslider1,
.hmenu1 li:nth-child(5):focus ~ .menuslider1,
.hmenu1 li:nth-child(5):active ~ .menuslider1 {
  transform: translateX(400%);
  opacity: 1;
  /* background-color: #16a085; */
}
.hmenu2 li:nth-child(1):hover ~ .menuslider2,
.hmenu2 li:nth-child(1):focus ~ .menuslider2,
.hmenu2 li:nth-child(1):active ~ .menuslider2 {
  transform: translateX(-400%);
  opacity: 1;
  /* background-color: #3498db; */
}

.hmenu2 li:nth-child(4):hover ~ .menuslider1,
.hmenu2 li:nth-child(4):focus ~ .menuslider1,
.hmenu2 li:nth-child(4):active ~ .menuslider1 {
  transform: translateX(300%);
  opacity: 1;
  /* background-color: #e67e22; */
}
.hmenu2 li:nth-child(5):hover ~ .menuslider1,
.hmenu2 li:nth-child(5):focus ~ .menuslider1,
.hmenu2 li:nth-child(5):active ~ .menuslider1 {
  transform: translateX(400%);
  opacity: 1;
  /* background-color: #16a085; */
}

.hmenu3 li:nth-child(1):hover ~ .menuslider2,
.hmenu3 li:nth-child(1):focus ~ .menuslider2,
.hmenu3 li:nth-child(1):active ~ .menuslider2 {
  transform: translate(-400%);
  opacity: 1;
  /* background-color: #3498db; */
}

.hmenu3 li:nth-child(2):hover ~ .menuslider2,
.hmenu3 li:nth-child(2):focus ~ .menuslider2,
.hmenu3 li:nth-child(2):active ~ .menuslider2 {
  transform: translate(-300%);
  opacity: 1;
  /* background-color: #9b59b6; */
}
.hmenu3 li:nth-child(5):hover ~ .menuslider1,
.hmenu3 li:nth-child(5):focus ~ .menuslider1,
.hmenu3 li:nth-child(5):active ~ .menuslider1 {
  transform: translate(400%);
  opacity: 1;
  /* background-color: #16a085; */
}

.hmenu4 li:nth-child(1):hover ~ .menuslider2,
.hmenu4 li:nth-child(1):focus ~ .menuslider2,
.hmenu4 li:nth-child(1):active ~ .menuslider2 {
  transform: translate(-400%);
  opacity: 1;
  /* background-color: #3498db; */
}

.hmenu4 li:nth-child(2):hover ~ .menuslider2,
.hmenu4 li:nth-child(2):focus ~ .menuslider2,
.hmenu4 li:nth-child(2):active ~ .menuslider2 {
  transform: translate(-300%);
  opacity: 1;
  /* background-color: #9b59b6; */
}

.hmenu4 li:nth-child(4):hover ~ .menuslider1,
.hmenu4 li:nth-child(4):focus ~ .menuslider1,
.hmenu4 li:nth-child(4):active ~ .menuslider1 {
  transform: translate(300%);
  opacity: 1;
  /* background-color: #e67e22; */
}

.logo-img {
  width: 30%;
  height: 100%;
  border-radius: 50%;
  transition: filter 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
@keyframes logo-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes logo-glow {
  0%,
  100% {
    box-shadow: 0 0 0px #e74c3c, 0 0 20px #011a30;
  }
  50% {
    box-shadow: 0 0 32px #e74c3c, 0 0 48px #fff;
  }
}
.logo-img:hover,
.logo-img:focus {
  animation: logo-spin 1.5s linear infinite, logo-glow 1s alternate infinite;
  /* animation: logo-spin 1.5s linear infinite; */
  filter: brightness(1.5) saturate(1.3) drop-shadow(0 0 12px #ffa600);
}
.logo-img.reverse-spin {
  animation: logo-spin 1.5s linear reverse, logo-glow 1s alternate;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
/* #endregion Menu related CSS*/

.solar-wrapper {
  position: fixed;
  width: 100dvw;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
}
.planet-wrapper {
  animation: fadeIn 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bodydiv {
  display: flex;
  grid-area: body;
  /* border: #f000fc 2px solid; */
}

.not-for-scale-label {
  position: fixed;
  right: 0.2dvw;
  bottom: 0.2dvh;
  background: rgba(20, 20, 20, 0.85);
  color: #a9a5a5;
  font-size: clamp(0.2rem, 1dvw + 0.5dvh, 0.6rem);
  border-radius: calc(1dvw + 0.5dvh);
  box-shadow: 0 2px 8px #0004;
  z-index: 100;
  pointer-events: none;
  user-select: none;
}
.footerdiv {
  display: flex;
  grid-area: footer;
  font-size: clamp(4px, 2dvw + 1dvh, 16px);
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1200px) {
  a {
    font-size: clamp(0.5rem, 3vw + 1.5vh, 2.2rem);
    padding: 0 0 0.8dvh 0;
  }
}

@media (max-width: 600px) {
  a {
    font-size: clamp(0.5rem, 1.5vw + 1vh, 1.4rem);
    padding: 0 0 1dvh 0;
  }
}
