* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 62.5%;
  background: linear-gradient(
    135deg,
    rgb(160, 28, 52) 30%,
    rgb(84, 30, 91) 70%
  );
  width: 100vw;
  height: 100vh;
  font-family: "Roboto", sans-serif;
  position: relative;
  display: flex;
}

/* ------WELCONE-MODAL---- */
.welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 61vw;
  height: 90%;
  visibility: visible;
  border: 4px solid rgb(233, 224, 224);
  border-radius: 30px;
  position: absolute;
  z-index: 1;
  background: linear-gradient(150deg, #e19fc4 30%, #b47299 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  visibility: visible;
}

h1 {
  font-size: 2rem;
  color: #333;
}

p {
  padding: 4rem 20rem;
  font-size: 1rem;
  text-align: left;
  line-height: 2rem;
  color: #333;
  font-weight: 600;
}

p .fa-dice {
  font-size: 2rem;
  color: rgb(46, 2, 48);
}

.select {
  font-size: 1rem;
  padding-bottom: 0.5rem;
  font-weight: 700;
  color: #333;
  font-weight: 800;
}

input {
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.strat-game {
  margin-top: 1rem;
  color: black;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  padding: 10px 5%;
  border-radius: 20px;
  border: none;
  background-color: rgba(255, 255, 255, 0.727);
  cursor: pointer;
}

/* -------THE-GAME--------- */

.flex-contanier {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

.player-1 {
  height: 100%;
  width: 40%;
  border: 4px solid white;
  border-right: none;
  background-color: rgba(255, 255, 255, 0.504);
}

.middel {
  height: 100%;
  width: 20%;
  border: 4px solid white;
  margin-left: -10%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgb(160, 28, 52) 30%,
    rgb(84, 30, 91) 70%
  );
}

.player-2 {
  height: 100%;
  width: 30%;
  border: 4px solid white;
  border-left: none;
  background-color: rgba(255, 255, 255, 0.211);
}

.btn {
  color: black;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  padding: 10px 20%;
  border-radius: 20px;
  border: none;
  background-color: rgba(255, 255, 255, 0.727);
  cursor: pointer;
}

.btn-roll-dice:disabled {
  background-color: rgb(40, 37, 37);
}

i {
  margin-right: 0.2rem;
}

.imges {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dice-1,
.dice-2 {
  width: 100px;
  height: 100px;
}

.player-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 20%;
  margin-top: 10%;
  gap: 1rem;
}

.player-bottom-2 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.player-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 50vh;
  margin-right: 8vw;
}

.player-title-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 20%;
  margin-top: 15%;
}

.player-bottom-2 {
  margin: 0 auto;
}

.player-bottom-2-2 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50vh;
}

.player-bottom-2-1,
.player-bottom-2-2 {
  border-radius: 10px;
  padding: 2rem 4rem;
  background-color: #c7365f;
  color: white;
  gap: 0.5rem;
}

.players-title {
  font-size: 2rem;
  color: #333;
}

.players-total {
  font-size: 4rem;
  color: #c7365f;
  font-weight: 900;
}

.players-current-titel {
  font-size: 1rem;
}

.players-current-score {
  font-size: 2rem;
  font-weight: 800;
}

#win1 {
  visibility: hidden;
  margin-right: 8rem;
}

#win2 {
  visibility: hidden;
  margin-left: 2rem;
}

.winMessage1,
.winMessage2 {
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  justify-content: center;
}

.total-wining-1,
.total-wining-2 {
  font-size: 1.4rem;
  font-weight: 800;
  border: 1px solid white;
  width: 100px;
  color: #333;
  text-align: center;
}

.total-wining-1 {
  visibility: hidden;
}

.wins-title {
  font-size: 1rem;
}

@media (min-width: 430px) and (max-width: 769px) {
  .middel {
    width: 30%;
  }

  .btn {
    font-size: 0.8rem;
  }

  .dice-1,
  .dice-2 {
    width: 80px;
    height: 80px;
  }

  .players-title {
    font-size: 1.2rem;
  }

  .players-total {
    font-size: 2.3rem;
  }

  .player-bottom-2-1,
  .player-bottom-2-2 {
    padding: 1rem 1rem;
  }

  .player-bottom-2-1 {
    margin-top: 0 auto;
  }

  .player-bottom {
    margin-top: 0px;
  }

  .player-bottom-2-1 {
    margin-top: 24rem;
  }

  .player-bottom-2-2 {
    margin-top: 25rem;
  }

  .players-current-score {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .winMessage1,
  .winMessage2 {
    font-size: 1rem;
  }

  .winMessage1 {
    margin-left: 5rem;
  }

  .welcome {
    width: 90vw;
    height: 100%;
  }

  h1 {
    font-size: 1.3rem;
  }

  p {
    padding: 1rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.6rem;
  }

  p .fa-dice {
    font-size: 1rem;
  }

  .select {
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
  }
}

@media (max-width: 429px) {
  .welcome {
    width: 22rem;
    height: 44rem;
  }

  h1 {
    font-size: 1.5rem;
    padding-bottom: 1rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.2rem;
    padding: 1rem;
  }

  .players-title {
    font-size: 1.2rem;
  }

  .players-total {
    font-size: 2rem;
  }

  .player-1 {
    width: 50%;
    border: 1px solid white;
  }
  .player-2 {
    width: 40%;
    border: 1px solid white;
  }

  .btn {
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid white;
    color: white;
  }

  .dice-1,
  .dice-2 {
    width: 50px;
    height: 50px;
  }

  .middel {
    border: 1px solid white;
  }

  .player-bottom-2-1 {
    width: 5px;
    height: 10vh;
    margin-right: 0.7rem;
  }
  .player-bottom-2-2 {
    width: 5px;
    height: 10vh;
  }

  .players-current-score {
    font-size: 1rem;
  }

  .players-current-titel {
    font-size: 0.9rem;
  }
}
