* {
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  margin: 0;
  border: 0;
  padding: 0;
  background-color: #fff;
}

main {
  margin: auto;
  padding: 20px;
  padding-top: 3em;
}

.header {
    background: #111 url('/images/MainGraphics3.png') 0% 50%/contain no-repeat;
    color: #fff;
    margin: 0 0 1em 0;
    width: 100vw;
    height: 250px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    text-shadow: 0 2px 8px #000, 0 0 2px #222;
    border-top: 1em solid #111;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 2em;
    justify-content: center;
}

.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
  height: 3em;
  background-color: #111;
  margin: 0;
  padding: 0 0 0 2em;
  display: flex;
  flex-direction: row;
  gap: 2em;
  list-style: none;
  align-items: center;
}

.menu li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1em;
  white-space: nowrap;
}

.menu a[style*="gray"] {
  color: gray !important;
}

body {
  padding-top: 0;
  margin: 0;
  overflow-x: hidden;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

    .hamburger.active span:nth-child(1) {
        transform: translate(0px, 8px) rotate(45deg);
    }

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

    .hamburger.active span:nth-child(3) {
        transform: translate(0px, -8px) rotate(-45deg);
    }

/* Mobile Menu */
@media (max-width: 700px) {
    .hamburger {
        display: flex;
        margin-left: auto;
        padding-left: 20px;
        padding-top: 20px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 3;
        height: 3em;
        background: #111;
        list-style: none;
        align-items: flex-start;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        height: auto;
        max-height: 0;
        overflow: hidden;
        padding: 0; 
        transition: max-height 0.3s ease-out;
        position: absolute;
        top: 3em;
        left: 0;
        width: 100%;
        align-items: flex-start;
        padding-left: 2em;
        background: linear-gradient(180deg, #111 0%, #404040 100%);
    }

  .menu.active {
    max-height: 500px;
    padding-top: 1em;
    padding-bottom: 1em;
    transition: max-height 0.3s ease-in;
  }

  .menu li {
    padding: 0.5em 0;
    width: 100%;
  }

  .menu a {
    font-size: 1em;
  }

  main {
    padding-top: 3em;
  }
}

