/* Start CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.1;
}

p {
  text-wrap: pretty;
}

textarea:not([rows]) {
  min-height: 10em;
}

:focus-visible {
  outline: 2px solid dodgerblue;
  outline-offset: 2px;
}

:target {
  scroll-margin-block-start: 5ex;
}

/* End CSS Reset */

/* Start Global Styles */
:root {
  --font-family: "Outfit", sans-serif;
  --base-font-size: 18px;
  --fw-light: 300;
  --fw-normal: 400;
  --fw-bold: 600;

  --blue-500: #8bacda;
  --cyan-400: #00fff7;
  --blue-950: #0d192b;
  --blue-900: #14253d;
  --blue-800: #2f415b;
  --white: #ffffff;
}

body {
  font-family: var(--font-family);
  font-size: var(--base-font-size);
  background-color: var(--blue-950);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: var(--blue-900);
  max-width: 25rem;
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
}

.card__image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.card__image-container {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(178, 100%, 50%, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.card__overlay-icon {
  width: 3rem;
  height: 3rem;
}

.card__image-link:hover .card__overlay {
  opacity: 1;
  visibility: visible;
}

.card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.card__title a {
  color: var(--white);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.card__title a:hover,
.card__creator-name a:hover {
  color: var(--cyan-400);
}

.card__description {
  color: var(--blue-500);
  font-weight: var(--fw-light);
}

.card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card__price-container,
.card__time-left {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.card__price {
  color: var(--cyan-400);
  font-weight: var(--fw-bold);
}

.card__time {
  color: var(--blue-500);
  font-weight: var(--fw-normal);
}

.card__divider {
  width: 100%;
  height: 1px;
  background-color: var(--blue-800);
  margin: 0.2rem 0;
  opacity: 0.1;
}

.card__creator-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.card__avatar-container {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--white);
  overflow: hidden;
  flex-shrink: 0;
}

.card__avatar {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card__creator-name {
  color: var(--blue-500);
  text-decoration: none;
  font-size: 1rem;
  font-weight: var(--fw-normal);
}

.card__creator-name a {
  color: var(--white);
  text-decoration: none;
}
