html,
body {
    height: 100%;
    font-family: 'Open sans', 'segoe ui', arial, sans-serif;
    font-weight: 300;
}

body * {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.error {
    height: 100%;
}

.error-code {
    width: 100%;
    color: #fff;
    background-color: #0079c4;
    position: relative;
}

@media (min-height: 700px) {
    .error-code {
        min-height: 70%;
    }
}

.error-code h5 {
    font-weight: 300;
    font-size: 80px;
    line-height: 1.1;
    margin: 0;
    border-bottom: 1px solid #429dd6;
    padding-bottom: 20px;
}

.error-container p {
    font-size: 21px;
}

.error-code a {
    color: #fff;
    text-decoration: none;
}

.error-code a:hover {
    text-decoration: underline;
}

.error-container strong {
    font-weight: 400;
}

.error-code:before,
.error-code:after {
    content: '';
    display: table;
}

.error-container {
    margin: 30px auto;
    width: 100%;
    text-align: center;
}

.error-container,
footer {
    max-width: 1000px;
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
}

.error-container h5,
.error-container p {
    width: 100%;
}

.error-container img {
    max-width: 30%;
    width: auto;
    height: auto;
    margin: 0 auto;
}

footer {
    margin: 10px auto 20px auto;
    font-weight: 400;
}

footer img,
footer a {
    display: inline-block;
    vertical-align: middle;
}

footer img {
    margin-right: 40px;
}

footer a {
    margin-right: 15px;
    color: #333;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.error-actions a {
    color: #d6f8ff;
}

@media (max-width: 767px) {
    footer {
        text-align: center;
    }
    footer img,
    footer a {
        margin: 10px;
    }

    .error-actions a {
        display: block;
        margin-bottom: 20px;
        clear: both;
    }

    footer img {
        display: block;
        clear: both;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) {
    .error-container {
        text-align: initial;
    }
    .error-container img {
        max-width: none;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 30px;
        margin: auto;
    }
    .error-code h5 {
        font-size: 200px;
    }
    .error-container h5,
    .error-container p {
        width: 60%;
    }
    .error-actions a {
        margin-right: 20px;
    }
}