/* universal css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100%;
  width: 100%;
}
.container {
  width: 80vw;

  padding: 2rem 1rem;
  margin: 0 auto;
}

/* header-container */
.header-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2vw;
  margin-bottom: 1rem;
}
.header-title {
  font-size: 4vw;
  line-height: 2rem;
  font-weight: 700;
  text-align: center;
}
.header-des {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  max-width: 600px;
  text-align: center;
  color: rgb(133, 130, 130);
}

/* main container */
.main-container {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr);*/
  gap: 1rem;

  /* uses of auto fit */
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  justify-content: center;
  align-items: center;
}
.card-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.display-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(221, 215, 215);
  border-radius: 8px;
}

.overlay-card {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  position: absolute;
  top: 0;
  background-color: rgba(36, 34, 34, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
/* overley property */
.overlay-card span{
  border: 1px solid white;
  padding: 2px 10px;
  border-radius: 8px;
  color: white;
  font-size: 1.2rem;
  
}
.card-container:hover .overlay-card {
 opacity: 100;
}
.card-container:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 8px;
}
.card-image-container {
  height: 10rem;
}
.card-image {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}
.card-container:hover .card-image {
  transform: scale(1.1);
  transition-duration: 200ms;
}

.card-title-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.card-title {
  text-decoration: none;
  color: black;
}
.card-container:hover .card-title {
  color: blue;
  text-decoration: underline;
}
.card-des {
  color: rgb(133, 130, 130);
}

.card-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem 1rem 1rem;
}

.card-author-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.avatar-image {
  background-color: rgb(230, 229, 229);
  width: 50px;
  height: auto;
  border: 1px solid rgb(221, 215, 215);
  border-radius: 50%;
}
.author-name {
  font-size: 1.5rem;
}
.author-date {
  color: rgb(133, 130, 130);
  font-size: 1rem;
}
.card-tag-container {
  border: 1px solid black;
  padding: 0.4rem;
  border-radius: 5px;
}
.card-tag-container:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.name {
  color: red;
  font-size: 30px;
  margin-bottom: 200px;
}
