* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
header {
  height: 50vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
h1 {
  margin-top: 5rem;
  text-align: center;
  font-family: monospace;
  font-size: 3rem;
  animation: fade-in 5s 0.3s backwards,
    colorize 5s linear infinite alternate-reverse;
  background: linear-gradient(
    103.3deg,
    rgba(252, 225, 208, 1) 30%,
    rgba(255, 173, 214, 1) 55.7%,
    rgba(162, 186, 245, 1) 81.8%
  );
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  filter: drop-shadow(1px 1px 0.3px black);
}
@keyframes colorize {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-220px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
ul {
  text-align: center;
  list-style: none;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
a {
  text-decoration: none;
}
footer {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
}
li:first-child::before {
  content: "🐕 ";
}
li:first-child::after {
  content: " 🐕";
}
li:nth-child(2)::before {
  content: "🏀 ";
}
li:nth-child(2)::after {
  content: " 🏀";
}
li:nth-child(3)::before {
  content: "⬇️ ";
}
li:nth-child(3)::after {
  content: " ⬇️";
}

#walking-section {
  background-image: url("./images/background/swing-1218654_1280.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  background-position: center;
  filter: sepia(50%);
  position: relative;
}
#ball-section {
  height: 80vh;
  padding: 10% 27%;
}
.basketball {
  height: 15rem;
  width: 15rem;
}
.basketball:hover {
  animation: ball-roll 1s infinite alternate;
  cursor: pointer;
}
@keyframes ball-roll {
  0% {
    transform: translateX(0) rotate(45deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  15% {
    transform: translateX(15%) rotate(90deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  30% {
    transform: translateX(30%) rotate(135deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  45% {
    transform: translateX(45%) rotate(180deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  60% {
    transform: translateX(60%) rotate(225deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  75% {
    transform: translateX(75%) rotate(270deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  90% {
    transform: translateX(90%) rotate(315deg);
    filter: drop-shadow(0px 3px 2px black);
  }
  100% {
    transform: translateX(100%) rotate(360deg);
    filter: drop-shadow(0px 3px 2px black);
  }
}
.btn-div {
  display: inline-block;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.btn-home {
  border: 1px solid black;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
}
.walking-div {
  height: 100%;
  animation: walk-the-dog 10s linear 1s infinite;
  background-image: url("./images/walk_the_dog/walking-the-dog-behind.png");
  background-size: 400px;
  background-position: 0% 95%;
  background-repeat: no-repeat;
}
@keyframes walk-the-dog {
  0% {
    background-image: url("./images/walk_the_dog/walking-the-dog-behind.png");
    filter: sepia(100%);
    background-position: 0% 95%;
    opacity: 1;
  }
  9% {
    background-image: url("./images/walk_the_dog/walking-the-dog-behind.png");
    background-position: 9% 95%;
    opacity: 0.08;
  }
  18% {
    background-image: url("./images/walk_the_dog/walking-the-dog.png");
    background-position: 18% 95%;
    opacity: 0.08;
  }
  25% {
    background-image: url("./images/walk_the_dog/walking-the-dog.png");
    background-position: 25% 95%;
    opacity: 1;
  }
  34% {
    background-image: url("./images/walk_the_dog/walking-the-dog.png");
    background-position: 34% 95%;
    opacity: 0.08;
  }
  42% {
    background-image: url("./images/walk_the_dog/dog-pulling.png");
    background-position: 42% 95%;
    opacity: 0.08;
  }
  50% {
    background-image: url("./images/walk_the_dog/dog-pulling.png");
    background-position: 50% 95%;
    opacity: 1;
  }
  59% {
    background-image: url("./images/walk_the_dog/dog-pulling.png");
    background-position: 59% 95%;
    opacity: 0.08;
  }
  67% {
    background-image: url("./images/walk_the_dog/dog-meets-dog.png");
    background-position: 67% 95%;
    opacity: 0.08;
  }
  75% {
    background-image: url("./images/walk_the_dog/dog-meets-dog.png");
    background-position: 75% 95%;
    opacity: 1;
  }
  84% {
    background-image: url("./images/walk_the_dog/dog-meets-dog.png");
    background-position: 84% 95%;
    opacity: 0.08;
  }
  92% {
    background-image: url("./images/walk_the_dog/walking-dogs.png");
    background-position: 92% 95%;
    opacity: 0.08;
  }
  100% {
    background-image: url("./images/walk_the_dog/walking-dogs.png");
    background-position: 100% 95%;
    opacity: 1;
  }
}
.icon-div {
  display: flex;
  gap: 1rem;
  padding: 1em;
}
.icon-div img {
  transition: all 1s ease;
}
.fb:hover,
.fb:active,
.ig:hover,
.g:active,
.tweet:hover,
.tweet:active {
  animation: bgcolor 0.5s infinite alternate;
}
@keyframes bgcolor {
  to {
    transform: scale(1.5);
    background: linear-gradient(
      103.3deg,
      rgba(252, 225, 208, 1) 30%,
      rgba(255, 173, 214, 1) 55.7%,
      rgba(162, 186, 245, 1) 81.8%
    );
    clip-path: inset(0 0 0 0 round 7px);
    transition: all 0.3s ease;
  }
}
