@import url(import.css);

* {
  box-sizing: border-box;
  font-family: 'Outfit', 'Roboto', Verdana, Geneva, Tahoma, sans-serif;
}

:root {
  --dddark-blue: hsl(217, 54%, 11%);
  --ddark-blue: hsl(216, 50%, 16%);
  --dark-blue: hsl(215, 32%, 27%);
  --soft-blue: hsl(215, 51%, 70%);
  --cyan: hsl(178, 100%, 50%);
  --white: hsl(0, 0%, 100%);
}

body {
  margin: 0;
  padding: 0;
  font-size: 18px;
  background-color: var(--dddark-blue);
  color: var(--soft-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background-color: var(--ddark-blue);
  max-width: 360px;
  padding: 20px;
  margin: 0 auto 10px auto;
  border-radius: 5px;
  box-shadow: 0 25px 50px 0 #070D18;
}

.img-wrapper {
  position: relative;
}

.img-wrapper:hover {
  cursor: pointer;
}

.img-wrapper .equi {
  width: 320px;
  border-radius: 5px;
}

.img-wrapper .overlay {
  border-radius: 5px;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background-color: var(--cyan);
}

.img-wrapper .icon-view {
  opacity: 0;
  position: absolute;
  top: calc(320px/2 - 25px);
  left: calc(320px/2 - 25px);
  width: 50px;
  height: 50px;
}

.img-wrapper:hover .overlay {
  opacity: 0.6;
}

.img-wrapper:hover .icon-view {
  opacity: 1;
}

h1, .user-name, .overlay, .icon-view {
  transition: linear 0.2s;
}

h1 {
  color: var(--white);
  font-weight: 600;
  font-size: 20px;
}

h1:hover {
  color: var(--cyan);
  cursor: pointer;
}

.price::before {
  content: url(../images/icon-ethereum.svg);
  position: relative;
  top: 3px;
}

.details {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.price {
  color: var(--cyan);
  font-weight: 600;
}

.time::before {
  content: url(../images/icon-clock.svg);
  position: relative;
  top: 3px;
}

.hr {
  border-bottom: solid 1px var(--soft-blue);
  margin-bottom: 10px; 
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-name {
  color: var(--white);
}

.user-name:hover {
  color: var(--cyan);
  cursor: pointer;
}

@media only screen and (max-width: 400px) {
  .card {
    max-width: 340px;
  }

  .img-wrapper .equi, .img-wrapper .overlay {
    width: 100%;
    height: 300px;
  }
}
