@font-face {
  font-family: "Outfit";
  src: url("./Outfit/static/Outfit-Regular.ttf");
}

:root {
  --blue-500: 215, 51%, 70%;
  --cyan-400: 178, 100%, 50%;

  --Blue-950: 217, 54%, 11%;
  --Blue-900: 216, 50%, 16%;
  --Blue-800: 215, 32%, 27%;
  --White: 0, 0%, 100%;

  --main-bg: hsl(var(--Blue-950));

  --card: hsl(var(--Blue-900));
  --card-layout: hsl(var(--cyan-400));
  --card-price: hsl(var(--cyan-400));
  --card-time: hsl(var(--blue-500));

  --line: hsl(var(--Blue-800));

  --px-16: calc(20 / 16 * 1em);
}

body {
  margin: 0;
  font-family: "Outfit";
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--main-bg);
}

h1 {
  margin: 0;
  color: hsl(var(--White));
  font-size: 25px;
}

p {
  color: var(--line);
  margin: 0;
}

.card {
  max-width: 300px;
  background-color: var(--card);
  padding: var(--px-16);
  border-radius: var(--px-16);
}

.card__layout {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  /* background-color: var(--card-layout); */
  background-color: hsl(178deg 100% 50% / 53%);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: 0.5s;
}

.card__img-holder {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--px-16);
  border-radius: var(--px-16);

  &:hover .card__layout {
    transform: translateY(0);
  }
}

.card__img {
  max-width: 100%;
  border-radius: calc(15 / 16 * 1em);
  display: block;
}

.card__details {
  display: flex;
  flex-direction: column;
  gap: var(--px-16);
}
.card__title {
  transition: 0.5s;
  cursor: pointer;
}
.card__title:hover {
  color: hsl(var(--cyan-400));
}

.card__description {
}

.card__price_and_time {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding-bottom: calc(30 / 16 * 1em);
  border-bottom: 1px solid grey;
}
.card__price {
  color: var(--card-price);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__price::before {
  content: url(./images/icon-ethereum.svg);
  width: 11px;
  height: 18px;
}

.card__time {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--card-time);

  &::before {
    content: "";
    display: inline-block;
    background-image: url("./images/icon-clock.svg");
    width: 17px;
    height: 17px;
    background-size: contain;
    background-repeat: no-repeat;
  }
}

.card__creator {
  display: flex;
  gap: calc(10 / 16 * 1em);
  align-items: center;
}
.card__creator__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid hsl(var(--White));
}
.card__creator__name {
  color: hsl(var(--blue-500));
  letter-spacing: 0.5px;

  span {
    color: hsl(var(--White));
    cursor: pointer;
    transition: 0.5s;
    &:hover {
      color: hsl(var(--cyan-400));
    }
  }
}
