@import "./normalize.scss", "./text.scss";

@keyframes profile {
  0% {
    clip-path: polygon(5% 3%, 96% 3%, 97% 93%, 11% 96%);
  }
  25% {
    clip-path: polygon(9% 4%, 99% 1%, 95% 97%, 7% 93%);
  }
  75% {
    clip-path: polygon(5% 6%, 93% 2%, 94% 94%, 13% 96%);
  }
  100% {
    clip-path: polygon(5% 3%, 96% 3%, 97% 93%, 11% 96%);
  }
}

@keyframes front {
  0% {
    clip-path: polygon(3% 2%, 98% 2%, 95% 92%, 9% 92%);
  }
  25% {
    clip-path: polygon(5% 3%, 96% 1%, 97% 93%, 11% 96%);
  }
  75% {
    clip-path: polygon(9% 4%, 99% 1%, 95% 97%, 7% 93%);
  }
  100% {
    clip-path: polygon(3% 2%, 98% 2%, 95% 92%, 9% 92%);
  }
}

@keyframes back {
  0% {
    clip-path: polygon(7% 0, 100% 4%, 92% 93%, 7% 90%);
  }
  25% {
    clip-path: polygon(3% 2%, 98% 2%, 95% 92%, 9% 92%);
  }
  75% {
    clip-path: polygon(5% 3%, 96% 1%, 97% 93%, 11% 96%);
  }
  100% {
    clip-path: polygon(7% 0, 100% 4%, 92% 93%, 7% 90%);
  }
}

nav {
  justify-content: center;
}

main {
  max-width: 820px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content .latest-container {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.profile {
  margin-right: 48px;
  flex-shrink: 0;
  position: relative;

  .profile-container {
    width: 280px;
    height: 373px;
    animation: profile infinite 10s;
    background: white;
  }

  &:after,
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
  }

  &:after {
    animation: front infinite 10s;
    opacity: 0.5;
  }

  &:before {
    animation: back infinite 10s;
    opacity: 0.25;
  }
}

body {
  background-color: var(--body-bg);
  color: var(--body-color);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

header {
  display: none;
}

@media (max-width: 880px) {
  body {
    justify-content: flex-start;
  }

  nav {
    justify-content: flex-end;
  }

  header {
    display: flex;
    margin: 0;
  }

  .lower {
    display: none;
  }

  .profile {
    display: none;
  }

  main {
    margin-top: 2rem;
    max-width: 100%;
    flex-direction: column;
  }
}
