@font-face {
  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
}

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: Paytone One;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

h1 {
  text-align: center;
}

#title {
  text-decoration: underline;
}

#quiz {
  text-indent: 10px;
  display: none;
}

.buttons_wrap {
  width: 100%;
  padding: 0 50px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-self: flex-end;
}

.button {
  align-self: flex-start;
  border: 4px solid #042b60;
  border-radius: 5px;
  padding: 5px 20px;
  position: relative;
  background-color: #fff;
  color: #042b60;
  margin: 0 2px 0 2px;
  cursor: pointer;
}

.button .left {
  margin-right: 8px;
}

.button .right {
  margin-left: 8px;
}

.button.active {
  background-color: #d0e3ff;
  color: #525252;
}

.button a {
  text-decoration: none;
  color: #042b60;
}

.button_return {
  position: absolute;
  right: 30px;
  top: 30px;
  background: none;
  border: none;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.button_return > a > i {
  font-size: 30px;
  color: #042b60;
}

.image-popup {
  position: relative;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 99;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

.image-popup > span {
  z-index: 99;
  max-height: 80px;
  margin-top: 20px;
  padding: 25px 20px 15px 20px;
  background-color: #00c0b5;
  box-shadow: 0px 7px 15px #00000029;
  border: 5px solid #ffffff;
  border-radius: 30px;
  color: white;

  display: center;
  justify-content: center;
  align-items: center;
}

.image-popup:before {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .image-popup:before {
    background-color: rgba(255, 255, 255, 0.5);
  }
}

.image-popup > img {
  position: absolute;
  right: 50px;
  bottom: -20%;
  height: 800px;
  margin-top: 50px;
}

.image-popup1 {
  display: none;
}

.image-popup2 {
  display: none;
}

.quiz {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 80%;
  min-height: 90%;
  margin: auto;
  padding: 20px;
  background-color: #ccf3f0;
  box-shadow: 0px 3px 15px #00000029 inset, 0px 7px 15px #00000029;
  border: 11px solid #ffffff;
  border-radius: 30px;
  color: #042b60;
  font-weight: bold;
}

#container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#question {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: center;
  max-width: 1000px;
}

li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  background: none;
  color: #fff;
  min-height: 100px;
  text-align: center;
  margin: 20px;
  padding: 10px;
  z-index: 2;
  font-family: Paytone One;
  font-size: 20px;
}

input[type='radio'] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 100%;
  height: 100%;
  background: #042b60;
  border: 11px solid #ffffff;
  box-shadow: 0px 3px 14px #00000029;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 24px;
  z-index: -1;
}

input[type='radio']:checked {
  background: #4f80c4;
}

.answer {
  pointer-events: none;
}

.answer:before {
  margin-right: 5px;
  color: #00c0b5;
  font-family: Paytone One;
}

li:nth-of-type(1) .answer:before {
  content: 'A.';
}

li:nth-of-type(2) .answer:before {
  content: 'B.';
}

li:nth-of-type(3) .answer:before {
  content: 'C.';
}

li:nth-of-type(4) .answer:before {
  content: 'D.';
}

.question {
  display: flex;
}

.question_title {
  color: #042b60;
  font-size: 36px;
  font-weight: 400;
  justify-self: center;
  text-align: center;
  margin: 0 0 10px 0;
}

.question_text {
  font-size: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 150px;
  width: 450px;
  z-index: 1;
  padding: 30px 25px 30px 90px;
}

.question_text:before {
  content: '';
  position: absolute;
  top: 0px; /* equal to border thickness */
  left: 0px; /* equal to border thickness */
  height: 100%;
  width: 450px;
  clip-path: polygon(20% 11%, 100% 0, 95% 100%, 0 92%, 12% 73%);
  background: #042b60;
  z-index: -1;
}

.question_text:after {
  content: '';
  position: absolute;
  top: 5px; /* equal to border thickness */
  left: 5px; /* equal to border thickness */
  width: 440px; /* container height - (border thickness * 2) */
  height: calc(100% - 10px); /* container height - (border thickness * 2) */
  background: #fff;
  clip-path: polygon(20% 11%, 100% 0, 95% 100%, 2% 92%, 12% 77%);
  z-index: -1;
}

.question_image {
  height: 250px;
  margin-top: 30px;
}

#prev {
  display: none;
}

#start {
  display: none;
}

.end-screen_results {
  width: 100%;
  height: 100%;
  background: #00c0b5;
  display: flex;
  pointer-events: none;
}

.end-screen_wrap {
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.end-screen_wrap > img {
  max-width: 100%;
  height: 100%;
}

.end-screen_text--large {
  font-size: 108px;
  margin: 0;
  text-align: center;
  font-weight: 400;
}

.end-screen_text--big {
  font-size: 60px;
  margin: 10px;
  text-align: center;
  font-weight: 400;
}

.end-screen_text {
  font-size: 36px;
  margin: 10px;
  text-align: center;
  font-weight: 400;
}

@media (max-width: 1366px) {
  li {
    width: 300px;
  }
}

@media (max-width: 1024px) {
  li {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .quiz {
    width: 100%;
    min-height: 100%;
    padding: 5px;
  }

  .question {
    width: 100%;
  }

  .question_image {
    height: 180px;
  }

  .question_text {
    width: 100%;
    padding: 10% 6% 10% 16%;
  }

  .question_text:before {
    width: 100%;
  }

  .question_text:after {
    width: 98%;
  }

  li {
    margin: 10px;
    min-height: 80px;
  }

  #question {
    margin-top: 55px;
  }

  input[type='radio'] {
    border: 8px solid #ffffff;
  }

  .buttons_wrap {
    padding: 10px 0;
  }

  .end-screen_results {
    flex-direction: column;
    align-items: center;
  }

  .end-screen_wrap {
    width: 100%;
  }

  .end-screen_wrap > img {
    height: 300px;
  }

  .end-screen_text--large {
    font-size: 64px;
  }

  .end-screen_text--big {
    font-size: 48px;
  }
  .end-screen_text {
    font-size: 36px;
  }

  .image-popup > img {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 700px;
    transform: translateX(-50%);
  }
}

@media (max-width: 500px) {
  .question_text:after {
    width: 95%;
  }

  .end-screen_wrap > img {
    height: 250px;
  }

  .end-screen_text--large {
    font-size: 60px;
  }

  .end-screen_text--big {
    font-size: 44px;
  }
  .end-screen_text {
    font-size: 32px;
  }
}
