:root {
  --default: #e7ebf1;
  --yellow: #ebb308;
  --green: #22c55e;
  --blue: #94a3b8;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* html, body {
  max-width: 1024px;
  overflow-x: hidden;
} */


.header {
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .btn {
  width: 80px;
  padding: .75rem;
  background-color: #e4ffff;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  color: #94a3b8;
  display: none;
  cursor: pointer;
  /* opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%); */

}

.header .btn.active {
  display: block;
  /* opacity: 1;
  cursor: pointer;
  z-index: 100; */
}

.main {
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main .letters-grid {
  display: grid;
  grid-template-columns: repeat(5, 50px);
  justify-content: center;
  gap: 5px;
}

.main .letters-grid input {
  height: 50px;
  border-radius: 5px;
  border: 1px solid var(--blue);
  outline: none;
  background-color: var(--default);
  font-size: 18px;
  text-align: center;
  transition: all .3s;
} 

/* 
.main .letters-grid input.active {
  
  animation-name: myAnimation;
  animation-duration: .3s;
  animation-timing-function: ease;
  animation-delay: .3s;
  animation-iteration-count: 1;
  animation-direction: alternate;
  animation-fill-mode: forwards;
} 
*/

.keyboard {
  height: 200px;
  /* max-width: 100%; */
  display: flex;
  justify-content: center;
  align-items: center;
}

.keyboard .keyboard-grid {
  max-width: 100%;
  display: flex;
  row-gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.keyboard .keyboard-grid .row1 {
  width: 630px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
}

.keyboard .keyboard-grid .row2{
  width: 630px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 5px;
}

.keyboard .keyboard-grid .row3 {
  width: 630px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.5fr repeat(8, 1fr) 1.5fr;
  gap: 5px;
} 

.keyboard .keyboard-grid .row .key {
  height: 40px;
  background-color: var(--default);
  border: 1px solid var(--default);
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

.keyboard .keyboard-grid .row .key:hover {
  background-color: #a8bec8;
}

.win-box {
  background-color: #e4ffff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 300px;
  height: 200px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  display: none;
  transition: all .3s;
}

.win-box.active {
  display: flex;
}

.win-box .row1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  position: relative;
}

.win-box .row1 i {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

.win-box .row1 h3 {
  color: #22c55e;
}

.win-box .row2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100px;
  position: relative;
  gap: 5px;
}

.win-box .row3 {
  display: flex;
  height: 50px;
  justify-content: center;
  align-items: center;
}

.win-box .row3 button {
  padding: 10px;
  background-color: #22c55e;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

@keyframes myAnimation {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
