svg#freepik_stories-404-error {
    width: 400px;
}

svg#freepik_stories-404-error:not(.animated) .animable {
    opacity: 0;
}

svg#freepik_stories-404-error.animated #freepik--Planets--inject-87 {
    animation: 6s Infinite linear floating;
    animation-delay: 0s;
}

svg#freepik_stories-404-error.animated #freepik--Astronaut--inject-87 {
    animation: 3s Infinite linear wind;
    animation-delay: 0s;
}

@keyframes floating {
    0% {
        opacity: 1;
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes wind {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1deg);
    }

    75% {
        transform: rotate(-1deg);
    }
}

.animator-hidden {
    display: none;
}

#error-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: auto;
    padding-right: 5rem;
    flex-direction: row;
    border-radius: 50px;
}

#error-description {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
}

#back-link {
    text-decoration-color: #aaa;
    transition: color 0.2s;
}

#back-link:hover {
    color: #055;
}

@media(max-width:768px) {
    svg#freepik_stories-404-error {
        width: 100%;
    }

    #error-card {
        flex-direction: column;
        gap: 0rem;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    #error-description {
        margin: 0 2rem 2rem 2rem;
        gap: 1rem;
    }

    #error-description h1 {
        text-align: center;
    }

    #error-description a {
        text-align: center;
        width: 100%;
    }
}