@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");

:root {
  --menu-font: "Tenor Sans", serif;
  --menu-font-size: 18px;
  --menu-font-weight: 700;
  --menu-text-color: linear-gradient(
    to right,
    #ebb852,
    #fccf70,
    #b38728,
    #f0cb7c,
    #e0ab50
  );
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("background.jpg") no-repeat center center fixed;
  background-size: cover;
  perspective: 4000px;
  font-family: var(--menu-font);
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star,
.shooting-star {
  position: absolute;
  background: content-box radial-gradient(rgb(195, 178, 226), rgb(192, 185, 85));
  border-radius: 50%;
}

.star {
  width: 1px;
  height: 1px;
  opacity: 0;
  animation: twinkle 2s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.shooting-star {
  width: 6px;
  height: 1px;
  opacity: 0;
  animation: shoot 9s linear infinite;
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateX(100vw) translateY(-10vh);
  }
}

.container {
  position: relative;
  width: 85vmin;
  height: 85vmin;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.rotating-element {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  transform-origin: center;
}

.background {
  width: 130%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.logo,
.central-logo {
  position: absolute;
  z-index: 10;
  transition: transform 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}

.logo1 {
  width: 15%;
  top: 53.5%;
  left: 16.3%;
  transform: rotate(247deg);
}
.logo2 {
  width: 14.5%;
  top: 11%;
  left: 66.1%;
  transform: rotate(35deg);
}
.logo3 {
  width: 12%;
  top: 74.2%;
  left: 52.4%;
  transform: rotate(160deg);
}
.logo4 {
  width: 13%;
  top: 17.5%;
  left: 21%;
  transform: rotate(-40deg);
}
.logo5 {
  width: 12%;
  top: 86.35%;
  left: 23.2%;
  transform: rotate(205deg);
}
.logo6 {
  width: 11%;
  top: 39%;
  left: 2.8%;
  transform: rotate(-82deg);
}
.logo7 {
  width: 12.1%;
  top: 37.2%;
  left: 80.1%;
  transform: rotate(83deg);
}
.logo8 {
  width: 11%;
  top: 0%;
  left: 50.9%;
  transform: rotate(6deg);
}
.logo9 {
  width: 10%;
  top: 54.3%;
  left: 66.6%;
  transform: rotate(111deg);
}
.logo10 {
  width: 10%;
  top: 80.7%;
  left: 80.4%;
  transform: rotate(141deg);
}
.logo11 {
  width: 10.5%;
  top: 18.7%;
  left: 43%;
  transform: rotate(-1deg);
}

.central-logo {
  width: 30%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.menu-button {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 25px;
  left: 25px;
  width: 70px;
  height: 70px;
  background: #29084d;
  border-radius: 50%;
  z-index: 1000;
  overflow: hidden;
  border: 2px solid rgb(74, 47, 92);
}

.menu-button::before,
.menu-button::after,
.menu-button span {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.menu-button::before {
  border-top-color: rgba(158, 158, 255, 0.671);
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  top: 6px;
  left: 6px;
  border-width: 3px 0 0 0;
  animation: rotateRed 3s linear infinite;
}

.menu-button::after {
  border-right-color: rgb(255, 219, 18);
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  top: 12px;
  left: 12px;
  border-width: 0 2px 0 0;
  animation: rotateYellow 3s linear infinite reverse;
}

.menu-button span {
  border-left-color: rgba(255, 0, 0, 0.363);
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  top: 18px;
  left: 18px;
  border-width: 0 0 0 2px;
  animation: rotateBlue 3s linear infinite;
}

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

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

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

.cursor-grab {
  cursor: grab;
}
.cursor-grabbing {
  cursor: grabbing;
}

@media (max-width: 769px) {
  .menu-button {
    display: flex;
  }
  .logo {
    display: none;
  }
  .logo.enlarged {
    display: block;
    transform: scale(2.5) rotate(var(--logo-rotation));
    transition: transform 1s;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2c0f47ea;
  overflow-y: auto;
  z-index: 999;
  -webkit-overflow-scrolling: touch;
}

.menu-content {
  padding: 60px 20px 20px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
  text-decoration: none;
  color: var(--menu-text-color);
}

.menu-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 3px;
}

.menu-item:first-child img {
  width: 120px;
  height: 120px;
}

.menu-item span {
  text-align: center;
  font-size: var(--menu-font-size);
  font-weight: var(--menu-font-weight);
  font-family: var(--menu-font);
  background: var(--menu-text-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.menu-item:first-child span {
  font-size: calc(var(--menu-font-size) * 1.2);
}

@media (min-width: 769px) {
  .logo:hover {
    transform: scale(1.5) rotate(var(--logo-rotation));
  }
}

/* Media query to handle hover state for larger screens */
@media (min-width: 769px) {
  .logo:hover {
    transform: scale(1.5) rotate(var(--logo-rotation));
  }
}

/* Ensure logos are displayed correctly on small screens */
@media (max-width: 768px) {
  .logo {
    display: none;
  }

  .logo.enlarged {
    display: block;
    transform: scale(1.4) rotate(var(--logo-rotation));
    transition: transform 1s;
  }
}

/* Media query for mobile landscape mode */
@media only screen and (max-width: 1024px) and (orientation: landscape) {
  body,
  html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  .container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .rotating-element {
    width: 85vw;
    height: 85vw;
    transform: none;
  }

  .central-logo {
    width: 25%;
  }

  .menu-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: root (menu button background);
    border-radius: 50%;
    z-index: 1000;
    overflow: hidden;
    border: root (menu button border);
  }
}
