body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url("images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

.container {
  background-color: rgba(0, 0, 0, 0.7);
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.logo img {
  width: 200px;
  margin-bottom: 45px;
}

.input-box {
  position: relative;
}

#guess-input {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  border-radius: 5px;
  border: none;
}

#suggestions {
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  background: white;
  color: black;
  z-index: 10;
  border-radius: 0 0 5px 5px;
  max-height: 200px;
  overflow-y: auto;
}

#suggestions div {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #eee;
}

#suggestions img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 5px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.card {
  padding: 10px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
}

.green {
  background-color: #2ecc71;
}

.yellow {
  background-color: #f1c40f;
}

.red {
  background-color: #e74c3c;
}

.arrow {
  opacity: 0.5;
  font-size: 14px;
  margin-left: 4px;
}

.guess-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}


.result-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 30px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  color: #f1f1f1;
}

.result-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.card {
  padding: 10px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card.animated {
  opacity: 0;
  animation: fadeInUp 0.3s ease forwards;
}
