html, body {
    height: 100%;
    display: flex;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
}

.error-page-container {
    display: flex;
    position: relative;
}

.error-page-messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-radius: 40px;
}

#width-cat {
    background-image: url("/images/cc-characters/cat.png");
    background-repeat: no-repeat;
}

#width-dogbrown {
    background-image: url("/images/cc-characters/dog1.png");
    background-repeat: no-repeat;
}

#width-doghusky {
    background-image: url("/images/cc-characters/dog2.png");
    background-repeat: no-repeat;
}

.error-page-title {
    color: #4D39FF;
    font-weight: 700;
    max-width: 19ch;
}

.error-page-subtitle {
    color: #008195;
}

.error-page-message {
    color: #01011E;
    font-weight: 600;
    font-size: 20px;
}

#message-width-cat {
    max-width: 25ch;
    font-weight: 400;
}

#message-width-dogbrown {
    max-width: 16ch;
    font-weight: 400;
}

#message-width-doghusky {
    max-width: 20ch;
    font-weight: 400;
    font-size: 16px;
    margin-left: 8px;
}
#subtitle-width-doghusky {
    max-width: 22ch;
    color: #008495;
    font-weight: 500;
    font-size: 18px;
    margin-left: 8px;
}

.error-page-button {
    background-color: #008195;
    padding: 8px 32px;
    width: 120px;
    border-radius: 35px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16px;
    display: flex;
    justify-content: center;
}

.error-page-button-doghusky {
    margin-top: 12px;
}

.error-page-tsr-logo {
    position: absolute;
    height: 32px;
    width: auto;
}

@media (min-width: 1024px) {
    html, body {
        align-items: center;
        justify-content: center;
    }

    body {
        background-size: 100%;
    }

    .error-page-title {
        font-size: 42px;
    }

    #width-dogbrown {
        width: 360px;
        height: 350px;
        background-position: right;
        background-size: 55%;
    }

    #width-cat {
        width: 700px;
        background-position: right bottom;
        background-size: 65%;
    }

    #width-doghusky {
        width: 500px;
        height: 350px;
        background-position: right bottom;
        background-size: 60%;
        gap: 8px;
    }

    #title-placement-browndog {
        padding-top: 40px;
    }

    .error-page-messages-container {
        gap: 20px;
    }

    #tsr-logo-dogbrown {
        bottom: 20%;
        left: 40%;
    }

    #tsr-logo-cat {
        top: 35%;
        right: 10%;
    }

    #tsr-logo-doghusky {
        bottom: 15%;
        left: 35%;
    }
}

@media (max-width: 1023px) {
    html, body {
        height: 100%;
        width: 100%;
        justify-content: center;
    }

    body {
        background-size: 250%;
    }

    .error-page-container {
        justify-content: center;
    }

    .error-page-messages-container {
        align-self: center;
        width: 100%;
        height: 80%;
        background-position: bottom;
    }

    #width-dogbrown {
        background-size: 70%;
    }

    #width-cat, #width-doghusky {
        background-size: 80%;
    }

    #width-cat {
        gap: 16px;
    }

    #width-doghusky {
        gap: 8px;
    }

    .error-page-messages-container {
        gap: 30px;
    }

    .error-page-tsr-logo {
        top: 10%;
        left: 10%;
    }

    .error-page-title {
        font-size: 32px;
        margin-top: 20%;
    }

    .error-page-button {
        align-self: center;
        margin-top: 8px;
    }
}