/* Modern Custom Wordle Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 90%;
  margin: 10px auto;
  padding: 10px 10px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.container-home {
  max-width: 40%;
  margin: 10% auto;
  padding: 10px 10px;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

button {
  margin-top: 0px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: #3b82f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #2563eb;
}

#board {
  display: grid;
  gap: 8px;
  justify-content: center;
  margin-top: 30px;
}

.guessRow {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.letter {
  width: 50px;
  height: 50px;
  min-width: 50px;
  box-sizing: border-box;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  line-height: 50px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  user-select: none;
}


.green {
  background-color: #22c55e;
  color: white;
  border: none;
  transform: scale(1.05);
}

.yellow {
  background-color: #eab308;
  color: white;
  border: none;
  transform: scale(1.05);
}

.gray {
  background-color: #9ca3af;
  color: white;
  border: none;
  transform: scale(1.05);
}

#result {
  font-size: 24px;
  margin-top: 20px;
  font-weight: 600;
  color: #333;
}

input[type="file"],
select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
  font-size: 16px;
  width: 80%;
  max-width: 400px;
}

.or {
  margin: 20px 0;
  font-weight: bold;
  color: #666;
}


/* Shake animation for invalid guess */
@keyframes shake {
  0% { transform: translateX(0px); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0px); }
}

.shake {
  animation: shake 0.3s;
}


#keyboard {
  margin-top: 10px;
  user-select: none;
}

.key-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  gap: 6px;
}

.key {
  color: black;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 10px;
  border: none;
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  min-width: 40px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
}

.key:hover {
  background-color: #d1d5db;
}


.key-green {
  background-color: #22c55e !important; /* same green as tiles */
  color: white !important;
}

.key-yellow {
  background-color: #eab308 !important; /* same yellow as tiles */
  color: white !important;
}

.key-red {
  background-color: red !important; /* same gray as tiles */
  color: white !important;
}

