/* Reset & Box Model */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  background: linear-gradient(
    to left,
    rgb(241, 107, 129),
    rgb(168, 149, 149),
    rgb(145, 70, 70)
  );
  font-family: "Times New Roman", Times, serif;
}

/* Main Layout */
main {
  margin-top: 5%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative; /* Needed for absolutely positioning the dice */
  flex-wrap: wrap;
  gap: 20px;
}

/* Player Panel Styling */
.player {
  width: 30%;
  height: 500px;
  padding: 45px;
  font-size: 30px;
  text-align: center;
  border-radius: 10px;
  color: #fff;
}

.player--0 {
  background: rgb(238, 192, 199);
  color: white;
}

.player--1 {
  background: rgb(133, 79, 87);
}

/* Highlight for Active Player */
.player--active {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Player Name */
#name--0,
#name--1 {
  text-transform: uppercase;
  margin-top: 5%;
}

/* Score Display */
#score--0,
#score--1 {
  margin-top: 7%;
  font-size: 55px;
  color: brown;
}

/* Current Section */
.current-label,
.current-score {
  background-color: rgb(197, 36, 63);
  padding: 5px;
  width: 52%;
  margin: 10px auto;
  height: 70px;
  color: #fff;
  border-radius: 8px;
}

.current-label {
  margin-top: 33%;
}

/* Dice Styling - Center Between Players */
.dice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-color: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Controls (Buttons) Below Players */
.controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* General Button Styling */
.btn {
  height: 50px;
  width: 130px;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  transition: all 0.3s ease;
  background-color: white;
}

.btn:hover {
  background-color: #e0e0e0;
}

/* Winner Styling */
.player--winner .name {
  font-weight: 700;
}
