@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Outfit:wght@300;400;600&family=Press+Start+2P&display=swap");

:root {
  --soft-blue: hsl(215, 51%, 70%);
  --cyan: hsl(178, 100%, 50%);
  --blue-900: hsl(217, 54%, 11%);
  --blue-600: hsl(216, 50%, 16%);
  --blue-300: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

h1 {
  font-size: 24px;
}

.container {
  font-family: "Outfit";
  height: 100%;
  display: grid;
  place-items: center;
  background-color: var(--blue-900);
}
.card {
  background-color: var(--blue-600);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 25px 25px 50px -10px rgb(0 0 0 / 0.25),
    -25px 0 50px -10px rgb(0 0 0 / 0.25);
}
.card-img {
  width: 300px;
  height: 300px;
  border-radius: 0.5rem;
  background: url(images/image-equilibrium.jpg);
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: hsl(178, 100%, 50%, 0.5);
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}
.card-img > img {
  width: 50px;
  height: 50px;
}
.card-title {
  color: var(--white);
}

.card-text {
  font-size: 18px;
  font-weight: 300;
  color: var(--soft-blue);
  max-width: 25ch;
  margin-bottom: 0.5rem;
}
.card-stats {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--blue-300);
}
.card-stats > p > img {
  transform: translateY(3px);
}
.quantity {
  color: var(--cyan);
}
.expiry {
  color: var(--soft-blue);
}
.avatar {
  width: 35px;
  border-radius: 100%;
  border: 1px solid white;
}
.card-foot {
  color: var(--soft-blue);
  margin-top: 1rem;
  position: relative;
}
.card-foot > span {
  position: absolute;
  top: 40%;
  transform: translatey(-50%);
  margin-left: 1rem;
}
.avatar-name {
  color: var(--white);
}

.view:hover {
  opacity: 1;
  transition: ease-in-out;
  transition-duration: 150ms;
}

.card-title:hover,
.avatar-name:hover {
  cursor: pointer;
  color: var(--cyan);
  transition: ease-in-out;
  transition-duration: 200ms;
}

.attribution {
  color: var(--white);
  position: absolute;
  bottom: 0;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}
