﻿body {
    background-color: #111
}

    body * {
        font-family: "Microsoft YaHei","Arial","HELVETICA","Tahoma","sans-serif" !important;
        color: inherit;
        color: #fff
    }

*, :after, :before {
    box-sizing: inherit
}

br {
    display: block;
    content: "";
    line-height: 22px
}

.header-logo-th {
    background-image: url("../../img/logo-th.png");
    position: relative;
    top: 0;
    left: 0;
    margin: 5px 0 5px 0;
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    height: 80%;
    min-width: 100px;
    display: inline-block;
    transition: .2s
}

.header-main-body .header-logo {
    position: relative;
    top: 0;
    left: 0;
    margin: 5px 0 5px 0;
    background-image: url('../../img/logo-main-v2.png');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    height: 80%;
    min-width: 100px;
    display: inline-block;
    transition: .2s
}

.header-section {
    background-color: #111;
    transition: height .2s;
    z-index: 1
}

.header-height {
    height: 50px
}

.errorBackground {
    background-image: url('../../img/Error/bg-error.jpg');
    background-size: cover;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
}

.errorBackground-th {
    background-image: url('../../img/Error/bg-error-th.jpg');
    background-size: cover;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
}

/* tablet */
@media (min-width: 768px) {
    .errorBackground {
        background-image: url('../../img/Error/bg-error.jpg');
    }
}
/* tablet landscape and desktop */
@media (min-width: 1024px) {
    .errorBackground {
        background-image: url('../../img/Error/bg-error.jpg');
    }
}

@media (max-width: 1024px) {
    .errorBackground, .errorBackground-th {
        background-position: 10%;
    }
}
/* larger desktops */
@media (min-width: 1280px) {
    .errorBackground {
        background-image: url('../../img/Error/bg-error.jpg');
    }
}


.errorContent {
    text-align: right;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.6
}

    .errorContent .button {
        min-width: 220px;
        text-align: center;
        margin: 10px 15px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 3px;
        background-color: #439539;
        line-height: 28px;
        padding: .5em 1em;
        outline: 0;
        transition: none;
        display: inline-block;
        cursor: pointer;
        text-decoration: none;
        border: 1px solid #439539
    }

        .errorContent .button:hover {
            color: #439539;
            background-color: #fff
        }

.errorTitle {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
    padding-bottom: .5em;
    margin-bottom: 1rem
}

.errorMessageSmall {
    margin: 0;
    font-size: 16px;
    padding-bottom: .5em;
    margin-bottom: 1rem
}

.icon-base {
    display: inline-block;
    padding: 0;
    width: 30px;
    height: 28px;
    vertical-align: top;
    margin: 0 8px
}

@media screen and (min-width: 32em) {
    .header-main-body .header-logo {
        min-width: 120px
    }
}

@media screen and (min-width: 40em) {
    .header-main-body .header-logo {
        margin-left: 30px;
        min-width: 180px
    }

    .errorBackground, .errorBackground-th {
        min-height: 725px
    }

    .errorContent {
        padding-left: 1.5rem;
        padding-right: 1.5rem
    }

    .errorTitle {
        font-size: 40px
    }

    .errorMessageSmall {
        font-size: 18px
    }
}

@media screen and (min-width: 64em) {
    .errorBackground, .errorBackground-th {
        min-height: 725px
    }

    .header-height {
        height: 86px
    }

    .header-main-body, .header-main {
        height: 86px
    }

        .header-main-body .header-logo {
            min-width: 170px;
            background-size: auto;
            height: 90%;
            margin-left: 70px
        }

    .errorContent {
        padding-left: 2.5rem;
        padding-right: 2.5rem
    }

    .errorTitle {
        font-size: 45px
    }

    .errorMessageSmall {
        font-size: 20px
    }
}

@media only screen and (min-width: 80em) {
    .errorBackground, .errorBackground-th {
        min-height: 725px
    }

    .errorTitle {
        font-size: 60px
    }

    .errorMessageSmall {
        font-size: 24px
    }
}

@media only screen and (min-width: 768px)and (max-width:1024px)and (orientation:landscape) {
    .errorBackground, .errorBackground-th {
        min-height: 725px
    }
}
