@import url("https://fonts.googleapis.com/css?family=Poppins:500,600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif !important;
  background-color: #f8fafc !important;
  color: #000 !important;
}

main {
  max-width: 960px;
  width: 95%;
  margin-top: 3.875rem;
}

main h1 {
  font-size: 2.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

main .tilt-img {
  margin-bottom: 2rem;
}

main .articles {
  animation: fadeUp 1s ease-in-out;
}

main .articles .article {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeInCard 1s forwards;
  cursor: pointer;
}

main .articles .article:nth-child(1) {
  animation-delay: 0.2s;
}

main .articles .article:nth-child(2) {
  animation-delay: 0.4s;
}

main .articles .article:nth-child(3) {
  animation-delay: 0.6s;
}

main .articles .article:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px #d9d9d9;
}

main .articles .article picture img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  margin-right: 1.5rem;
  transition: transform 0.3s ease;
}

main .articles .article picture img:hover {
  transform: scale(1.05);
}

main .articles .article .text {
  flex: 1;
}

main .articles .article .text h2 {
  font-size: 1.25rem;
  max-width: 520px;
}

main .articles .article .text .date {
  font-size: 0.875rem;
  color: #4d5562;
}

/* Animations */
footer a,
footer a:visited {
  color: #4d5562;
  transition: 0.2s ease;
}
footer a:hover,
footer a:visited:hover {
  color: #d9d9d9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}