* {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Prompt", sans-serif;
  box-sizing: border-box;
}

body {
  background: linear-gradient(45deg, rgb(34, 62, 75), rgb(46, 204, 183));
  height: 100vh;
  color: rgb(20, 20, 20);
  position: relative;
}

main {
  height: 80%;
  min-width: 70%;
  background-color: rgba(240, 255, 255, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 10px 10px rgba(0, 0, 0, 0.2);
}

#left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

#right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.player {
  font-size: 2.5rem;
  margin-top: 2rem;
}

.total-score {
  font-size: 7rem;
  font-weight: 700;
  /* background-color: white; */
  margin-top: -5rem;
  color: rgb(16, 55, 138);
}

.current-score-block {
  background-color: white;
  text-align: center;
  padding: 1.5rem 4rem;
  border-radius: 10px;
}

.current {
  font-size: 1rem;
}

.current-score {
  font-size: 2rem;
}

/* ################################## Buttons & Dice #######################################*/

#reset-btn {
  position: absolute;
  background-color: rgba(240, 255, 255, 0.7);
  width: 12rem;
  top: 3rem;
  left: calc(50% - 6rem);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 5rem;
  cursor: pointer;
  border: none;
  box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
  transition: 0.2s all;
}

#roll-dice:hover {
  background-color: rgba(241, 245, 39, 0.7);
}

#hold:hover {
  background-color: rgba(29, 41, 216, 0.7);
}

#reset-btn:hover {
  background-color: rgba(235, 63, 71, 0.7);
}

#reset-btn:active,
#roll-dice:active,
#hold:active {
  transform: scale(0.95);
  box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}

.dice-container {
  position: absolute;
  top: 30vh;
  left: calc(50% - 3.5rem);
  /* background-color: white; */
  height: 7rem;
  width: 7rem;
}

img {
  max-width: 100%;
}

#play-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 8rem;
  width: 14rem;
  position: absolute;
  bottom: 3rem;
  left: calc(50% - 7rem);
}

#roll-dice {
  font: inherit;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 3rem;
  border: none;
  border-radius: 5rem;
  box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
  transition: 0.2s all;
  cursor: pointer;
}

#hold {
  font: inherit;
  font-size: 1.1rem;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5rem;
  width: 8rem;
  box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
  transition: 0.2s all;
  cursor: pointer;
}

/* ######################### MODALS ########################## */
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgb(192, 132, 2);
  width: 40rem;
  height: 10rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal p {
  font-size: 3rem;
  font-weight: 700;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.hidden {
    display: none;
}

/* ############################ Active Player Styles ########################## */
.active-player {
  background-color: rgba(212, 21, 37, 0.6);
  transition: 1s all;
  font-weight: bold;
}

/* ############################ Game INSTRUCTION board Styles ########################## */
#instructions {
  background-color: aliceblue;
  width:fit-content;
}

h3 {
  margin-left: 0.5rem;
}

ol {
  width: 15rem;
  margin-left: 1.5rem;
}

li {
  margin: 10px 0;
}

#instructions span {
  font-weight: bold;
}

