
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background-color: #7841f7;
}

.bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15%;
  background: #5c2dd5;
  border-radius: 5rem 5rem 0  0;
}

.game {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 10rem;
  background-color: #7841f7;
}

.nav a, .nav button {
  background-color: #5a33b6;
  color: white;
  border: none;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.nav a:hover, .nav button:hover {
  background: #4e2f97;
  transform: scale(1.1);
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: .2rem;
}

.nav .logo .ball1 {
  gap: 1rem;
}

.nav .logo .ball-o {
  width: 1.5rem;
  height: 1.5rem;
  background-color:#fe6389;
  border: 3px solid #161616;
  border-radius: 50%;
  margin-bottom: .2rem;
  box-shadow: 0px 1.5px 0px 1px #000;
}

.nav .logo .ball-p {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #fccd61;
  border: 3px solid #161616;
  border-radius: 50%;
  margin-bottom: .2rem;
  box-shadow: 0px 1.5px 0px 1px #000;
}

.game {
  display: flex;
  width: 100%;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>PLAYER 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/


.player-1, .menu {
  width: 12rem;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 3px solid #161616;
  border-radius: 1.5rem;
  box-shadow: 0px 10px 0px 0px #000;
}


.player-1 .player-1-avatar {
  width: 3rem;
  height: 3rem;
  position: relative;
  margin-bottom: 1rem;
  background-color:#fe6389;
  border: 3px solid #161616;
  border-radius: 50%;
  box-shadow: 0px 3px 0px 2px #000;
}

.player-1 .player-1-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #161616;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;

}

.player-1 .player-1-score {
  font-size: 3rem;
  font-weight: bold;
  color: #161616;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eye {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  background-color: #fff;
  border: 1px solid #161616;
  border-radius: 50%;
  overflow: hidden;
}

.eye1 {
  left: 20%;
  top: 25%;
}

.eye2 {
  right: 20%;
  top: 25%;
}

.pupil {
  width: 0.25rem;
  height: 0.25rem;
  background-color: #161616;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Player 1: mirada hacia la derecha */
.player-1-avatar .pupil {
  left: 60%;
}

/* Player 2: mirada hacia la izquierda */
.player-2-avatar .pupil {
  left: 0;
}

.mouth {
  position: absolute;
  bottom: 20%;
  left: 30%;
  width: 1rem;
  height: 0.5rem;
  border: 2px solid #161616;
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>PLAYER 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/

.player-2 {
  width: 12rem;
  height: auto;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 3px solid #161616;
  border-radius: 1.5rem;
  box-shadow: 0px 10px 0px 0px #000;
}


.player-2 .player-2-avatar {
  width: 3rem;
  height: 3rem;
  position: relative;
  margin-bottom: 1rem;
  background-color:#fccd61;
  border: 3px solid #161616;
  border-radius: 50%;
  box-shadow: 0px 3px 0px 2px #000;
}

.player-2 .player-2-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #161616;
  margin-bottom: 1rem;
  
}

.player-2 .player-2-score {
  font-size: 3rem;
  font-weight: bold;
  color: #161616;
  margin-bottom: 1rem;
}

.mouth2 {
  position: absolute;
  bottom: 20%;
  left: 30%;
  width: 1rem;
  height: 0.5rem;
  border: 2px solid #161616;
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>BOARD GAME<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
.board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.board-game {
  width: clamp(300px, 45vw, 800px);
  height: clamp(30vh, 80vh, 80vh);
  padding: 1rem;
  padding-bottom: 10rem;
  position: relative;
  background: #fff;
  border: 5px solid #161616;
  border-radius: 3rem;
  box-shadow: 0px 20px 0px 0px #000;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: start;
  gap: 2rem ;
}

.circle {
  width: clamp(2rem, 5vw, 5rem);
  height: clamp(2rem, 5vw, 5rem);
  background-color: #7841f7;
  border: 4px solid #161616;
  border-radius: 50%;
  box-shadow: inset 0px 10px 0px 0px #000;
  cursor: pointer;
  position: relative;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  /* transition: transform 0.4s ease; */
}
/* 
@keyframes drop {
  0% {
    transform: translateY(-500px);
  }
  100% {
    transform: translateY(0);
  }
}

.circle.falling {
  animation: drop 0.4s ease forwards;
} */

.piece {
  position: absolute;
  top: -300px; /* empieza arriba */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: drop .5s ease forwards;
}

.piece.red {
  background-color: fe6389;
}

.piece.yellow {
  background-color: fccd61;
}

@keyframes drop {
  to {
    top: 10%;
  }
}

@keyframes float {
  0% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 20px); }
  100% { transform: translate(-50%, 0); }
}

.victory {
  width: 35rem;
  text-align: center;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 5rem;
  border-radius: 15px;
  z-index: 999;
  transition: opacity 1s ease;
  animation: float 2s ease-in-out infinite; /* 👈 esta es la magia */
}


.hidden {
  display: none;
}


.circle:hover {
  /* background: linear-gradient(to right, #fe6389, #fccd61); */
  /* box-shadow: inset 0px 5px 0px 0px #000; */
}

.red {
  background-color: #fe6389;
}

.yellow {
  background-color: #fccd61;
}

.disabled {
  cursor: default; /* Cambia el cursor a una cruz o círculo prohibido */
}


.turn-card {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(5rem, 10vw, 20rem);
  height: clamp(3rem, 5.2vw, 10rem);
  font-size: clamp(0.5rem, 2vw, 1.5rem);
  background-color: #fd6687;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  align-items: center;
  justify-content: end;
  border: 3px solid #161616;
  border-radius: 45% 45% 1rem 1rem ;
  
}

/* .turn-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: #fd6687;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-top: 3px solid #161616;
  border-left: 3px solid #161616;
  border-right: 3px solid #161616;
  z-index: -1;
} */

.turn-card .turn-card-text {
  width: 100%;
  height: auto;
  /* font-size: clamp(.6rem, 5vw, 1.2rem); */
  /* font-size: clamp(0.6rem, 2vw, 1.2rem); */
  font-size: .5em;
  font-weight: bold;
  color: #f3f3f3;
  text-align: center;
}


.turn-card .turn-card-time {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: clamp(0.8rem, 3vw, 3rem); */
  /* font-size: clamp(1.2rem, 6vw, 3rem); */
  font-size: 2em;
  color: #f3f3f3;
  font-weight: bold;
}

.turn-card .turn-card-time span {
  /* font-size: clamp(0.8rem, 3vw, 1.5rem); */
  /* font-size: clamp(0.8rem, 4vw, 1.5rem); */
  font-size: .5em;
  color: #f3f3f3;
  font-weight: bold;
}


.player-1-turn {
  background: #fe6389;
}

.player-2-turn {
  background: #fccd61;
}