body,
html {
  margin: 0;
  font-family: 'Fredoka One', cursive !important;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
}

body {
  background: linear-gradient(135deg, #f9d423, #ff4e50);
  padding: 0px;
  margin: 0px;
  color: #333;
  height: 100%;
  max-height: 100%;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE y Edge antiguos */
  overflow-y: hidden;
}

.text {
  align-content: center;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fichas,
.tablero {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ficha {
  width: 30px;
  height: 60px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 19px;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}

.ficha:hover {
  transform: scale(1.1);
  background: #f1f1f1;
}

.ficha.FCpu {
  width: 15px !important;
  height: 30px !important;
  background: white;
  color: transparent;
  border: 1px solid black;
  border-radius: 4px;
  font-size: 1px;
  cursor: default;
}

.ficha.Fjugador {
  width: 25px !important;
  height: 50px !important;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 19px;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}

.Fjugador .mitad .pips .pip {
  width: 4px;
  height: 4px;
  color: black;
}


.FCpu .mitad .pips .pip {
  width: 0px;
  height: 0px;
  color: white;
}


.ficha.horizontal {
  flex-direction: row;
  width: 60px;
  height: 30px;
}

.mitad {
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #000;
}

.horizontal .mitad {
  width: 50%;
  height: 100%;
  border-bottom: none;
  border-right: 1px solid #000;
}

.horizontal .mitad:last-child {
  border-right: none;
}

.mitad:last-child {
  border-bottom: none;
}

.horizontal .mitad .pips {
  transform: rotate(90deg);
}

#estado {
  padding: 12px;
  font-size: 20px;
  background: #ffe066;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  width: fit-content;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#tablero {
  display: flex;
  height: 900%;
  flex-wrap: wrap;
  flex-direction: row;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ccc;
  gap: 4px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pips {
  padding: 2px;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
}

.pip {
  width: 6px;
  height: 6px;
  background-color: black;
  border-radius: 50%;
}

.puntajes {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 5px;
}

.main {
  display: flex;
  height: 100%;
  padding-right: 20px;
  padding-left: 20px;
  position: relative;
  flex-direction: column;
  align-items: unset;
  justify-content: space-between;
}

.jugador {
  padding-bottom: 0px;
  padding-top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.Emoji {
  font-size: 35px;
  align-content: center;
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modalContent {
  background: #fff9c4;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: popUp 0.4s ease;
  max-width: 450px;
  width: 90%;
}

.modalContent button {
  margin-top: 20px;
  background-color: #fbc02d;
  border: none;
  justify-self: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modalContent button:hover {
  background-color: #f9a825;
  transform: scale(1.05);
}

@keyframes popup {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes aparecer {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.ventana-inicio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff994e 0%, #ff4e50 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
}

.contenido-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.5s ease;
}

.contenido-inicio h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.contenido-inicio p {
  margin: 10px 0 20px;
  font-size: 1.1em;
}

.contenido-inicio button {
  background-color: #ff4e50;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.contenido-inicio button:hover {
  background-color: #ff2e30;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .text {
    font-size: 20px;
  }

  .Emoji {
    font-size: 20px;
  }

  .puntajes {
    font-size: 20px;
  }

}

@media (orientation: portrait) {
  .main {
    padding: 5px;
  }


  .fichas {
    gap: 2vw;
    padding: 2vw;
  }
}

@media (max-width: 480px) {
  .modalContent {
    padding: 5vw;
    border-radius: 5vw;
  }

  .modalContent button {
    padding: 3vw 6vw;
    font-size: 4vw;
  }

  .contenido-inicio {
    padding: 5vw;
    margin: 5vw;
  }

  .contenido-inicio h2 {
    font-size: 6vw;
  }

  .contenido-inicio p {
    font-size: 4vw;
  }

  .contenido-inicio button {
    padding: 4vw 8vw;
    font-size: 4vw;
  }

  #estado {
    font-size: 10px;
  }
}

.selector-container {
  position: relative;
  width: 300px;
  height: auto;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: visible;
}

.cardD {
  position: absolute !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  width: 70%;
  height: 100%;
  transition: transform 0.5s, z-index 0.5s;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0.5;
}

.cardD.selected {
  transform: translateX(-50%) scale(1);
  z-index: 3;
  opacity: 1;
}

.cardD.left {
  transform: translateX(-100%) scale(0.6) rotateY(30deg);
  z-index: 2;
}

.cardD.right {
  transform: translateX(0%) scale(0.6) rotateY(-30deg);
  z-index: 2;
}

.cardD img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.controlsCards {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.controlsCards button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #ffcc00;
  cursor: pointer;
  margin: 0 10px;
}

.seleccionada {
  outline: 2px solid blue;
  background-color: #e0f0ff;
}