@charset "utf-8";
/* Reset + sensible defaults 
* { box-sizing: border-box; }*/
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* MAIN area */
.main {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

/* Header Block */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  z-index: 9000;
  padding: 6px;
  overflow: hidden;
  
}


/* Header Image sizes */
.crest {
  padding: 10px;
  height: 200px; /* you can reduce for smaller header*/
}
.crest:hover + .hide {
    display: block;
    padding:10px;
    color: rgb(217,10,10 );
}
.ribbon {
  padding: 20px;
  width: 400px;
  /*max-width: 40vw;*/
}

/* tooltip-like hidden text */
.hide {
  display: none;
  padding: 10px;
}

.ribbon:hover + .hide {
  display: block;
  padding:10px;
  color: rgb(217,165,200 );
}

/* NAVIGATION: center the links horizontally */
.nav {
  position: sticky;
  background: white;
  width: 100%;
  display: flex;
  justify-content: center;   /* center the .links block */
  align-items: center;
  margin: 0;             /* spacing above/below nav */
  z-index: 8500;
  /* if header overlaps nav visually, increase z-index here or add top margin to .nav */
}

/* .links is the horizontal row of anchors */
.links {
  display: flex;
  gap: 24px;            /* modern spacing between links */
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  /* don't give .links a fixed width so it centers naturally */
}

/* Anchor styling */
.links a {
  color: #666666;
  text-decoration: none;
  font-size: 1em;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color .15s, color .15s;
}

.links a:hover {
  background-color: #ddd;
  color: #000;
}

/* Cream background for content */
.cream-background {
  background-color: rgba(250,241,228,.80);
  width: 100%;
  padding: 20px;
  font-family: 'Cinzel', serif;
}

/* Footer */
.footer {
  width: 100%;
  background: #CEDEBD;
  text-align: center;
  border-top: 2px solid #9EB384;
  padding: 20px;
}
/* custom font */
@font-face {
  font-family: Cinzel;
  src: url('/fonts/Cinzel-Regular.ttf');
}



/* =======================
   MOBILE OPTIMIZATION
   ======================= */
@media screen and (max-width: 700px) {

  /* HEADER */
  #header {
    padding: 8px 0;
    overflow: hidden;
  }

  #inner-wrapper {
    display: flex;
    flex-direction: column;      /* stack crest + ribbon */
    align-items: center;
    transform-origin: top center !important;
    gap: 10px;
  }

  .crest {
    height: 200px;               /* reduced from 200px */
    padding: 5px;
  }

  .ribbon {
    width: 200px;                /* reduced width */
    padding: 5px;
  }

  .hide {
    font-size: 1.8em;
    text-align: center;
    width: 90%;
  }

  /* NAVIGATION */
  .nav {
    width: 100%;
    background-color: white;
    padding: 6px 0;
    border-bottom: 1px solid #ccc;
  }

  .links {
    flex-wrap: wrap;             /* allow multi-row neatly */
    gap: 14px;
    justify-content: center;
  }

  .links a {
    font-size: 2em;
    padding: 5px 8px;
    letter-spacing: 1px;
  }

  /* CONTENT BODY */
  .cream-background {
    padding: 12px;
    font-size: 1.95em;
  }

  /* FOOTER */
  .footer {
    padding: 15px;
    font-size: 1.95em;
  }

}
