@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300..900&display=swap');


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

html{
  font-size: 62.5%;
}

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

.main-container{
  min-height: 98vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-card{
  background-color: hsl(0, 0%, 100%);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid hsl(0, 0%, 7%);
  max-width: 360px;
  box-shadow: 8px 8px hsl(0, 0%, 7%);;
}

.illustration-img{
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.title{
  font-weight: 800;
  font-size: 1.3rem;
  width: fit-content;
  padding: 5px 10px;
  background-color: hsl(47, 88%, 63%);
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.date{
  color: hsl(0, 0%, 7%);
  font-size: 1.3rem;
  font-weight: 500;
}

.preview-card a{
  text-decoration: none;
}

.course-name{
  font-weight: 800;
  font-size: 2.3rem;
  text-decoration: none;
  color: hsl(0, 0%, 7%);
  margin: 1.5rem 0rem;
  cursor: pointer;
  transition: 0.1s;
}

.course-name:hover, .course-name:focus{
  color: hsl(47, 88%, 63%);
}

.course-detail{
  color: hsl(0, 0%, 42%);
  font-size: 1.5rem;
  font-weight: 500;
  max-width: 300px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.profile-container{
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-container img{
  width: 3rem;
}

.profile-container h5{
  font-weight: 800;
  font-size: 1.3rem;
}


.attribution { 
  color: hsl(0, 0%, 7%);
  font-size: 1.1rem; 
  text-align: center; 
}
    
.attribution a { 
  color: hsl(228, 45%, 44%); 
}

@media (max-width:425px) {
  html{
    font-size: 50%;
  }

  .preview-card{
    max-width: 280px;
  }
}