:root {
  --dark-mode-01: #161616;
  --dark-mode-02: #1c1c1c;
  --dark-mode-06: #343434;
  --dark-mode-11: #a0a0a0;
  --dark-mode-12: #ededed;
  --dark-green-9: #30a46c;
  --dark-red-9: #e5484d;
  --quiz-font: 'Inter', sans-serif;
  --quiz-font-normal-style: normal;
}

.cbx-modal {
  visibility: hidden;
  height: 0;
  width: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  display: none;
}

#quizBtn:checked + .modal {
  transform: translateY(-100%);
  opacity: 1;
}

/*Modal do quiz*/
.modal {
  /* display: none; Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;

  left: 0;
  top: 100%;
  width: 100%; /* Full width */
  max-height: 610px;
  transition: transform ease-in-out 0.4s;
  opacity: 0;
}

.modal-content {
  background: var(--dark-mode-01);
  border-radius: 24px 24px 0px 0px;

  /* -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.5s;
  animation-name: slideIn;
  animation-duration: 0.5s; */
}

.modal-header {
  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 8px;

  background: var(--dark-mode-02);
  border-radius: 24px 24px 0px 0px;
  border-bottom: 2px solid var(--dark-mode-06);
}
.modal-header h2 {
  padding: 4px 0px;
  color: var(--dark-mode-12);
  font-family: var(--quiz-font);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
}

/* The Close Button */
.close {
  margin-right: 6px;
  font-size: 20px;
  width: 24px;
  height: 24px;

  flex: none;
  order: 1;
  flex-grow: 0;

  color: var(--dark-mode-12);
}

.question-content {
  max-height: 554px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 9px;
  gap: 24px;

  flex: none;
  order: 1;
  flex-grow: 0;

  background: var(--dark-mode-01);
}

.question {
  font-family: var(--quiz-font);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;

  flex: none;
  order: 0;
  flex-grow: 0;

  color: var(--dark-mode-12);
}

.answers {
  width: 100%;
}

.answers label {
  font-family: var(--quiz-font);
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;

  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 16px 16px 40px;
  gap: 8px;

  background: var(--dark-mode-02);
  border-radius: 8px;
  margin-bottom: 24px;

  color: var(--dark-mode-11);
}

.answers input {
  height: 0;
  width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  visibility: hidden;
  display: none;
}

.answers input.invalid + label,
.answers input.valid + label {
  color: var(--dark-mode-12);
}

.answers input + label:after {
  content: '';
  border: 2px solid transparent;
  position: absolute;
  z-index: 9999;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  border-radius: 8px;
  transition: border ease-in 0.3s;
}

.answers input.valid + label,
.answers input.invalid + label,
.answers input.disabled + label {
  pointer-events: none;
}

.answers input.valid + label:after {
  border: 2px solid var(--dark-green-9);
}

.answers input.invalid + label:after {
  border: 2px solid var(--dark-red-9);
}

.answers input.disabled + label {
  color: var(--dark-mode-06);
}

.answers label::before {
  font-weight: bold;
  content: attr(data-question) ')';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Body */
.modal-body {
  padding: 2px 16px;
}

/* Modal Footer */
.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* Add Animation */
@-webkit-keyframes slideIn {
  from {
    bottom: -700px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    bottom: -700px;
  }
  to {
    bottom: 0;
  }
}

@-webkit-keyframes shadow {
  0% {
    background-color: rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.7);
  }
  100% {
    box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.7), 0px 0px 50px transparent inset;
  }
}

@keyframes shadow {
  0% {
    background-color: rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.7);
  }
  100% {
    box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.7), 0px 0px 50px transparent inset;
  }
}
