body {
  background-image: url(./Images/uno_background_image.jpg);
}

#cardsDeckId {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cardsDeckId > div:not(.nameInputDivId) {
  display: none;
}

.nameInputDivId {
  color: white;
  border: 4px black solid;
  border-radius: 10px;
  background-color: rgba(31, 29, 29, 0.6);
  width: 30%;
  font-size: 1.3rem;
  margin-top: 25vh;
  padding: 40px;
  text-align: center;
}

.nameInputDivId p {
  margin: 10px 20px;
}

.nameInputDivId button {
  font-weight: 800;
  background-color: orange;
  margin: 1.1rem auto;
  height: 2.5rem;
  width: 10rem;
  font-size: 1rem;
  border: 2px black solid;
  border-radius: 10px;
}

.nameInputDivId button:hover {
  background-color: lightsalmon;
  cursor: pointer;
}

.nameInputDivId input {
  height: 1.5rem;
  width: 18rem;
  padding-left: 0.5rem;
}

.cardDivId {
  height: 90%;
  width: 88%;
  margin: 2% auto;
  border-radius: 5px;
  color: white;
}

.cpuCardsId,
.drawCardsId,
.playerCardsId {
  min-height: 26vh;
  display: flex;
  cursor: pointer;
  margin: 1vh 0;
}

/*If a card is drawn, then distinguish it */
.drawCardsId > div:nth-child(3) {
  margin-left: 10vh;
}

.cardBorderDivId {
  height: 23vh;
  width: 15vh;
  border: 4px rgb(255, 255, 255) solid;
  border-radius: 5px;
  margin: 0.4rem;
}

.upperNoDivId {
  font-size: 1.4rem;
  padding: 0 0rem;
  text-shadow: 0 0 2px #000;
}

.middleNoDivId {
  margin: 0.5rem 0rem 0rem 1rem;
  padding: 0 1.3rem 1.2rem 0;
  height: 45%;
  width: 35%;
  transform: rotate(35deg);
  background-color: white;
  border-radius: 50%;
}

.middleNoId {
  font-size: 2rem;
  transform: rotate(-35deg);
  padding: 1.8rem 0 0 0;
}

.lowerNoDivId {
  padding: 0rem 0rem 0.2rem 0rem;
  font-size: 1.4rem;
  transform: rotate(-180deg);
  text-shadow: 0 0 2px #000;
}

.unoCardImage {
  height: 23vh;
  width: 15vh;
  content: url("./Images/UNO_back.png");
}

.playPass {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 2vh;
}

.playPass button {
  margin: 3vh;
  height: 5vh;
  width: 10vh;
}

.playPass button:hover {
  background-color: lightblue;
  cursor: pointer;
}

.unoButton {
  margin: auto 0 auto 4vh;
  height: 5vh;
  width: 9vh;
  text-align: center;
}

.unoButton:hover {
  background-color: grey;
  color: white;
  cursor: pointer;
}

.cpuName,
.playerName {
  color: white;
  font-size: 1.5rem;
}

/* Modal implementation */
.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.modal-wrapper {
  width: 25%;
  height: 50%;
  background: ghostwhite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-wrapper {
  display: flex;
}

.restart-modal-btn,
.close-modal-btn {
  font-size: 15px;
  margin-top: 30%;
  margin-left: 10%;
  background: #fbd200;
  cursor: pointer;
  padding: 8px;
  width: 6rem;
  border-radius: 4px;
}

.restart-modal-btn {
  margin-left: 25%;
  margin-right: 5%;
  background-color: #00c4f5;
}

.restart-modal-btn:hover {
  background-color: #00c4f5a2;
}

.close-modal-btn:hover {
  background-color: #fbd20077;
}

.modal-content {
  margin: 20px auto;
  max-width: 210px;
  width: 100%;
}

.hide {
  display: none;
}

h1 {
  text-align: center;
}

#timerId {
  position: absolute;
  color: white;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}
