* {
  box-sizing: border-box;
}

.open-sans-google {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 670;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.tags {
  margin: 0 0 70px 120px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  border: none;
  letter-spacing: 2px;
  font-size: 24px;
  background-color: #3f3f3f;
  color: gold;
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.tag.active {
  background-color: gold; /* Gold background when active */
  color: black; /* Black text color when active */
}

body {
  margin: 0;
  background: #545454;
  color: #f5f6f7;
}

hr {
  width: 800px;
}

h1 {
  margin: 40px 120px;
  font-size: 42px;
  letter-spacing: 3px;
}

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.gallery img {
  height: 40vh;
  width: 40vh;
  object-fit: cover;
}

footer {
  padding: 50px 10px;
  display: flex;
  gap: 550px;
  justify-content: center;
  font-size: 18px;
}

footer img {
  width: 50px;
  object-fit: cover;
}

#message {
  font-family: sans-serif;
  font-size: 20px;
  text-align: center;
  display: none;
  margin: 160px 0;
}

@media (min-width: 701px) {
  h1 {
    font-size: 48px;
  }

  .tag:hover {
    background-color: #717171;
    color: gold;
  }
}

@media (max-width: 700px) {
  .tag {
    font-size: 20px;
  }

  .tags {
    padding-top: 5px;
    margin-bottom: 30px;
    margin-left: 20px;
    gap: 3px;
  }

  h1 {
    margin: 20px 20px;
  }

  .gallery {
    gap: 0;
  }

  #message {
    padding: 0 35px;
  }

  hr {
    width: 180px;
  }

  footer {
    padding: 30px 10px;
    gap: 60px;
  }
}
