@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap");
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  width: 100vw;
  color: #f0ece4;
  font-family: "Oswald", sans-serif;
  background-color: #21302a;
}

.hidden {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.overlay {
  position: fixed;
  height: 100vh;
  width: 100vw;
  background-color: rgba(12, 13, 14, 0.5);
  backdrop-filter: blur(5px);
}

.settings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50rem;
  height: 30rem;
  background-color: #21302a;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.settings__label {
  font-size: 3rem;
}
.settings__input {
  height: 25%;
  width: 25%;
  margin: 2rem;
  border-radius: 1rem;
  border: none;
  background-color: transparent;
  font-size: 5rem;
  text-align: center;
  padding-left: 1.5rem;
  color: #f0ece4;
}
.settings__start {
  font-size: 2.5rem;
  padding: 1.5rem 4rem;
  border-radius: 100rem;
  text-transform: uppercase;
  font-weight: 500;
  color: #0c0d0e;
  background-color: #ffc526;
  cursor: pointer;
  transition: all 75ms;
}
.settings__start:hover {
  background-color: rgba(12, 13, 14, 0.5);
  color: #f0ece4;
  box-shadow: 1px 1px 0px 2px #0c0d0e;
}
.settings__start:active {
  box-shadow: 0 0 0 2px #f0ece4;
}

.board {
  min-height: 100vh;
  width: 100vw;
  background-color: #21302a;
  display: flex;
  flex-direction: column;
}

.next-round {
  font-size: 4rem;
  color: #0c0d0e;
  background-color: #f0ece4;
  position: fixed;
  padding: 1rem 3rem;
  border-radius: 100px;
  border: 3px solid #0c0d0e;
  text-transform: uppercase;
  top: 3rem;
  right: 3rem;
  transition: all 0.1s;
  z-index: 10;
}
.next-round:hover {
  background-color: #ffc526;
  border-color: #f0ece4;
  color: #f0ece4;
  cursor: pointer;
}

.box {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(240, 236, 228, 0.3);
}

.cards {
  flex: 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  height: 18rem;
  width: 5rem;
  position: relative;
}
.card * {
  height: inherit;
  position: absolute;
  margin-left: -3.75rem;
  backface-visibility: hidden;
}
.card__back {
  transform: rotateY(180deg);
}

.face-down {
  transform: rotateY(180deg);
}

.face-up {
  transform: rotateY(0deg);
}

.controls {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.btn {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: #ffc526;
  margin: 0 2rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Oswald", sans-serif;
  color: #f0ece4;
  border: none;
  opacity: 0;
  visibility: hidden;
}
.btn:hover {
  transform: scale(1.15);
  background-color: #0495d8;
}
.btn:hover .icon {
  fill: #f0ece4;
}
.btn:active {
  transform: scale(1.1);
}

.hit {
  position: relative;
}
.hit::after {
  content: "Hit";
  font-size: 2.5rem;
  position: absolute;
  top: 50%;
  left: 6rem;
  transform: translateY(-50%);
}

.stay {
  position: relative;
}
.stay::before {
  content: "Stay";
  font-size: 2.5rem;
  position: absolute;
  top: 50%;
  right: 6rem;
  transform: translateY(-50%);
}

.icon {
  width: 2.5rem;
  fill: #0c0d0e;
}

.score {
  font-size: 4rem;
  font-weight: 600;
}

.dealer {
  position: relative;
  flex: 40rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dealer__box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 35rem;
  width: 50rem;
  border-radius: 1rem;
}

.player {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}
.player__box {
  flex: 1;
  height: 40rem;
  max-width: 50rem;
  min-width: 30rem;
  border-radius: 1rem;
  margin: 3rem 2rem;
}

.current {
  border-color: #15efff;
  box-shadow: 0 0 5px 2px #15efff;
}
.current .controls .btn {
  opacity: 1;
  visibility: visible;
}

.win {
  border-color: #ffc526;
}
.win .controls .score {
  color: #ffc526;
}

.lose {
  border-color: #0c0d0e;
}
.lose .controls .score {
  color: #0c0d0e;
}

.tie {
  border-color: #f0ece4;
}
.tie .controls .score {
  color: #f0ece4;
}

/*# sourceMappingURL=style.css.map */
