@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

body {
  font-family: "Montserrat", sans-serif;
  background: rgba(243, 244, 249, 1);
}

nav {
  background: rgba(255, 255, 255, 1);
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

header {
  padding: 86px 0 100px;
}
.title h2 {
  color: rgba(40, 53, 114, 1);
  font-size: 50px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 30px;
}

.title h2 span {
  color: rgba(0, 123, 255, 1);
}

.title p {
  color: rgba(40, 53, 114, 1);

  font-family: Montserrat;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0%;
  text-align: center;
}
.title p span {
  font-weight: 600;
}

.header_img {
  width: 100%;
  margin-top: 60px;
}
.quiz_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.left_title h2,
.left_title p {
  text-align: left;
}
.left_title h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: 0%;
}
.left_title p {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0%;
  text-align: left;
}
.left_title {
  position: relative;
}
.arrow_img {
  position: absolute;
  top: 21px;
  right: -80px;
}

.quiz_block {
  border-radius: 4px;
  width: 708px;
  height: 479px;
  padding: 45px 50px 0;
  box-shadow: 0px 0px 54px -10px rgba(146, 162, 246, 0.2);
  background: rgba(255, 255, 255, 1);
}

.quiz_question h4 {
  color: rgba(40, 53, 114, 1);

  font-family: Georgia;
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 38px;
}
.quiz_answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.quiz_btn {
  cursor: pointer;
  width: 347px;
  height: 80px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 1);

  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0%;
  text-align: center;
  background: rgba(108, 117, 126, 1);
  border: none;
  transition: all 0.4s ease;
}

.quiz_btn:hover {
  background: rgba(0, 104, 217, 1);
  transition: all 0.4s ease;
}
.active_quiz_btn {
  background: rgba(0, 104, 217, 1);
}
footer {
  background: rgba(51, 51, 51, 1);
  padding: 23px 0;
  margin-top: 80px;
  width: 100%;
}
.footer_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer_left {
  display: flex;
  align-items: center;
  gap: 27px;
}
.footer_left img {
  width: 75px;
  height: 75px;
}
.footer_left p {
  color: rgba(255, 255, 255, 1);

  font-family: Montserrat;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0%;
  text-align: left;
}

.footer_menu {
  display: flex;
  align-items: center;
  gap: 15px;
}
.footer_menu p {
  color: rgba(32, 162, 172, 1);

  font-family: Montserrat;
  font-size: 13px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0%;
  text-align: right;
}
.footer_menu p:hover {
  text-decoration: underline;
}

.quiz_result_loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.quiz_result_loading p {
  color: rgba(40, 53, 114, 1);
  font-family: Georgia;
  font-size: 36px;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: 0%;
  text-align: center;
  margin-top: 30px;
}

.quiz_result_loading p span {
  color: rgba(0, 123, 255, 1);
}

.quiz_question,
.quiz_result_loading {
  display: none;
}

.quiz_question.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.quiz_result_loading.active {
  display: flex;
}

.loading_anim {
  animation: spin 1s linear infinite;
}

.loading_block {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff1f;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page_wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.page_top {
  width: 100%;
}
.text_pages {
  margin-top: 50px;
}
.back_to_page {
  display: flex;
  align-items: center;
  gap: 10px;
}
.back_to_page p {
  color: rgba(40, 53, 114, 1);

  font-family: Montserrat;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0%;
  text-align: left;
}

.back_to_page:hover p {
  text-decoration: underline;
}
.text_content {
  margin-top: 45px;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0px 0px 54px -10px rgba(146, 162, 246, 0.2);
  background: rgba(255, 255, 255, 1);
}

.text_content h3 {
  color: rgba(40, 53, 114, 1);
  margin-bottom: 40px;
  font-family: Montserrat;
  font-size: 50px;
  font-weight: 600;
  line-height: 60px;
  letter-spacing: 0%;
  text-align: left;
}

.text_content p {
  color: rgba(40, 53, 114, 1);
  margin-bottom: 30px;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0%;
  text-align: left;
}
.header_img_mob {
  display: none;
}

.header_images {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 60px;
}

.header_images img {
  width: 100%;
  height: auto;
  border: 6px solid rgba(255, 60, 0, 1);
  border-radius: 10px;
}

.header_img_1 {
  flex: 58%; 
  min-width: 280px;
}

.header_img_2 {
  flex: 42%; 
  min-width: 200px;
  margin-left: -100px; 
}

@media only screen and (max-width: 1460px) {
  .container {
    padding-left: 44px;
    padding-right: 44px;
  }
}

@media only screen and (max-width: 1300px) {
  br {
    display: none;
  }
  .arrow_img {
    display: none;
  }
  .quiz_wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .quiz_block {
    width: 100%;
  }
  .quiz_question,
  .quiz_result_loading {
    max-width: 610px;
    margin: 0 auto;
  }
  .left_title h2,
  .left_title p {
    text-align: center;
  }
}

@media only screen and (max-width: 500px) {
  .header_images {
    flex-direction: column;
    margin-top: 30px;
  }
  .header_images img {
    border: 4px solid rgba(255, 60, 0, 1);
  }
  .header_img_1 {
    width: 100%;
  }
  .header_img_2 {
    width: 222px !important;
    margin: 0;
    margin-top: -58px;
  }

  nav {
    height: 63px;
  }
  nav img {
    width: 43px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  header {
    padding-top: 30px;
    padding-bottom: 60px;
  }
  .title h2 {
    font-size: 24px;

    line-height: 34px;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 10px;
  }
  .title p {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0%;
    text-align: center;
  }
  .header_img {
    margin-top: 30px;
  }
  .header_img_desc {
    display: none;
  }
  .header_img_mob {
    display: block;
  }
  .left_title h2 {
    font-size: 20px;
    line-height: 30px;
  }
  .quiz_wrapper {
    gap: 20px;
  }
  .quiz_block {
    padding: 30px 25px;
    height: auto;
  }
  .quiz_question h4 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 20px;
  }
  .quiz_answers {
    gap: 15px;
  }
  .quiz_btn {
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-weight: 400;
    line-height: 42px;
    letter-spacing: 0%;
  }
  footer {
    padding-top: 60px;
    padding: 30px 0;
  }
  footer p {
    line-height: 100% !important;
  }
  .footer_wrapper,
  .footer_left {
    flex-direction: column;
    gap: 20px;
  }
  .footer_left img {
    width: 55px;
    height: 55px;
  }
  .quiz_result_loading p {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0%;
    margin-top: 20px;
  }
  .text_pages {
    margin-top: 22px;
  }
  .text_content {
    margin-top: 20px;
    padding: 20px 12px;
  }
  .text_content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 20px;
  }
  .text_content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0%;
    margin-bottom: 20px;
  }
  header br,
  .quiz_result_loading br {
    display: block;
  }
}
