
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Libre Baskerville', serif;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f7f7f7;
}

.main {
  position: relative;
  min-height: 100vh;
  background: url('images/background-floor.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Position content overlay roughly top third by default */
.content-overlay {
  position: absolute;
  top: 22%; /* roughly top third */
  left: 50%;
  transform: translateX(-50%); /* keep centered horizontally on mobile */
  z-index: 2;
  max-width: 90%;
  padding: 1rem;
  text-align: center;
}

.content-overlay h1,
.content-overlay h2,
.content-overlay h3,
.content-overlay a {
  display: flex;
  flex-direction: column; /* stack text lines */
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  text-align: center;

  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.content-overlay h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 4rem;
}

.content-overlay h2 {

  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  margin-bottom: 1rem;
}

.content-overlay h3,
.content-overlay a {

  font-family: 'Raleway', sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  text-decoration: none;
}

.vertical-spacer {
  height: 20px;
  width: 100%;
}

footer {
  text-align: center;
  padding: 1.2rem 0;
  background-color: #111;
  color: #eee;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

/* ---------- Shift left on larger screens without changing vertical position ---------- */
@media (min-width: 900px) {
  .content-overlay {
    left: 20%;           /* shift left */
    transform: none;     /* no horizontal centering */
    text-align: left;    /* left-align text */
    max-width: 45%;      /* narrower text block */
  }
}
