* {
  margin: 0;
  padding: 0;
}

body,
html {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: #6fa18c;
}
.logo-nav img {
  height: 80px;
  justify-content: flex-start;
}

header {
  position: fixed;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 80px;
  display: flex;
  background-color: #6fa18c;
  color: #fef7eb;
  justify-content: space-around;
  padding-bottom: 10px;
}

header h1 {
  text-align: center;
  height: 100%;
  display: inline;
}

/************************* MAIN PAGES NAV */
.navigation li {
  list-style: none;
  text-align: center;
  text-decoration: none;
}
.navigation ul {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: space-evenly;
  text-decoration: none;
  padding: 10px 24px;
  line-height: 80px;
}

.navigation a {
  text-align: center;
  text-decoration: none;
  line-height: 80px;
  color: #fef7eb;

  justify-content: space-evenly;
  padding: 10px 24px;
}

.navigation a:hover {
  text-align: center;
  text-decoration: none;
  line-height: 80px;
  color: #f9bc60;

  justify-content: space-evenly;
  padding: 10px 24px;
}

.navigation a.active {
  text-align: center;
  text-decoration: none;
  line-height: 80px;
  color: #f9bc60;

  border: solid;
  border-color: #fef7eb;

  justify-content: space-evenly;
  padding: 10px 24px;
}

/********************** DONATE BUTTON NAV */

#donate {
  border: solid;
  border-color: #f9bc60;
  border-radius: 50px;
  color: #fef7eb;
}
#donate:hover {
  background-color: #f9bc60;
  opacity: 1;
}

/********************************** section**/
section {
  height: 955px;
  width: 100%;
  margin-bottom: 150px;
}

h2 {
  position: absolute;
  text-align: center;
  top: 60%;
  width: 100%;
  font-size: 4rem;
  color: #fef7eb;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000;
}

/********************************pet cards****/

.pet-container {
  /*where everything is*/

  display: grid;
  grid-template-columns: auto auto auto;
  gap: 50px;
  height: 100%;
  justify-content: center;
}

.pet-container .card {
  /*the whole card*/
  position: relative;
  cursor: pointer;
}

.pet-container .card .face {
  width: 300px;
  height: 300px;
  transition: 0.5s;
}

.pet-container .card .face.face1 {
  /*face face 1is the  front* face is both sides*/
  position: relative;
  background: #25815a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(100px);
  border-radius: 5px;
}

.pet-container .card:hover .face.face1 {
  transform: translateY(0);
  border-radius: 5px 5px 0 0;
}

.pet-container .card .face.face1 .pet {
  transition: 0.5s;
}

.pet-container .card:hover .face.face1 .pet .fa-solid {
  color: #25815a;
}

.pet-container .card .face.face1 .pet img {
  max-width: 100%;
  height: auto;
}

.pet-container .card .face.face1 .pet h3 {
  line-height: 70px;
  color: #fff;
  text-align: center;
  font-size: 1.5em;
}

.pet-container .card .face.face2 {
  height: 200px;
  position: relative;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 0 0 5px 5px;
  transform: translateY(-100px);
}

.pet-container .card:hover .face.face2 {
  transform: translateY(0);
}

.pet-container .card .face.face2 .pet p {
  margin: 0;
  padding: 0;
}

.pet-container {
  margin: 15px 0 0;
  text-decoration: none;
  font-weight: 900;
  color: #333;
  padding: 5px;
}

.pet-container .card .face.face2 .pet a:hover {
  color: #fff;
}

/********************************footer****/

footer {
  background-color: #004643;
  color: #fef7eb;
  height: 100%;
  bottom: 0;
}
footer .footer-items {
  line-height: 84px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
}

footer .footer-items .fa-brands fa-instagram fa-xl {
  font-size: 1.5em;
  text-align: center;
  line-height: 100%;
  background-color: #f9bc60;
  line-height: 84px;
  text-align: center;
}

@media only screen and (max-width: 600px) {
  body {
    margin: 20px;
  }

  .container {
    width: 100%;
  }

  header {
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 60px;
    display: flex;
    flex-wrap: wrap;
    background-color: #004643;
    color: #fef7eb;
    justify-content: space-evenly;
    grid-template-rows: 1fr;
  }

  header h1 {
    font-size: 2vw;
  }
  header li a {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-size: 2vw;
  }

  .logo-nav img {
    height: 20px;
    width: auto;
  }
  li a {
    text-align: center;
    font-size: 2vw;
    border-radius: 10px;
    padding: 4px 10px;
  }
  .pet-container {
    display: grid;
    grid-template-columns: auto;
    padding: 0;
    width: 100%;
  }

  section {
    padding: 0%;
    margin: 0%;
  }

  footer {
    background-color: #004643;
    color: #fef7eb;
    height: auto;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
  }
  .footer-items {
    display: grid;
    grid-template-rows: auto;
  }

  .container {
    justify-content: center;
    width: 100%;
    height: 100%;
  }
}
