body,
html {
    width: 100%;
    height: 100%
}

body {
    font-family: 'Kanit', sans-serif;
}

hr {
    max-width: 50px;
    border-width: 3px;
    border-color: #8c1263
}

hr.light {
    border-color: #fff
}

a {
    color: #8c1263;
    -webkit-transition: all .2s;
    transition: all .2s
}

a:hover {
    color: #98196d
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kanit', sans-serif;
}

.intro .carousel-item::before {
    content: "";
    background: rgba(0, 0, 0, .4);
    position: absolute;
    width: 100%;
    height: 100vh;
}

.mapouter {
    text-align: right;
    height: 350px;
    width: 100%;
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
    height: 350px;
    width: 100%;
}

.slide-head {
    max-width: 100%;
    height: 95vh;
    object-fit: cover;
}

@media (max-width:1200px) {
    .slide-head {
        height: 60vh;
    }
}

@media (max-width:700px) {
    .slide-head {
        max-width: 100%;
        height: 40vh;
        object-fit: cover;
    }
}

.zoom {
    transition: transform .5s;
    margin-bottom: 1rem
}

.zoom:hover {
    -ms-transform: scale(1.2);
    /* IE 9 */
    -webkit-transform: scale(1.2);
    /* Safari 3-8 */
    transform: scale(1.1);
}

.bg-primary {
    background-color: #d278e9 !important
}

.bg-dark {
    background-color: #212529 !important
}

.text-faded {
    color: rgba(255, 255, 255, .7)
}

section {
    padding: 5rem 0
}

.section-heading {
    margin-top: 0
}

::-moz-selection {
    color: #fff;
    background: #212529;
    text-shadow: none
}

::selection {
    color: #fff;
    background: #212529;
    text-shadow: none
}

img::-moz-selection {
    color: #fff;
    background: 0 0
}

img::selection {
    color: #fff;
    background: 0 0
}

img::-moz-selection {
    color: #fff;
    background: 0 0
}

#mainNav {
    border-bottom: 1px solid rgba(33, 37, 41, .1);
    background-color: #fff;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    -webkit-transition: all .2s;
    transition: all .2s
}

#mainNav .navbar-brand {
    font-weight: 700;
    text-transform: uppercase;
    color: #8c1263;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif
}

#mainNav .navbar-brand:focus,
#mainNav .navbar-brand:hover {
    color: #9b166f
}

#mainNav .navbar-nav>li.nav-item>a.nav-link,
#mainNav .navbar-nav>li.nav-item>a.nav-link:focus {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    font-family: 'Kanit', sans-serif;
}

#mainNav .navbar-nav>li.nav-item>a.nav-link:focus:hover,
#mainNav .navbar-nav>li.nav-item>a.nav-link:hover {
    color: #9b166f
}

#mainNav .navbar-nav>li.nav-item>a.nav-link.active,
#mainNav .navbar-nav>li.nav-item>a.nav-link:focus.active {
    color: #9b166f !important;
    background-color: transparent
}

#mainNav .navbar-nav>li.nav-item>a.nav-link.active:hover,
#mainNav .navbar-nav>li.nav-item>a.nav-link:focus.active:hover {
    background-color: transparent
}

@media (min-width:992px) {
    #mainNav {
        border-color: transparent;
        background-color: #fff
    }
    #mainNav .navbar-brand {
        color: rgba(0, 0, 0, .7)
    }
    #mainNav .navbar-brand:focus,
    #mainNav .navbar-brand:hover {
        color: #9b166f
    }
    #mainNav .navbar-nav>li.nav-item>a.nav-link {
        padding: .5rem 1rem
    }
    #mainNav .navbar-nav>li.nav-item>a.nav-link,
    #mainNav .navbar-nav>li.nav-item>a.nav-link:focus {
        color: rgba(0, 0, 0, .7)
    }
    #mainNav .navbar-nav>li.nav-item>a.nav-link:focus:hover,
    #mainNav .navbar-nav>li.nav-item>a.nav-link:hover {
        color: #9b166f
    }
    #mainNav.navbar-shrink {
        border-bottom: 1px solid rgba(33, 37, 41, .1);
        background-color: #fff
    }
    #mainNav.navbar-shrink .navbar-brand {
        color: #9b166f
    }
    #mainNav.navbar-shrink .navbar-brand:focus,
    #mainNav.navbar-shrink .navbar-brand:hover {
        color: #9b166f
    }
    #mainNav.navbar-shrink .navbar-nav>li.nav-item>a.nav-link,
    #mainNav.navbar-shrink .navbar-nav>li.nav-item>a.nav-link:focus {
        color: #212529
    }
    #mainNav.navbar-shrink .navbar-nav>li.nav-item>a.nav-link:focus:hover,
    #mainNav.navbar-shrink .navbar-nav>li.nav-item>a.nav-link:hover {
        color: #9b166f
    }
}

header.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 56px);
    background-color: #212529;
    background-position: center center;
    background-size: cover
}

header.pad {
    margin-top: 50px
}

header.masthead hr {
    margin-top: 30px;
    margin-bottom: 30px
}

header.masthead h1 {
    font-size: 2rem
}

header.masthead p {
    font-weight: 300
}

@media (min-width:768px) {
    header.masthead p {
        font-size: 1.15rem
    }
}

@media (min-width:992px) {
    header.masthead {
        height: 100vh;
        min-height: 650px;
        padding-top: 0;
        padding-bottom: 0
    }
    header.masthead h1 {
        font-size: 3rem
    }
    header.pad {
        margin-top: 0
    }
}

@media (min-width:1200px) {
    header.masthead h1 {
        font-size: 4rem
    }
}

.service-box {
    max-width: 400px
}

#portfolio .container-fluid .portfolio-box {
    position: relative;
    display: block
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    opacity: 0;
    color: #fff;
    background: rgba(154, 25, 165, .9);
    -webkit-transition: opacity .25s ease;
    transition: opacity .25s ease;
    text-align: center
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-category {
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase
}

#portfolio .container-fluid .portfolio-box .portfolio-box-caption .project-name {
    font-size: 1.2rem
}

#portfolio .container-fluid .portfolio-box:hover .portfolio-box-caption {
    opacity: 1
}

.text-primary {
    color: #8c1263 !important
}

.btn {
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    font-family: 'Kanit', sans-serif;
}

.btn-xl {
    padding: 1rem 2rem
}

.btn-primary {
    background-color: #0D4C7A;
    border-color: #0D4C7A
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    color: #fff;
    background-color: #0D3858 !important
}

.btn-primary:active,
.btn-primary:focus {
    -webkit-box-shadow: 0 0 0 .2rem rgba(240, 95, 64, .5) !important;
    box-shadow: 0 0 0 .2rem rgba(240, 95, 64, .5) !important
}

.btn-label {position: relative;left: -12px;display: inline-block;padding: 6px 12px;background: rgba(0,0,0,.2);border-radius: 3px 0 0 3px;}
.btn-labeled {padding-top: 0;padding-bottom: 0;}
.btn-line{
    background: rgb(20, 199, 20);
    color: #fff
}
.btn-line:hover{
    background: rgb(156, 187, 19);
    color: #fff
}

.btn-call{
    background: rgb(22, 39, 192);
    color: #fff
}
.btn-call:hover{
    background: rgb(153, 19, 187);
    color: #fff
}

.btn-mem{
    background: rgb(203, 2, 221);
    color: #fff
}
.btn-mem:hover{
    background: rgb(238, 27, 133);
    color: #fff
}

.imgBox {
    display: inline-block;
    overflow: hidden;
}

.imgBox img {
    display: block;
    transition: .4s ease-in-out;
}

.imgBox:hover img {
    transform: scale(1.1);
}

/* customizable snowflake styling */

.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
}

@-webkit-keyframes snowflakes-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@-webkit-keyframes snowflakes-shake {
    0%,
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(80px);
        transform: translateX(80px)
    }
}

@keyframes snowflakes-fall {
    0% {
        top: -10%
    }
    100% {
        top: 100%
    }
}

@keyframes snowflakes-shake {
    0%,
    100% {
        transform: translateX(0)
    }
    50% {
        transform: translateX(80px)
    }
}

.snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    -webkit-animation-name: snowflakes-fall, snowflakes-shake;
    -webkit-animation-duration: 10s, 3s;
    -webkit-animation-timing-function: linear, ease-in-out;
    -webkit-animation-iteration-count: infinite, infinite;
    -webkit-animation-play-state: running, running;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running
}

.snowflake:nth-of-type(0) {
    left: 1%;
    -webkit-animation-delay: 0s, 0s;
    animation-delay: 0s, 0s
}

.snowflake:nth-of-type(1) {
    left: 10%;
    -webkit-animation-delay: 1s, 1s;
    animation-delay: 1s, 1s
}

.snowflake:nth-of-type(2) {
    left: 20%;
    -webkit-animation-delay: 6s, .5s;
    animation-delay: 6s, .5s
}

.snowflake:nth-of-type(3) {
    left: 30%;
    -webkit-animation-delay: 4s, 2s;
    animation-delay: 4s, 2s
}

.snowflake:nth-of-type(4) {
    left: 40%;
    -webkit-animation-delay: 2s, 2s;
    animation-delay: 2s, 2s
}

.snowflake:nth-of-type(5) {
    left: 50%;
    -webkit-animation-delay: 8s, 3s;
    animation-delay: 8s, 3s
}

.snowflake:nth-of-type(6) {
    left: 60%;
    -webkit-animation-delay: 6s, 2s;
    animation-delay: 6s, 2s
}

.snowflake:nth-of-type(7) {
    left: 70%;
    -webkit-animation-delay: 2.5s, 1s;
    animation-delay: 2.5s, 1s
}

.snowflake:nth-of-type(8) {
    left: 80%;
    -webkit-animation-delay: 1s, 0s;
    animation-delay: 1s, 0s
}

.snowflake:nth-of-type(9) {
    left: 90%;
    -webkit-animation-delay: 3s, 1.5s;
    animation-delay: 3s, 1.5s
}

.snowflake:nth-of-type(10) {
    left: 25%;
    -webkit-animation-delay: 2s, 0s;
    animation-delay: 2s, 0s
}

.snowflake:nth-of-type(11) {
    left: 65%;
    -webkit-animation-delay: 4s, 2.5s;
    animation-delay: 4s, 2.5s
}

/* end snowflake styling */