@import 'fonts.css';

@keyframes dots {
  0%,
  20% {
    color: rgb(0 0 0 / 0%);
    text-shadow:
      0.25em 0 0 rgb(0 0 0 / 0%),
      0.5em 0 0 rgb(0 0 0 / 0%);
  }

  40% {
    color: #18181a;
    text-shadow:
      0.25em 0 0 rgb(0 0 0 / 0%),
      0.5em 0 0 rgb(0 0 0 / 0%);
  }

  60% {
    text-shadow:
      0.25em 0 0 #18181a,
      0.5em 0 0 rgb(0 0 0 / 0%);
  }

  80%,
  100% {
    text-shadow:
      0.25em 0 0 #18181a,
      0.5em 0 0 #18181a;
  }
}

@keyframes circle {
  0% {
    color: #2a2a2d;
  }

  5% {
    color: #ffffff;
  }

  15% {
    color: #ffffff;
  }

  20% {
    color: #2a2a2d;
  }

  100% {
    color: #2a2a2d;
  }
}

@keyframes letter {
  0% {
    color: #b6b6b6;
  }

  5% {
    color: #18181a;
  }

  15% {
    color: #18181a;
  }

  20% {
    color: #b6b6b6;
  }

  100% {
    color: #b6b6b6;
  }
}

@keyframes logo {
  0% {
    opacity: 0.6;
  }

  25% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

#n-circle {
  animation: circle 4s infinite;
}

#n-letter {
  animation: letter 4s infinite;
}

#e-circle {
  animation: circle 4s 1s infinite;
}

#e-letter {
  animation: letter 4s 1s infinite;
}

#s-circle {
  animation: circle 4s 2s infinite;
}

#s-letter {
  animation: letter 4s 2s infinite;
}

#w-circle {
  animation: circle 4s 3s infinite;
}

#w-letter {
  animation: letter 4s 3s infinite;
}

#pirate-logo {
  animation: logo 4s infinite;
}

.compass-image .circle {
  color: #2a2a2d;
}

.compass-image .letter {
  color: #b6b6b6;
}

.loading-plug {
  position: fixed;
  inset: 0;
  z-index: 1001;
  width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: auto;
  overflow: hidden auto;
  font-family: BasisGrotesquePro, sans-serif;
  visibility: visible;
  transition: opacity 0.3s;
}

.loading-plug__font--title {
  font-size: 1.75em;
  font-weight: 900;
  line-height: 1.3;
}

.loading-plug__font--description {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.3;
}

.loading-plug__font--loading {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.3;
}

.loading-plug__font--loading::after {
  content: ' .';
  animation: dots 2s steps(5, end) infinite;
}

.loading-plug__font--label {
  font-size: 0.75em;
  letter-spacing: 0.01em;
}

.loading-plug__container {
  position: relative;
  display: flex;
  height: 100%;
}

.loading-plug__content {
  flex-direction: column;
  width: 100%;
  max-height: 100vh;
  overflow: hidden auto;
}

.loading-plug__main {
  display: grid;
  grid-template-rows: minmax(0, 8fr) minmax(0, 11fr);
  min-height: 100%;
}

.loading-plug__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 0.75em;
  background-color: #0f0f0f;
}

.loading-plug__coins {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0.9375em 0;
}

.loading-plug__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.8em 0 1.5em;
  color: #18181a;
  background-color: #edd8c4;
  background-image: url('../images/plugs/loading/background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.loading-plug__decor--line {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: none;
  height: 9.4375em;
  max-height: none;
}

.loading-plug__decor--border {
  position: absolute;
  right: 0;
  bottom: -1.3125em;
  left: 50%;
  width: 110%;
  max-width: none;
  height: 1.375em;
  object-fit: cover;
  transform: translateX(-50%);
}

.loading-plug__coin {
  width: 13.125em;
  height: 13.125em;
}

.loading-plug__coin--middle {
  position: relative;
  z-index: 2;
}

.loading-plug__coin--left {
  position: absolute;
  top: 50%;
  right: calc(50% + 0.5625em);
  z-index: 1;
  width: 10.6875em;
  height: 10.6875em;
  transform: translateY(-50%);
}

.loading-plug__coin--right {
  position: absolute;
  top: 50%;
  left: calc(50% + 0.5625em);
  z-index: 1;
  width: 10.6875em;
  height: 10.6875em;
  transform: translateY(-50%);
}

.loading-plug__label {
  color: #494949;
}

.loading-plug__image--compass {
  width: 8.125em;
  height: 8.125em;
}

.loading-plug__headline {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: center;
}

.loading-plug__socials {
  display: flex;
  flex-direction: column;
  gap: 0.9375em;
  align-items: center;
}

.loading-plug__middle {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: center;
  margin-top: 1.925em;
}

.loading-plug__buttons {
  display: flex;
  gap: 1.9375em;
  align-items: center;
  justify-content: center;
}

.loading-plug__button {
  width: 2.25em;
  height: 2.25em;
  background-color: black;
}

.icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.5em;
  transition: 0.3s;
}

.icon-button__icon {
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
}
