#rContainer {
  display: grid;
  max-width: 1000px;
  gap: 20px;
  margin: auto;
  margin-top: 30px;
  margin-bottom: 50px;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
h1 {
  display: block;
  position: relative;
  font-size: 4rem;
  color: var(--orange);
  margin: 60px 0px 0px 20px;
}
main {
  max-width: 1200px;
  margin: auto;
}
article {
  max-width: 400px;
  overflow: hidden;
  transition: 0.2s;
  img {
    transition: 0.5s ease;
  }
}

article:hover {
  cursor: pointer;
  img {
    transform: scale(1.05);
  }
}

#buttonContainer {
  place-self: center;
}
.pageButton {
  padding: 20px;
  background-color: var(--primary);
  text-decoration: none;
  color: var(--black);
  transition: 0.2s ease;
}
.pageButton:hover {
  background-color: var(--secondary);
  color: var(--bgColor);
}
#pageCounter {
  place-self: center;
  margin: 40px;
}

#mtContainer {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 2% 10%;
}

.mt {
  text-decoration: none;
  color: var(--black);
  width: 12%;
  text-align: center;
  aspect-ratio: 1/1;
  background-color: var(--primary);
  font-family: GrenetteSemi;
  font-size: 1.2rem;
  border-radius: 100%;
  transition: all 0.2s ease;
}
.mt img {
  height: 100%;
  width: 100%;
  filter: invert(0);
}
.mt:hover img {
  height: 100%;
  width: 100%;

  filter: invert(1) saturate(0);
}
.mt:hover {
  background-color: var(--secondary);
  scale: 1.3;
}
.mt p {
  height: 0px;
  position: relative;

  text-transform: capitalize;
}
#hAndS {
  margin: 2vw 10vw 5vw 10vh;
  display: flex;
  justify-content: space-between;
}
#sContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 0 20px;
  justify-content: flex-end;
}
#sContainer select {
  max-width: 10vw;
  font-size: 1.1rem;
  color: var(--black);
  background-color: var(--bgColor);
  border-radius: 10px;
  padding: 10px;
}
@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
  }
  #hAnds {
    max-width: 100vw;
    margin: 0 0 0 0;
    * {
      margin: none;
    }
  }

  #mtContainer {
    * {
      font-size: 0.7rem;
    }
  }
}
