body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.title-container {
  text-align: center;
  padding: 24px 16px 16px;
}

.title {
  margin: 0;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #222;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #777;
  letter-spacing: 0.05em;
}

.game {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.historicalGuess {
  display: flex;
  align-items: center;
}

.historicalGuessColor {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-right: 4px;
  transition: background-color 0.3s ease;
  display: flex;
}

.hex-input {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hex-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.hex {
  width: 50px;
  text-align: center;
  font-size: 1.2rem;
  padding: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.hex-btn {
  width: 100%;
  border: none;
  background: #eee;
  font-size: 12px;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
}

.hex-btn:active {
  background: #ddd;
}

.error {
  color: #b00020;
  background-color: #ffe6e6;
  border: 1px solid #ffb3b3;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 10px;
}

.hidden {
  display: none;
}

.instruction {
  font-size: 0.6em;
}

#guessThisColor {
  width: 100%;
  height: 100px;
  background-color: #bbb;
  border-radius: 12px 12px 0px 0px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #777;
}

#guessColor {
  width: 100%;
  height: 100px;
  margin-bottom: 16px;
  border-radius: 0px 0px 12px 12px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: black;
}

#guessHistory {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
} 

#score {
  font-size: 0.8em;
}

#hint {
  font-size: 0.8em;
}