:root {
  --color-bg: #6b7f6d;
}

body {
  padding-top: 106px;
  margin: 0;
}

footer {
  color: #fff6eb;
  background-color: var(--color-bg);
}
footer h6 {
  text-decoration: underline;
}
@media (max-width: 452px) {
  footer h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  footer p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
}

.title-header {
  margin: 0px;
  padding: 20px;

  text-align: center;
  color: #fcf9f5;

  background-color: var(--color-bg);
}
/* =============
   index.html 
   ============= */
.index-bg {
  background-image: url("../img/Animales/ciervo2560x1740.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  position: relative;
}

.index-txt {
  position: absolute;
  top: 70%;
  left: 2%;
  z-index: 2;
  color: white;
  max-width: 500px;
  transform: translateY(-50%);
}

.index-txt h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.index-txt p {
  font-size: 1.3rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .index-bg {
    background-image: url("../img/Animales/ciervo768x724.jpg");
  }

  .index-txt {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 95%;
    padding: 0 1rem;
  }

  .index-txt h1 {
    font-size: 2.5rem;
  }
}

/* =============
    pie.html
  ============= */
.icons {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.icons i {
  font-size: 1.5rem;
}

@media (max-width: 452px) {
  .icons {
    gap: 8px;
  }
  .icons i {
    font-size: 1.3rem;
  }
}

/* =============
    operarios.html
  ============= */
.photos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  gap: 30px;
  padding: 16px;
  margin: 40px;
}
.photos__img {
  width: 140px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  padding: 20px;

  background-color: #f3f4f6;
}

.photos__img:hover {
  transform: scale(1.1);
}
.card {
  border: 1px solid black;
  padding: 40px;
  margin: 40px;
}

/* =============
    ecosistemas.html
   ============= */
.card-text-columns {
  column-count: 3;
  column-gap: 1.5rem;
}
@media (max-width: 768px) {
  .card-text-columns {
    column-count: 1;
  }
}

.card-text-columns p {
  margin: 1rem 0;
}
.card-text-columns p::first-letter {
  font-size: 2em;
  text-shadow: 1px 1px 1px #bcbcbc, 2px 2px 2px #9c9c9c;
}

/* =============
    animales.html
  ============= */
.main-content {
  display: none;
}

.main-content.show {
  display: block;
}

.carousel-item img {
  border-radius: 10px;
  max-height: 400px;
  object-fit: cover;
}

.animal-info {
  background-color: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
}

.animal-info h3 {
  color: var(--color-bg);

  border-bottom: 3px solid var(--color-bg);
  padding-bottom: 10px;
}

.animal-info h5 {
  color: var(--color-bg);
  font-size: 1.1rem;
}

/*** movimiento del canguro*/

#kangaroo {
  width: 80px;
  height: 80px;
  position: fixed;
  left: -100px; /* para que no se vea antes de empezar la animación */
  top: 0px;
  z-index: 9999;
  display: none;
}

#kangaroo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes kangarooMovement {
  0% {
    left: -100px;
    top: 100px;
    transform: scale(0.8);
    animation-timing-function: ease-in;
  }
  20% {
    left: 20vw;
    top: 200px;
    transform: scale(1);
  }
  40% {
    left: 40vw;
    top: 100px;
    transform: scale(0.9);
  }
  60% {
    left: 60vw;
    top: 200px;
    transform: scale(1);
  }
  80% {
    left: 80vw;
    top: 100px;
    transform: scale(0.9);
  }
  100% {
    left: calc(100vw + 100px);
    top: 200px;
    transform: scale(0.8);
    animation-timing-function: ease-out;
  }
}

#kangaroo.animate {
  animation-name: kangarooMovement;
  animation-duration: 4s;
  animation-delay: 0.5s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  display: block;
}