@font-face {
  font-family: 'karbonbold';
  src: url('../fonts/karbon-bold-webfont.woff2') format('woff2'),
    url('../fonts/karbon-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}




@font-face {
  font-family: 'karbonmedium';
  src: url('../fonts/karbon-medium-webfont.woff2') format('woff2'),
    url('../fonts/karbon-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}




@font-face {
  font-family: 'karbonsemibold';
  src: url('../fonts/karbon-semibold-webfont.woff2') format('woff2'),
    url('../fonts/karbon-semibold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


html {
  overflow: auto;
  /* Cambiar de hidden a auto */
  overscroll-behavior: none;
}


body {
  background-image: url('../img/bgjuego.webp');
  font-family: 'karbonmedium';
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}

h1 {
  background: #fff;
  width: fit-content;
  margin: 0 auto;
  color: #1e4477;
  padding: 10px 40px;
  border-radius: 40px;
  margin-bottom: 35px;
  font-size: 60px;
}

h3.felicitaciones {
  display: inline-block;
  width: max-content;
  color: #fff;
  background: #1e4477;
  font-size: 36px;
  padding: 5px 20px;
  /* border-radius: 25px; */
  margin: 0 0 16px;
}

.puntaje {
  background: #fff;
  border-radius: 30px;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 35px;
}

.puntaje h3 {
  font-size: 107px;
  color: #1e4477;
  margin: 0;
  line-height: 95px;
}

.puntaje span {
  color: #1e4477;
  font-size: 24px;
}

.worldface {
  max-width: 180px;
  margin-top: 10px;
}


.container {
  width: auto;
  height: 150px;
  /* border: 2px solid #ccc; */
  margin: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container img {
  max-width: 140px;
}

.container .feedback-image,
.container.pet .feedback-image {
  position: absolute;
  max-width: 70px;
  transform: translateY(-50px);
}

.container.pet img {
  max-width: 150px;
  /* transform: translate(33px,22px); */
}

.trash {
  margin: 10px;
  margin-right: 90px;
  width: 80px;
  display: inline-block;
}

.trash img {
  max-width: 120px;
  max-height: 120px;
}

#score {
  margin-top: 20px;
}

#nextButton {
  display: none;
  margin-top: 10px;
}

.barra {
  width: 100%;
  height: 100px;
  /* background: ; */
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 50%;
}

.division {
  width: 100%;
  height: 50px;
  display: block;
}

.wrapper {
  /* max-width: 1110px; */
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  touch-action: none;
}

.boton {
  display: block;
  background: #1e4477;
  color: #fff;
  font-size: 30px;
  padding: 15px 45px;
  border: none;
  border-radius: 17px;
  cursor: pointer;
  animation: pulso 2s infinite;
}

.boton:hover {
  background: #76a712;
}

.etiqueta {
  background: #fff;
  width: 100px;
  margin: 8px auto 0;
  padding: 3px 6px;
  border-radius: 12px;
  color: #1e4477;
  text-align: center;
  overflow: hidden;
  white-space: pre-wrap;
}

.notify {
  font-size: 2rem !important;
  font-weight: bold;
}

@keyframes pulso {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(118, 167, 18, 0.8);
    box-shadow: 0 0 0 0 rgba(118, 167, 18, 0.8);
  }

  70% {
    -moz-box-shadow: 0 0 0 15px rgba(118, 167, 18, 0);
    box-shadow: 0 0 0 15px rgba(118, 167, 18, 0);
  }

  100% {
    -moz-box-shadow: 0 0 0 0 rgba(118, 167, 18, 0);
    box-shadow: 0 0 0 0 rgba(118, 167, 18, 0);
  }
}


/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.puntaje {
  font-size: 1.5rem;
}

.reset {
  display: none;
}

.roll {
  display: none;
}

.reset1 {
  display: none;
}

.roll1 {
  display: none;
}

@media (min-width: 751px) and (max-width: 1400px) {
  .container {
    margin: 0px !important;
    height: auto;
    width: unset;
  }

  .trash img {
    width: 100px;
    height: 100px;
  }

  .container img {
    width: 120px;
  }

  h1 {
    margin-bottom: 10px;
  }

  .trash {
    margin-right: 30px;
  }
}

@media (min-width: 750px) and (orientation: portrait) {
  .container {
    margin: 0px;
  }


  .trash img {
    width: 100px;
    height: 100px;
  }

  .container img {
    width: 120px;
  }

  h1 {
    margin-bottom: 10px;
  }

  .trash {
    margin-right: 30px;
  }

  .felicitaciones {
    font-size: 1.5rem !important;
  }

  .notify {
    font-size: 1.5rem !important;
  }

  .puntaje h3 {
    font-size: 60px;
    line-height: 75px;
  }

  .title-juego {
    font-size: 2rem;
  }

  .reset1 {
    display: block;
    width: 100px;
    height: 100px;
    position: relative;
    top: 50px;
    left: 10px;
    z-index: 100;
    cursor: pointer;
  }

  .reset1 img {
    width: 100%;
    height: 100%;
  }

  .roll1 {
    display: block;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50px;
    right: 10px;
    z-index: 100;
    cursor: pointer;
  }

  .roll1 img {
    width: 100%;
    height: 100%;
  }
}


@media only screen and (max-device-width: 930px) and (orientation: landscape) {

  h1 {
    font-size: 30px;
    margin-bottom: 8px;
    margin-top: -57px;
  }

  .division {
    height: 0px;
  }

  .trash img {
    width: 70px;
    height: 70px;
  }

  .etiqueta {
    font-size: 12px;

  }

  .container img {
    width: 77px;
  }

  .zoom-buttons {
    display: block !important;
    position: fixed;
    top: 0;
    right: 2%;
    z-index: 9999;
  }

  .zoom-buttons button {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-left: 10px;
  }

  .zoom-buttons button span {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .zoom-buttons button:hover {
    background-color: #f0f0f0;
  }

  html,
  body {
    overflow: auto;
    /* Permitir scroll vertical */
    transition: height 0.5s ease;
    /* Transici n suave para cambios en la altura */
    /* padding: 80px 0; */
    height: 1000px;
  }

  .container-btn {
    position: absolute;
    width: 12%;
    top: 0;
    left: 0px;
    display: flex;
    justify-content: space-between;
  }

  .reset {
    display: block;
    width: 50px;
    height: 50px;

    z-index: 100;
    cursor: pointer;
  }

  .reset img {
    width: 100%;
    height: 100%;
  }

  .roll {
    display: block;
    width: 50px;
    height: 50px;
    z-index: 100;
    cursor: pointer;
  }

  .roll img {
    width: 100%;
    height: 100%;
  }

  .wrapper {
    height: 100%;
    overflow-y: scroll;
    position: unset;
    top: 50%;
    transform: unset;
    padding: 100px 0;
    margin-bottom: 100px;
    width: 90%;
  }

  .arrow-o {
    display: block !important;
  }
}