html,
body {
  overflow-y: hidden;
}

.wrap {
  margin: 40px 0 0;
  text-align: center;
}

.container {
  opacity: 0;
  transition: opacity 0.5s;
}
.container.show {
  opacity: 1;
}
.container h1 {
  margin-bottom: 30px;
  font-weight: 400;
  font-size: 1.6em;
}
.container .resultArea {
  width: 90%;
  height: 280px;
  margin: 0 auto;
  border: 1px solid #999;
  border-radius: 5px;
  box-shadow: 2px 2px 4px #999;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.container .resultArea.anime {
  animation: colorChange 0.5s ease-out 4;
}
.container .resultArea .resultText {
  font-size: 3em;
  width: 80%;
  height: 140px;
  line-height: 140px;
  margin: 0;
  background-color: #fff0f5;
  border-radius: 5px;
  box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
}
.container .resultArea .resultText.anime {
  animation: rotate 2s forwards;
}
.container .btnArea {
  width: 80%;
  margin: 30px auto 0;
}
.container .btnArea button {
  font-size: 1.5em;
  width: 80%;
  margin-bottom: 0;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.container .btnArea button.show {
  opacity: 1;
  pointer-events: auto;
}
.container .btnArea button.hide {
  display: none;
}

@keyframes colorChange {
  0% {
    background-color: #fffff0;
    transform: scale(1);
  }
  20% {
    background-color: #dd1f30;
  }
  30% {
    background-color: #f28c28;
  }
  40% {
    background-color: #ffff00;
    transform: scale(0.95);
  }
  50% {
    background-color: #2e7d32;
  }
  60% {
    background-color: #3f51b5;
    transform: scale(1);
  }
  70% {
    background-color: #e75480;
  }
  80% {
    background-color: #a9b0b3;
    transform: scale(0.9);
  }
  90% {
    background-color: #7851a9;
  }
  100% {
    background-color: #fffff0;
    transform: scale(1);
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  30%,
  70% {
    transform: rotate(180deg) scale(0);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@media (min-width: 576px) {
  .container {
    width: 576px;
  }
}
