@keyframes scroll-button-animation {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(1rem);
    }
}
@keyframes header-fly-out {
    50% {
      transform: scale(1);
    }
    100% {
      transform: scale(3);
    }
}
header {
    max-width: 100%;
    height: -moz-max-content;
    height: max-content;
    padding: 5rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color2);
    text-align: center;
    overflow: hidden;
}
@media screen and (prefers-reduced-motion: no-preference) {
    header {
      animation-timeline: view();
      transform-origin: bottom;
    }
}
header * {
    max-width: 800px;
    z-index: 3;
}
header h1 {
    font-size: 4rem;
    margin: 1rem auto;
}
header p {
    font-size: 1.5rem;
    font-style: italic;
}
header .profile-picture {
    width: 200px;
    margin-top: 2rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 500px;
}
@media (prefers-reduced-motion: no-preference) {
    header button.scroll-button {
      animation: scroll-button-animation 0.5s alternate infinite;
    }
}
  
@media (height < 800px) {
    .profile-picture {
      z-index: 0;
      opacity: 0.5;
    }
}
@media (height < 450px) {
    .profile-picture {
        display: none;
    }
    header {
        height: -moz-fit-content;
        height: fit-content;
    }
}

footer {
    background-color: var(--color1);
    color: var(--color2);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
  
@media (width < 1000px) {
    header {
      padding-top: 10rem;
    }
    header h1 {
      font-size: 3rem;
    }
}