/* ---------- 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: #f9f9fc; /* 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 */
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #29cc00;
}

/* ---------- Button Page Background (index.html only) ---------- */
body.index-page {
  background: linear-gradient(rgba(243, 240, 240, 0), rgba(5, 5, 230, 0.048)),
              url('../images/bg.png') no-repeat center center fixed;
  background-size: 50% auto;
  background-position: center 60px;
  background-attachment: fixed;
}

/* ---------- Header ---------- */
header {
  background-color: #df080800;
  color: rgb(19, 16, 241);
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

header h1, header h2 {
  font-family: 'MyFont', sans-serif;
  margin: 0;
}

header h1 {
  font-size: 2rem;
}

header h2 {
  font-size: 1.2rem;
  color: #1133f7;
}

/* ---------- Main / Form List ---------- */
main#form-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
button.form-item {
  font-family: 'MyFont', sans-serif;
  font-size: 1.25rem;
  padding: 12px 25px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background-color: #61ff39;
  color: #000105;
  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: 150px;
}

button.form-item:hover {
  background-color: #1404fd;
  transform: translateY(-2px);
}

a button.form-item {
  display: inline-block;
  text-align: center;
}

/* ---------- Info Page / Content Styling ---------- */
main {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

h3, h4 {
  margin-top: 1.5rem;
  color: #0078D7;
}

/* ---------- Top Right Time & Weather ---------- */
#top-right-info {
  position: fixed;
  top: 80px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #0078D7;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  #top-right-info {
    display: none;
  }
}

/* ---------- About Me Section ---------- */
.about {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fdfeff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.about h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #0078D7;
  background: linear-gradient(90deg, #0078D7, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.about h2:hover {
  letter-spacing: 1px;
}

.about h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #005fa3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #0078D7;
  padding-bottom: 3px;
}

.about ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.about li {
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.about li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0078D7;
}

.about li:hover {
  color: #00aaff;
  transform: translateX(5px);
}

.about p {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  background-color: #f4f6fb;
  font-size: 1rem;
}

.about p + ul,
.about ul + p {
  margin-top: 1rem;
}

/* ---------- Fade-in Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
