/*基本變數設定*/
:root{ 
    --d-blue: #072f38;
    --h-blue: #0b4c5b;
    --d-green: #334e3b;
    --m-green: #65806d;
    --m-gray: #f3f3f0;
    --m-soil: #bd7423;
    --h-soil: #d2842b;
}


*{
    margin: 0px;
    padding: 0px;
}

a{
    transition: .3s;
    cursor: pointer;
}

button{
    cursor: pointer;
}

a:hover{
    text-decoration: none;
}

hr{
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}


::selection{
    background-color: #334e3b;
    color: #f2f2ef;
}

body{
    font-family: '微軟正黑體';
    background-color: #f3f3f0;
    font-size: 0.99rem;
}

.fz-17{
    font-size: 17px;
}

.fw-600{
    font-weight: 600;
}

.border-none{
    border: unset !important;
}

.row{
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
}

.w-48{
    width: 48%;
}
.modal-header{
    background-color: var(--h-blue);
    color: #fff;
    font-weight: 600;
}

.modal-title{
    font-weight: 600;
    color: #fff !important;
}

.modal-header .close{
    color: #fff;
}

.modal-content{
    background-color: unset;
}

.modal-footer{
    justify-content: center;
    background-color: #fff;
}

.modal-body{
    padding-bottom: 40px;
    background-color: #fff;
}

.btn-danger{
    background-color: #b10000;
    border-color: #b10000;
}


.context {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 1;
}

.login-wrap{
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    padding: 100px 60px 60px;
    border-radius: 10px;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.9) 0px 25px 50px -12px;
}

.login-wrap::before{
    position: absolute;
    content: '';
    background: url(../img/wbglogo.png) no-repeat center / contain;
    width: 200px;
    height: 200px;
    top:-100px;
    left: 50%;
    transform: translateX(-50%);
}

.login-wrap h3{
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--d-blue);
}

.login-btn-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.login-btn{
    background-color: var(--d-green);
    color: #fff !important;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    width: 200px;
}

.login-btn:hover{
    background-color: var(--m-green);
}


.sign_up{
    color: var(--d-blue);
    border-bottom: 1px solid var(--d-blue);
    letter-spacing: 2px;
    padding-bottom: 3px;
}

.sign_up:hover{
    color: var(--m-soil);
    border-color: var(--m-soil);
    padding-bottom: 2px;
}


.area{
    background: var(--d-blue);  
    background: linear-gradient(to bottom, var(--d-green), var(--d-blue));  
    width: 100%;
    height:100vh;
}

.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    
}

.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}
.form-control{
    width: 100% !important;
}


/*內頁*/

main{
    background: var(--m-gray);
    min-height: 100vh;
}

.m-bg{
    background: var(--m-gray);
    padding-bottom: 80px;
}

.top{
    background-color: var(--d-blue);
    color: #f2f2ef;
    padding: 10px 15px;
}

.top-container{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.top-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-row h5{
    margin-bottom: 0;
}
.vam{
    vertical-align: middle;
}

.sm-btn{
    padding: 4px 6px;
}

.lg-btn{
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    width: 200px;
}

.btn-soil{
    background-color: var(--m-soil);
    color: #f2f2ef !important;
}

.btn-soil:hover{
    background-color: var(--h-soil) !important;
    color: #f2f2ef !important;
}
.btn-outline-soil{
    border: 1px solid var(--h-soil);
    color: var(--h-soil) !important;
}

.btn-outline-soil:hover{
    background-color: var(--h-soil) !important;
    color: #f2f2ef !important;
}

.btn-d-blue{
    background-color: var(--d-blue);
    color: #f2f2ef !important;
}

.btn-d-blue:hover{
    background-color: var(--h-blue) !important;
    color: #f2f2ef !important;
}
.btn-green{
    background-color: #008b2a;
    color: #fff !important;
}
.btn-green:hover{
    background-color: #01a332;
    color: #fff;
}

.btn{
    transition: .3s;
}

.pg-wrap{
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}


.w-bg{
    background: #ffffff;
    border-radius: 3px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    padding: 10px 15px 40px;
}

a.text-dark:hover{
    color: var(--h-soil) !important;
}

header{
    padding: 10px 0;
    background-color: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

header .row{
    justify-content: flex-end;
    align-items: center;
}

.sp-toggle{
    display: none;
    background-color: var(--d-blue);
    border-radius: 3px;
    cursor: pointer;
    transition: .3s;
}

.sp-toggle:hover{
    opacity: 0.8;
}

.sp-toggle .btn{
    color: #fff !important;
}

.nav-logo{
    width: 140px;
    margin: 0 auto 20px;
}

.sidenav {
    height: 100%;
    width: 270px;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: var(--d-blue);
    overflow-x: hidden;
    padding-top: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 3px 3px 5px 3px;
    border-top-right-radius: 20px;
}

.sidenav nav a {
    padding: 15px 8px 15px 16px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #f1f1f1;
    display: block;
    border-bottom: 1px solid #ffffff57;
    position: relative;
}

.sidenav nav a.active{
    background-color: #000;
}

.sidenav nav a.active::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 6px;
    background-color: var(--m-green);
    height: 100%;
}

.sidenav a:hover {
    background-color:#000;
}
.sp-close-btn-wrap{
    position: absolute;
    right: 15px;
    display: none;
    cursor: pointer;
}

.sp-close-btn{
    font-size: 20px;
    color: #f2f2ef !important;
}



.main {
    margin-left: 270px; /* Same as the width of the sidenav */
    padding-bottom: 100px;
}

.pg-title{
    font-weight: 600;
    padding-left: 15px;
    position: relative;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.pg-title::before{
    position: absolute;
    content: '';
    width: 8px;
    height: 100%;
    background-color: var(--h-soil);
    top: 0;
    left: 0;
}






/*報價單*/
.form-title{
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}


.fill-in{
    text-align: center;
    border: none;
    width: 60px;
    border-bottom: 1px solid #000;
}

.fill-in:focus-visible{
    outline: none;
    border: none;
    border-bottom: 1px solid #00a7cc;
    box-shadow: 0 3px 0px 0px rgba(0, 123, 255, 0.25);
}






/*歷史報價*/
.sc-wrap{
    justify-content: flex-end;
}




/*註冊頁*/
.form-b-title{
    background-color: var(--d-blue);
    color: #f2f2ef;
    padding: 8px 8px 8px 20px;
    display: inline-block;
    margin: 15px 0 ;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.form-b-title::before{
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    height: 100%;
    width: 8px;
    background-color: var(--h-soil);
}

.pws-wrap{
    max-width: 400px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}


.pws-icon{
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}


.ac-info{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ac-info .pg-title{
    margin-bottom: 0px !important;
}

.ac-check{
    font-size: 36px;
    font-weight: 600;
    color: #b10000;
    letter-spacing: 2px;
    margin-left: auto;
}

.return{
    margin-left: 50px;
    background-color: var(--m-soil);
    padding: 2px 10px;
    border-radius: 3px;
}
.return span{
    color: #fff;
    font-weight: 600;
}



/*選單*/
.screen-overlay {
    width:0%;
    height: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    opacity:0;
    visibility:hidden;
    display:none;
    background-color: rgba(34, 34, 34, 0.6);
    transition:opacity .2s linear, visibility .1s, width 1s ease-in;
}

.screen-overlay.show {
    transition:opacity .5s ease, width 0s;
    opacity:1;
    width:100%;
    visibility:visible;
    display: block;
}

.offcanvas{
    width:300px;
	visibility: hidden;
	transform:translateX(-100%);
	transition:all .2s;
    border-radius:0; 
    box-shadow: 0 5px 10px rgba(0,0,0, .2);
	display:block;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1200;
    background-color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
}


.offcanvas.show{
	visibility: visible;
    transform: translateX(0);
    transition: transform .2s;
} 

.img-4 .img_div{
    border: 1px solid #eee;
}

/*RWD*/


@media (max-width:1200px) {

    header .row{
        justify-content: space-between;
    }

    .sp-toggle{
        display: block;
    }

    .sidenav{
        transform: translateX(-280px);
        transition: .3s;
    }

    .sidenav.open{
        transform: translateX(0px);
    }

    .sidenav.open::before{
        position: absolute;
        content: '';
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100%;
        background-color: #00000029;
    }
    

    .sp-close-btn-wrap{
        position: absolute;
        right: 15px;
        display: block;
    }


    .main{
        margin-left: 0px;
    }
    
}


@media (max-width:996px) {

    .login-wrap{
        width: 80%;
    }
    
}
@media (max-width:767px) {
    .form-b-title{
        padding: 10px 8px 10px 20px;
    }
    
    h4{
        font-size: 24px;
    }
}
@media (max-width:576px) {
    .img-4, .img-4 .img_div, .border-none{
        padding: 0 !important;
    }
    .img-4 .img_div{
        margin-bottom: 1.5rem;
    }

    .ac-info{
        flex-direction: column;
        align-items: flex-start
    }

    .ac-check{
        margin-left: 0;
    }
    
    .login-wrap::before{
        position: absolute;
        content: '';
        background: url(../img/wbglogo.png) no-repeat center / contain;
        width: 150px;
        height: 150px;
        top:-75px;
        
    }

    .login-wrap{
        padding: 75px 20px 40px;
    }


    .login-wrap h3{
        font-size: 24px;
    }
}


@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}
