/* Stylesheet for Animals for Adoption pages */

.content {
  display: grid;
  grid-template-columns: repeat(12, auto);
}

.quote--impt {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
}

.animals-intro {
  grid-row: 1 / 2;
}

.animals-quick-links {
  grid-row: 2 / 3;
  border: 1px solid lightgray;
  border-radius: 5px;
}

.animals-quick-links__ul {
  column-count: 3;
  margin: 0px 0.25em;
  padding: 0.5em;
  column-span: none;
  list-style: none;
}

.animals-quick-links__h4 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  text-align: center;
}

.quote {
  grid-row: 3 / 4;
  padding: 0.5em;
  margin-top: 1em;
  border-radius: 7px;
  background-color: rgb(var(--background-pop-color));
}

.animals {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  grid-row: 4 / 5;
  margin-top: 20px;
}

.animals__container {
  position: relative;
}

.animals__container > a:link {
  color: black;
  font-weight: 500;
}

.animals__container > a::after {
  content: attr(data-name);
  position: absolute;
  bottom: 9px;
  left: 5px;
  right: 5px;
  text-align: center;
  padding-block: 7px;
  color: rgb(var(--base-color));
  background-color: rgb(var(--background-pop-color));
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.animals__img {
  margin: 5px;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 640px) {
  .animals__img {
    width: 200px;
    height: 200px;
  }
}

.btn--adopt {
  display: inline-block;
  background-color: orange;
  color: white;
}

a.btn--adopt:is(:link, :visited) {
  color: white;
  text-decoration: none;
}

.btn--adopt:is(:hover, :focus, :active) {
  background-color: rgb(var(--light-accent-color));
  color: rgb(0, 0, 0);
}

@media screen and (min-width: 800px) {
  .content {
    grid-template-rows: repeat(4, auto);
    grid-row: 1 / 2;
    grid-column: 1 / 13;
    gap: 1em;
  }

  h1 {
    margin-top: 0;
  }
  .animals-quick-links {
    grid-row: 1 / 4;
    grid-column: 1 / 3;
  }

  .animals-quick-links__ul {
    margin: 1em 0.25em;
    column-count: 1;
  }

  .quote {
    grid-row: 2 / 3;
    grid-column: 3 / 10;
  }

  .animals-intro {
    grid-row: 1 / 2;
    grid-column: 3 / 13;
  }

  .animals {
    grid-row: 4 / 5;
    grid-column: 1 / 13;
  }
}
