:root {
  --blue-500: hsl(215, 51%, 70%);
  --cyan-400: hsl(178, 100%, 50%);
  --cyan-400-transparent: hsla(178, 100%, 50%, 0.5);
  /* Main background */
  --blue-950: hsl(217, 54%, 11%);
  /* Card Background */
  --blue-900: hsl(216, 50%, 16%);
  /* Line */
  --blue-800: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}

html {
  box-sizing: border-box;
}

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

body {
  font-size: 18px;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  background-color: var(--blue-950);
}

main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

a {
  color: var(--white);
  text-decoration: none;
  transition-duration: 150ms;
  transition-property: color;
  transition-timing-function: linear;
}

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

.nft__card {
  max-width: 22em;
  background-color: var(--blue-900);
  border-radius: 1em;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 2em;
}

.nft__card figure {
  position: relative;
}

.nft__card figure div {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-color: var(--cyan-400-transparent);
  border-radius: 0.5em;
  display: none;
  cursor: pointer;
}

.nft__card figure div img {
  display: block;
  width: 3rem;
}
.nft__card figure:hover div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nft__card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5em;
  position: relative;
}

.nft__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 1em;
}

.nft__info h1 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 0.6em;
  cursor: pointer;
  text-align: start;
}

.nft__info p {
  color: var(--blue-500);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5em;
  text-align: start;
  font-weight: 400;
}

.nft__sell__details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--blue-800);
  padding-bottom: 0.8em;
}

.nft__sell__details div h2 {
  color: var(--cyan-400);
  font-size: 1em;
  font-weight: 600;
}

.nft__sell__details div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.nft__sell__details div:last-child p {
  color: var(--blue-500);
  font-size: 1em;
  font-weight: 400;
}

.nft__creator__details {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

.nft__creator__details img {
  width: 2em;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.nft__creator__details p {
  font-size: 0.9em;
  color: var(--blue-500);
  font-weight: 400;
}

.attribution {
  margin: 2em;
  color: var(--white);
  font-size: 0.8em;
}
