A {color:#000000; text-decoration:underline; }
A:hover {color:#000000; text-decoration:none; }

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

p {
  margin-bottom: 1.5em;     /* space between paragraphs */
  margin-top: 0;
}

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: #333;
  background: #f8f5f0;
}

.logo {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
}

.heading {
  font-size: 1.4rem;
  font-variant:small-caps;
  letter-spacing: 2px;
  font-weight:bold; }

.heading2 {
  font-size: 1.2rem;
  font-variant:small-caps;
  letter-spacing: 2px;
  font-weight:bold; }

.small {
  font-variant:small-caps;
  font-size:1.3rem; }

.small2 {
  font-variant:small-caps;
  font-size:1rem; }

hr {
  width:40%;
  color:#2c2c2c;
  align:center;
  margin-top:25px;
  margin-bottom:25px;
  margin-left:auto;
  margin-right:auto;
  border-style:inset;
   }

/* ==================== GRID ==================== */
.container {
  display: grid;
  grid-template-areas:
    "header header"
    "mav nav"
    "main main"
    "footer footer";
  grid-template-rows: 100px auto 1fr 40px;
  min-height: 100vh;
  gap: 0;
}
header { grid-area: header; }
nav    { grid-area: nav; }
main   { grid-area: main; }
footer { grid-area: footer; }

/* ==================== ROWS ==================== */

header {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), #f8f5f0;
  color: white;
  display: flex;
  align-items: center;
  justify-content:flex-end;
  padding: 0 30px;
  position: fixed;
  overflow: hidden;
  top:0;
  left:0;
  width:100%;
  height:100px;
  z-index:3;
}

nav {
  background: #2c2c2c;
  padding: 6px 0;
  display: flex;
  justify-content: center;
  gap: 35px;
  font-variant: small-caps;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color:#FFFFFF;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position:fixed;
  top:100px;
  left:0;
  width:100%;
  z-index:3;
}

nav a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s;
}

nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 200, 100, 0.6);
}

main {
  background: #f8f5f0;
  padding: 50px 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(0,0,0,0);
  padding-top:85px;
}

main::before {
  content: '';
  position: fixed;                    /* Changed to fixed */
  top: 140px;                         /* Adjust based on your header + nav height */
  left: 0;
  width: 568px;
  height: 336px;                      /* image height or use 100vh */
  background: url('images/wyvern.png') no-repeat left top;
  background-size: auto;
  z-index: -1;
  pointer-events: none;
}

footer {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), #f8f5f0;
  color: white;
  display: flex;
  align-items: center;
  justify-content:flex-end;
  padding: 0 30px;
  position: fixed;
  overflow: hidden;
  bottom:0;
  left:0;
  width:100%;
  height:40px;
  z-index:3;
}

/* ==================== HEADER ==================== */
header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 25px;
  gap: 20px;
}

/* ==================== HAMBURGER ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 1;
  }

  .logo {
    order: 2;
    margin: 0;
  }

  header {
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    background: #2c2c2c;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 0;
    gap: 0;               /* Remove any flex gap */
  }

  nav.open {
    max-height: 420px;
  }

  /* Aggressive reset for ALL links */
  #nav a {
    margin: 0;
    padding: 10px 30px !important;  /* padding for hamburger links */
    line-height: 1.3;
    font-size: 1.1rem;
    color: #ddd !important;
    text-align: center !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100% !important;
    display: block !important;
    transition: all 0.3s;
  }

  #nav a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 200, 100, 0.6);
  }

  #nav a:last-child {
    border-bottom: none !important;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}