/*Обнуление*/
* {
  padding: 0;
  margin: 0;
  border: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
:focus,
:active {
  outline: none;
}
a:focus,
a:active {
  outline: none;
}
nav,
footer,
header,
aside {
  display: block;
}
html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
input,
button,
textarea {
  font-family: inherit;
}
input::-ms-clear {
  display: none;
}
button {
  cursor: pointer;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}
a,
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul li {
  list-style: none;
}
img {
  vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

@font-face {
  font-family: "Open sans";
  src: url("../font/OpenSans-Regular.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Open sans";
  src: url("../font/OpenSans-SemiBold.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-weight: 600;
}

.question-section {
  display: none;
}

.result1 {
  display: none;
}
.result2 {
  display: none;
}

.result1 p {
  margin-bottom: 20px;
}
.result2 p {
  margin-bottom: 20px;
}

.active {
  display: block;
  display: flex;
  flex-direction: column;
}

.container__quiz {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 20px 30px;
  max-width: 800px;
}

.question {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 120%;
}
.options {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.options label {
  font-size: 16px;
  line-height: 120%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
input {
  margin-right: 5px;
  margin-top: 5px;
  align-self: start;
}
.answer-btn {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  align-self: start;

  min-width: 100px;
  padding: 10px 20px;
  cursor: pointer;
  /* background: #3498db; */
  /* border: 1px solid #ccc; */
  /* box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05); */
  color: #fff;
  transition: opacity 0.3s;
  border-radius: 32px;
  background: linear-gradient(90deg, #ff7a00, #ff9533);
}

.answer-btn:hover {
  opacity: 0.5;
}
.result__btn {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  align-self: start;
  min-width: 100px;
  padding: 10px 20px;
  cursor: pointer;
  /* border: 1px solid #ccc; */
  /* box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05); */
  /* background: #3498db; */
  color: #fff;
  transition: opacity 0.3s;
  border-radius: 32px;
  background: linear-gradient(90deg, #ff7a00, #ff9533);
}
.result__btn:hover {
  opacity: 0.5;
}
.result1 {
  font-size: 16px;
  line-height: 22px;
  color: #00253c;
}
.result2 {
  font-size: 16px;
  line-height: 22px;
  color: #00253c;
}

.answer-btn2 {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  align-self: start;

  min-width: 100px;
  padding: 10px 20px;
  cursor: pointer;
  /* background: #3498db; */
  /* border: 1px solid #ccc; */
  /* box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05); */
  color: #fff;
  transition: opacity 0.3s;
  border-radius: 32px;
  background: linear-gradient(90deg, #ff7a00, #ff9533);
}

.answer-btn2:hover {
  opacity: 0.5;
}
@media (max-width: 600px) {
  .question {
    font-size: 16px;
  }

  .options label {
    font-size: 13px;
  }
  .answer-btn {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 17px;
  }
  .answer-btn2 {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 17px;
  }
  input {
    margin-top: 2px;
  }
}
@media (max-width: 400px) {
  .question {
    font-size: 15px;
  }

  .options label {
    font-size: 12px;
  }
  .answer-btn {
    font-size: 13px;
    line-height: 18px;
    padding: 8px 13px;
    align-self: center;
  }
  .answer-btn2 {
    font-size: 13px;
    line-height: 18px;
    padding: 8px 13px;
    align-self: center;
  }
  .result__btn {
    align-self: center;
  }
}

.wrong-answer {
  animation: shake 0.5s linear;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-5px);
  }
  20% {
    transform: translateX(5px);
  }
  30% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  50% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(5px);
  }
  70% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
  90% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
