header {
    padding: 0;
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 2;
    height: 6em;
    top: 0;
    left: 0;
}

.header-background{
    background-image: url('/media/clouds.jpeg');
    background-size: cover;
    -webkit-animation: slidein 20s;
    animation: slidein 20s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: background-color 0.3s, box-shadow 0.3s;
    z-index: 2;
    filter: sepia(100%);
}

@-webkit-keyframes slidein {
    from {
        background-position: top;
        background-size: 3000px;
    }
    to {
        background-position: -100px 0px;
        background-size: 2750px;
    }
}

@keyframes slidein {
    from {
        background-position: top;
        background-size: 3000px;
    }
    to {
        background-position: -100px 0px;
        background-size: 2750px;
    }

}

header .header-content{
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1em;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    margin: auto;
}

header .header-content h1 {
    text-align: center;
    color: #222;
}

header h2 {
    color: #35b;
    text-shadow: 0 0 5px #fff;
}

@media (max-width: 768px) {
    header .header-content {
        flex-direction: column;
        gap: 0.25em;
    }

    header .header-content h1, header .header-content h2 {
        font-size: 1.5em;
        margin: 0;
    }
}

header.sticky {
    box-shadow: 0 0 15px black;
}