@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
  --soft-blue: hsl(215, 51%, 70%);
  --cyan: hsl(178, 100%, 50%);

  /* ### Neutral */

  --main-bg: hsl(217, 54%, 11%);
  --card-bg: hsl(216, 50%, 16%);
  --line: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  background-color: var(--main-bg);
}
.container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card {
  height: 600px;
  width: 360px;
  background-color: var(--card-bg);
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0px 30px 5px 15px hsl(215, 55%, 9%), 0px 25px 5px 50px hsl(215, 55%, 10%);
}
.main-img {
  position: relative;
}
.main-img img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.layer {
  background: transparent;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  border-radius: 0.5rem;
}
.layer:hover {
  background: hsl(178, 100%, 50%, 50%);
  transition: 0.5s;
  cursor: pointer;
}
.layer img {
  width: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  opacity: 0;
}
.layer:hover img {
  opacity: 1;
  transition: 0.5s;
}
h1 {
  padding: 0.7rem 0;
}
h1 a {
  color: var(--white);
  font-size: 22px;
  text-decoration: none;
}
h1 a:hover {
  color: var(--cyan);
  transition: 0.5s;
  cursor: pointer;
}
p {
  color: var(--soft-blue);
  font-weight: 300;
  line-height: 1.7rem;
}
ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
ul li {
  color: var(--soft-blue);
  display: flex;
  align-items: center;
  font-weight: 400;
}
ul li img {
  padding-right: 0.5rem;
}
ul li:first-child {
  color: var(--cyan);
}
.avatar img {
  width: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  margin-right: 1.25rem;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: start;
  padding-top: 1.25rem;
}
.avatar p a {
  color: var(--white);
  font-weight: 400;
  text-decoration: none;
}
.avatar p a:hover {
  color: var(--cyan);
  transition: 0.5s;
  cursor: pointer;
}

@media(max-width:400px) {
  .card {
    width: 310px;
    height: 545px;
  }
  .avatar img {
    margin-right: 1rem;
  }
  body {
    font-size: 16px;
  }
  h1 a {
    font-size: 22px;
  }
  .container {
    margin-bottom: -2.3rem;
  }
}
.attribution {
  font-size: 14px;
  text-align: center;
  color: var(--soft-blue);
  padding-top: 1rem;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}