body {
  background-color: #393E46;
  text-align: center;
}

.container {
  width: 80%;
  margin: auto;
}

.dice-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* space between Player 1 and Player 2 */
  margin-top: 40px;
}

.dice {
  text-align: center;
}

.hand-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hand {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

.hand-left {
  transform: rotate(-20deg);
}

.hand-right {
  transform: rotate(20deg);
}

img {
  width: 120px;
  height: auto;
}

.hidden {
  visibility: hidden;
}

h1 {
  cursor: pointer;
  margin: 30px;
  font-family: 'Lobster', cursive;
  text-shadow: 5px 0 #232931;
  font-size: 8rem;
  color: #4ECCA3;
  user-select: none;
  transition: color 0.3s;
}

h1:hover {
  color: aqua;
}

p {
  font-size: 2rem;
  color: #4ECCA3;
  font-family: 'Indie Flower', cursive;
  text-shadow: 5px 0 #232931;
  border-style: solid;
  border-radius: 50%;
  padding-left: 15px;
  padding-right: 15px;
}

footer {
  margin-top: 5%;
  color: #EEEEEE;
  text-align: center;
  font-family: 'Indie Flower', cursive;
}

#resetBtn {
  background-color: #4ECCA3;
  color: #232931;
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  padding: 10px 25px;
  margin-top: 20px;
  font-family: 'Indie Flower', cursive;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#resetBtn:hover {
  background-color: aqua;
  transform: scale(1.05);
}

.controls {
  margin-top: 30px;
  margin-bottom: 40px;
}



/* Tablets */
@media (max-width: 1024px) {
  .dice-wrapper {
    gap: 60px;
  }

  img {
    width: 90px;
  }

  .hand {
    width: 70px;
  }

  h1 {
    font-size: 6rem;
  }

  p {
    font-size: 1.5rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  .dice-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .hand-dice {
    flex-direction: row;
    gap: 8px;
  }

  img {
    width: 80px;
  }

  .hand {
    width: 60px;
  }

  h1 {
    font-size: 4rem;
  }

  p {
    font-size: 1.2rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.edit-btn {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #4ECCA3;
  color: #232931;
  transition: background-color 0.3s;
}

.edit-btn:hover {
  background-color: #00b894;
}
