*,
*:before,
*:after {
  box-sizing: border-box;
}

.container {
  width: calc(100% - 20px);
  max-width: 960px;
  margin: 0 auto;
}

.header,
#questions {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header {
  font-size: 30px;
  color: #ff7338;
}

#questions {
  flex-direction: column;
}

.question {
  background: #fc6f31;
  padding: 30px;
  border-radius: 10px;
  width: 600px;
  margin-top: 20px;
  max-width: calc(100% - 10px);
}

.question .title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}

.answer {
  background: #ff8c5a;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  max-width: calc(100% - 20px);
  font-size: 20px;
  display: flex;
  align-items: center;
}

.answer .answerLabel {
  margin-left: 10px;
  width: 100%;
}

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  display: inline-grid;
  place-content: center;
  border-radius: 10px;
  padding: 3px;
}

input[type="radio"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #ff8c5a;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

@font-face {
  font-family: "Roboto";
  src: url("./Roboto.ttf");
}

body {
  font-family: Roboto;
  background-color: #ffd7c6;
}

#submit {
  transition: 0.2s;
  cursor: pointer;
  padding: 20px 10px;
  color: white;
  background-color: #ff8c5a;
  border-radius: 10px;
  font-size: 20px;
  width: 400px;
  text-align: center;
  margin: 20px auto;
  opacity: 0.8;
}

#submit:hover {
  opacity: 1;
}

.result {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: #ff8c5a;
  font-size: 30px;
  padding: 20px;
}

.result.open {
  display: flex;
  animation: popup;
  animation-duration: 0.5s;
}

@keyframes popup {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
