/* ---------- Font ---------- */
@font-face {
  font-family: 'MyFont';
  src: url('../fonts/MyFonts/hemihead.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---------- Global Styles ---------- */
body {
  font-family: Arial, sans-serif; /* fallback for body text */
  margin: 0;
  padding: 0;
  color: #333;
  position: relative;
  background-color: #f9f9f9; /* default plain background for pages without image */
}

/* ---------- Back Button ---------- */
.back-button {
  position: fixed;
  top: 80px;
  left: 10px;
  background: #fdfeff;
  color: #0073e6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1000; /* sits above everything else */
}

.back-button:hover {
  background: #001fcc;
}

/* ---------- Button Page Background (index.html only) ---------- */
body.index-page {
  background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
              url('../images/bg.jpg') no-repeat center center fixed;
  background-size: 35% auto;       /* adjust width %; height auto to keep aspect ratio */
  background-position: center 115px; /* moves it 100px down from the top */
  background-attachment: fixed; /* keeps it fixed while scrolling */
}

/* ---------- Header ---------- */
header {
  background-color: #0078D7;
  color: white;
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1; /* ensures header is above overlay */
}

header h1, header h2 {
  font-family: 'MyFont', sans-serif;
  margin: 0;
}

header h1 {
  font-size: 2rem;
}

header h2 {
  font-size: 1.2rem;
  color: #cce0ff; /* lighter subtitle */
}

/* ---------- Main / Form List ---------- */
main#form-list {
  display: flex;
  flex-direction: column; /* stack buttons by default */
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1; /* ensures buttons sit above overlay */
  gap: 10px; /* spacing between buttons */
}

/* ---------- Responsive: two columns on larger screens ---------- */
@media (min-width: 768px) {
  main#form-list {
    flex-direction: row;       /* align buttons in a row */
    flex-wrap: wrap;           /* allow wrapping to next line */
    justify-content: center;   /* center buttons horizontally */
  }

  main#form-list .form-item {
    width: 45%;                /* two buttons per row */
    margin: 5px;               /* small margin for spacing */
  }
}


/* ---------- Buttons ---------- */
button.form-item {
  font-family: 'MyFont', sans-serif;
  font-size: 1rem;
  padding: 12px 25px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background-color: #0073e6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.1s ease;
  display: block;
  width: 200px; /* optional fixed width for uniform buttons */
}

button.form-item:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}

/* ---------- Links inside buttons (for email or other links) ---------- */
a button.form-item {
  display: inline-block;
  text-align: center;
}

/* ---------- Info Page / Content Styling ---------- */
main {
  padding: 1rem;       /* Adds space around the text */
  max-width: 900px;    /* Prevents text from stretching too wide */
  margin: 0 auto;      /* Centers the content */
  line-height: 1.6;    /* Makes text easier to read */
  position: relative;
  z-index: 1; /* ensures text is above overlay if any */
}

h3, h4 {
  margin-top: 1.5rem;  /* Adds space above headings */
  color: #0078D7;      /* Matches your header blue */
}

#top-right-info {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 100;
}

/* ---------- Top Right Time & Weather ---------- */
#top-right-info {
  position: fixed;
  top: 80px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8); /* slight transparency so it doesn’t block content */
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #0078D7;
  z-index: 1000; /* stays on top */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hide top-right info on small screens */
@media (max-width: 768px) {
  #top-right-info {
    display: none;
  }
}
