body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  background-image: subtle-noise.png;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
  text-align: center;
}

header h1 {
  color: #1a237e;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.custom-file-upload {
  border: 2px dashed #1a237e;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #1a237e;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-file-upload:hover {
  background-color: #e8eaf6;
  border-style: solid;
}

.custom-file-upload .icon {
  font-size: 1.5rem;
}

#generate-button {
  background-color: #3f51b5;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.4);
}

#generate-button:hover {
  background-color: #303f9f;
}

#processing-section.hidden, #result-section.hidden {
  display: none;
}

#processing-section {
  margin-top: 30px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3f51b5;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#processing-section p {
  color: #333;
  font-size: 1.2rem;
}

#processing-section .subtitle {
  color: #777;
  font-size: 1rem;
}

#result-section {
  margin-top: 30px;
}

#presentation-output {
  border: 1px solid #ddd;
  background-color: #fafafa;
  padding: 20px;
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.download-buttons button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.download-buttons button:hover {
  background-color: #45a049;
}

.download-buttons #download-pdf {
    background-color: #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.download-buttons #download-pdf:hover {
    background-color: #d32f2f;
}

/* Contact Section */
#contact-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

#contact-section h2 {
  color: #1a237e;
  font-size: 2rem;
  margin-bottom: 15px;
}

#contact-section p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
}

#contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box; /* Ensures padding doesn't increase total width */
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #3f51b5;
  outline: none;
}

#contact-section button[type="submit"] {
  background-color: #007bff; /* A nice blue for submit */
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  align-self: flex-end; /* Align button to the right within the form */
  margin-top: 10px;
}

#contact-section button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Disqus Comments Section */
#disqus_thread_section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  text-align: center;
}

#disqus_thread_section h2 {
  color: #1a237e;
  font-size: 2rem;
  margin-bottom: 25px;
}
