@import url(assets/fonts/fonts.css);

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100% !important;
  height: 100%;
}

body {
  font-family: "Metropolis";
  font-size: 16px;
  line-height: 1.25;
  background: url(assets/images/embrapii-bg-quiz.jpg) repeat-y center center;
  overflow-x: hidden;
  /* background-size: cover; */
}

body.projetos {
  background-size: cover;
}

h1 {
  font-size: clamp(1.0625rem, 0.768rem + 1.31vw, 1.75rem);
}

h2 {
  font-size: clamp(1rem, 0.571rem + 1.905vw, 2rem);
  line-height: 1.2;
  margin: 1rem 0;
  color: #258523;
  text-align: center;
}

h3 {
  font-size: clamp(1.0625rem, 0.575rem + 2.167vw, 2.2rem);
  color: #258523;
}

h4 {
  font-size: clamp(0.8125rem, 0.732rem + 0.357vw, 1rem);
}

p {
  font-size: clamp(0.844rem, 0.734rem + 0.488vw, 1.1rem);
  line-height: 1.35;
  margin: 1rem 0;
}

.quiz-wrapper p {
  font-size: clamp(0.875rem, 0.71rem + 0.733vw, 1.26rem);
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container.menu {
  padding-top: 4rem;
}

.row {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  /* padding: 1.5rem; */
}

.icone-hero {
  margin-bottom: 4rem;
}

.btn-start {
  margin-top: 5rem;
  margin-bottom: 25rem;
  cursor: pointer;
  padding: 2rem;
}

.quiz-wrapper {
  /* max-width: 80%; */
  margin: 24px 2rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 4rem;
  padding: 1rem 2rem;
  border-radius: 64px;
  background-color: #e9e9e9;
  -webkit-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
}

.projetos .title {
  width: 640px;
  margin-top: 64px;
}

.quiz-selection img {
  width: 300px;
  margin: 2rem 0 1rem;
  display: block;
  cursor: pointer;
}

.projetos button {
  font-size: clamp(0.844rem, 0.734rem + 0.488vw, 1.1rem);
  padding: 1rem 2rem;
  border-radius: 8px;
}

.projetos .container footer {
  position: relative;
  z-index: 300;
  top: -12rem;
  top: -11rem;
  width: 75%;
  margin: auto;
  display: flex;
  justify-content: flex-end;
}

#quiz {
  position: absolute;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: url(assets/images/embrapii-bg-quiz.jpg) repeat-y center center;
  background-size: cover;
}

.quiz-container,
#quiz-container {
  position: absolute;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 960px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 30px;
}

h3#display-question {
  font-size: clamp(0.875rem, 0.307rem + 2.524vw, 2.2rem);
  padding: 3rem;
  text-align: left;
  border-radius: 64px;
  background-color: #e9e9e9;
  -webkit-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
}

.quiz-question-container {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  margin-bottom: 4rem;
}

.quiz-vinheta {
  margin-bottom: 3rem;
}

.quiz-title {
  font-size: clamp(1.0625rem, 0.382rem + 3.024vw, 2.65rem);
  margin-bottom: 3rem;
}

.quiz-options-container {
  width: 90%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.quiz-options-container span {
  width: 90%;
  background-color: #e9e9e9;
  -webkit-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  border-radius: 32px;
  margin-bottom: 2rem;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.quiz-options-container span img {
  width: 52px;
  height: 52px;
  display: block;
}

span label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s;
  font-size: clamp(0.875rem, 0.393rem + 2.143vw, 2rem);
  font-weight: 600;
  color: #258523;
}

input[type="radio"] {
  position: relative;
  display: none;
}

/* Estilos para as opções de resposta */
.option {
  display: block;
  padding: 1rem;
  cursor: pointer;
}

.next-screen {
  width: 335px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 3rem 0;
  cursor: pointer;
}

.next-button-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.next-button-container img {
  width: 280px;
  height: auto;
}

/** Aviso **/

.modal-container {
  display: none;
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-animation: fadeIn 1.2s ease-in-out;
  animation: fadeIn 1.2s ease-in-out;
}

.modal-content-container {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: url(assets/images/embrapii-bg-quiz.jpg) repeat-y center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
}

.modal-content-container .quiz-vinheta {
  margin-bottom: 10rem;
}

.modal-button-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  border-radius: 64px;
  padding: 4rem;
  background-color: #e9e9e9;
  -webkit-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 6px 6px 8px 0px rgba(0, 0, 0, 0.3);
}

.modal-button-container img {
  margin: 2rem 0 0;
}

.grade-details {
  width: 15rem;
  height: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.grade-details p {
  color: white;
  text-align: center;
}

.modal-content-container .agradece {
  margin-bottom: 4rem;
}

.modal-button-container-restart {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
}

.quiz-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-social img {
  margin: 2rem 1rem;
}

.play-score {
  display: none;
}

.correct {
  background-color: #9ccb43 !important;
  transition: all ease 0.5s;
}

.incorrect {
  background-color: red !important;
  transition: all ease 0.5s;
}

.selected {
  background-color: #007bff !important;
  transition: all ease 0.5s;
}

.correct label {
  color: #fff !important;
  transition: all ease 0.5s;
}

.incorrect label {
  color: #fff !important;
  transition: all ease 0.5s;
}

.selected label {
  color: #fff !important;
  transition: all ease 0.5s;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.container.hero,
.quiz-vinheta,
#quiz,
.quiz-title,
.quiz-question-container,
.quiz-options-container span,
.next-screen,
.quiz-footer {
  -webkit-animation: fadeIn 1.2s ease-in-out;
  animation: fadeIn 1.2s ease-in-out;
}

/* Responsividade
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 900px) {
  .quiz-container,
  #quiz-container {
    padding: 3rem 2rem;
  }

  h3#display-question {
    padding: 1.75rem;
    border-radius: 32px;
  }

  .quiz-title {
    margin-bottom: 1.5rem;
  }

  .quiz-vinheta {
    margin-bottom: 1.5rem;
  }

  .quiz-question-container {
    margin-bottom: 2rem;
  }

  .quiz-options-container span {
    padding: 1.25rem;
  }

  .modal-content-container .quiz-vinheta {
    margin-bottom: 3rem;
  }

  .modal-content-container .agradece {
    margin-bottom: 2rem;
  }

  .modal-button-container {
    padding: 2rem;
    border-radius: 32px;
  }
}

@media (max-width: 768px) {
  .btn-start {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 1rem;
  }

  .icone-hero {
    margin-bottom: 1.5rem;
  }

  .container.menu {
    padding-top: 2rem;
  }

  .quiz-wrapper {
    margin: 16px 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 32px;
    min-height: 0;
  }

  .next-button-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quiz-container,
  #quiz-container {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  h3#display-question {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .quiz-options-container span {
    padding: 1rem;
  }

  .quiz-options-container span img {
    width: 40px;
    height: 40px;
  }

  .quiz-wrapper {
    border-radius: 24px;
    padding: 1rem;
  }
}
