* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: transparent;
}

body {
  position: fixed;
  inset: 0;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
}

.content {
  position: relative;
  text-align: center;
  padding: 1rem;
  z-index: 2;
  padding-top: env(safe-area-inset-top);
}

.bkgd {
  position: fixed;
  min-height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  padding-top: env(safe-area-inset-top);
  scroll-behavior: none;
  z-index: 0;
}

.bkgd::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 26, 26, 0.9);
  z-index: 1;
}

.chapter-logo {
  max-width: 600px;
  min-width: 400px;
  width: 50%;
  height: auto;
  margin-top: 10px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  opacity: 90%;
  user-select: none;
}

.logos-row {
  padding: 2rem 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logos-row img {
  height: 45px;
  width: auto;
  user-select: none;
}

.logos-row a:hover img {
  filter: brightness(0.5);
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.sponsor {
  padding: 1rem 1rem 2rem;
}

.social img {
  height: 30px;
}

.footer-sections {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  gap: 2rem;
}

footer {
  color: #b0b0b0;
  padding: 1.5rem 0;
  font-size: 0.7rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-title {
  color: white;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  user-select: none;
}

@media (max-width: 768px) {

  body, html {
    overflow-y: auto;
  }

  footer {
    padding: 2rem 0;
  }

  .footer-sections {
    gap: 3rem;
  }

  .chapter-logo {
    width: 30%;
    min-width: 300px;
  }

  .logos-row {
    padding: 1rem 1rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .logos-row img {
    height: 35px;
  }

  .social img {
    height: 25px;
  }

  .sponsor {
    padding: 1rem 1rem 2rem;
    flex-direction: column;
  }
}
