/*
Theme Name: Cloudylab Quiz
Theme URI: https://cloudylab.co.ul
Description: Cloudylab Quiz is a child theme of starter-woo
Author: Cloudylab
Author URI: https://cloudylab.co.uk
Template: starter-woo
Version: 1.0.0
Text Domain: cloudylab-quiz
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap");
/* Colours */

.dark-grey {
  color: #191c24;
}
.orange {
  color: #f4a261;
}
.middle-blue-green {
  color: #88c8b2;
}

.amber {
  color: #ffbe0bff;
}
.orange-red {
  color: #f16824;
}

.mint-green {
  color: #57b495;
}
.mint {
  color: #88c8b2;
}
.forest-green {
  color: #115740;
}

/* TYPOGRAPHY */

body {
  font-family: "Montserrat", sans-serif;
  position: relative;
}

/* main {
  position: relative;
} */
.text-quiz {
  font-size: 2rem;
}
.text-white {
  color: white;
}
.form-input {
  color: #f16824;
}
.quiz h1 {
  font-weight: 300;
  color: #115740;
}
.quiz h2 {
  font-weight: 300;
  color: #115740;
}
em {
  font-style: italic;
}
p,
span,
label,
input {
  line-height: 1.5rem;
  font-size: 1rem;
}
h1, h2, h3{
  line-height: normal;
}
.mb-2 {
  margin-bottom: 2rem;
}
.cta,
input.cta,
a.cta {
  width: fit-content;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid #57b495;
  background-color: #57b495;
  color: white;
  font-weight: 600;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  text-decoration: none;
}

.previous.cta,
a.caso-cta,
.next,
input.reply {
  background-color: #f16824;
  border-color: #f16824;
}
.cta:hover,
input.cta:hover,
a.cta:hover,
.previous.cta:hover {
  color: #115740;
  background-color: white;
  border-color: #57b495;
  box-shadow: 1px 0px 10px 0px #000000a1;
}
.caso-cta {
  position: fixed;
  top: 50vh;
  right: 0;
  z-index: 8;
}
.arrow-icon {
  width: 100%;
  height: 10px;
  line-height: 10px;
  order: 5;
  text-align: right;
}
.arrow-icon .read-more {
  stroke: white;
  width: 1rem;
  height: 10px;
  scale: 1;
  transition: 0.5s all ease-in-out;
}

.prev-arrow svg{
  transform: rotate(180deg);
}
.cta:hover .arrow-icon .read-more {
  transform: scaleX(1.5);
  stroke: #57b495;
}

.cta:hover .arrow-icon.prev-arrow .read-more {
  transform: rotate(180deg) scaleX(1.5);
}

input[type="checkbox"],
input[type="radio"] {
  margin: 5px 5px 0 0;
}
.hidden {
  display: none;
}
.visible {
  display: block;
}
.no-link {
  pointer-events: none;
}
.mint {
  background-color: #88c8b2;
  color: #115740;
  width: 100%;
}
.forest {
  background-color: #115740;
  color: white;
  width: 100%;
}
.orange {
  background-color: #f4a261;
  color: #115740;
}
/* LAYOUT */

.single-dialogos li.hidden,
.single-quizes li.hidden,
.single-casos li.hidden,
.single-profundicemos li.hidden{
  display: block !important;
}
.wrapper {
  min-height: 100vh;
  position: relative;
}
aside {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: #115740;
  width: 60px;
  height: 100%;
  z-index: 10;
}
.container {
  padding: 4rem;
}
.quiz {
  position: relative;
  margin-left: 60px;
}
.quiz.reverse {
  flex-direction: row-reverse;
}
.quiz form {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  gap: 0.5rem;
}

.flex-50 {
  width: 50%;
  flex-basis: 50%;
}
.overflow-hidden {
  overflow: hidden;
}
.parent-sticky {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
.content-text {
  flex-direction: column;
  row-gap: 1rem;
  flex-basis: 50%;
}

.content-text ul, .profundicemos ul {
  list-style: disc;
  line-height: 1.5rem;
  list-style-position: inside;

}
.content-image {
  flex-basis: 50%;
  width: 50%;
  height: 100vh;
}
.content-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.answer {
  padding: 0.25rem 0;
}
.answer label {
  display: initial;
}
.explanation {
  margin: 1rem 0 0;
  background-color: #57b495;
  padding: 1rem;
  color: white;
}
.explanation.error {
  background-color: #f16824;
}
.explanation.error:after {
  content: "Prueba con otra respuesta.";
  color: black;
  display: block;
  background: #ffbe0bff;
  width: fit-content;
  padding: 0 0.25rem;
}
.go-next {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 2rem;
  color: white;
  background-color: #f16824;
  text-align: right;
  align-self: flex-end;
  justify-self: flex-end;
  z-index: 10;
  display: none;
}

.fade-in {
  -webkit-animation: fade-in 1.5s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in 1.5s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.site-info {
  position: fixed;
  color: #115740;
  z-index: 1000;
  padding: 1rem;
  padding-left: calc(100px + 1rem);
  bottom: -100%;
  transition: all 0.8s ease;
  opacity: 0;
}
.site-info a {
  color: #115740;
}
.site-info .info-cloudylab {
  color: #115740;
  text-align: right;
}
.toggled .site-info {
  display: flex;
  bottom: 0;
  width: 100%;
  background-color: #88c8b2;
  opacity: 1;
}
.logos {
  position: fixed;
  bottom: 80px;
  height: 100px;
  z-index: 1000;
  padding-left: calc(100px + 1rem);
  padding-right: 1rem;
  justify-content: flex-end;
  gap: 4rem;
  width: 100%;
  transition: all 0.8s ease;
  transition: opacity 0.5s ease;
  left: -100%;
  opacity: 0;
}
.logos img {
  height: 100px;
  width: auto;
}
.toggled .logos {
  opacity: 1;
  left: 0;
}
/* HEADER */

.toggled .menu {
  left: 0;
}
.menu-toggle.close,
.toggled .menu-toggle.open {
  display: block;
}
.menu-toggle {
  border: none;
  border-radius: 2px;
  width: 60px;
  height: 60px;
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  cursor: pointer;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  z-index: 1000;
}
button.close,
button.close:focus {
  background-color: #57b495;
  background: #57b495;
  opacity: 1;
}
button.close:hover {
  background-color: #f16824;
  opacity: 1;
}
.menu-toggle span {
  display: block;
  position: absolute;
  height: 4px;
  left: 10px;
  width: 35px;
  background: white;
  border-radius: 0;
  opacity: 1;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
.menu-toggle.close span:nth-child(1) {
  top: 18px;
}
.menu-toggle.close span:nth-child(2),
.menu-toggle.close span:nth-child(3) {
  top: 28px;
}
.menu-toggle.close span:nth-child(4) {
  top: 38px;
}
.menu-toggle.open span:nth-child(1),
.menu-toggle.open span:nth-child(4) {
  top: 28px;
  width: 0%;
  left: 50%;
}
.menu-toggle.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 24px;
}
.menu-toggle.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 24px;
}
.menu {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  position: fixed;
  width: 100%;
  min-height: 100%;
  left: -100%;
  top: 0;
  background-color: #57b495;
  background-image: url(./img/astro.jpg);
  background-size: cover;
  background-position: top;
  align-items: flex-start;
  text-align: left;
  padding-left: 100px;
  padding-top: 50px;
  z-index: 10;
  transition: all 0.5s ease;
}
.menu .page_item a,
.menu .menu-item a {
  display: block;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 600;
}
.menu-toggle:focus {
  outline: thin dotted rgba(255, 127, 80, 0);
}

/* AUDIO */

.audio {
  width: 33%;
  position: absolute;
  bottom: 0;
  left: 0;
}
.quiz .audio {
  left: unset;
  right: 0;
  width: 100%;
}

.audio.full{
  left: 60px;
  background-color: #555555;
  color: white;
  width: calc(100% - 60px);
  align-items: center;
  text-align: left;
  padding-left: 2rem;
}
.mejs-container,
.mejs-container .mejs-controls,
.mejs-embed,
.mejs-embed body {
  background-image: linear-gradient(
    45deg,
    #7a7a7a 25%,
    #454545 25%,
    #454545 50%,
    #7a7a7a 50%,
    #7a7a7a 75%,
    #454545 75%,
    #454545 100%
  ) !important;
  background-size: 56.57px 56.57px !important;
  width: 100% !important;
}
.mejs-time {
  padding: 9px 0 !important;
}

/* all */

h1.page-title {
  position: fixed;
  left: calc(30px + 0.75rem);
  top: 5rem;
  transform-origin: 0 0;
  transform: rotate(90deg);
  z-index: 15;
  color: #57b495;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 200;
}
/* layouts */

.layout-two-col .content-image {
  background-color: #115740;
  padding: 2rem 4rem 0;
  padding-left: calc(4rem + 60px);
  align-items: center;
  justify-content: center;
}

.layout-two-col .content-image h2 {
  font-size: 2.8rem;
  font-weight: 200;
  color: white;
  line-height: inherit;
  z-index: 8;
}
.layout-two-col h3 {
  color: #f16824;
  
}

.featured {
  flex-direction: column;
  padding: 6rem 8rem;
  padding-left: calc(8rem + 60px);
  width: 100%;
  align-items: center;
  gap: 2rem;
}
.featured h2 {
  color: white;
  text-align: center;
}
.featured p {
  font-size: 1.3rem;
  line-height: 2rem;
  text-align: center;
}
.container-cards {
  padding-left: calc(60px + 4rem);
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  position: relative;
}
.container-cards h2 {
  text-align: center;
  z-index: 8;
  color: white;
}
.cards {
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  z-index: 8;
}
.card-img {
  height: 200px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.background-overlay {
  position: absolute;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.5;
  z-index: 1;
}
.background-overlay.orange {
  background-color: #f4a261;
}
.background-overlay.forest {
  background-color: #115740;
}
a.card {
  background-color: white;
  text-decoration: none;
  color: #191c24;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: #191c2450 3px 3px 10px 2px;
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}
.flex_30 a.card {
  flex-basis: 30%;
}
.flex_40 a.card {
  flex-basis: 40%;
}
a.card h3 {
  color: #115740;
}
a.card:hover {
  transform: translate(3px, 3px);
  box-shadow: #191c24a3 1px 1px 5px 2px;
}
/* LOGIN PAGE */

.passster-form{
  margin-left: 60px;
}
.passster-form button[type=submit]{
  width: auto;
}


.book {
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.book form {
  line-height: 2rem;
  flex-direction: column;
  row-gap: 2rem;
}

/* FOOTER */

.site-footer {
  display: none;
  z-index: 100;
}
/**
 * ----------------------------------------
 * animation fade-in
 * ----------------------------------------
 */
@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * PROFUNDICEMOS
 * ----------------------------------------
 */
 .profundicemos-wrap{
  padding-left: 60px;
}
 .profundicemos-wrap .featured{
  padding: 4rem 8rem;
  position: relative;
  text-align: center;
  min-height: 350px;
 }

.profundicemos-wrap .featured h2, .profundicemos-wrap .featured p{
  color: white;
  z-index: 4;
}

 .profundicemos {
  flex-direction: column;
  align-items: center;
 }
 .profundicemos h3{
  font-weight: 300;
  color: #115740;
  font-size: 1.5rem;
  line-height: normal;
 }
.profundicemos p{
  color: #191c24;
}
.profundicemos .box.active{
  margin-bottom: 2rem;
}

.profundicemos .nav-buttons{
  gap: 1rem;
}
.profundicemos ul {
  position: relative;
  list-style: none;
}

.profundicemos ul li::before {
  content: '▶';
  font-size: 10px;
  color: #115740;
  position: absolute;
  left: -14px;
}

/**
 * ----------------------------------------
 * speech bubbles
 * ----------------------------------------
 */
.dialog {
  height: 100vh;
  width: calc(100% - 60px);
  position: relative;
  text-align: center;
  margin-left: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.dialog-context {
  position: absolute;
  background-color: white;
  top: 0;
  right: 0;
  border: 1px solid #264653;
  padding: 0.5rem;
}
.dialog .box {
  width: 300px;
  margin: calc(40px + 2rem) 2rem;
  background: #57b495;
  padding: 20px;
  text-align: center;
  font-weight: 900;
  color: #fff;
  font-family: arial;
  position: absolute;
}
.section {
  display: none;
}

.section.active {
  display: block;
}

.box.section audio{
  margin-top: 10px;
  display: none;
}

.box.section.active audio{
  display: block;
}
audio::-webkit-media-controls-enclosure {
border-radius: 0;
}
audio{ 
  height: 40px;
}
.dialog .next {
  bottom: 1rem;
  margin-bottom: calc(40px + 2rem);
}
.dialog .previous {
  position: absolute;
  top: 50%;
  right: 0;
}
.next.disable,
.previous.disable {
  cursor: none;
  display: none;
}
.bottom.left {
  bottom: 0;
  left: 0;
}
.dialog-wrap #previousBtn{
  display: none;
}
.bottom.left:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid #57b495;
  border-right: 10px solid transparent;
  border-top: 10px solid #57b495;
  border-bottom: 10px solid transparent;
  right: -19px;
  top: 6px;
}
.bottom.right {
  bottom: 0;
  right: 0;
}
.bottom.right:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid #57b495;
  border-top: 10px solid #57b495;
  border-bottom: 10px solid transparent;
  left: -19px;
  top: 6px;
}
.top.right {
  top: 0;
  right: 0;
}
.top.right:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid #57b495;
  border-right: 10px solid transparent;
  border-top: 10px solid #57b495;
  border-bottom: 10px solid transparent;
  left: 19px;
  bottom: -19px;
}
.top.left {
  top: 0;
  left: 0;
}
.top.left:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid #57b495;
  border-top: 10px solid #57b495;
  border-bottom: 10px solid transparent;
  right: 19px;
  bottom: -19px;
}

/**
 * ----------------------------------------
 * PROFUNDICEMOS
 * ----------------------------------------
 */
.profundicemos-wrap{
  padding-left: 60px;
}
 .profundicemos-wrap .featured{
  padding: 4rem 8rem;
  position: relative;
  text-align: center;
 }

.profundicemos-wrap .featured h2, .profundicemos-wrap .featured p{
  color: white;
  z-index: 4;
}

 .profundicemos {
  flex-direction: column;
  align-items: center;
 }
 .profundicemos h3{
  font-weight: 300;
  color: #115740;
  font-size: 1.5rem;
  line-height: normal;
 }
.profundicemos p{
  color: #191c24;
}
.profundicemos .box.active{
  margin-bottom: 2rem;
}

.profundicemos .nav-buttons{
  gap: 1rem;
}
.profundicemos ul {
  position: relative;
  list-style: none;
}

.profundicemos ul li::before {
  content: '▶';
  font-size: 10px;
  color: #115740;
  position: absolute;
  left: -12px;
}
@media only screen and (max-width: 900px) {
  /* LAYOUT */
  body,
  html {
    height: 100%;
  }
  .dialog-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  .dialog {
    height: calc(100vh - calc(100vh - 100%));
    padding-bottom: 40px;
  }
  .sticky {
    position: relative;
  }
  .container {
    padding: 1rem;
  }
  .layout-two-col {
    flex-direction: column;
  }
  .layout-two-col .content-image h2 {
    text-align: center;
    font-size: 1.8rem;
  }

  .quiz,
  .quiz.reverse {
    flex-direction: column-reverse;
    margin-left: 0;
  }
  .audio {
    padding-left: 60px;
  }
  .content-image {
    flex-basis: unset;
    width: 100%;
    height: auto;
    min-height: 50vh;
    padding: 2rem;
    padding-left: calc(60px + 2rem);
  }
  .layout-two-col .content-image {
    padding: 2rem;
    padding-left: calc(60px + 2rem);
  }
  .content-text {
    flex-direction: column;
    flex-basis: unset;
    padding-left: calc(60px + 1rem);
  }
  .featured {
    padding: 2rem;
    padding-left: calc(2rem + 60px);
    text-align: center;
  }
  .profundicemos-wrap .featured{
    padding: 2rem}

  .container-cards {
    padding: 2rem;
    padding-left: calc(60px + 2rem);
  }
  .cards {
    flex-direction: column;
    width: 100%;
  }
  .audio {
    width: 100%;
  }

  .dialog-context {
    padding-left: 3rem;
    text-align: left;
  }
  .top.left,
  .top.right {
    margin: 0;
    top: 90px;
  }
  .bottom.left,
  .bottom.right {
    margin: 0;
    bottom: 140px;
  }
  .bottom.right:before {
    border-left: 10px solid #57b495;
    border-right: 10px solid transparent;
    border-top: 10px solid transparent;
    border-bottom: 10px solid #57b495;
    left: 19px;
    top: -19px;
  }
  .bottom.left:before {
    border-left: 10px solid transparent;
    border-right: 10px solid #57b495;
    border-top: 10px solid transparent;
    border-bottom: 10px solid #57b495;
    right: 19px;
    top: -19px;
  }
  .dialog .previous {
    top: unset;
    right: unset;
    bottom: 40px;
  }
.dialog .next{
  margin-bottom: 40px;
}
  .caso-cta {
    position: unset;
    top: unset;
    right: unset;
  }
  .menu {
    padding-left: 1rem;
  }
  .toggled .menu {
    left: 60px;
    width: calc(100% - 60px);
    padding-top: 1rem;
  }
  .site-info {
    padding: 0.5rem 1rem;
  }
  .logos {
    justify-content: center;
    padding: 0;
    gap: 2rem;
  }
  .logos img {
    height: 80px;
  }
  .toggled .logos {
    left: 60px;
    width: calc(100% - 60px);
  }
}
