@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%);
  --main-bg: hsl(217, 54%, 11%);
  --card-bg: hsl(216, 50%, 16%);
  --line: hsl(215, 32%, 27%);
  --white: hsl(0, 0%, 100%);
}

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

img {
  max-width: 100%;
}

ul {
  list-style-type: none;
}

p {
  font-weight: 300;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--main-bg);
  font-size: 18px;
  padding: 1.25rem;

  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container {
  background-color: var(--card-bg);
  padding: 1.25rem;
  border-radius: 1rem;
  max-width: 350px;
  box-shadow: 0px 0px 30px 5px rgba(0, 0, 0, 0.75);
}

.container img {
  border-radius: 0.9rem;
}

.container .img-top {
  position: relative;
}

.container .img-top div {
  position: absolute;
  background-color: var(--cyan);
  width: 100%;
  height: calc(100% - 4px);
  top: 0;
  opacity: 0;
  border-radius: 0.9rem;
  transition: opacity 0.3s ease-in-out;
}

.container .img-top div:hover {
  opacity: 50%;
  cursor: pointer;
}

.container .img-top div img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.container h2 {
  color: var(--white);
  text-decoration: none;
  margin: 1rem 0.5rem 0.5rem 0;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.container h2:hover {
  cursor: pointer;
  color: var(--cyan);
}

.container p {
  color: var(--soft-blue);
  margin-bottom: 1.25rem;
}

.container ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.container ul li {
  color: var(--soft-blue);
  display: flex;
  align-items: center;
}

.container ul li:first-child {
  color: var(--cyan);
}

.container ul li img {
  margin-right: 0.3rem;
}

.container .avatar {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-top: 1rem;
}

.container .avatar img {
  width: 2.5rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  margin-right: 1rem;
}

.container .avatar .avatar-text {
  color: var(--soft-blue);
  font-weight: 300;
}

.container .avatar .avatar-text a {
  color: var(--white);
  text-decoration: none;
}

.container .avatar .avatar-text a:hover {
  color: var(--cyan);
}

.footer {
  height: 50px;
  color: var(--soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.footer a:visited {
  color: white;
}

.fa-github {
  color: var(--white);
  font-size: 24px;
  transition: transform 0.3s ease-in-out;
  margin-left: 8px;
}

.fa-github:hover {
  transform: rotate(360deg) scale(1.2);
}

@media (min-width: 500px) {
  .container {
    width: 450px;
    margin: auto auto;
  }
}
