body {
  background-image: url('/projects/flagsQuiz/background.webp');
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-position: top;
  background-size: cover;
}

* {
  box-sizing: border-box;
  font-family: Arial;
}

.flags-home-quiz-con {
  padding: 45px 10px !important;
}

.flags-quiz-con {
  height: 90% !important;
  margin: auto;
  min-height: 580px !important;
}

.flags-home-quiz-con,
.flags-quiz-con,
.flags-quiz-results-con {
  width: 35%;
  max-width: 450px;
  height: auto;
  background: rgb(247, 246, 246);
  border-radius: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100% !important;
}

.flags-quiz-results-con {
  padding: 45px;
  display: none;
}

.flags-quiz-results-con > h2 {
  font-size: 30px;
  margin-top: 0;
}

.flags-quiz-results-con > p {
  margin-top: 0;
  font-size: 24px;
}

.flags-quiz-results-con > button {
  width: 90%;
  margin-top: 20px;
  margin-bottom: 0;
}

.flags-quiz-con {
  display: none;
  max-height: 300px !important;
}

.flags-quiz-heading-con {
  display: flex;
  align-items: center;
  width: 90%;
}

.flags-quiz-heading {
  margin-top: 0;
}

.flags-quiz-heading-con > p,
.flags-quiz-heading-con > h2,
.flags-quiz-heading-con > div {
  flex: 1;
}

.score-count {
  display: flex;
  justify-content: right;
}

.score-count > p {
  text-align: right;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  font-size: 18px;
  color: white;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  background: rgb(45, 105, 173);
}

.flags-quiz-heading-con > h2 {
  flex: 3;
  text-align: center;
}

.flags-quiz-heading {
  font-size: 30px;
  text-align: center;
  font-weight: bold;
}

.img-slideshow {
  margin: 10px auto;
  height: 210px;
  border-radius: 5px;
  width: 90%;
  object-fit: cover;
}

.play-now-button,
.result-btn {
  width: 90%;
  margin-top: 50px;
  height: 55px;
  font-size: 18px;
  /* box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; */
  cursor: pointer;
  color: white;
  border: none;
  border-radius: 40px;
  background: rgb(45, 105, 173);
}

.play-now-button:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: rgb(59, 123, 196);
}

.question-flag {
  width: 90%;
  height: 200px !important;
  margin-bottom: 30px;
  border-radius: 5px;
}

.flags-answer-button-con {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 10px;
  width: 90%;
  margin-bottom: 20px;
}

.flag-answer-btn {
  flex: 1;
  height: 50px;
  color: black;
  border: 1px solid rgb(128, 128, 128);
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.flag-answer-btn:hover {
  background: rgb(211, 211, 211);
}

@media only screen and (min-width: 300px) and (max-width: 550px) {
  .flags-home-quiz-con,
  .flags-quiz-con,
  .flags-quiz-results-con {
    width: 100vw;
    height: 100vh !important;
    max-width: unset;
    border-radius: 0;
  }

  .flag-answer-btn {
    font-size: 16px;
  }

  .question-count {
    font-size: 20px;
  }
}

@media only screen and (min-width: 551px) and (max-width: 1000px) {
  .flags-home-quiz-con,
  .flags-quiz-con,
  .flags-quiz-results-con {
    width: 60%;
  }
}

@media only screen and (max-height: 600px) {

  .flag-answer-btn {
    height: 50px;
  }
  .play-now-button,
  .result-btn {
    margin-top: 10px;
    margin-bottom: 0;
  }
}

@media only screen and (max-height: 500px) {
  .flags-quiz-con {
    top: 0;
    left: 0;
    right: 0;
    transform: unset;
  }
}