/* For form login bottom */
/* Basic */

@-ms-viewport {
    width: device-width;
}

body {
    -ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {

    html, body {
        min-width: 320px;
    }

}

body {
    background: rgb(238, 238, 238);
}

.container-login {
    min-height: auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.box-card {
    padding: 2.5vw;
    max-width: 80%;
    height: auto;
    border: solid 0.5px rgb(204, 204, 204);
    background-color: white;
    border-radius: 5px;
}

.form-login {
    display: block;
    min-height: auto;
    width: 100%;
    display: block;
    display: -webkit-box;
    display: -moz-box;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
 }

     .form-input {

        display: table-row;
        justify-content: center;

        margin: 2vh 0 2vh 0;
        display: inline-flex;
        display: -flex-wrap;
        width: 100%;
     }

     .form-input input {
        width: 100%;
        padding: 0% 5% 0% 5%;
         border-top-right-radius: 5px;
         border-bottom-right-radius: 5px;
         border: 1px solid lightgrey;
         border-left: 0px;

        font-size: 0.8em;
     }

     .form-input i {
        width: 10%;
        display: block;
        justify-content: center;
        align-content: center;
        align-items: center;
        vertical-align: middle;

        border: 1px solid lightgrey;
        background-color: #E6E6FA;
        color: #4F4F4F;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        padding: 10px;
        width: fit-content;
        height: auto;
     }

     .form-input div#iconusername {
       background-image: url("imgs/iconusername.png")
        width: 10%;
        display: block;
        justify-content: center;
        align-content: center;
        align-items: center;
        vertical-align: middle;

        border: 1px solid lightgrey;
        background-color: #E6E6FA;
        color: #4F4F4F;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        padding: 5px;
        width: fit-content;
        height: auto;
     }

     .form-input div#iconpassword {
       background-image: url("imgs/iconpassword.png")
        width: 10%;
        display: block;
        justify-content: center;
        align-content: center;
        align-items: center;
        vertical-align: middle;

        border: 1px solid lightgrey;
        background-color: #E6E6FA;
        color: #4F4F4F;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        padding: 5px;
        width: fit-content;
        height: auto;
     }
     /* .form-input div#iconusername, */


     .btn-login {
        margin: 2vh 0 2vh 0;
        width: 100%;
        background-color: #dc4b16;
        /* background-color: rgb(241, 81, 7); */
        font-weight: bold;
        color: white;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.6), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        border-radius: 3px;
        border: solid 1px rgb(241, 81, 7);
        padding: 10px;
     }

     .btn-login:hover {
        cursor: pointer;
        filter: brightness(130%);
     }

    @media screen and (max-width: 480px) and (orientation: portrait) {
        .box-card .form-login .form-input i {
            border: 1px solid lightgrey;
            background-color: #E6E6FA;
            color: #4F4F4F;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
            padding: 10px;
            width: 10%;
            height: auto;
            text-align: center;
        }

        .box-card .form-login .form-input input {
            padding: 0% 5% 0% 5%;
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            border: 1px solid lightgrey;
            /* line-height: 2em; */
            border-left: 0px;
            width: 100%;
        }
    }

/*************************************/
/*******************/
/*     FOR HOME.JSP PAGE | HEADER    */
/*                  ******************/
/*************************************/

.main-header {
    /* background: rgb(129, 0, 0); */
    background: rgb(255, 255, 255);
    width: 100%;
}

/*************************************/
/*******************/
/*    FOR HOME.JSP PAGE | CONTENT    */
/*                  ******************/
/*************************************/

.container {
    /* min-height: auto; */
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 15px;
    /* margin-block-start: 100px; */
    height: 100%;
    background-color: rgb(253, 253, 253);
}

/* ความกว้างของส่วนข้อความที่ต้องการแสดง */
    .main-content {
        width: 100%;
        height: 100%;
        margin: 80px;
    }

        @media screen and (max-width: 571px) {
            .main-content {
                width: 100%;
                height: 100%;
                margin: 30px;
            }
        }

    /* ส่วนแสดงปุ่มแต่ละเมนู */
    .menu-content {
        /* padding: 2.5vw; */
        /* padding: 2vw; */
        width: 100%;
        height: 100%;
        border: solid 1.5px #e7e7e7;
        background-color: rgb(255, 255, 255);
        border-radius: 5px;
        box-shadow: 0px 0px 5px rgb(212, 212, 212);
        margin: 20px 0px 20px 0px;
    }

    .menu-content :hover{
        background-color: #dceaed;
    }

    /* ข้อความในปุ่มแต่ละเมนู */

    .menu-content p {
        font-weight: bold;
        text-shadow: 0 0 4px  rgb(236, 236, 236);
        line-height: 9.5vh;
        margin-inline-start: 20px;
        margin-left: 20px;
    }



    html {
        width: 100%;
        height: 100%;
    }

    html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
        font-family: Arial, Helvetica, sans-serif;
    }
        body {
            -webkit-text-size-adjust: none;
        }

    /* Basic */

        @-ms-viewport {
            width: device-width;
        }

        body {
            -ms-overflow-style: scrollbar;
        }

        @media screen and (max-width: 480px) {

            html, body {
                min-width: 320px;
            }

        }

        body {
            background: rgb(238, 238, 238);
        }

        body.is-loading *, body.is-loading *:before, body.is-loading *:after {
            -moz-animation: none !important;
            -webkit-animation: none !important;
            -ms-animation: none !important;
            animation: none !important;
            -moz-transition: none !important;
            -webkit-transition: none !important;
            -ms-transition: none !important;
            transition: none !important;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            line-height: 1.5;
            margin: 0 0 1rem 0;
        }

        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
            color: inherit;
            text-decoration: none;
        }

        h2 {
            font-size: 1.75rem;
        }

        header {
            margin: 0;
            padding: 0;
            border: 0;
            font: inherit;
            vertical-align: baseline;
        }

        @media screen and (max-width: 480px) and (orientation: portrait) {
            .section-header .show-logo > img {
                max-width: 70%;
                margin-top: 5%;
                display: block;
                margin-left: auto;
                margin-right: auto;
            }
        }

        @media screen and (min-width:481px) and (max-width: 570px) and (orientation: portrait) {
            .section-header .show-logo {
                margin-left: auto;
                margin-right: auto;
            }
            .section-header .show-logo > img {
                min-width: 10%;
                margin: 4% 0% 0% 2%;
                display: block;
            }
        }

        @media screen and (max-width: 480px) and (orientation: landscape) {
            .section-header .show-logo > img {
                max-width: 30%;
                margin: 3% 0% 0% 1%;
                display: block;

            }
        }


        @media screen and (min-width: 571px) and (max-width: 1200px) {
            .section-header .show-logo {
                margin-left: auto;
                margin-right: auto;
            }
            .section-header .show-logo > img {
                min-width: 20%;
                margin: 3% 0% 0% 1.5%;
                display: block;
            }
        }

        @media screen and (min-width:1200px) {
            .section-header .show-logo {
                margin-left: auto;
                margin-right: auto;
            }
            .section-header .show-logo > img {
                min-width: 13.5%;
                margin: 3% 0% 0% 2.5%;
                display: block;
            }
        }

    /* <!-- SECTION | CONTAIN --> */
    /* <!-- CONTAIN: HEADER --> */
    .out-box {
        min-height: 100%;
    }
        .container-header {
            /* border: solid 10px rgb(24, 117, 97); */
            min-height: auto;
            display: -webkit-box;
            display: -webkit-flex;
            display: -moz-box;
            display: -ms-flexbox;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            margin: 0px;
            margin-top: 8%;
            /* -webkit-margin-top-collapse: inherit; */
        }

            @media screen and (max-width: 640px) and (orientation:landscape){
                .container-header {
                    margin-top: 4%;
                }

                .container-header >  h1 {
                    font-weight: 700;
                    margin: 0;
                    color: #2d678a;
                    font-size: 25px;
                }
            }

            @media screen and (max-width:570px) and (orientation:portrait){
                .out-box .container-header {
                    margin-top:15%;
                }

                .container-header >  h1 {
                    font-weight: 700;
                    margin: 0;
                    color: #2d678a;
                    /* font-size: 7vmin; */
                    font-size: 30px;
                    /* font-size: 7vmax; */
                }
            }

            @media screen and (min-width: 571px) {
                .container-header >  h1 {
                    font-weight: 700;
                    margin: 0;
                       color: #2d678a;
                    font-size: 2.5rem;
                    /* font-size: 2vmax; */
                }
            }

    /* <!-- CONTAIN: LOGIN --> */

        input[type="text"]:invalid, input[type="password"]:invalid {
            box-shadow: none;
        }

        input[type="text"]:focus, input[type="password"]:focus {
            /* border-color: #b6b6b6;
            box-shadow: 0 0 0 1px #727272; */
        }




        /*form bubble*/
        			 .form-bubble{
                        background-color:#f2f2f2;
                        border: 1px solid #c7cdd1;
                        -webkit-border-radius: 5px;
                        -moz-border-radius: 5px;
                        border-radius: 5px;
                        -webkit-box-shadow: #666 0px 2px 3px;
                        -moz-box-shadow: #666 0px 2px 3px;
                        box-shadow: #666 0px 2px 3px;
                        font-family: arial;
                        font-size: 12px;
                        display:none;
                        float:left;
                        margin-right:14px;
                        padding:14px;
                        position:absolute;
                        z-index:101;
                        behavior: url(/pie/PIE.htc);


                    }
                    .form-bubble .form-bubble-close{
                        background:#fff url('images/close_button.png') no-repeat;
                        cursor:pointer;
                        height:10px;
                        position:absolute;
                        right:5px;
                        top:5px;
                        width:10px !important;
                    }
                    /*all pointers*/
                    .form-bubble .form-bubble-pointer-right, .form-bubble .form-bubble-pointer-top-right, .form-bubble .form-bubble-pointer-left, .form-bubble .form-bubble-pointer-top-left, .form-bubble .form-bubble-pointer-bottom-left{
                        background-repeat:no-repeat;
                        float:left;
                        height:13px;
                        position:absolute;
                        width:14px !important;
                    }
                    /*pointers right*/
                    .form-bubble .form-bubble-pointer-right, .form-bubble .form-bubble-pointer-top-right{
                        background-image: url('images/formbubblepointer-right.png');
                        right:-14px;
                    }
                    .form-bubble .form-bubble-pointer-right{
                        margin-top:-6px;
                        top:50%;
                    }
                    .form-bubble .form-bubble-pointer-top-right{
                        top:8px;
                    }
                    /*pointers left*/
                    .form-bubble .form-bubble-pointer-left, .form-bubble .form-bubble-pointer-top-left, .form-bubble .form-bubble-pointer-bottom-left{
                        background-image: url('images/formbubblepointer.png');
                        left:-14px;
                    }
                    .form-bubble .form-bubble-pointer-left{
                        margin-top:-6px;
                        top:50%;
                    }
                    .form-bubble .form-bubble-pointer-top-left{
                        top:8px;
                    }
                    .form-bubble .form-bubble-pointer-bottom-left{
                        bottom:14px;
                    }
        /*end form bubble*/
