* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}

.game-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.color-box {
  width: 70%;
  height: 150px;
  margin: 10px auto;
  border: 2px solid #333;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.color-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
  width: 90%;
  margin: 0 auto;
}

.color-option {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-option:hover {
  transform: scale(1.05);
}

.new-game-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.new-game-button:hover {
  background-color: #45a049;
}

.game-status {
  margin: 15px 0;
  font-weight: bold;
}

.lives-container {
  margin: 15px 0;
  font-size: 24px;
  text-align: center;
}

.lives {
  display: inline-block;
  letter-spacing: 5px;
}

.color-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.hint-button {
  margin-right: 10px;
  padding: 8px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.hint-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.hint-count {
  font-weight: bold;
}

.help-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.help-button {
  margin-right: 10px;
  padding: 8px 15px;
  background-color: #4CAF50;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.help-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.help-count {
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
  .game-container {
    margin: 10px;
    padding: 10px;
  }

  h1{
    font-size: 1.5rem;
  }

  .game-instructions{
    font-size: 0.8rem;
  }

  .color-box {
    width: 60%;
  }

  .color-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
