* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-weight: 400;
  height: 100vh;
  color: #333;
  background-image: url("images/comic.jpg");
  background-repeat: no-repeat;
  /* Ensure the background image doesn't repeat */
  background-size: cover;
  /* Cover the entire background */
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  text-align: center;
  margin-top: 20px;
  position: absolute;
  top: 40px;
  font-size: 40px;
  font-weight: 100;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

main {
  position: relative;
  width: 100rem;
  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;
  font-weight: 100;
}

.player {
  flex: 50%;
  padding: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.75s;
}

.name {
  position: relative;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 2px;
  font-weight: 300;
  margin-bottom: 1rem;
}

.score {
  font-size: 8rem;
  font-weight: 300;
  color: #f34878;
  margin-bottom: auto;
}

.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: #f34878;
  opacity: 0.8;
  border-radius: 9px;
  color: #fff;
  width: 65%;
  padding: 2rem;
  text-align: center;
  transition: all 0.75s;
}

.current-label {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #ffffff;
}

.current-score {
  font-size: 3.5rem;
}

.btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #444;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.8rem;
  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 2.5rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}

.btn::first-letter {
  font-size: 2.4rem;
  display: inline-block;
  margin-right: 0.7rem;
}

.btn--new {
  top: 4rem;
}

.btn--roll {
  top: 39.3rem;
}

.btn--hold {
  top: 46.1rem;
}

.btn:active {
  transform: translate(-50%, 3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: none;
}

.dice {
  position: absolute;
  left: 50%;
  top: 25%;
  transform: translateX(-50%);
  height: 18rem;
  display: block;
}

.player--winner {
  background-color: #2f2f2f;
}

.player--winner .name {
  font-weight: 700;
  color: #c7365f;
}

.hidden {
  display: none;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-weight: 100;
  font-size: 1.6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 3rem;
    margin-top: -3rem;
    /* Smaller font size for heading */
  }

  main {
    padding: 2rem;
    /* Adjusted padding for smaller screens */
  }

  .player {
    flex: 1 1 100%;
    /* Full width for smaller screens */
    padding: 2rem;
    /* Adjusted padding for smaller screens */
  }

  .name {
    font-size: 2rem;
    /* Smaller font size for smaller screens */
  }

  .score {
    font-size: 4rem;
    /* Smaller font size for smaller screens */
  }

  .current {
    padding: 1rem;
    /* Adjusted padding for smaller screens */
  }

  .current-label {
    font-size: 1.3rem;
    /* Smaller font size for smaller screens */
  }

  .current-score {
    font-size: 2rem;
    /* Smaller font size for smaller screens */
  }

  .btn {
    margin-top: 7rem;
    /* Adjusted margin for smaller screens */
  }

  .btn--roll {
    margin-top: -5rem;
  }

  .btn--hold {
    margin-top: -5rem;
  }

  .dice {
    height: 15rem;
    margin-top: 25px;
    /* Smaller height for smaller screens */
  }
}