/* ========== GENERAL ========== */
/* Prevent horizontal scrollbars */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Courier New, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fab617;
  color: #004040;
}

/* ========== HEADER ========== */
header {
  background-color: #fab617;
  background-image: url("ants.gif");
  background-repeat: repeat-x;
  background-size: 200px auto; /* adjust for ant size */
  background-position: left center;
  height: 100px;

  display: flex;
  align-items: center;
  padding-left: 40px;
}

/* group for logo + portrait */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px; /* space between logo & portrait */
}

.logo {
  width: 110px;
  height: auto;
}

.nav-portrait {
  width: 100px;
  height: 100px;
  border: 2px dashed black;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== NAVIGATION ========== */
nav {
  position: relative;
  background-color: #00A693;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center; /* centers the links */
}

/* left group — anchored to the left edge */
.nav-left {
  position: absolute;
  left: 20px; /* push slightly from the edge */
  display: flex;
  align-items: center;
  gap: 0px;
}

/* portrait image */
.nav-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed black;
}

/* logo image */
.logo {
  width: 130px;
  height: auto;
}

/* link styling */
.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.8em;
}

/* ========== MAIN ========== */
main {
  padding: 2em;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* responsive grid */
  gap: 15px;
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;       /* force square shape */
  object-fit: cover;         /* zoom and fill the square */
  border: 3px solid #FBEC04;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
main {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.container {
  background-color: white;
  color: #004040;
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input, textarea, button {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #00A693;
  border-radius: 5px;
  font-family: inherit;
}

button {
  background-color: #00A693;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #007a6d;
}


/* ========== FOOTER ========== */
footer {
  background-color: #00A693;
  color: white;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 10px;              /* controls overall footer height */
  display: flex;             /* enables vertical centering */
  align-items: center;       /* centers text vertically */
  justify-content: center;   /* centers text horizontally */
  font-size: 0.9em;
}
/* ====== IMAGE POPUP ====== */
.popup {
  display: none;                /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8); /* dark background */
  justify-content: center;
  align-items: center;
}

.popup-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.popup .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background-color: #00A693;
  color: white;
  text-align: center;
  padding: 1em;
  width: 100%;
  position: static; /* <-- no longer fixed */
  margin-top: 40px; /* optional: adds spacing from content */
}

