/*
Theme Name: Uncode Child Game
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: jnarvaez
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/
/* EnergiPro Regular */
@font-face {
  font-family: 'EnergiPro';
  src: url('../../assets_/fonts2/EnergiPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* EnergiPro Standard */
@font-face {
  font-family: 'EnergiPro';
  src: url('../../assets_/fonts2/EnergiPro-Standard.woff') format('woff');
  font-weight: 500;
  /* puedes ajustarlo según el peso real */
  font-style: normal;
  font-display: swap;
}

/* EnergiPro Medium */
@font-face {
  font-family: 'EnergiPro';
  src: url('../../assets_/fonts2/EnergiPro-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* EnergiPro Ultra */
@font-face {
  font-family: 'EnergiPro';
  src: url('../../assets_/fonts2/EnergiPro-Ultra.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css?family=Orbitron');

@font-face {
  font-family: Gotham-Bold;
  src: url("../../assets_/fonts/Gotham-Bold.otf") format("opentype");
}

@font-face {
  font-family: GothamBook;
  src: url("../../assets_/fonts/GothamBook.ttf") format("opentype");
}

@font-face {
  font-family: EnergiPro-UltraItalic;
  src: url("../../assets_/fonts/EnergiPro-UltraItalic.otf") format("opentype");
}

@font-face {
  font-family: EnergiPro-Italic;
  src: url("../../assets_/fonts/EnergiPro-Italic.otf") format("opentype");
}

@font-face {
  font-family: EnergiPro-Regular;
  src: url("../../assets_/fonts/EnergiPro-Regular.otf") format("opentype");
}

@font-face {
  font-family: __EnergiProExtended_fea141;
  src: url("../../assets_/fonts/bea8cbadfefe9bef-s.p.woff") format("woff");
  font-display: swap;
  font-weight: 700;
  font-style: normal
}

@font-face {
  font-family: __EnergiProExtended_fea141;
  src: url("../../assets_/fonts/bea8cbadfefe9bef-s.p.woff") format("woff");
  font-display: swap;
  font-weight: 700;
  font-style: normal
}

@font-face {
  font-family: __EnergiPro-Bold_fea141;
  src: url("../../assets_/fonts/EnergiPro-Bold.woff") format("woff");
  font-display: swap;
  font-weight: 900;
  font-style: normal
}

@font-face {
  font-family: __EnergiProExtended_Fallback_fea141;
  src: local("Arial");
  ascent-override: 59.26%;
  descent-override: 19.75%;
  line-gap-override: 7.90%;
  size-adjust: 126.57%
}

.__className_fea141 {
  font-family: __EnergiProExtended_fea141, __EnergiProExtended_Fallback_fea141
}

@font-face {
  font-family: __EnergiPro_edbcaa;
  src: url("../../assets_/fonts/d46b583dbfa7b0c6-s.p.woff") format("woff");
  font-display: swap;
  font-weight: 400;
  font-style: normal
}

@font-face {
  font-family: __EnergiPro_edbcaa;
  src: url("../../assets_/fonts/ac43d60b8ddedebe-s.p.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal
}

@font-face {
  font-family: __EnergiPro_edbcaa;
  src: url("../../assets_/fonts/ee2ff2be7ae93411-s.p.woff") format("woff");
  font-display: swap;
  font-weight: 500;
  font-style: normal
}

@font-face {
  font-family: __EnergiPro_edbcaa;
  src: url("../../assets_/fonts/7f3090eec388cc01-s.p.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
  font-style: normal
}

@font-face {
  font-family: __EnergiPro_Fallback_edbcaa;
  src: local("Arial");
  ascent-override: 70.53%;
  descent-override: 23.51%;
  line-gap-override: 9.41%;
  size-adjust: 106.34%
}

.__className_edbcaa {
  font-family: __EnergiPro_edbcaa, __EnergiPro_Fallback_edbcaa, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif
}

@font-face {
  font-family: __BillyBold_bed776;
  src: url("../../assets_/fonts/66b6c86b51cd897b-s.p.woff") format("woff");
  font-display: swap;
  font-weight: 700;
  font-style: normal
}

@font-face {
  font-family: __BillyBold_bed776;
  src: url("../../assets_/fonts/84fd7d647503c962-s.p.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
  font-style: normal
}

.container-header {
  background: #9ec0df !important;
}

.container-header img {
  width: 100%
}


.container-carcasa {
  background-image: url(../../assets_/img/pages/PD-HEADERS-1x.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  min-height: 100vh;
  padding: 9vh 2vh;
}

.window {
  background-color: rgb(255 255 255 / 10%);
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px 50px;
  margin-top: 20px;
  min-height: 700px;
  max-width: 1180px !important;

}

#thanks-page .window {
  min-height: 500px;
  max-width: 500px !important;
}

.div-text {
  color: black;
  text-align: center;
  display: block;
  padding: 20px 10px;
  border-radius: 0.6em;
}

.div-text p {
  font-size: 16px;
  line-height: 1;
  margin-top: 20px;
  margin-bottom: 25px;
}


.div-text,
.div-center-game {
  padding: 20px;
}

.div-text .title,
.div-center-game .title {
  font-family: EnergiPro;
  color: #ffffff;
  text-align: center;
  font-size: 43.39px;
  font-style: normal;
  font-weight: 800;
  line-height: 88.9%;
  /* 38.574px */
  letter-spacing: -0.868px;
}

.container-instrucciones {
  display: flex;
  padding: 48px;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  align-self: stretch;
  border-radius: 12px;
  background: rgb(255 255 255 / 70%);
  box-shadow: 2px 2px 20px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(7px);
  margin-bottom: 20px;

}

.container-instrucciones h6 {
  color: #000;
  text-align: center;
  font-family: EnergiPro-Regular;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}


.container-instrucciones button,
.boton {
  display: flex;
  max-width: 330px;
  min-width: 300px;
  /* height: 42px; */
  padding: 6px 10px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 20px;
  font-family: 'EnergiPro';
  font-weight: 500;
  background: linear-gradient(90deg, #2DE0FF 0%, #01005E 100%);
  text-decoration: none;
  margin: 10px auto;
  border: 1px solid #c1c1c1;
}

.container-instrucciones button:hover,
.boton:hover {
  border: 1px solid #c1c1c1;
  color: #c1c1c1;
}

.ul {
  padding-top: 37px;
}

.ul-1 li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  margin-bottom: 20px;
  line-height: 1.4;

  font-family: EnergiPro;
  font-size: 1.25rem;
  font-weight: 500;
}

.ul-1 li span {
  width: 48px;
  height: 48px;
  aspect-ratio: 1/1;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.ul-1 {
  margin-top: 30px;
}


/* Ícono para la clase time */
.ul-1 li .time-ico {
  background: url("../../assets_/img/iconos/image4.png") lightgray 50% / cover no-repeat;
}

/* Ícono para la clase arrow */
.ul-1 li .arrow-ico {
  background: url("../../assets_/img/iconos/image3.png") lightgray 50% / cover no-repeat;
}

.ul-1 li .score-ico {
  background: url("../../assets_/img/iconos/image2.png") lightgray 50% / cover no-repeat;
}

.clickable {
  cursor: pointer;
}

#canvas {
  width: 336px;
  height: 333px;
  /* border: 1px solid white; */
  /* background-color: hsl(214deg 85% 21%); */
  /* border-radius: 12px;
      background: linear-gradient(333deg, #2CD8F9 1.88%, #020360 100%); */
  /* box-shadow: -6.809px -6.809px 12.256px 0 rgba(0, 0, 0, 0.40) inset, 6.809px 6.809px 12.256px 0 rgba(255, 255, 255, 0.35) inset; */
}

#canvas #windiv {
  display: none;
}

#canvas .banner {
  width: 370px;
  font-size: 39px;
  background-color: #f5f5dc;
  position: relative;
  text-align: center;
  top: -60px;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.55);
  left: -15px;
  z-index: 2;
  padding: 5px;
}

#canvas .innerSquare {
  width: 110px;
  height: 110px;
  float: left;
}

#canvas .innerSquare.imageSquare {
  font-size: 24px;
  text-align: center;
  border: 1px outset hsl(214deg 85% 21%);
  border-radius: 6px;
}

#canvas .innerSquare.imageSquare:hover {
  background-color: lightgray;
}

#canvas .innerSquare.clickable:hover {
  opacity: 0.4;
  filter: alpha(opacity=40);
}

#canvas .innerSquare.blank {
  /*border: 1px inset black;*/
  border: 1px inset hsl(214deg 85% 21%);
  background: #03123a;
}

#previews {
  /*width: 308px;
    height: 100px;
    background-color: lightgrey;
    overflow: scroll;
    padding-left: 30px;
    margin-top: 10px;*/
  /* width: 400px; */
  height: auto;
  /*background-color: lightgrey;*/
  /* max-width: 400px; */
  padding-bottom: 20px;
  padding-top: 15px;
  position: relative;
  text-align: center;
}

#previews .mini {
  width: 200px;
  height: 200px;
  margin-top: 5px;
  /*margin-right: 5px;*/
  margin-right: 7px;
  margin-left: 7px;
  border: 1px solid #bbbbbb;
}

#puzzle-ini {
  max-width: 355px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(333deg, #2CD8F9 1.88%, #020360 100%);
  box-shadow: -6.809px -6.809px 12.256px 0 rgba(0, 0, 0, 0.40) inset, 6.809px 6.809px 12.256px 0 rgba(255, 255, 255, 0.35) inset;
  /* background-color: hsl(214deg 85% 21%); */
  border-radius: 20px;
  margin: 0px auto;
  /* box-shadow: 0 0.25em 1em 0 rgb(0 0 0 / 90%), inset 0.25em 0.25em 1em 0 hsl(216deg 82% 29%), inset 0.15em 0.15em 0.2em 0 hsl(224deg 72% 37%), inset -0.25em -0.25em 1em 0 hsl(230deg 84% 17%), inset -0.15em -0.15em 0.2em 0 hsl(0deg 88% 2%); */
}

.resultado {
  padding-top: 20px;
  padding-bottom: 20px;
}

.cronometer-row {
  font-family: EnergiPro-Regular;
  color: #ffffff;
  font-size: 40px;
  text-align: center;
  padding-top: 10px;
  border-radius: 10px;
  background: linear-gradient(96deg, #2DE0FF -2.16%, #01005E 98.53%);
}

.move {
  font-family: EnergiPro-Regular;
  color: #ffffff;
  font-size: 40px;
  text-align: center;
  padding-top: 10px;
  border-radius: 10px;
  background: linear-gradient(96deg, #2DE0FF -2.16%, #01005E 98.53%);
}

#thanks-page .move {
  width: 145px;
  margin: 10px auto;
}

#thanks-page .move .mov {
  font-size: 70px;
}

.banner {
  font-family: EnergiPro-Regular;
  color: #ffffff;
  font-size: 40px;
  text-align: center;
  padding-top: 10px;
  color: #daf6ff;
  /* text-shadow: 0 0 20px #0aafe6, 0 0 20px rgb(10 175 230 / 0%); */
  background: linear-gradient(90deg, #2DE0FF 0%, #01005E 100%);
  width: 30vw;
  margin: 20px auto;
}

.table>:not(caption)>*>* {
    color: #fff;
    background: none;
}

.main-footer {
  background: #272727;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  border-top: 1px solid #3a3a3a;
  margin-top: 0px;
  position: initial;
  bottom: 0;
  width: 100%;
  padding-top: 15px;
}

.main-footer .container .footer-letra-chica p {
  line-height: 13px !important;
  padding: 0px 100px !important;
  font-family: __EnergiPro_edbcaa, __EnergiPro_Fallback_edbcaa, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.navigation {
  float: left;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.navigation ul {
  margin: 10px 0px 10px 0px;
  padding: 0;
  float: none;
  width: auto;
  list-style: none;
  display: inline-block;
}

.navigation ul li {
  float: left;
  width: auto;
  margin-right: 76px;
  position: relative;
}

.navigation ul li:last-child {
  margin: 0;
}

.navigation ul li a {
  float: left;
  width: 100%;
  color: #fff;
  padding: 12px 0;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}


#puzzle-ini,
#canvas,
#previews {
  display: none !important;
}

#precarga-img {
  display: block !important;
}

@media only screen and (min-width: 981px) {
  .banner-mobile {
    display: none;
  }
}

@media only screen and (max-width: 980px) {

  .banner-desktop {
    display: none;
  }

  .title-thanks {
    max-width: 50%;
  }

  #thanks-page .container {
    /* margin-top: 30px; */
    margin-top: -3px;
  }

  .instructions {
    width: 80%;
  }

  .banner-desktop {
    display: none;
  }

  .navigation ul li {
    float: initial;
  }

  .navigation ul li {
    margin-right: 0px;
  }

  .instructions li {
    width: 100%;
  }

  .container-instrucciones button,
  #thanks-page .boton {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
  }

  #puzzle-ini,
  #canvas {
    display: block !important;
    width: 100% !important;
    max-width: 100vw;
    min-width: 0;
  }

  #canvas {
    width: 260px;
    height: 266px;
  }

  #canvas .innerSquare {
    width: 89px;
    height: 89px;
    float: left;
  }

  #precarga-img {
    display: none !important;
  }
}

@media only screen and (min-width: 320px) and (max-width: 1182px) {
  .main-footer .container .footer-letra-chica p {
    padding: 0 !important;
  }
}


/* Estado inicial mobile: muestra instrucciones y precarga, oculta juego */
@media (max-width: 980px) {

  #puzzle-ini,
  #canvas,
  #previews {
    display: none !important;
  }

  #precarga-img {
    display: block !important;
  }

  .container-instrucciones h6,
  .container-instrucciones .ul-1 {
    display: block !important;
  }

  .ul-1 {
    padding: 0;
  }

  .ul-1 li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-left: 0;
  }

  .ul-1 li span {
    margin-bottom: 4px;
  }

  .banner {
    width:100%!important;
  }

}

/* Estado después de empezar en mobile */
body.mobile-started .container-instrucciones h6,
body.mobile-started .container-instrucciones .ul-1,
body.mobile-started #precarga-img {
  display: none !important;
}

body.mobile-started #puzzle-ini,
body.mobile-started #canvas,
body.mobile-started #previews {
  display: block !important;
}

/* Estado inicial desktop: muestra instrucciones y precarga, oculta juego */
@media (min-width: 981px) {

  #puzzle-ini,
  #canvas,
  #previews {
    display: none !important;
  }

  #precarga-img {
    display: block !important;
  }

  .container-instrucciones h6,
  .container-instrucciones .ul-1 {
    display: block !important;
  }
}

/* Estado después de empezar en desktop */
body.desktop-started #precarga-img {
  display: none !important;
}

body.desktop-started #puzzle-ini,
body.desktop-started #canvas,
body.desktop-started #previews {
  display: block !important;
}

/* Botón deshabilitado */
.container-instrucciones .btn:disabled {
  background: #888 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (min-width: 981px) {
  .row.resultado {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
  }

  .row.resultado>.col-md-8 {
    flex: 2 1 0%;
    max-width: none;
    min-width: 340px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .row.resultado>.col-md-4 {
    flex: 1 1 0%;
    max-width: none;
    min-width: 180px;
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 980px) {
  .row.resultado {
    display: block;
  }
}

.modal-content {
  background: linear-gradient(180deg, #4fc3f7 0%, #0d47a1 100%);
  color: #fff;
  border-radius: 12px;
  /*padding: 20px;*/
  padding: 530px 0px 150px;
  position: relative;
  background: url(../../assets_/img/desktop-tlo.32579907.webp) 0% 0% / 100% no-repeat, linear-gradient(89.53deg, rgb(53, 222, 252) 0.64%, rgb(1, 1, 103) 105.93%) 0% 0% / 1160px 0px, linear-gradient(89.53deg, rgb(53, 222, 252) 0.64%, rgb(1, 1, 103) 105.93%);
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;

}

.modal-header h3 {
  margin-bottom: 32px;
  font-size: 43px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.02em;
}

.modal-footer {
  border-top: none;
  justify-content: flex-start;
  position: absolute;
  right: 14px;
  top: -3px;
  font-size: 11px;
  color: rgb(255, 255, 255);
  font-weight: 400;
}

.modal-body {
    margin-inline: auto;
    padding-inline: 16px;
    width: 100%;
    max-width: 788px;
}


.modal-body .ratio {
    margin: 45px 0px 49px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 4px 45px 0px; 
    overflow: hidden;

        
  }  

.modal-body iframe {
  border-radius: 10px;
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-dialog {
  margin: 60px auto;
  min-width: 288px;
  max-width: 1150px;
}

.btn-close-white {
  display: inline-flex;
  position: absolute;
  --bs-btn-close-bg: none;
}

.imDZdW {
    display: block;
    height: auto;
    object-fit: cover;
    filter: none;
    transition: filter 0.5s ease-out;
    position: absolute;
}

@media (max-width: 577px) {

  .window {
    padding: 20px 19px !important;
  }

  .modal-header h3 {
    margin-bottom: 16px;
    font-size: 31px;
  }
  .modal-title {
    line-height: 1.3;
  }
  .modal-content {
    padding-top: 170px;
  }

  .modal-body > p {
    font-size: 13px;
    line-height: 16px;
  }

  .btn-close-white {
    top: 15px;
    right: 15px;
  }

  .btn-close{
    background-size: contain;
    width: 45px;
    height: 45px;
    --bs-btn-close-opacity: 1;
  }

  .btn-close {
      width: 26px;
      height: 26px;
  }

  .modal-footer {
    top: 92px;
    font-size: 8px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: right;
    white-space: nowrap;
    right: 4px;
  }

  .modal-content {
    width: calc(100% - 20px);
    padding: 68vw 0px 28vw;
    background: url(../../assets_/img/mobile-tlo.bfe5f3b9.png) left top / 100% no-repeat, linear-gradient(89.53deg, rgb(53, 222, 252) 0.64%, rgb(1, 1, 103) 105.93%) left bottom / 0px, linear-gradient(89.53deg, rgb(53, 222, 252) 0.64%, rgb(1, 1, 103) 105.93%);
    background-position: left top, left bottom;
    margin: 0 auto;
  }

  .container-instrucciones button, .boton {
    min-width: auto;
  }

  .div-text .title, .div-center-game .title {
    font-size: 34.39px;
  }

  #windiv img {
    width: 100%;
  }

  #canvas .banner {
    width: 100%;
    left: 0;
  }
 
  .imDZdW {
      width: 40vw;
      right: 16px;
      top: 60px;
  }
}

@media only screen and (min-width: 1183px) {
  .modal-content {
    padding: 530px 0px 150px;
    background-position: left top, left 0px bottom -30px;
  }

  .imDZdW {
    max-width: 500px;
    overflow: visible;
    right: 60px;
    top: 72px;
  }
}

@media only screen and (min-width: 768px) {
  .btn-close-white {
    top: 31px;
    right: 31px;
  }

  .btn-close{
    background-size: contain;
    width: 45px;
    height: 45px;
    --bs-btn-close-opacity: 1;
  }

  .modal-body > p {
    font-size: 18px;
    line-height: 28px;
  }

  .modal-header h3 {
    line-height: 1.85;  
  }
}