@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
 padding: 0;
 margin: 0;
 box-sizing: border-box;
}

body{
  background: rgb(192, 192, 192);
}

.slide-in {
 display: flex;
 align-items: center;
 padding: 0 10px;
 justify-content: center;
 min-height: 100vh;
 background: #E2A11A;
 font-family: 'Open Sans', sans-serif;
  transform: translateY(-100%);
  transition: transform .7s;
}
.slide-in.show {
  transform: translateY(0);
}


.container {
 width: 850px;
 background: #fff;
 display: flex;
 gap: 70px;
 align-items: flex-end;
 padding: 60px 40px;
 border-radius: 10px;
}

.hangman-box h1 {
 font-size: 1.45rem;
 margin-top: 20px;
 text-align: center;
 text-transform: uppercase;
}

.word-display {
 display: flex;
 gap: 10px;
 list-style: none;
 align-items: center;
 justify-content: center;
}

.word-display .letter {
 width: 28px;
 font-size: 2rem;
 font-weight: 600;
 text-align: center;
 text-transform: uppercase;
 margin-bottom: 40px;
 border-bottom: 3px solid #000;
}

.word-display .letter.guessed {
 border-color: transparent;
 margin: -40px 0 35px;
}

.game-box h4 {
 text-align: center;
 font-size: 1.1rem;
 font-weight: 500;
 margin-bottom: 15px;
}

.game-box h4 b {
 font-weight: 600;
}

.game-box .guesses-text b {
 color: #FF0000;
}

.game-box .keyboard {
 display: flex;
 gap: 5px;
 margin-top: 40px;
 flex-wrap: wrap;
 justify-content: center;
}

:where(.game-modal, .keyboard) button {
 color: #FFF;
 font-size: 1rem;
 font-weight: 600;
 cursor: pointer;
 outline: none;
 border: none;
 background: #D32E86;
 border-radius: 4px;
 text-transform: uppercase;
 box-shadow: 0px 3px #8d1f5a;
 transform: translateY(2px);
 transition: all 300ms ease;
}

.keyboard button {
 padding: 7px;
 width: calc(100% / 9 - 5px);
}

.keyboard button[disabled] {
 opacity: .6;
 pointer-events: none;
 box-shadow: 0px 0px gray;
}

:where(.game-modal, .keyboard) button:hover {
 background: #d15e9b;
 box-shadow: 0px 4px #8d1f5a;
}

:where(.game-modal, .keyboard) button:active {
 background: #a32367;
 box-shadow: 1px 0px #8d1f5a;
}

.game-modal {
 position: fixed;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 opacity: 0;
 pointer-events: none;
 z-index: 999;
 display: flex;
 align-items: center;
 justify-content: center;
 background: #00000099;
 transition: opacity .4s ease;
 padding: 10px;
 backdrop-filter: blur(5px);
}

.game-modal.show {
 opacity: 1;
 pointer-events: auto;
}

.game-modal .content {
 background: #fff;
 max-width: 420px;
 width: 100%;
 text-align: center;
 border-radius: 10px;
 padding: 30px;
}

.game-modal img {
 max-width: 130px;
 margin-bottom: 20px;
}

.game-modal h4 {
 font-size: 1.53rem;
}

.game-modal p {
 font-size: 1.15rem;
 margin: 15px 0 30px;
 font-weight: 500;
}

.game-modal p b {
 color: #5E63BA;
 font-weight: 600;
}

.game-modal button {
 width: 70%;
 padding: 12px 23px;
}

.game-modal button.play-again {
 margin-bottom: 10px;
}

@media only screen and (max-width: 782px) {
 .container {
  flex-direction: column;
  padding: 30px 15px;
  align-items: center;
 }

 .hangman-box img {
  max-width: 200px;
 }

 .hangman-box h1 {
  display: none;
 }
}