/* Header menu */
.header {
  background-image: url('images/8.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2%;
  justify-content: center;
  flex-wrap: nowrap; /* keep items in one row */
  margin: 0;
  padding: 0;
  width: 100%;
}

.menu li {
  flex: 1 1 auto; /* distribute space evenly */
  text-align: center;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  display: block;
  white-space: nowrap; /* prevent wrapping inside items */
  font-size: clamp(0.6rem, 1.5vw, 1rem); /* scales with screen */
}


/* Page base style */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Monument', sans-serif;
  background-image: url('images/8.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* Flex layout for alternating image and text */
.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  flex-wrap: nowrap;
}

.flex-container.reverse {
  flex-direction: row-reverse;
}

.flex-container img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 0px;
  object-fit: cover;
}

.text-content {
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 1.5rem;
  border-radius: 0px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-content h2 {
  margin-top: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .flex-container,
  .flex-container.reverse {
    flex-direction: column;
    text-align: center;
  }

  .text-content {
    padding: 1rem;
  }
}

@font-face {
  font-family: 'RedHatItalic';
  src: url('fonts/RedHatText-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Monument';
  src: url('fonts/MonumentExtended-Regular.otf') format('opentype');
}
