body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Lexend Deca', sans-serif;
  background: #121213;
  color: white;
  min-height: 100vh;
  margin: 0;
}
#menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; 
  width: 100%;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 3px;
}

.topbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 0;
  background-color: #121213;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #424242;
}


.home-btn {
  font-size: 60px;
  color: white;
  text-decoration: none;
}


h1 {
  font-weight: bold;
  text-align: center;
}

#start-btn {
  padding: 20px 50px;
  font-size: 24px;
  font-weight: bold;
  background-color: #333;
  color: white;
  border: 2px solid #555;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
}

#start-btn:hover {
  background-color: #444;
  transform: scale(1.05);
}


#game-container {
  margin: 20px 0;
}

.row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.cell {
  width: 60px;          
  height: 60px;
  font-size: 30px;      
  border: 2px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}


.cell.vibrate {
  animation: vibrate 0.1s;
}

@keyframes vibrate {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

#keyboard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  margin-top: 10px;
}

.key-row {
  display: flex;
  gap: 5px;
}

.key {
  padding: 16px;
  min-width: 45px;
  text-align: center;
  background-color: #818384;
  border: 1px solid #555;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.key:hover {
  background-color: #696c6d;
}

#banner {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#banner-text {
  font-size: 24px;
  font-weight: bold;
}

#restart-btn {
  font-size: 24px;
  background: #333;
  color: white;
  border: 1px solid #555;
  border-radius: 5px;
  cursor: pointer;
}
