html {
  touch-action: manipulation;
}

.wrap {
  width: 100%;
  height: 100vh;
  background-color: #adffb3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container {
  width: 90%;
  height: 620px;
  margin: 0;
  padding: 0;
  background-color: #fff;
  border-radius: 10px;
  border: 8px solid #030354;
  box-shadow: 1px 1px 2px #666;
}
.container > div {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s, transform 0.5s;
}
.container > div.show {
  opacity: 1;
  transform: scale(1);
}
.container > div.hide {
  display: none;
}
.container h1 {
  margin: 40px 0 0;
}
.container .nextBtn,
.container .resultBtn,
.container .resetBtn {
  width: 60%;
  font-size: 1.2em;
  margin: 0;
  padding: 10px;
}
.container .membersNameFormArea form {
  width: 80%;
  text-align: left;
}
.container .membersNameFormArea form h2 {
  margin-bottom: 16px;
  font-size: 1.2em;
}
.container .membersNameFormArea form .inputArea {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .membersNameFormArea form .inputArea .inputName {
  width: 80%;
  margin-right: 8px;
  padding: 8px;
}
.container .membersNameFormArea form .inputArea .submitBtn {
  width: 80px;
  padding: 8px 0;
}
.container .membersNameFormArea .inputList {
  width: 80%;
  margin: 30px auto;
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.container .membersNameFormArea .inputList.hide {
  display: none;
}
.container .membersNameFormArea .inputList li {
  margin: 5px;
  padding: 5px 5px 5px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  border: 1px solid #ccc;
}
.container .membersNameFormArea .inputList li::before {
  margin-right: 10px;
}
.container .membersNameFormArea .inputList li span {
  display: inline-block;
}
.container .membersNameFormArea .inputList li span:first-child {
  margin-right: 10px;
}
.container .membersNameFormArea .inputList li span:last-child {
  font-weight: 700;
  padding: 5px;
  cursor: pointer;
}
.container .membersNameFormArea .countError {
  margin-top: 20px;
}
.container .membersNameFormArea .countError.hide {
  display: none;
}
.container .daysAndRulesForm form {
  width: 90%;
}
.container .daysAndRulesForm form section {
  margin-bottom: 30px;
  padding: 20px 10px;
  border: 1px solid #ccc;
}
.container .daysAndRulesForm form section h2 {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.container .daysAndRulesForm form section div {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container .daysAndRulesForm form section .form-check {
  margin-right: 20px;
}
.container .daysAndRulesForm form section .form-check .form-check-input {
  margin-right: 4px;
  margin-bottom: 2px;
}
.container .daysAndRulesForm form section .form-check:last-child {
  margin-right: 0;
}
.container .resultArea {
  overflow-y: auto;
}
.container .resultArea table {
  border-collapse: collapse;
  width: 80%;
  margin: 0 auto 40px;
  font-size: 1.1em;
}
.container .resultArea table th,
.container .resultArea table td {
  font-weight: 400;
  padding: 0.5em;
  border: 2px solid #2a2a2a;
}
.container .resultArea table th {
  width: 20%;
  background-color: #0d6efd;
  color: #fffffe;
}
.container .resultArea table td {
  text-align: left;
  padding-left: 1em;
  background-color: #fffffe;
}

@media (min-width: 576px) {
  .container {
    width: 576px;
  }
}