:root {
  --bg-size: 450px;
}
@media (max-width: 850px) {
  :root {
    --bg-size: 300px;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}
#background_container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#background {
  position: absolute;
  width: calc(100vw + var(--bg-size));
  height: calc(100vh + var(--bg-size));
  translate: calc(-var(--bg-size) * -1) calc(-var(--bg-size) * -1);
  background-color: #5f00f1;
  background-image: url("/media/backgrounds/main.webp");
  background-size: var(--bg-size) var(--bg-size);
}
#center_container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#menu_container {
  position: relative;
  max-width: 700px;
  max-height: 700px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (orientation: portrait) {
  #menu_container {
    width: 100%;
  }
}
@media (orientation: landscape) {
  #menu_container {
    height: 100%;
  }
}
#logo {
  position: absolute;
  width: 50%;
  aspect-ratio: auto;
  translate: 2%;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#pages {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#pages a {
  all: unset;
  cursor: pointer;
  transform-origin: center;
  position: absolute;
  width: 13%;
  height: 13%;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#pages a img:nth-child(1) {
  height: 80%;
  aspect-ratio: auto;
  max-width: 100%;
  object-fit: contain;
}
#pages a div:nth-child(2) {
  height: 20%;
  container-type: size;
  display: flex;
  justify-content: center;
}
#pages a div:nth-child(2) span:nth-child(1) {
  font-size: 100cqh;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
  color: white;
  white-space: nowrap;
}
#socials_container {
  position: absolute;
  top: 99%;
  height: min(8%, 8.5vw, 70px);
  width: 100%;
  display: flex;
  justify-content: center;
  translate: 0 -100%;
  container-type: size;
  overflow: hidden;
}
#socials {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20cqh;
}
#socials a {
  all: unset;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  height: 100cqh;
  width: 100cqh;
}
#socials a img {
  width: 100%;
  height: 100%;
}
