body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #a60000;
}

h1 {
  font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 0.8;
}

h2 {
  font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
  font-size: 40px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 22px;
}
h3 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-size: 32px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 1.2;
}
p {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 20px;
}
li {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 20px;
  max-width: 200px;
}
a {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  color: inherit;
}
nav {
  display: flex;
  align-items: center;
}

.track-container {
  width: 100%; /* was fit-content; allow full-width on mobile */
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 5fr 30fr 30fr 30fr 5fr;
  position: relative;
}

.track-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    transparent 0,
    transparent 5%,
    #fff8f0 5%,
    #fff8f0 calc(5% + 18px),
    transparent calc(5% + 18px),
    transparent 35%,
    #fff8f0 35%,
    #fff8f0 calc(35% + 18px),
    transparent calc(35% + 18px),
    transparent 65%,
    #fff8f0 65%,
    #fff8f0 calc(65% + 18px),
    transparent calc(65% + 18px),
    transparent 95%,
    #fff8f0 95%,
    #fff8f0 calc(95% + 18px),
    transparent calc(95% + 18px),
    transparent 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: left top;
  z-index: 0;
}

main {
  min-height: 100vh;
  border-top: 18px solid #fff8f0;
  border-bottom: 18px solid #fff8f0;
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
}

.run-section img {
  max-width: 200px;
  height: auto;
}

.tip-section img {
  max-width: 200px;
  height: auto;
}

.run-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr 1fr;
  grid-template-rows: 1fr 2fr 1fr 2fr 1fr;
}
.run-title button {
  mix-blend-mode: color-burn;
}

.index-header {
  position: relative;
  width: 100%;
  background-image: url("Images/main.image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.events-header {
  position: relative;
  width: 100%;
  background-image: url("Images/events.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

header button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center;
  will-change: transform, box-shadow;
}

button:hover,
button:focus {
  transform: scale(1.2);
  outline: none;
}

button:active {
  transform: scale(1.15);
}

.run-title {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
}

.run-title figure {
  grid-column: 2;
  text-align: center;
}

.run-title figure img {
  max-width: 256px;
  height: auto;
}

footer img {
  max-width: 32px;
  height: auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 10em;
}

ul img {
  max-width: 200px;
  height: auto;
}

.brand-name {
  padding-top: 128px;
  padding-bottom: 64px;
}

form {
  padding: 2em;
  background-color: #e67373;
  border-radius: 16px;
  width: 300px; /* was 300px */
  max-width: 100%;
  box-sizing: border-box;
}
.newsletter {
  grid-column: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
}

footer {
  display: grid;
  grid-template-columns: 1fr 6fr 6fr 6fr 1fr;
  padding: 2rem 0;
}

.footer-info {
  grid-column: 2;
}

input[type="text"] {
  padding: 0.5em;
  border: none;
  border-radius: 8px;
  margin: 1em;
  flex: 1;
  width: 100%; /* allow full-width on small screens */
  box-sizing: border-box;
}
select {
  padding: 0.5em 1em;
  border: none;
  border-radius: 8px;
  background-color: #fff8f0;
  color: #a60000;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
}

.signup {
  padding: 0.5em 1em;
  border: none;
  font-size: 1.2em;
  border-radius: 8px;
  background-color: #a60000;
  color: #fff8f0;
  cursor: pointer;
  font-weight: bold;
  margin-top: 3em;
}

.event-link {
  cursor: pointer;
}

ul li {
  list-style: none;
  padding-bottom: 2em;
  color: #fff8f0;
}

.list {
  display: flex;
  flex-direction: column;
}

.eight {
  padding: 2em;
  background-color: #e67373;
  border-radius: 16px;
  width: 300px;
}

.events-container {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  height: 90vh;
}

.run {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.5em;
  background-color: #fff8f0;
  border-radius: 16px;
  width: 70%;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  justify-items: center;
  align-items: center;
  mix-blend-mode: color-burn;
  padding-bottom: 24px;
}

.header-logo {
  max-width: 68px;
  grid-column: 2;
  padding: 2em;
}

iframe {
  width: 400px;
  max-width: 300px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  h1 {
    font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 0.8;
  }

  h2 {
    font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 22px;
  }
  .grid_1-1-1 button,
  .grid_1-1-1 .club-btn {
    font-size: 0.9rem;
    min-width: auto;
    max-width: 140px;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .grid_1-1-1 button img,
  .grid_1-1-1 .club-btn img {
    max-width: 96px;
    height: auto;
    display: block;
  }

  .grid_1-1-1 ul li button {
    width: auto;
  }
}

@media (max-width: 400px) {
  body {
    max-width: 400px;
  }
  h1 {
    font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 0.8;
  }

  h2 {
    font-family: "Gill Sans Nova Cond Ultra Bold", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    line-height: 22px;
  }

  iframe {
    height: 400px;
    max-width: 100px;
  }

  p {
    font-size: 12px;
  }

  .one {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .two {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .three {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
