@charset "UTF-8";

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

#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: #fef9f5;
  text-align: center;
}

#loading_logo {
  position: absolute;
  top: 35%;
  left: 47%;
  transform: translate(-50%, -50%);
}

#loading_logo img {
  width: 800px;
}

.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#splash {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fef9f5;
  z-index: 9999999;
  text-align: center;
  color: #333;
}

#splash-logo {
  position: absolute;
  white-space: nowrap;
  font-size: 50px;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -50%);
}

.splashbg {
  display: none;
}

body.appear .splashbg {
  display: block;
  content: "";
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  transform: scaleY(0);
  background-color: #ffe8b0;
  animation-name: PageAnime;
  animation-duration: 1.2s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes PageAnime {
  0% {
    transform-origin: top;
    transform: scaleY(0);
  }
  50% {
    transform-origin: top;
    transform: scaleY(1);
  }
  50.001% {
    transform-origin: bottom;
  }
  100% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
}

#container {
  opacity: 0;
}

body.appear #container {
  animation-name: PageAnimeAppear;
  animation-duration: 1s;
  animation-delay: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes PageAnimeAppear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body {
  font-family: "Yu Gothic", sans-serif;
  background-color: #fef9f5;
  color: #333;
  text-align: center;
  padding: 40px;
}

h1 {
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.1em;
  display: inline-block;
  overflow: hidden;
}

.main_title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: titleShine 2s infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes titleShine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

form p {
  margin-top: 12px;
  font-size: 24px;
}

form input {
  padding: 5px;
}

.start_btn {
  position: relative;
  width: 300px;
  line-height: 70px;
  display: block;
  background-image: linear-gradient(
    270deg,
    #3bade3 0%,
    #576fe6 25%,
    #9844b7 51%,
    #ff357f 100%
  );
  background-position: 1% 50%;
  background-size: 200% auto;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
  transition: background-position 0.5s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 16px;
  border-radius: 60px;
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.start_btn:hover {
  color: #fff;
  background-position: 99% 50%;
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.6);
  transform: scale(1.05);
  cursor: pointer;
}

.start_btn:active {
  box-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(138, 43, 226, 1);
  transform: scale(0.98);
}

.start_btn::before,
.start_btn::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: sparkle 2s infinite ease-in-out;
}

.start_btn::before {
  top: -10px;
  left: 20%;
}

.start_btn::after {
  bottom: -10px;
  right: 20%;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.result_img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px auto;
  border-radius: 10px;
  box-shadow: 0px 2px 7px #777777;
}

h2 {
  white-space: nowrap;
  font-size: 36px;
  letter-spacing: 0.12em;
}

.animal_name {
  font-size: 40px;
  font-weight: bold;
  color: #6b4e3d;
}

.animal_message {
  font-size: 32px;
  margin-top: 10px;
  color: #7a5c4b;
  white-space: nowrap;
}

.back {
  position: relative;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  background: transparent;
  border-radius: 25px;
  border: solid 1px #333;
  outline: none;
  margin-top: 24px;
  transition: all 0.2s ease;
}

.back:hover {
  border-color: transparent;
}

.back span {
  position: relative;
  z-index: 2;
  display: block;
  padding: 10px 30px;
  background: #fff;
  border-radius: 25px;
  color: #333;
  transition: all 0.3s ease;
}

.pushdown:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  background-color: #333;
}

.pushdown:hover span {
  background-color: #333;
  color: #fff;
  transform: translateY(4px);
}
