body {
  font-family: "Figtree", sans-serif;
  background-color: hsl(47, 88%, 63%);
  margin: 0;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.card {
  background-color: white;
  padding: 20px;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 10px 10px black;
  width: 90%; /* Adjusted for responsiveness */
  max-width: 300px; /* Prevents the card from being too wide */
  height: auto; /* Allows flexible height */
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintains aspect ratio */
  object-fit: cover;
  border-radius: 5px 5px 0 0; /* Rounded corners only at the top */
  margin-bottom: 10px;
}

.card-content {
  padding: 5px;
}
.btn {
  background-color: hsl(47, 88%, 63%);
  color: hsl(0, 0%, 7%);
  font-weight: bold;
  padding: 7px 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}
button:hover {
  transform: scale(1.1); /* Scales the button slightly */
  background-color: #aaa; /* Changes background color on hover */
  color: white; /* Changes text color */
  cursor: pointer;
}
button:focus {
  outline: none; /* Removes default outline */
  box-shadow: 0 0 0 3px lightskyblue; /* Feedback for keyboard users */
  cursor: pointer;
}
.publish-date {
  display: block;
  font-size: 13px;
}

.title {
  font-size: 20px;
  color: hsl(0, 0%, 7%);
  padding: 3px 0;
}
.title:hover,
.title:focus,
.title:active {
     color:hsl(47, 88%, 63%);
     cursor: pointer;
}
.avatar-container {
  display: inline-flex; /* Enables horizontal alignment */
  align-items: center; /* Centers items vertically */
  gap: 10px; /* Adds space between the image and name */
  padding: 5px 0;
  transition: color 0.3s ease; /* Smooth color transition */
}
.avatar-container img {
  width: 30px;
  height: auto;
  border-radius: 50%; /* Ensures circular shape */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avatar-container img:hover,
.avatar-container img:focus {
  transform: scale(1.2); /* Scales up the avatar */
  box-shadow: 0 0 0 3px lightskyblue; 
  cursor: pointer;
}
.name {
  font-weight: bold;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.name:hover {
  transform: scale(1.2); /* Scales up the name */
  cursor: pointer;
}

.text-content {
  color: hsl(0, 0%, 42%);
  font-size: 14px;
}
.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

/* Desktop and larger screens*/
@media (min-width: 1440px) {
     .card-container {
         padding-left: 20px;
         padding-right: 20px;
     }
     .card {
         max-width: 300px; /* Limits card width on large screens */
     }
 }
 
 /* Tablet screens */
 @media (max-width: 1024px) and (min-width: 768px) {
     .card-container {
         padding-left: 15px;
         padding-right: 15px;
     }
     .card {
         width: auto; /* Takes full width on tablets */
     }
 }
 
 /* Mobile screens (portrait) */
 @media (max-width: 768px) {
     .card-container {
         padding-left: 10px;
         padding-right: 10px;
     }
     .card {
         width: auto; /* Takes full width on smaller screens */
     }
     .btn {
         padding: 5px; /* Reduces button size for smaller screens */
     }
 }
 
 /* Mobile screens (smaller) */
 @media (max-width: 375px) {
     .card {
         padding: 10px; /* Reduces padding for mobile */
     }
 }
 