/* Default Styles across each page. Editing here will affect all pages. Individual page CSS's can be found in the CSS folder.  */

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

html {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  scroll-behavior: smooth;
}

/* Default Button Styling  */

button {
    border-radius: 10px;
    background-color: darkblue;
    color: whitesmoke;
    padding: 10px 20px;
    border: 0;
    font-weight: bold;
}

button:hover {
    font-weight: bolder;
    background-color: rgb(0, 0, 88);
    box-shadow: 1px 1px 5px 0 rgba(63, 0, 0, 0.6);
}

button:active {
    text-decoration: underline;
}

/* Default Text Coloring */
h1,h2,h3,h4,h5,h6,p {
  color:#f3f3f3
}

/* Default Header/Nav Bar Styling */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: #232323;
    border-bottom: 1px solid #232323;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

header ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 0;
    padding: 0;
}

header li {
    list-style: none;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

header a {
    text-decoration: none;
    color: #f3f3f3;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

header a:hover,
header a:focus-visible {
    background-color: #232323;
    outline: none;
}

/* Hamburger (hidden on desktop) */
#nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 6px;
    user-select: none;
}

.nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f3f3f3;
    margin: 5px 0;
    transition: transform 0.2s ease;
    transform-origin: center;
}

/* Animate hamburger into an 'x' when menu is open */
#nav-toggle:checked+.nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

#nav-toggle:checked+.nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked+.nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

@media screen and (max-width: 760px) {
  nav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #343434;
    border-bottom: 1px solid #232323;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    display: none;
  }

  header ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  header li a {
    display: block;
    padding: 14px 24px;
    border-radius: 0;
  }

  .nav-toggle-label {
    display: block;
  }

  /* Show nav when checkbox checked */
  #nav-toggle:checked+label+nav {
    display: block;
  }
}

.main-content {
  position: relative;
  top: 72px;
  /* Offset for sticky header */
  padding-bottom: 4rem;
}

/* Footer Styling */

footer {
    display: block;
    width: 100%;
    padding: 2rem 24px;
    background: #232323;
    border-top: 1px solid #232323;
    box-sizing: border-box;
}