@media only screen and (max-width: 850px) {
  #running-club,
  #events,
  #volunteers {
    flex-direction: column;
  }
}

@media only screen and (max-width: 750px) {
  .section-images.books {
    flex-direction: column !important;
  }

  .section-image {
    margin-left: 0 !important;

    &:last-child {
      margin-top: 30px;
    }
  }

  .image {
    width: 100% !important;
  }
}

.section {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f2f2f2;

  &.books,
  &.contact {
    flex-direction: column;
    background-color: white;
  }

  h4 {
    border-bottom: 1px solid #fcd35d;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    color: #fcd35d;
  }

  h5 {
    margin: 0;
    font-size: 30px;
    text-transform: uppercase;
  }

  p {
    width: 300px;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
  }
}

.section-images {
  display: flex;
  flex-direction: column;

  > img:not(:first-child) {
    margin-top: 30px;
  }

  &.books {
    margin-top: 1em;
    flex-direction: row;
  }
}

.section-image {
  width: 200px;
  display: flex;
  flex-direction: column;

  img {
    height: 300px;
  }

  &:not(:first-of-type) {
    margin-left: 30px;
  }
}

.section-text {
  margin-left: 30px;
}

.section-button {
  margin-top: 15px;
  border: none;
  padding: 9px 15px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #fcd35d;
  color: white;
  cursor: pointer;

  &.empty {
    border: 1px solid #fcd35d;
    background: none;
    color: black;
  }

  &:hover {
    background-color: #f8c226;
  }
}

.pre-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#counters {
  display: flex;
  justify-content: center;
  align-items: center;

  > div {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

.counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  &:last-child {
    margin-left: 30px;
  }

  > img {
    width: 64px;
    height: auto;
  }

  > span:first-of-type {
    font-weight: 700;
  }
}

.image {
  width: 400px;
}
