/* General Styles */
body {
  font-family: 'lora', sans-serif;
  background: url('/theme/image/background.svg') no-repeat center center fixed;
  background-size: cover;
  background-color: #f0f3fb;
  color: #274c77;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-top: 70px;
}

.container {
  background: transparent; 
  padding: 20px;
  border-radius: 10px;
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto;
  text-align: center;
}

h1, h2, h3 {
  color: #274c77;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

textarea {
  font-family: 'Arial', sans-serif;
  width: 90%;
  padding: 10px;
  background: white;
  font-size: 1rem;
  border: 2px solid #6096ba;
  border-radius: 5px;
  resize: vertical;
  height: 300px;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #a3cef1;
  outline: none;
}

#errorMessage {
  color: #ff0000;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

#proceedButton {
 font-family: 'Arial', sans-serif;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #6096ba;
  color: #ffffff;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

#proceedButton:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

#proceedButton:hover:not(:disabled) {
  background: #4a7a9a;
  transform: scale(1.05);
}

#progressBarContainer {
  width: 100%;
  background: #f1f1f1;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: none;
}

#progressBar {
  width: 0;
  height: 10px;
  background: #a3cef1;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.hidden {
  display: none;
}

#outputContainer {
  margin-top: 1.5rem;
}

#englishOutput {
  font-family: 'Arial', sans-serif;
  background: #f9f9f9;
  padding: 1rem;
  border: 2px dashed #6096ba;
  border-radius: 5px;
  font-size: 1.2rem;
  word-wrap: break-word;
  color: #274c77;
}

.buttons {
  margin-top: 1.5rem;
}

button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background: #6096ba;
  color: #ffffff;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #4a7a9a;
  transform: scale(1.05);
}

/* Explanation Section */
.explanation, .how-to-use, .benefits, .applications, .cards, .faqs {
  margin-top: 3rem;
  text-align: left;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.card {
  font-family: 'Arial', sans-serif;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 2rem);
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.faqs .faq {
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 480px) {
    .body {
        padding-top: 50px;
    }
  .card {
    flex: 1 1 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}