*,*::before,*::after{
    box-sizing: border-box;
}

*{
    margin: 0;
    padding: 0;
}
html, body{
    height: 100%;
    /* overflow: hidden; */
    overflow-x: hidden;
    position:relative;
    left:0px;top:0px;
    font-family: sans-serif, serif, "Noto Sans CJK TC", "Microsoft JhengHei", PingFang, STHeiti;
    letter-spacing: .05rem;
    line-height: 1.5;
}
#container{
    display: flex;
    flex-direction: column;
    height: 100%;
}
header{
    flex: 0 0 auto;
    box-shadow: #aaaaaa 1px 0px 3px;
    background-color: #024183;
}
.main{
    flex: 1 0 auto;
}
footer{
    flex: 0 0 auto;
    width: 100%; 
    background-color: #aaaaaa;
    color: white; 
    padding: 1rem; 
    text-align:center; 
    font-size: small;
}
footer p{
    margin-bottom: 0%;
}
/* normal */
#containerNormal{
    display: flex;
    flex-direction: column;
    height: 100%;
}
#containerNormal header{
    flex: 0 0 auto;
    box-shadow: #aaaaaa 1px 0px 3px;
}
#containerNormal .main{
    flex: 1 0 auto;
}
/* normal */

/* 初始設定 end */
a{
    text-decoration: none;
    color: #fff;
}

.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp, .material-icons-two-tone {
    display: inline-block;
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
    transform: translateY(-.1em);
}
.content{
    margin: 0 auto;
    width: 100%;
}
#containerNormal .content{
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 10rem;
    width: 90%;
    max-width: 1920px;
}
.bg-gradient-blue {
    background: linear-gradient(to bottom, rgb(255, 255, 255, 0) 0%, #e6f3ff 100%);
}
.btn-normal {
    padding: .5rem .75rem;
    border-radius: .5rem;

}

.btn-blue {
    color: #fff;
    border: 1px solid #024183;
    background-color: #024183;
}

.btn-blue:hover {
    color: #fff;
    border: 1px solid #0156b1;
    background-color: #0156b1;
}
.btn-blue-outlined {
    color: #024183;
    border: 1px solid #D9D9D9;
    background-color: #fff;
}

.btn-blue-outlined:hover {
    color: #fff;
    border: 1px solid #024183;
    background-color: #024183;
}
.btn-cancel {
    background-color: #ffffff;
    color: #424242;
    border: 1px solid lightgray;
}

.btn-cancel:hover {
    background-color: lightgray;
    color: #fff;
}
.c-blue {
    color: #024183;
}

.fw-bold {
    font-weight: bold;
}

.fs-24 {
    font-size: 1.25rem;
}
.fs-14 {
    font-size: 14px;
}
.blockly-area {
    position: relative;
    z-index: 1;
    height: calc(100vh - 3rem);
}

.function-area {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 1rem;
}
.offcanvas-header{
    padding: 1rem 1rem 0 1rem;
}
textarea{
    color: #6f6f6f;
    padding: .75rem;
    border: 1px solid #999999;
    border-radius: .25rem;
    max-width: 100% !important;
}
.name-box {
    border: 1px solid lightgray;
    border-radius: .5rem;
    padding: 0 .5rem;
}
.btn-edit {
    border: none;
    color: lightgray;
    background-color: #fff;
}
.btn-edit:hover {
    color: #024183;
}
.input-border {
    color: #333;
    border: 2px solid #4276A6;
    border-radius: .25rem;
    padding: .25rem;
}
/* header start */
.nav-logo {
    height: 2rem;
    margin: 0 0.75rem;
}

.nav-logo-text {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.nav-item {
    margin-left: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.nav-item:hover, .nav-item a:hover {
    color: #93D7FF;
}

.dropdown-menu{
    padding: 0;
}

.dropdown-item{
    padding: 1rem;
}

.dropdown-menu a:hover{
    color: #024183;
    background-color: #F2FAFF;
    font-weight: bold;
}
/* header end */
/* login start */
.login-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.login-box {
    border: 1px solid #eaeaea;
    border-radius: .25rem;
    width: 400px;
    margin: 2rem 1rem;
    background-color: #fff;
}

.login-tab {
    border: none;
}
.login-box .nav-tabs .nav-link.active {
    border-color: transparent;
    color: #024183;
    background-color: #fff;
}

.login-box .nav-tabs .nav-link {
    background-color: lightgray;
    color: #6A6A6A;
}
/* login end */
.page-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #024183;
}
    .member-button-box {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid lightgray;
        text-align: center;
        background-color: #fff;
        color: #024183;
    }

    .member-button-box:hover {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid #024183;
        text-align: center;
        background-color: #fff;
    }

    .member-button-box:active {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid #14519c;
        color: #14519c;
        text-align: center;
        background-color: #fff;
    }

    /* member-page start */
    .user-photo {
        background-color: #c0c0c0;
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 100%;
        margin: .5rem;
    }

    h4 {
        font-size: 1.5rem;
        font-weight: bold;
        line-height: 2rem;
    }

    h5 {
        font-size: 1.25rem;
        font-weight: bold;
    }

    h6 {
        font-size: 1rem;
        font-weight: bold;
    }

    .f-sm {
        font-size: small;
        line-height: 1.25rem;
    }

    .fs-14 {
        font-size: 14px;
    }
    .w-80p {
        width: 80%;
    }

    .mw-10r {
        max-width: 10rem;
    }

    .mw-40r {
        max-width: 40rem;
    }

    .mw-50r {
        max-width: 50rem;
    }

    .mw-60r {
        max-width: 60rem;
    }

    .member-button-box {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid lightgray;
        text-align: center;
        background-color: #fff;
    }

    .member-button-box:hover {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid #024183;
        text-align: center;
        background-color: #fff;
    }

    .member-button-box:active {
        border-radius: .5rem;
        margin: 1rem 0;
        padding: 1.75rem;
        line-height: 0;
        border: 1px solid #14519c;
        color: #14519c;
        text-align: center;
        background-color: #fff;
    }

    .input-box label {
        font-size: small;
        margin-bottom: .5rem;
        font-weight: bold;
    }

    .form-group {
        max-width: 20rem;
        margin: 0 auto;
    }

    .bg-white {
        background-color: #fff;
    }

    .bg-gradient-blue {
        background: linear-gradient(to bottom, rgb(255, 255, 255, 0) 0%, #DEF3FF 100%);
    }

    .border-box {
        border: 1px solid lightgray;
        border-radius: .5rem;
    }

    /* member-page end */
    /* dataTable start */
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 5rem;
    }

    table.dataTable td {
        background-color: rgba(0, 0, 0, 0);
        border-bottom: 1px dashed lightgray;
    }

    table.dataTable td a {
        color: #024183;
    }
    table.dataTable td a:hover {
        color: #024183;
        font-weight: bold;
    }

    table.dataTable td a:last-child:hover {
        color: #D01515;
        font-weight: bold;
    }
    table.dataTable tbody tr:hover {
        background-color: #DEF3FF;
    }

    table.dataTable.no-footer {
        border-bottom: none;
    }

    table.dataTable thead th,
    table.dataTable thead td {
        border-bottom: 1px solid lightgray;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        padding: .5rem .5rem;
        line-height: 1.75rem;
    }

    .th-label {
        display: none;
    }

    table {
        font-size: 14px;
        width: 100%;
        padding: .75rem .5rem;
    }


    @media screen and (max-width: 768px) {
        table.mb-table {
            border: 0;
        }

        table.mb-table thead {
            display: none;
        }

        table.mb-table tr {
            margin-bottom: 1rem;
            display: block;
            border-radius: .5rem;
            padding: .5rem;
            text-align: start;
        }

        table.mb-table thead tr {
            padding: 0;
            margin-bottom: 0;
        }

        table.mb-table tbody tr {
            background-color: #f0f9ff;
        }

        table.mb-table tbody tr:hover {
            background-color: #f0f9ff;
        }

        table.mb-table td {
            display: block;
            font-size: 16px;
            border-bottom: 1px dotted #c9c0c0;
        }

        table.mb-table td:last-child {
            border-bottom: 0;
            text-align: center;
        }

        .th-label {
            font-size: .75rem;
            color: #4AA5FA;
            display: block;
            margin: .25rem 0;
            font-weight: bold;
        }

        table.riverside thead tr:last-child {
            display: none;
        }
    }
    /* dataTable end */
    .dash-bb {
        border-bottom: 1px dashed lightgray;
        margin-bottom: 1rem;
    }

    .form-group-r20 {
        max-width: 20rem;
        margin: 0 auto;
    }

    .t-red {
        color: #D01515;
    }
    .modal-header-blue {
        color: #fff;
        background-color: #024183;
    }