@font-face {
  font-family: outfit;
  src: url(images/Outfit-Regular.ttf);
}

@font-face {
  font-family: outfit;
  src: url(images/Outfit-Bold.ttf);
  font-weight: bold;
}

* {
  font-family: outfit;
}

#background {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: linear-gradient(#000128, #0039ae);
}

#background2 {
  position: absolute;
  top: 100%;
  left: 0px;
  width: 100%;
  height: 60%;
  background: linear-gradient(0deg, #000128, #0039ae);
}

#background2foreground, #background2middleground, #background2background {
  position: absolute;
  top: 80%;
  left: 0px;
  width: 100%;
  height: 80%;
  overflow: hidden;
  pointer-events: none;
}

#spawnLeft {
  width: 25%;
  position: absolute;
  bottom: 15%;
  left: 0;
}

#spawnRight {
  width: 25%;
  position: absolute;
  bottom: 15%;
  right: 0;
}

#land {
  width: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
}

#middle {
  width: 100%;
  position: absolute;
  bottom: -15%;
  right: 0;
}

#back {
  width: 100%;
  position: absolute;
  bottom: 0%;
  right: 0;
}

#sheepContainer {
  width: 20%;
  position: absolute;
  bottom: 5%;
  right: -10%;
  animation: sheep 4s linear infinite;
}

#sheepHitbox {
  position: absolute;
  width: 50%;
  height: 65%;
  left: 28%;
  top: 12%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 727727727;
  pointer-events: auto;
  background: rgba(69, 69, 69, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0,0,0,0.6);
}

@keyframes sheep {
  0% {
    transform: translate(0%, 0%);
  }
  50% {
    transform: translate(-225%, -120%);
  }
  100% {
    transform: translate(-450%, 0%);
  }
}

#shooting, #twinkling {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 130%;
  overflow: hidden;
}

@keyframes shooting {
  0% {
    transform: rotate(315deg) translateX(0) rotate(-315deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-1200px) rotate(-315deg);
    opacity: 0;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(2.2);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.sheep {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: auto;
  display: flex;
  text-align: center;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

#aboutContainer {
  display: none;
}

#interestContainer {
  display: none;
}

#linkContainer {
  display: none;
}

#gachaContainer {
  display: none;
}

img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 250ms ease;
}

.titles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0,0,0,0.6);
}

.text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.4rem;
  font-weight: 700;
}

#buttonHitbox {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 55%;
  z-index: 727;
  border-radius: 50%;
  background: rgba(69, 69, 69, 0);
}

#buttonHitbox:hover ~ img {
  transform: scale(1.06);
  cursor: pointer;
}

.button {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 15%;
  height: auto;
  display: block;
  text-align: center;
  overflow: hidden;
}

#b0 {
  left: 15%;
  top: 85%;
}

#b1 {
  left: 10%;
  top: 30%;
}

#b2 {
  left: 90%;
  top: 15%;
}

#b3 {
  left: 85%;
  top: 80%;
}

#b4 {
  left: 88%;
  top: 85%;
}

#b5 {
  left: 12%;
  top: 78%;
}

#b6 {
  left: 12%;
  top: 12%;
}

#b7 {
  left: 8%;
  top: 88%;
}

#startContainer, #aboutContainer, #interestContainer, #linkContainer, #gachaContainer {
  transition: opacity 0.5s ease;
}

.fade {
  opacity: 0;
  pointer-events: none;
}

.sheepText {
  position: absolute;
  flex-direction: column;
  top: 35%;
  width: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheepText > .titles {
  position: relative;
}

.sheepText > .text {
  position: relative;
}