@import url("https://fonts.googleapis.com/css2?family=Inter:wght@600&family=Oswald&display=swap");

@font-face {
  font-family: "Tiempos Headline";
  src: url(./assets/fonts/TiemposHeadline-Regular.otf);
}
@font-face {
  font-family: "Founders Grotesk";
  src: url(./assets/fonts/FoundersGrotesk-Regular.otf);
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Helvetica, sans-serif;
}

.quiz {
  width: 100%;
  height: 100%;
}

.quiz .container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding-bottom: 50px;
  border: 0.6px solid grey;
}

.quiz .header {
  background: #fff134;
  padding: 27px 0 10px;
  margin-bottom: 34px;
  text-align: center;
  position: relative;
}
.quiz .header h2 {
  font-family: "Tiempos Headline";
  font-weight: 400;
  font-size: 26px;
  line-height: 31px;
  text-align: center;
}

.quiz .header::before {
  content: "";
  width: 100%;
  height: 20px;
  position: absolute;
  bottom: -11px;
  left: 0;
  transform: skew(0deg, -1.8deg);
  background: #fff134;
}

.quiz .progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 14px;
}

.quiz .progress-bar .back,
.quiz .progress-bar .next {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.quiz .progress-bar .back span,
.quiz .progress-bar .next span {
  font-family: "Inter";
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  color: #494d53;
}

.quiz .progress-bar .back img,
.quiz .progress-bar .next img {
  width: 24px;
  height: 12px;
}
.quiz .progress-bar .back img {
  margin-right: 7px;
}
.quiz .progress-bar .next img {
  transform: rotate(180deg);
  margin-left: 7px;
}

.quiz .outer-bar {
  width: 100%;
  height: 11px;

  background: rgba(131, 93, 122, 0.23);
  border-radius: 24px;
  margin: 0 10px;
}
.quiz .inner-bar {
  width: 10%;
  height: 100%;
  background: #835d7a;
  border-radius: 24px;
  transition: 0.5s;
}

.question {
  display: flex;
  align-items: center;
  margin: 44px 0 0 23px;
}

.question .question-number {
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000000;
  font-family: "Oswald";
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: #000000;
  border-radius: 50%;
  flex: none;
}

.question .text {
  display: flex;
}
.question h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  color: #000000;
  margin: 0 6px 0 14px;
}

.question .tooltip {
  display: inline;
  position: relative;
  cursor: pointer;
}
.question .tooltip::before {
  opacity: 0;
  visibility: hidden;
  content: "Small dog: 4-22 lbs, Medium dog: 23-55 lbs, Large dog: 55+ lbs";
  position: absolute;
  width: 250px;
  font-size: 12px;
  text-align: center;
  line-height: 16px;
  background-color: #fff134;
  color: black;
  left: 50%;
  top: -65px;
  transform: translateX(-50%);
  padding: 12px;
  border-radius: 8px;
  transition: .3s;
}
.question .tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

.quiz .content .answers {
  padding-left: 30px;
}
.quiz .content .answers .answer > div {
  display: flex;
  width: 100%;
  cursor: pointer;
}
.quiz .content .answers .answer img {
  cursor: pointer;
}

.quiz .content .answers .answer > div h4 {
  font-family: "Helvetica";
  font-weight: 400;
  font-size: 15px;
  line-height: 17px;
  color: #000000;
}

.quiz .content .answers .answer.active > div h4 {
  font-weight: 700;
}
.quiz .content .answers .answer > div .circle {
  width: 18px;
  height: 18px;
  border: 1px solid #000000;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.quiz .content .answers .answer.active > div .circle::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff000;
  border-radius: 50%;
}

/* first question style */
.quiz .content .answers.first-question {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 23px;
  height: 235px;
}

.quiz .content .answers.first-question .answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.quiz .content .answers.first-question .answer:nth-of-type(2) > div {
  margin-top: 16px;
}

.quiz .content .answers.first-question .answer.active img {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
.quiz .content .answers.first-question .answer.active img {
  -webkit-filter: none;
  filter: none;
}

/* grid question style */
.quiz .content .answers.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 37px;
  row-gap: 38px;
}

.quiz .content .answers.grid .answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 187px;
}
.quiz .content .answers.grid .answer img {
  height: 120px;
}
.quiz .content .answers.first-grid .answer:nth-of-type(3) {
  justify-content: flex-end;
}

.quiz .content .answers.grid .answer > div {
  margin-top: 20px;
}

.post-banner {
  width: 100%;
  max-width: 466px;
  background-color: #dceff1;
  text-align: center;
  margin: 0 auto;
  margin-top: 26px;
  padding: 25px 16px 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  display: none;
}

.post-banner p {
  font-family: "Founders Grotesk";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  color: #000000;
  max-width: 372px;
}

.post-banner a {
  margin-top: 15px;
  border: 1px solid #000000;
  border-radius: 43.5px;
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
  width: 163px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: unset;
  text-decoration: none;
}

.result {
  display: none;
}
.result .question {
  margin: 23px 0 0 29px;
}
.result .main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}
.result .main img {
  margin-top: 28px;
  width: 300px;
  height: 232px;
  object-fit: contain;
}

.result .main h4 {
  font-weight: 700;
  font-size: 23px;
  line-height: 26px;
  color: #d82323;
  padding: 8px 16px 10px;
  background: rgba(255, 139, 139, 0.57);
  border-radius: 12px;
  margin: 20px 0 17px;
}

.result .main h4.overweight {
  background: rgba(255, 139, 139, 0.57);
  color: #d82323;
}
.result .main h4.notOverweight {
  background: rgba(194, 241, 182, 0.57) !important;
  color: #2dad18 !important;
}
.result .main h4.underweight {
  background: rgba(255, 139, 139, 0.57);
  color: #d82323;
}
.result .main h4.notOverweightBut {
  background: rgba(244, 214, 52, 0.57);
  color: #ce7e05;
}

.result .main p {
  font-weight: 400;
  font-size: 17px;
  line-height: 126.49%;
  color: #000000;
}

.result .post-banner {
  display: flex;
  max-width: 426px;
}

.result .got-question {
  max-width: 420px;
  margin: 30px auto 0;
}
.result .got-question p {
  font-weight: 700;
  font-size: 20px;
  line-height: 23px;
  color: #000000;
}

.result .got-question .btns {
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.result .got-question .btns a {
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  text-transform: uppercase;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 43.5px;
  width: 178px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.result .got-question .btns a:first-of-type {
  background: #fff134;
  margin-right: 2px;
}

.result .got-question .btns a:last-of-type {
  background-color: unset;
}
.result .got-question .btns a:last-of-type img {
  margin-right: 13px;
}

@media (max-width: 550px) {
  .quiz .content .answers.grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* columns question style */
.quiz .content .answers.columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quiz .content .answers.columns .answer {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.quiz .content .answers.columns .answer img {
  width: 138px;
}
.quiz .content .answers.columns .answer > div {
  margin-left: 27px;
}
.quiz .content .answers.columns .answer {
  margin-top: 40px;
}

/* text-only question style */
.quiz .content .answers.text-only {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quiz .content .answers.text-only .answer {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.quiz .content .answers.text-only .answer > div {
  margin-left: 50px;
}
.quiz .content .answers.text-only .answer {
  margin-top: 25px;
}

@media (max-width: 580px) {
  .quiz .content .answers {
    padding: 0 16px;
  }
  .question {
    margin: 44px 16px 0 16px;
  }
  .question h2 {
    font-size: 16px;
    line-height: 20px;
  }

  .result .main,
  .result .got-question {
    padding: 0 16px;
  }
  .result .question {
    margin: 23px 0 0 16px;
  }
}
