*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-purple: #160f29;
  --beige: #fffee7;
  --pink: #ff206e;
  --teal: #006e90;
}

body {
  font-family: "Kosugi Maru", sans-serif;
  font-size: 1.25em;

  background-color: var(--beige);
  color: var(--dark-purple);

  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

#star {
  user-select: none;
  position: absolute;
  z-index: -1;
  width: 500px;
}

.container {
  width: 420px;
  height: auto;
}

@media (max-width: 905px) {
  main {
    margin: 2em 0;
    flex-direction: column;
    justify-content: start;
  }

  .container {
    width: min(80%, 420px);
  }

  #star {
    opacity: 30%;
  }
}

h1 {
  margin-bottom: 1em;
}

p {
  margin-bottom: 0.75em;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

#wizardry {
  user-select: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
  text-underline-offset: -6px;
}

.gimmick {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  touch-action: none;

  &:hover {
    color: var(--pink);
    transition: color 0.2s ease-in-out;
    -moz-transition: color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out;
  }
}

#adam:hover ~ #img_adam {
  display: block;
}

.image.container {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.image.container img {
  display: none;

  object-fit: contain;

  max-width: 420px;
  max-height: 420px;

  width: 100%;
  height: 100%;
}

main:has(#adam:hover) #img_adam {
  display: block;
}

main:has(#manila:hover) #img_manila {
  display: block;
}

main:has(#bogor:hover) #img_bogor {
  display: block;
}

main:has(#rotterdam:hover) #img_rotterdam {
  display: block;
}

main:has(#bouldering:hover) #img_bouldering {
  display: block;
}

main:has(#music:hover) #img_music {
  display: block;
}
