/* General Body Styling */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1e2f, #45465f);
  color: #f5f5f5;
}

/* Responsive Container */
.container {
  text-align: center;
  max-width: 90%; /* Use percentages for mobile responsiveness */
  padding: 30px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Titles */
h1 {
  font-size: 2rem; /* Scaled down for mobile */
  margin-bottom: 15px;
  color: #ffd700;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f5f5f5;
}

/* Question Box */
#question-box {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(145deg, #3e3e50, #2b2b3e);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: #f1f1f1;
  word-wrap: break-word;
}

/* Generate Button */
#generate-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(145deg, #007bff, #0056b3);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

#generate-btn:hover {
  background: linear-gradient(145deg, #0056b3, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
}

/* History Section */
#history {
  margin-top: 20px;
}

.history-title {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #f5f5f5;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.history-description {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 10px;
}

/* History List */
#history-list {
  list-style: none;
  padding: 0;
  max-height: 150px; /* Smaller for mobile */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #333344;
  font-size: 0.9rem;
}

#history-list::-webkit-scrollbar {
  width: 6px;
}

#history-list::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

#history-list li {
  margin: 5px 0;
  padding: 8px;
  background: linear-gradient(145deg, #45465f, #3e3e50);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: #f1f1f1;
  transition: transform 0.2s ease;
}

#history-list li:hover {
  transform: translateX(5px);
  background: linear-gradient(145deg, #505064, #3e3e50);
}

/* Footer */
.footer-text {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #bbb;
}

.footer-link {
  color: #ffd700;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  #question-box {
    font-size: 0.9rem;
    padding: 10px;
  }

  #generate-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  #history-list {
    max-height: 120px;
  }
}
