*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

:root {
  /* Primary */

  --blue-500: hsl(215, 51%, 70%);
  --cyan-400: hsl(178, 100%, 50%);

  /* Neutral */

  --blue-950: hsl(217, 54%, 11%); /* Main bg */
  --blue-900: hsl(216, 50%, 16%); /* Card bg */
  --blue-800: hsl(215, 32%, 27%); /* line */
  --text-color: hsl(0, 0%, 97%);
}

body {
  min-height: 100vh;
  background: var(--blue-950);
  color: var(--text-color);
  font-family: "Outfit", sans-serif;
  font-size: clamp(15px, 4.88vw, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  width: clamp(300px, 31.25vw, 350px);
  background: var(--blue-900);
  padding: clamp(18px, 5.81vw, 25px);
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(15, 15, 15, 0.726);
  margin-bottom: 15px;
}

.image-container {
  position: relative;
  margin-bottom: clamp(15px, 4.65vw, 20px);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsla(178, 100%, 50%, 0.288);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 99%; /* somehow worked ?! */
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  opacity: 0;
}

.card .image-container img {
  width: 100%;
  height: 100%;

  border-radius: 10px;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  color: var(--cyan-400);
}

.name {
  font-size: clamp(20px, 5.81vw, 25px);
  font-weight: 600;
  margin-bottom: clamp(15px, 4.65vw, 20px);
}

.description {
  color: var(--blue-500);
  font-weight: 300;
  margin-bottom: clamp(15px, 4.65vw, 20px);
}

.more-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(15px, 4.65vw, 20px);
  border-bottom: 1px solid var(--blue-800);
  margin-bottom: clamp(15px, 4.65vw, 20px);
}

.icon-text-div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.price-div {
  color: var(--cyan-400);
  font-weight: 400;
}

.time-div {
  color: var(--blue-500);
}

.credit {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Author Image */
.credit img {
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.author-name {
  font-size: 16px;
  color: var(--blue-500);
}

.author-name a {
  font-size: 400;
}
