/*
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;
  overflow: hidden;
}

.container-header img {
  width: 100%;
  transition: transform 0.35s ease;
}

.container-header:hover img {
  transform: scale(1.015);
}


.container-carcasa {
  min-height: 100vh;
  padding: 9vh 2vh;
  background: #efefef;
}

.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;

}

.game-window {
  min-height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 980px !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;
}

.main-footer .wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.navigation {
  float: none;
  width: auto;
  text-align: center;
  margin-bottom: 10px;
}

.footer-hasbro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-width: 62px;
  padding: 6px;
  background: #fff;
  border-radius: 0 0 9px 9px;
  box-sizing: border-box;
  margin-top: -15px;
}

.footer-hasbro-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.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;
  }

  .main-footer .wrapper {
    flex-direction: column;
    gap: 6px;
  }

  .footer-hasbro-logo {
    margin-bottom: 10px;
  }

  .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;
  }
}

#zootopiaModal .printables-modal {
  width: min(92vw, 550px);
  max-width: 550px;
  margin: 24px auto;
}

#zootopiaModal .printables-modal__card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

#zootopiaModal .printables-modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 50px;
  font-weight: 200;
  line-height: 0.8;
  cursor: pointer;
}

#zootopiaModal .printables-modal__hero {
  position: relative;
  min-height: 365px;
  background: #43d6d0 url(../img/popup-bg.png) center / cover no-repeat;
}

#zootopiaModal .printables-modal__hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -54px;
  height: 115px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  z-index: 1;
}

#zootopiaModal .printables-modal__activity {
  position: absolute;
  top: 8px;
  z-index: 2;
  display: block;
  width: auto;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.18));
}

#zootopiaModal .printables-modal__activity--monopoly {
  left: 82px;
  max-width: 230px;
  transform: rotate(5deg);
}

#zootopiaModal .printables-modal__activity--peppa {
  right: 68px;
  top: 58px;
  max-width: 228px;
  transform: rotate(-8deg);
}

#zootopiaModal .printables-modal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 58px 38px 50px;
  text-align: left;
}

#zootopiaModal .printables-modal__title {
  margin: 0 0 24px;
  color: #2b2b2b;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.18;
}

#zootopiaModal .printables-modal__text {
  margin: 0 0 28px;
  max-width: 430px;
  color: #6f6f6f;
  font-size: 21px;
  line-height: 1.55;
}

#zootopiaModal .printables-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 15px 18px;
  border-radius: 8px;
  background: #dc2938;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: none;
}

#zootopiaModal .printables-modal__cta:hover,
#zootopiaModal .printables-modal__cta:focus {
  background: #d82f27;
  color: #fff;
}

@media (max-width: 577px) {

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

  #zootopiaModal .printables-modal {
    width: calc(100vw - 28px);
    margin: 18px auto;
  }

  #zootopiaModal .printables-modal__card {
    border-radius: 14px;
  }

  #zootopiaModal .printables-modal__close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 40px;
  }

  #zootopiaModal .printables-modal__hero {
    min-height: 305px;
  }

  #zootopiaModal .printables-modal__hero::after {
    bottom: -42px;
    height: 90px;
  }

  #zootopiaModal .printables-modal__activity {
    top: 6px;
  }

  #zootopiaModal .printables-modal__activity--monopoly {
    left: 48px;
    max-width: 178px;
  }

  #zootopiaModal .printables-modal__activity--peppa {
    right: 42px;
    top: 58px;
    max-width: 178px;
  }

  #zootopiaModal .printables-modal__content {
    padding: 54px 28px 42px;
  }

  #zootopiaModal .printables-modal__title {
    font-size: 36px;
    line-height: 1.15;
  }

  #zootopiaModal .printables-modal__text {
    font-size: 20px;
  }

  #zootopiaModal .printables-modal__cta {
    width: auto;
    min-height: 50px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .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;
  }
 
}

#gameContainer{
    width:100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

#gameContainer canvas{
    display: block;
    width: 100% !important;
    height: auto !important;
}
