/* style.css*/

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

#game-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none;
}

h1 {
  color: #333;
}

#boss {
  font-size: 20px;
  margin: 20px 0;
}

#boss img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.health-bar {
  position: relative;
  width: 100%;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.health-bar-fill {
  height: 100%;
  background: #e74c3c;
  width: 100%;
  transition: width 0.3s ease;
}

.task-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.task-item {
  flex: 1 1 calc(33.333% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}

.task-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

#task-details {
  margin-top: 20px;
  padding: 10px;
  background-color: #e9f7ef;
  border: 1px solid #ccc;
  border-radius: 10px;
}

#task-details h3 {
  margin-top: 0;
  color: #27ae60;
}

#task-info {
  margin-top: 10px;
}

#task-description,
#task-damage {
  margin: 5px 0;
  font-size: 14px;
}

.task-item .tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: #e9f7ef;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  color: #333;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  white-space: nowrap;
}

.task-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 600px) {
  .task-images {
    flex-direction: column;
    align-items: center;
  }

  .task-item {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

#victory-screen {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#victory-screen h2 {
  color: #27ae60;
}

#victory-screen button {
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#victory-screen button:hover {
  background-color: #219150;
}