/* ===== General Page Layout ===== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e3f2f9, #ffffff);
  text-align: center; /* Ensures all text is center-aligned by default */
}

/* ===== Header ===== */
header {
  background: #3f87a6;
  color: white;
  padding: 20px 0;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  letter-spacing: 1px;
}

/* ===== Footer ===== */
footer {
  background: #3f87a6;
  color: white;
  padding: 15px 0;
  font-size: 1rem;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 -3px 8px rgba(0,0,0,0.1);
}

/* Links inside Footer */
footer a {
  color: #f9d65c;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.2s;
}

footer a:hover {
  color: #fcd77f;
  text-decoration: underline;
}

/* ===== Query Page Styles ===== */

/* Page Container */
.queryContainer {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

/* Page Title */
.queryTitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #3f87a6;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Query Form */
.queryForm {
  margin-top: 20px;
}

/* Dropdown */
.queryForm select {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9fb;
  transition: 0.2s;
}

.queryForm select:focus {
  border-color: #3f87a6;
  outline: none;
  box-shadow: 0 0 6px rgba(63,135,166,0.4);
}

/* Submit Button */
.queryForm input[type="submit"] {
  margin-left: 10px;
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #3f87a6;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.queryForm input[type="submit"]:hover {
  background: #2d6b83;
  transform: scale(1.05);
}

/* Home Link */
.queryHomeLink {
  display: inline-block;
  margin: 20px 0;
  font-size: 1.1rem;
  color: #3f87a6;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.queryHomeLink:hover {
  color: #f69d3c;
  text-decoration: underline;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
