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

.container {
  opacity: 0;
  transition: opacity 0.5s;
}
.container.show {
  opacity: 1;
}
.container .firstDisplayArea.hide {
  display: none;
}
.container .firstDisplayArea h1 {
  margin-bottom: 40px;
}
.container .firstDisplayArea .formArea {
  width: 90%;
  margin: 0 auto 40px;
}
.container .firstDisplayArea .formArea .inputArea {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .firstDisplayArea .formArea .inputArea .inputName {
  width: 80%;
  margin-right: 8px;
  padding: 8px;
}
.container .firstDisplayArea .formArea .inputArea .submitBtn {
  width: 80px;
  padding: 8px 0;
}
.container .firstDisplayArea .inputList {
  width: 90%;
  margin: 40px auto;
}
.container .firstDisplayArea .inputList li {
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.container .firstDisplayArea .inputList li::before {
  margin-right: 10px;
}
.container .firstDisplayArea .inputList li span {
  display: inline-block;
}
.container .firstDisplayArea .inputList li span:first-child {
  width: 85%;
  text-align: left;
  font-size: 16px;
}
.container .firstDisplayArea .inputList li span:last-child {
  font-size: 14px;
  color: #999;
  padding: 5px;
  cursor: pointer;
}
.container .firstDisplayArea .shuffleBtn {
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  font-size: 1.2em;
}
.container .firstDisplayArea .shuffleError {
  margin-top: 30px;
}
.container .firstDisplayArea .shuffleError.hide {
  display: none;
}
.container .resultArea.hide {
  display: none;
}
.container .resultArea .resultInner {
  width: 90%;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #0b5ed7;
  border: 1px solid #666;
  border-radius: 10px;
  box-shadow: 1px 1px 2px 1px #666;
}
.container .resultArea .resultInner h2 {
  font-size: 2em;
  font-weight: 400;
  color: #fff;
  margin-bottom: 30px;
}
.container .resultArea .resultInner .resultList {
  width: 90%;
  margin: 20px auto;
  text-align: left;
}
.container .resultArea .resultInner .resultList li {
  font-size: 1.2em;
}
.container .resultArea .resultInner .resultList li::before {
  margin-right: 14px;
}
.container .resultArea .resultInner .resultList li.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.container .resultArea .resetBtn {
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  font-size: 1.2em;
}
.container .resultArea .resetBtn.hide {
  display: none;
}

@media (min-width: 576px) {
  .container {
    width: 576px;
  }
}
@media (max-width: 400px) {
  .inputArea {
    flex-direction: column;
    align-items: stretch;
  }
  .inputName {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
  }
  .submitBtn {
    width: 100%;
  }
}