/* vars */
:root {
  --bg-odd: #2a303c;
  --bg-even: white;
  --fg-odd: white;
  --fg-odd-secondary: #e7b45a;
  --fg-even: black;
  --max-content-width: 1200px;
}

html {
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background-color: var(--bg-odd);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1 {
  text-align: center;
}

#nav-div {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  nav {
    width: 100%;
    max-width: var(--max-content-width);
    display: flex;
    flex-direction: row;
    align-items: center;
    a {
      display: block;
      padding: 0.5rem 1rem;
      text-decoration: none;
      color: var(--fg-odd);
      transition: color 0.3s ease;
      &:hover {
        color: var(--fg-odd-secondary);
      }
    }
    #nav-logo {
      width: 100%;
      display: flex;
      align-items: center;
      a {
        display: flex;
        align-items: center;
        img {
          max-height: 3rem;
        }
        span {
          padding: 1rem 1rem;
          font-weight: bold;
        }
      }
    }
    #nav-menu {
      width: 100%;
      display: flex;
      justify-content: flex-end;
      flex-direction: row;
      /* hide the button on big screens */
      button {
        display: none;
        }
      }
      #nav-items {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        list-style: none;
        width: auto;
        .nav-item {
          flex-shrink: 0;
          white-space: nowrap;
        }
      }
    }
  }
}

.divider {
  background-color: gray;
  height: 1px;
  width: 50%;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  padding: 1rem 5%;
}
.light-row {
  background-color: var(--bg-even);
  color: var(--fg-even);
}
.dark-row {
  background-color: var(--bg-odd);
  color: var(--fg-odd);
}
.button {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  /* Smooth transitions */
  transition: all 0.2s ease-in-out;
  /* Prevent text selection */
  user-select: none;
}
.green-button {
  padding: 6px 24px;
  font-size: 16px;
  background-color: #568757;
  color: white;
}

.green-button:hover {
  background-color: #3d5548;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 83, 69, 0.3);
}

.green-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(11, 83, 69, 0.3);
}

.green-button:focus {
  outline: 2px solid #e7b45a;
  outline-offset: 2px;
}

.blue-button {
  background-color: #0000ff;
  color: white;
}

.blue-button:hover {
  background-color: black;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 83, 69, 0.3);
}

.blue-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(11, 83, 69, 0.3);
}

.blue-button:focus {
  outline: 2px solid #e7b45a;
  outline-offset: 2px;
}

.red-button {
  background-color: #ff0000;
  color: white;
}

.red-button:hover {
  background-color: black;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 83, 69, 0.3);
}

.red-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(11, 83, 69, 0.3);
}

.red-button:focus {
  outline: 2px solid #e7b45a;
  outline-offset: 2px;
}

#about-us {
  width: 100%;
  max-width: var(--max-content-width);
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "header logo"
    "mu-link logo"
    "au-text au-text";
  #title {
    grid-area: header;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
  img {
    grid-area: logo;
    justify-self: center;
  }
  #meetup-button {
    grid-area: mu-link;
    justify-self: center;
    align-self: start;
  }
  #about-us-text {
    grid-area: au-text;
    padding: 1rem;
  }
}

#socials,
#meetups {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#social-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

#support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#support-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#help-out {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-content-width);
}

#copyright {
  display: flex;
  text-align: center;
  max-width: var(--max-content-width);
}

#toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

@media (max-width: 950px) {
  #nav-div{
    nav {
      #nav-menu {
        button {
          background: transparent;
          border: none;
          outline: none;
          display: inline;
          color: var(--fg-odd);
        }
        button:hover {
          color: var(--fg-odd-secondary);
        }
        #nav-items {
          display: none;
          flex-direction: column;
          justify-content: space-between;
          align-items: center;
          gap: 1rem;
          list-style: none;
          width: auto;
        }
        .nav-item {
          text-align: center;
          flex-shrink: 0;
          white-space: nowrap;
          display: block;
          width: 100%;
        }
        #nav-item:hover a {
          color: var(--fg-odd-secondary);
          background-color: red;
        }

        #nav-items.active {
          box-sizing: border-box;
          padding: 5%;
          margin: 0;
          display: flex;
          background-color: rgba(0, 0, 0, 0.8);;
          position: absolute;
          width: 100vw;
          top: 100%;
          left:0;
        }
      }
    }
  }
}
@media (max-width: 768px) {
  #nav-div{
    nav {
      #nav-menu {
        button {
          background: transparent;
          border: none;
          outline: none;
          display: inline;
          color: var(--fg-odd);
        }
        button:hover {
          color: var(--fg-odd-secondary);
        }
        #nav-items {
          display: none;
          flex-direction: column;
          justify-content: space-between;
          align-items: center;
          gap: 1rem;
          list-style: none;
          width: auto;
        }
        .nav-item {
          text-align: center;
          flex-shrink: 0;
          white-space: nowrap;
          display: block;
          width: 100%;
        }
        #nav-item > a:hover {
          color: var(--fg-odd-secondary);
        }

        #nav-items.active {
          box-sizing: border-box;
          padding: 5%;
          margin: 0;
          display: flex;
          background-color: rgba(0, 0, 0, 0.8);;
          position: absolute;
          width: 100vw;
          top: 100%;
          left:0;
        }
      }
    }
  }
}
@media (max-width: 520px) {
  #about-us {
    width: 100%;
    max-width: var(--max-content-width);
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "header"
      "mu-link"
      "au-text";
    #title {
      grid-area: header;
      justify-self: center;
      align-self: center;
      text-align: center;
    }
    img {
      grid-area: logo;
      justify-self: center;
    }
    #meetup-button {
      grid-area: mu-link;
      justify-self: center;
      align-self: start;
    }
    #about-us-text {
      grid-area: au-text;
      padding: 1rem;
    }
  }
}
