@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

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

button {
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
  border: none;
  cursor: pointer;
  color: #444;
  font-family: inherit;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.2s;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

body {
  background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
  font-family: "Nunito", sans-serif;
  color: #333;
  min-height: 100vh;
}

.container {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 748px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 972px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}

.main-Section {
  margin-top: 50px;
}

@media (max-width: 768px) {
  .main-Section {
    margin-bottom: 50px;
    width: 70%;
  }
}
@media (max-width: 576px) {
  .main-Section {
    width: 85%;
  }
}
@media (max-width: 480px) {
  .main-Section {
    width: 95%;
  }
}

.game-holder {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

@media (max-width: 768px) {
  .game-holder {
    flex-direction: column;
    margin: 0 auto;
  }
}

.game-rest {
  position: absolute;
  z-index: 10;
}

.player-one,
.player-two {
  width: 50%;
  padding: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .player-one {
    padding: 120px 10px 90px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .player-two {
    padding: 90px 10px 160px;
    width: 100%;
  }
}

.player-name {
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 2px;
  font-family: inherit;
}

.player-one-result,
.player-two-result {
  margin-top: 33px;
  font-size: 80px;
  color: #c7365f;
  font-weight: 400;
}

.current-container {
  margin-top: 125px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #c7365f;
  border-radius: 9px;
  color: #fff;
  max-width: 69%;
  width: 100%;
  padding: 20px 10px;
  text-align: center;
  transition: all 0.75s;
}

@media (max-width: 768px) {
  .current-container {
    margin-top: 50px;
  }
}

.current-label {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 17px;
  color: #ddd;
}

.player-two-current,
.player-one-current {
  font-size: 35px;
}

.game-rest {
  position: absolute;
  top: 35px;
}
.game-functionalty-holder {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .game-functionalty-holder {
    top: 48%;
    width: 100%;
    height: 100%;
    justify-items: center;
  }
}

.dice-img-container {
  margin-bottom: 118px;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px) {
  .dice-img-container {
    margin-bottom: 0;
  }
}

.dice-img-container img {
  width: 100%;
}

@media (max-width: 768px) {
  .roll-dice-container {
    position: absolute;
    bottom: 62px;
  }
}

.hold-dice-container {
  margin-top: 19px;
}

@media (max-width: 768px) {
  .hold-dice-container {
    position: absolute;
    bottom: -2px;
  }
}

.active {
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}
.winner {
  background-color: #2f2f2f;
  transition: all 0.3s;
}
.winner .player-name {
  font-weight: 700;
  color: #c7365f;
  transition: all 0.3s;
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
