@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
html {
  font-size: 62.5%;
  box-sizing: border-box;
}
body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  color: #333;
  background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
main {
  position: relative;
  width: 100%;
  max-width: 100rem;
  height: auto;
  min-height: 60rem;
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(200px);
  filter: blur();
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  main {
    flex-direction: row;
    height: 60rem;
  }
}
.player {
  flex: 1;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.75s;
  text-align: center;
}
@media (min-width: 768px) {
  .player {
    padding: 9rem;
  }
}
.name {
  position: relative;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 2px;
  font-weight: 300;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .name {
    font-size: 4rem;
  }
}
.score {
  font-size: 5rem;
  font-weight: 300;
  color: #c7365f;
  margin-bottom: auto;
}
@media (min-width: 768px) {
  .score {
    font-size: 8rem;
  }
}
.player--active {
  background-color: rgba(255, 255, 255, 0.4);
}
.player--active .name {
  font-weight: 700;
}
.player--active .score {
  font-weight: 400;
}
.player--active .current {
  opacity: 1;
}
.current {
  background-color: #c7365f;
  opacity: 0.8;
  border-radius: 9px;
  color: #fff;
  width: 90%;
  max-width: 20rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.75s;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .current {
    width: 65%;
    padding: 2rem;
    margin-top: 0;
  }
}
.current-label {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #ddd;
}
@media (min-width: 768px) {
  .current-label {
    font-size: 1.7rem;
  }
}
.current-score {
  font-size: 2.8rem;
}
@media (min-width: 768px) {
  .current-score {
    font-size: 3.5rem;
  }
}
.btn {
  position: relative;
  left: auto;
  transform: none;
  color: #444;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.6rem;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  background-color: white;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.7rem 2rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
  margin: 0.5rem;
  width: auto;
  min-width: 12rem;
}
@media (min-width: 768px) {
  .btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    padding: 0.7rem 2.5rem;
    margin: 0;
    width: auto;
    min-width: auto;
  }
}
.btn::first-letter {
  font-size: 2rem;
  display: inline-block;
  margin-right: 0.7rem;
}
@media (min-width: 768px) {
  .btn::first-letter {
    font-size: 2.4rem;
  }
}
.btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  order: 2;
}
.btn--new {
  order: 1;
}
@media (min-width: 768px) {
  .btn--new {
    position: absolute;
    top: 4rem;
    order: unset;
    left: 50%;
    transform: translateX(-50%);
  }
}
.btn--roll {
  order: 2;
}
@media (min-width: 768px) {
  .btn--roll {
    position: absolute;
    top: 39.3rem;
    order: unset;
    left: 50%;
    transform: translateX(-50%);
  }
}
.btn--hold {
  order: 3;
}
@media (min-width: 768px) {
  .btn--hold {
    position: absolute;
    top: 46.1rem;
    order: unset;
    left: 50%;
    transform: translateX(-50%);
  }
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}
@media (min-width: 768px) {
  .btn:active {
    transform: translate(-50%, 3px);
  }
}
.btn:focus {
  outline: none;
}
.dice {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  height: 8rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  margin: 2rem auto;
  display: block;
}
@media (min-width: 768px) {
  .dice {
    position: absolute;
    left: 50%;
    top: 16.5rem;
    transform: translateX(-50%);
    height: 10rem;
    margin: 0;
  }
}
.player--winner {
  background-color: #2f2f2f;
}
.player--winner .name {
  font-weight: 700;
  color: #c7365f;
}
@media (max-width: 767px) {
  body {
    padding: 1rem;
  }
  main {
    min-height: auto;
    margin: 1rem 0;
  }
  .player {
    padding: 3rem 1rem;
  }
  .name {
    font-size: 2.2rem;
  }
  .score {
    font-size: 4rem;
  }
  .current {
    width: 85%;
    padding: 1.2rem;
  }
  .current-label {
    font-size: 1.2rem;
  }
  .current-score {
    font-size: 2.4rem;
  }
  .btn {
    font-size: 1.4rem;
    padding: 0.6rem 1.5rem;
    min-width: 10rem;
  }
  .dice {
    height: 6rem;
  }
}
@media (max-width: 480px) {
  main {
    border-radius: 6px;
  }
  .player {
    padding: 2rem 0.5rem;
  }
  .name {
    font-size: 1.8rem;
  }
  .score {
    font-size: 3.5rem;
  }
  .current {
    width: 90%;
    padding: 1rem;
  }
  .btn {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
    min-width: 8rem;
  }
  .dice {
    height: 5rem;
  }
}
