* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}
/* Install prompt */
.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4dabf7;
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  font-size: 18px;
  cursor: pointer;
}

.install-prompt.show {
  display: block;
}
body {
  background: linear-gradient(135deg, #e0f7fa 0%, #bbdefb 100%);
  color: #333;
  min-height: 100vh;
  padding: 20px;
}

.container {
  display: flex;
  height: calc(100vh - 40px);
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.search-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box {
  width: 100%;
  padding: 20px;
  font-size: 48px;
  border: 4px solid #4dabf7;
  border-radius: 25px;
  outline: none;
  background-color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #1976d2;
}

.search-box::placeholder {
  color: #90caf9;
  font-size: 36px;
}

.search-history {
  flex: 1;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  border: 3px solid #4dabf7;
}

.search-history h2 {
  color: #4dabf7;
  margin-bottom: 15px;
  font-size: 28px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.history-item {
  padding: 15px;
  margin-bottom: 12px;
  background: linear-gradient(to right, #e3f2fd, #bbdefb);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  border: 2px solid #90caf9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-item:hover {
  background: linear-gradient(to right, #bbdefb, #90caf9);
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.history-item::before {
  content: "🔍";
  font-size: 24px;
}

.display-section {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-display {
  flex: 1;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 3px solid #4dabf7;
}

.image-display img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-info {
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border: 3px solid #4dabf7;
}

.image-info h3 {
  color: #4dabf7;
  margin-bottom: 10px;
  font-size: 26px;
}

#infoText {
  font-size: 20px;
  line-height: 1.5;
}

.loading {
  font-size: 32px;
  color: #4dabf7;
  text-align: center;
  padding: 20px;
}

.error {
  color: #ff6b6b;
  text-align: center;
  font-size: 24px;
  padding: 20px;
}

.family-badge {
  display: inline-block;
  background: #4dabf7;
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 16px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .search-box {
    font-size: 36px;
    padding: 15px;
  }

  .search-box::placeholder {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .search-box {
    font-size: 32px;
    padding: 15px;
  }

  .container {
    display: flex;
    flex-direction: column;
  }

  .search-section {
    order: 1;
  }

  .display-section {
    order: 2;
  }

  .search-history {
    order: 3;
    margin-top: 20px;
  }
}
