@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;
  height: 100vh;
  color: #333;
  background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LAYOUT */
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;
}

.player {
  flex: 50%;
  padding: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.75s;
}

/* ELEMENTS */
.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: #c7365f;
  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: #c7365f;
  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: #ddd;
}

.current-score {
  font-size: 3.5rem;
}

/* ABSOLUTE POSITIONED ELEMENTS */
.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%, 5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: none;
}

.dice {
  position: absolute;
  left: 50%;
  top: 16.5rem;
  transform: translateX(-50%);
  height: 10rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.player--winner {
  background-color: #2f2f2f;
}

.player--winner .name {
  font-weight: 700;
  color: #c7365f;
}

/* hidden */
.hidden {
  display: none;
}

/* Rules */
.rules {
  position: absolute;
  top: 7%;
  right: 13%;
  cursor: pointer;
  z-index: 7;
}

.rulesArticle {
  background-color: #fff;
  position: absolute;
  margin-inline: auto;
  border-radius: 10px;
  padding: 20px;
  width: 810px;
  font-size: 13px;
  font-weight: 900;
  z-index: 8;
}

.overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 100%;
  /* z-index: 20; */
  font-size: 60px;
  z-index: 8;
}

.rulesArticle h1 {
  color: #c7365f;
  text-align: center;
  font-size: 1.9em;
}

b {
  color: red;
}

.closeWindow {
  position: absolute;
  right: 5%;
  top: 5%;
  font-size: 40px;
  cursor: pointer;
}

.rulesTitle {
  background-color: rgb(255, 0, 242);
  padding: 5px;
  font-size: 13px;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
  position: absolute;
  top: 2.1%;
  right: 12.9%;
  transition: 0.2s;
  z-index: 7;
}

.rules:hover ~ .rulesTitle {
  display: block;
  transition: 1s;
}

/* Settings */
.settings {
  position: absolute;
  top: 7%;
  right: 5%;
  cursor: pointer;
  z-index: 7;
}

.settings:hover ~ .settingTitle {
  display: block;
}

.settingTitle {
  background-color: rgb(255, 0, 242);
  padding: 5px;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
  position: absolute;
  top: 2.1%;
  right: 4.6%;
  transition: 0.2s;
  font-size: 13px;
}

.setup {
  background-color: #fff;
  position: absolute;
  margin-inline: auto;
  border-radius: 10px;
  padding: 20px;
  font-size: 20px;
  font-weight: 900;
  color: #c7365f;
  z-index: 8;
}

.setup label {
  font-size: 25px;
}

.setup button {
  padding: 10px 25px 10px 25px;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  cursor: pointer;
  background-color: #fff;
  border-radius: 5px;
  margin: 10px;
  border: 3px solid #c7365f;
  font-weight: 600;
  font-size: 20px;
  color: #bf2e34;
  transition: 0.4s;
}

.setup button:hover {
  color: #fff;
  background-color: #bf2e34;
}

.setup input {
  padding: 10px;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  margin: 10px;
  border: 3px solid #c7365f;
  font-weight: 600;
  font-size: 20px;
  color: #bf2e34;
}

.closeWindow2 {
  position: absolute;
  right: 5%;
  top: 5%;
  font-size: 30px;
  cursor: pointer;
}

/* Target */
header div p {
  position: absolute;
  top: 5%;
  left: 3%;
  font-size: 25px;
  z-index: 20;
  font-weight: 900;
  background-color: #fff;
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2rem 2rem rgba(0, 0, 0, 0.2);
  z-index: 7;
}
header div p span {
  /* font-weight: 400; */
  color: #c7365f;
}

.targetNotice {
  color: red;
}

.notification {
  position: absolute;
  top: -50%;
  background: #ffffff85;
  padding: 10px 90px 10px 90px;
  border-radius: 100px;
  backdrop-filter: blur(5px);
  font-size: 70px;
  z-index: 10;
  /* animation: notification 5s ease-in-out 1; */
}

@keyframes notification {
  0% {
    top: -50%;
  }

  30% {
    top: 40px;
  }

  50% {
    top: 10px;
  }
  60% {
    top: 10px;
  }
  70% {
    top: 10px;
  }

  100% {
    top: -50%;
  }
}
.phoneDisplay {
  display: none;
}

@media (max-width: 415px) {
  button,
  svg,
  section,
  article,
  header,
  footer {
    display: none;
  }
  .phoneDisplay {
    display: block;
    font-size: 30px;
    text-align: center;
    background-color: aqua;
    position: absolute;
    padding: 30px;
  }
}

footer {
  position: absolute;
  bottom: 2%;
  color: #c7365f;
  font-size: 25px;
}
