@import url("https://fonts.googleapis.com/css2?family=MuseoModerno:ital,wght@0,100..900;1,100..900&family=Zilla+Slab+Highlight:wght@400;700&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

html,
body {
  margin: 0px;
  font-family: Zilla Slab;
  font-size: 1.5vw;
  line-height: 3vh;
}

::selection {
  background-color: #004225;
  color: white;
}

header {
  background-color: #dac8ae;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  background-color: #dac8ae;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header nav.nav-left {
  justify-content: flex-end;
  padding-right: 2rem;
}

header nav.nav-right {
  justify-content: flex-start;
  padding-left: 2rem;
}

header nav a {
  font-family: Zilla Slab;
  font-weight: 600;
  text-decoration: none;
  color: #3a2a1a;
  font-size: 1.2vw;
}

header nav a:hover {
  text-decoration: underline;
}

h1 {
  font-family: Zilla Slab Highlight;
  font-size: 2.8vw;
}

h2 {
  font-family: Zilla Slab Highlight;
}

.hero {
  width: 100%;
  height: 60vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(/img/CF_BIRMINGHAM_0072.JPG);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 5px;
}

.hero h1 {
  font-family: Zilla Slab Highlight;
  color: white;
  font-size: 6vw;
}

.hero h2 {
  font-family: Zilla Slab;
  color: white;
  font-size: 2.5vw;
}

.hero h3 {
  font-family: Zilla Slab;
  color: white;
  font-size: 2vw;
  margin-bottom: 5px;
}

.hero h4 {
  font-family: Zilla Slab;
  color: white;
  font-size: 1.75vw;
}

.hero img {
  width: 30%;
}

.content {
  width: 65%;
  margin: 15px auto;
}

.events {
  display: flex;
}

.event-card {
  background-color: aquamarine;
  border-radius: 20px;
  padding: 15px;
  width: 100%;
  height: 30vh;
  color: white;
  align-content: center;
}

.btn {
  background-color: #004225;
  border-radius: 15px;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.event-projects {
  display: flex;
  flex-flow: row;
  width: 100%;
}

.event-project {
  width: 30%;
  background-color: #004225;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 10px;
  display: block;
  color: white;
  text-decoration: none;
  align-content: center;
}

.event-project img {
  width: 90%;
  border-radius: 10px;
}

.event-gallery {
  display: flex;
  flex-wrap: wrap;
}

.event-gallery img {
  width: 20vw;
  margin: 10px;
  border-radius: 10px;
  aspect-ratio: initial;
}

.sponsor-card {
  text-align: center;
  /* padding: 15px; */
  /* margin: 5px; */
  width: 12vw;
  align-content: center;
}

.sponsor-card img {
  max-width: 80%;
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  header > img {
    order: -1;
    flex: 0 0 100%;
    display: block;
    margin: 0 auto;
  }

  header nav {
    flex: none;
    justify-content: center;
    padding: 0.25rem 1rem;
  }

  header nav.nav-left,
  header nav.nav-right {
    padding: 0.25rem 1rem;
  }

  html,
  body {
    font-size: 16px;
  }

  header nav a {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .hero {
    line-height: normal;
    gap: 0.75rem;
    background-position-y: center !important;
  }

  .hero img {
    width: 55%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero h3 {
    font-size: 1.3rem;
  }

  .hero h4 {
    font-size: 1.1rem;
  }

  .content {
    width: 90%;
  }

  .event-gallery img {
    width: calc(50% - 8px);
    min-width: 120px;
    margin: 4px;
  }

  .event-projects {
    flex-wrap: wrap;
  }

  .event-project {
    width: calc(50% - 20px);
  }

  .sponsor-card {
    width: clamp(55px, 18vw, 100px);
  }
}

@media (max-width: 480px) {
  .event-project {
    width: 100%;
    margin: 5px 0;
  }
}
