:root {
    --404width: 400px;
}

@keyframes notfound {
    0% {
        color: rgb(246, 190, 147, 0);
        font-size: 0em;
    }
    60% {
        color: rgb(246, 190, 147, 1);
        font-size: 5.5em;
        text-shadow: 1px 1px 2px white;
    }
    100% {
        visibility: visible;
        color: rgb(246, 190, 147, 1);
        font-size: 4em;
        text-shadow: 1px 1px 2px black;
    }
}

@keyframes textanim {
    0%,
    100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(-5deg);
    }
}

body {
    background-image: linear-gradient(rgb(240, 229, 221), rgb(219, 234, 169), white);
    background-size: 100vw 100vh;
}

#container {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    border: 2px solid black;
    width: var(--404width);
    height: var(--404width);
    background-image: linear-gradient(rgb(228, 195, 50), rgb(246, 190, 147), white, rgba(223, 253, 255, 0));
    border-radius: 50% 50% 50% 50%;
}

#notfound {
    position: absolute;
    visibility: hidden;
    top: 0.5em;
    text-align: center;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    animation-name: notfound;
    animation-duration: 10s;
    animation-delay: 3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    width: 100%;
}

#wave {
    position: absolute;
    border: 0px;
    width: var(--404width);
    height: var(--404width);
    bottom: 0;
    background-image: url("../images/wave.png");
    background-position: bottom;
    background-repeat: no-repeat;
    border-radius: inherit;
    z-index: 1;
}

#fourzerofour {
    position: absolute;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 6em;
    top: 50%;
    left: 25%;
    z-index: 0;
    font-weight: bold;
    color: rgba(119, 93, 65, 1);
    color: var(--h1text);
    text-shadow: 2px 2px 2px yellow;
    overflow: hidden;
    animation-name: textanim;
    animation-duration: 6s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@media screen and (max-width: 600px) {
     :root {
        --404width: 380px;
    }
    #fourzerofour {
        top: 45%;
    }
}