* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #0d192c;
  line-height: 1;
}

main {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nft-card {
  max-width: 35rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #15263f;
  border-radius: 1.5rem;
  padding: 2.4rem;
}

.nft-img {
  height: 30.2rem;
  width: 30.2rem;
  border-radius: 8px;
}

.nft-title {
  margin-bottom: 1.6rem;
  align-self: flex-start;
  color: #fff;
  margin-top: 2.4rem;
  text-decoration: none;
}

.nft-title h1 {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 2.77rem;
}

.nft-text {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 2.6rem;
  margin-bottom: 2.4rem;
  color: #8bacd9;
}

.ethereum-container {
  display: flex;
  gap: 10.9rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid #2e405a;
}

.ethereum-box,
.time-left-box,
.avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ethereum-box {
  gap: 6.48px;
}

.ethereum-number {
  color: #00fff8;
  font-weight: 600;
}

.ethereum-number,
.days-left {
  font-size: 1.6rem;
  line-height: 2rem;
}

.time-left-box {
  gap: 7.7px;
}

.clock {
  display: block;
}

.days-left {
  color: #8bacd9;
  font-weight: 400;
}

.avatar-box {
  align-self: flex-start;
  gap: 1.6rem;
  padding: 1.6rem 0 0.8rem 0;
}

.author-img {
  height: 3.3rem;
  width: 3.3rem;
  border-radius: 50%;
  border: 1px solid #fff;
}

.author-name {
  font-size: 1.6rem;
  font-weight: 400;
  color: #8bacd9;
  line-height: 2rem;
}

.name {
  margin-left: 5px;
  color: #fff;
  text-decoration: none;
}

.name:hover,
.nft-title:hover {
  color: #00fff8;
  cursor: pointer;
}

.nft-img-box {
  position: relative;
}

.nft-img::before {
  content: "";
  background: url("../images/icon-view.svg") center no-repeat;
  background-color: #00fff880;
  border-radius: 8px;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.5s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.nft-img:hover::before {
  opacity: 1;
}

@media (max-width: 31.2em) {
  html {
    font-size: 62.5%;
  }

  main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nft-card {
    max-width: 32.7rem;
  }

  .nft-img {
    height: 27.8rem;
    width: 27.8rem;
  }

  .ethereum-container {
    gap: 9.68rem;
  }

  .ethereum-number,
  .days-left {
    font-size: 1.5rem;
    line-height: 1.89rem;
  }
}
