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

html {
  font-size: 18px;
  height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--color-white);
  height: 100%;
}

:root {
  --color-very-dark-blue-main-bg: hsl(217, 54%, 11%);
  --color-very-dark-blue-card-bg: hsl(216, 50%, 16%);
  --color-very-dark-blue-line: hsl(215, 32%, 27%);
  --color-white: hsl(0, 0%, 100%);

  --color-soft-blue: hsl(215, 51%, 70%);
  --color-cyan: hsl(178, 100%, 50%);
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: var(--color-very-dark-blue-main-bg);
  padding: 62px 24px;
}

.card {
  max-width: 350px;
  padding: 24px 24px 32px 24px;
  border-radius: 15px;
  background-color: var(--color-very-dark-blue-card-bg);
  box-shadow: 0 25px 50px 0 rgba(0, 0, 0, 0.1);
}

.card__img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.card__img:hover.card__img:after {
  opacity: 1;
}

.card__img:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.card__img:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 2;
  background-color: rgba(0, 255, 248, 0.5);
  background-image: url("/images/icon-view.svg");
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.card__img img {
  position: absolute;
  left: 0;
  top: 0;;
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.card__title {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  margin-top: 24px;
  transition: color 0.3s ease-in-out;
  cursor: pointer;
}

.card__title:hover {
  color: var(--color-cyan)
}

.card__text {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.44;
  color: var(--color-soft-blue);
  margin-top: 12px;
}

.card__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-very-dark-blue-line);
}

.card__price {
  display: flex;
  align-items: center;
  gap: 6.48px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-cyan);
}

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

.card__time {
  display: flex;
  align-items: center;
  gap: 7.7px;
  font-weight: 400;
  font-size: 15px;
  color: var(--color-soft-blue);
}

.card__time:before {
  content: "";
  height: 16px;
  width: 16px;
  background-image: url("/images/icon-clock.svg");
}

.card__creator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.card__creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-white);
}

.card__creator-avatar img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.card__creator-name {
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  color: var(--color-white);
  transition: color 0.3s ease-in-out;
}

.card__creator-name:hover {
  color: var(--color-cyan);
}

.card__creator-name span {
  color: var(--color-soft-blue);
}

@media (min-width: 600px) {

  .card__wrap {
    margin-top: 24px;
    padding-bottom: 24px;
  }

  .card__text {
    margin-top: 16px;
  }
  .card__price {
    font-size: 16px;
  }

  .card__time {
    font-size: 16px;
  }
  
  .card__creator-name {
    font-size: 16px;
  }
}
