/*
* 
* Version: 1.0,
* Author: Matthieu Solente/VO2
* 
*/

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  height: 100%;
}

body {
  font-family: Verdana, Arial, sans-serif;
  font-size: 1.2em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: #FEC3D9;
}

main {
  width: 100%;
  overflow-x: clip
}

main p {
  font-size: clamp(1.125rem, 0.9rem + 0.75vw, 1.5rem);
  margin: 1em 0
}

header {
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #D8849C;
}

.home header {
  background: #d8849c;
  padding: 3em
}

/*************** CONTAINER ********************/
.grid {
  position: relative;
}

.grid img {
  width: 100%;
  max-width: 600px;
  position: absolute;

  left: 50%;
  transform: translate(10%, -20%);

}

.flex-content {
  width: 100%;
}

@media (max-width:992px) {
  .grid {
    background-color: #FEC3D9;
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .grid img {
    width: 100%;
    max-width: 600px;
    position: relative !important;
    left: 0;
    top: 0;
    transform: translate(0%, -25%);
    margin: 0 auto;
  }

  .flex-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 3em 0 0;

  }

  .home .flex-content {
    margin: 0 !important
  }

}


/************TITLE***************/
h1,
h2 {
  overflow-wrap: break-word;
  text-wrap: balance;
  color: #000000;

  font-weight: normal;
  margin: 1em 0;
  font-weight: normal;
}

h1 {
  /* font-size: clamp(1.875rem, 0.75rem + 3.75vw, 3.75rem); */
  font-size: clamp(1.875rem, 0.1875rem + 5.625vw, 4.6875rem);
  line-height: 1.2;
  text-transform: uppercase;
}

h1 span {
  color: #ffffff;
  font-weight: bold;

}

h2 {
  font-size: clamp(1.125rem, 0.9rem + 0.75vw, 1.5rem);
  text-align: center;
  color: #000000;
  font-weight: bold;
}

.home h2 {
  font-size: clamp(1.5625rem, 1.375rem + 0.625vw, 1.875rem);
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  color: #7A00E6;
}

@media (max-width:768px) {
  .home h2 {
    margin: 0
  }
}

/*************** PROGRESS BAR ********************/
.progress {
  position: sticky;
  top: 0;
  height: 5px;
  background-color: #FEC3D9;
  overflow: hidden;
}

.progress ul {
  list-style: none;
  display: flex
}

.progress-bar {
  background-color: #7A00E6;
  width: 0;
  height: 100%;
  transition: width 0.4s ease-in-out;
}

.q-1 .progress-bar {
  width: 20%;

}

.q-2 .progress-bar {
  width: 40%;

}

.q-3 .progress-bar {
  width: 60%;

}

.q-4 .progress-bar {
  width: 80%;

}

.q-5 .progress-bar {
  width: 100%;

}


/*************** GENERAL ********************/
.description {
  margin-left: auto
}

.description p {
  text-transform: uppercase
}

.description a {
  text-decoration: none;
  color: #000000
}

.description span {
  color: #ffffff
}

.link a {
  display: flex;
  align-items: center;
}

.link img {
  width: 20px;
  margin: 0;
  margin-left: 1em
}

.justification {
  border: 1px solid #7A00E6;
  padding: 10px;
  position: relative;
}

.justification::before {
  content: '';
  background: url('img/information.png');
  background-size: cover;
  width: 50px;
  height: 50px;
  position: absolute;
  top: -25px;
  left: -25px
}

.time {
  vertical-align: middle
}

.time img {
  width: 30px;
  height: auto;
  display: inline-block;
  margin-right: 20px
}

.purple {
  color: #7A00E6
}

.small {
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
}

.bold {
  font-weight: bold;
}

.upcase {
  text-transform: uppercase;
}

.reference {
  font-size: clamp(0.625rem, 0.5125rem + 0.375vw, 0.8125rem);
}

.btn_next {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 1em
}

.btn {
  color: #7A00E6;
  background-color: #ffffff;
  border: 1px solid #7A00E6;
  padding: 10px 31px;
  border-radius: 31px;
  text-decoration: none
}

.o-img {
  width: 57px
}

.mob {
  display: none
}

@media (max-width:992px) {
  .o-img {
    display: none !important
  }

  .mob {
    display: inline-block !important
  }
}

/*************** RESULT ********************/

.result_box {
  text-align: center
}

.text_success {
  font-size: clamp(1rem, 0.4rem + 2vw, 2rem);
  color: #91c461;
  font-weight: 700;
}

.text_wrong img {
  width: 30px;
  display: inline-block;
  margin-right: 1em
}

.text_wrong {
  font-size: clamp(1rem, 0.4rem + 2vw, 2rem);
  color: #fc0047;
  font-weight: 700;
}

#resultadofinal {
  font-size: 4.1875em;
  font-weight: 700;
  line-height: 1.5;
}

#resultado,
#resultadow {
  display: none
}

/*************** FOOTER ********************/
footer {
  background: #FEC3D9;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(33.33%, 1fr));
  align-items: center;
}

@media (max-width:992px) {
  footer {
    display: block
  }

  footer div {
    display: block
  }

  .content_info-img {
    text-align: center !important
  }
}

.content_info-code {
  font-size: 10px;
  text-align: center;
  grid-column: span 1;
}

.content_info-img {
  grid-column: span 1;
  text-align: right
}

.content_info-img img {
  width: 150px;
  height: auto;
}

/***********INPUTS ****************/
fieldset {
  border: 0
}

fieldset p:not(.result_box) {
  display: flex;
  align-items: center;
}

input[type="checkbox"]:before {
  content: "";
  width: 40px;
  height: 40px;
  float: left;
  margin: 0;
  border: 1px solid #7d99ff;
  background: white;
  border-radius: 10px;
  margin-left: -10px !important;
  margin-top: -15px !important;
}

input[type="checkbox"]:checked:before {
  border-color: #7d99ff;
  background: #7d99ff;
  border-radius: 10px;
}

input[type="checkbox"]:checked:after {
  content: "";
  width: 12px;
  height: 6px;
  border: 4px solid #7d99ff;
  float: left;
  margin-left: -2.95em;
  border-right: 0;
  border-top: 0;
  margin-top: 1em;
  -webkit-transform: rotate(-55deg);
  -ms-transform: rotate(-55deg);
  transform: rotate(-55deg);
}

input[type="checkbox"] {
  font-weight: bold;
  line-height: 3em;
  color: #ccc;
  cursor: pointer;
  margin-right: 20px;
}

input[type="checkbox"]:checked {
  color: #7d99ff;
}

input[type="checkbox"]:checked:disabled:before {
  border-color: #91c461;
  background: #91c461;
  border-radius: 10px;
}

input[type="checkbox"]:checked:disabled:after {
  content: "";
  width: 12px;
  height: 6px;
  border: 4px solid #91c461;
  float: left;
  margin-left: -2.95em;
  border-right: 0;
  border-top: 0;
  margin-top: 1em;
  -webkit-transform: rotate(-55deg);
  -ms-transform: rotate(-55deg);
  transform: rotate(-55deg);
}

input[type="checkbox"]:disabled {
  font-weight: bold;
  line-height: 3em;
  color: #ccc;
  cursor: default;
}

input[type="checkbox"]:checked:disabled {
  color: #91c461;
}

label {
  margin-left: 10px;
}

input[type="radio"]:before {
  content: "";
  width: 40px;
  height: 40px;
  float: left;
  margin: 0;
  border: 1px solid #7d99ff;
  background: white;
  border-radius: 10px;
  margin-left: -10px !important;
  margin-top: -15px !important;
  border-radius: 100%;
}

input[type="radio"]:checked:before {
  border-color: #7d99ff;
  background: #7d99ff;
  border-radius: 100%;
}

input[type="radio"]:checked:after {
  content: "";
  width: 12px;
  height: 6px;
  border: 4px solid #7d99ff;
  float: left;
  margin-left: -2.95em;
  border-right: 0;
  border-top: 0;
  margin-top: 1em;
  -webkit-transform: rotate(-55deg);
  -ms-transform: rotate(-55deg);
  transform: rotate(-55deg);
  border-radius: 100%;
  display: none;
}

input[type="radio"] {
  font-weight: bold;
  line-height: 3em;
  color: #ccc;
  cursor: pointer;
  margin-right: 20px;
}

input[type="radio"]:checked {
  color: #7d99ff;
  border-radius: 100%;
}

input[type="radio"]:checked:disabled:before {
  border-color: #91c461;
  background: #91c461;
  border-radius: 100%;
}

input[type="radio"]:checked:disabled:after {
  content: "";
  width: 12px;
  height: 6px;
  border: 4px solid #91c461;
  float: left;
  margin-left: -2.95em;
  border-right: 0;
  border-top: 0;
  margin-top: 1em;
  -webkit-transform: rotate(-55deg);
  -ms-transform: rotate(-55deg);
  transform: rotate(-55deg);
  border-radius: 100%;
  display: none;
}

input[type="radio"]:disabled {
  font-weight: bold;
  line-height: 3em;
  color: #ccc;
  cursor: default;
  border-radius: 100%;
}

input[type="radio"]:checked:disabled {
  color: #91c461;
  border-radius: 100%;
}


/*************FLEX GRID**********************/
.flex-row {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;


}

.flex-container {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 1em;
  width: 100%;
}

@media (min-width: 540px) {
  .flex-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .flex-container {
    max-width: 768px;
  }
}

@media (min-width: 992px) {
  .flex-container {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .flex-container {
    max-width: 1200px;
  }
}

.flex-col-xs-6,
.flex-col-sm-6,
.flex-col-md-6,
.flex-col-lg-6 {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 1em;
  width: 100%;
}

@media (min-width: 375px) {
  .flex-col-xs-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

@media (min-width: 768px) {
  .flex-col-sm-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

@media (min-width: 992px) {
  .flex-col-md-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

@media (min-width: 1200px) {
  .flex-col-lg-6 {
    max-width: calc(100% * (6 / 12));
    width: calc(100% * (6 / 12));
  }
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.j-center {
  text-align: center
}

.a-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center
}