@import url(https://fonts.googleapis.com/earlyaccess/cwtexfangsong.css);
body,
html,
p,
ul {
    margin: 0;
    padding: 0
}

footer,
h1 {
    display: inline-block
}

footer,
section {
    padding: 30px 0
}

.select-disable,
footer {
    -khtml-user-select: none
}

#featured-image,
.overlay,
section {
    float: left;
    width: 100%
}

#about h1,
#gallery .gallery-item,
.about-quote,
.info-msg,
.section-header,
footer,
h2 {
    text-align: center
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

body,
html {
    overflow-x: hidden
}

body {
    font-family: Arial, cwTeXFangSong, 'Microsoft Jhenghei', STHeitiTC, sans-serif;
    font-size: 22px;
    letter-spacing: .8px;
    line-height: 1.4
}

ul li {
    list-style: none
}

a {
    text-decoration: none;
    color: #004f8a;
    -webkit-transition: all .2s ease-in;
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -ms-transition: all .2s ease-in;
    transition: all .2s ease-in
}

a:hover {
    padding-bottom: 2px;
    border-bottom: 1px solid
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 500
}

h1 {
    width: fit-content;
    font-size: 42px;
    margin-bottom: 20px;
    border-bottom: 2px solid;
    color: #bf0000
}

h2 {
    font-size: 38px
}

h3 {
    font-size: 28px
}

h4 {
    font-size: 24px
}

h5 {
    font-size: 22px
}

h6 {
    font-size: 18px
}

section {
    min-height: 300px
}

footer {
    width: 100%;
    background: #fff;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, .1);
    margin-top: 25px;
    font-size: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none
}

.wrap {
    max-width: 90%;
    margin: auto
}

.overlay {
    display: inline;
    height: 100%
}

.back-to-top,
.slicknav_menu {
    display: none
}

.section-header {
    padding: 10px 0 20px
}

.back-to-top {
    position: fixed;
    background: rgba(150, 43, 156, .6);
    color: #fff;
    padding: 10px 20px 8px!important;
    border-bottom: 0!important;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    right: 30px;
    bottom: 0;
    transition: none
}

.header-fixed a,
.navbar-logo {
    color: #fff9c1
}

.select-disable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none
}

header {
    position: fixed;
    padding-top: 30px;
    left: 0;
    top: 0;
    right: 0;
    transition: all .5s;
    z-index: 1000
}

.dragon,
.logo {
    position: absolute
}

.header-fixed {
    background: linear-gradient(7deg, #9C27B0, #ff483f);
    padding: 10px 0 25px;
    height: 76px;
    transition: all .5s
}

#featured-image {
    background-image: url(images/head-featured-bg.jpg);
    display: inline;
    height: 100vh;
    padding: 0;
    background-attachment: fixed;
    background-position: top center;
    -webkit-background-size: cover;
    background-size: cover
}

.f-image-overlay {
    background-color: #105d12;
    background: -webkit-linear-gradient(15deg, rgba(29, 197, 205, .65), rgba(191, 255, 36, .2), rgba(255, 255, 255, 0));
    background: linear-gradient(15deg, rgba(29, 197, 205, .65), rgba(191, 255, 36, .2), rgba(255, 255, 255, 0))
}

.logo {
    width: 40%;
    top: 15%;
    left: 10%;
    z-index: 999
}

.dragon,
.logo img {
    width: 100%
}

header nav {
    float: right;
    margin-top: 10px
}

header .nav-btn {
    display: inline;
    margin-left: 10px;
    padding: 10px 5px
}

.navbar-logo {
    float: left;
    display: none
}

#about h1,
.show {
    display: block
}

#about h1,
#about p {
    color: #fff9c0
}

.active {
    background-color: rgba(255, 255, 255, .2)
}

.dragon {
    top: calc(100vh - 250px);
    overflow: hidden
}

.dragon-svg {
    fill: #ffac00;
    -webkit-filter: drop-shadow(2px -6px 2px rgba(0, 0, 0, .3));
    filter: drop-shadow(2px -6px 2px rgba(0, 0, 0, .3))
}

section#about {
    background: linear-gradient(0deg, #f44336, #ffac00);
    padding-bottom: 65px
}

.about-image {
    width: 80%;
    margin: auto auto 15px
}

.about-image img {
    width: 100%;
    border-radius: 6px
}

.about-quote {
    width: 60%;
    vertical-align: middle;
    margin: auto
}

#about h1 {
    border-color: #fff9c0;
    margin: auto auto 20px
}

#cross-area-a {
    background: linear-gradient(rgba(29, 197, 205, .65), rgba(191, 255, 36, .2)), url(images/cross-bg-a.jpg) center center fixed;
    background-size: cover;
    padding: 80px 0
}

#cross-area-b {
    background: linear-gradient(rgba(29, 197, 205, .65), rgba(191, 255, 36, .2)), url(images/cross-bg-b.jpg) center center fixed;
    background-size: cover;
    padding: 80px 0
}

#cross-area-a h1,
#cross-area-b h1 {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    font-weight: 500;
    border: 0;
    color: #f0ff58;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1)
}

section#gallery {
    background-color: #eee;
    padding-bottom: 70px
}

#gallery .container-fluid {
    padding: 0
}

#gallery .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0
}

#gallery .col-4 {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 0;
    padding-left: 0
}

#gallery a.popup {
    vertical-align: top
}

#gallery .gallery-item {
    overflow: hidden;
    position: relative;
    padding: 0;
    vertical-align: middle
}

#gallery .gallery-item img {
    -webkit-transition: all ease-in-out .4s;
    transition: all ease-in-out .4s;
    width: 100%;
    vertical-align: bottom
}

#gallery .gallery-item:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1)
}

.info-msg {
    margin: 15px auto 30px;
    color: #bf0000
}

.event-timeline ul li {
    list-style-type: none;
    position: relative;
    width: 2px;
    margin: -10px auto 0;
    background-color: #ddd;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s
}

.event-timeline ul li::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: inherit
}

.event-timeline ul li .single-event {
    background-color: #fff;
    -webkit-box-shadow: 0 0 12px rgba(128, 62, 65, .5);
    -moz-box-shadow: 0 0 12px rgba(128, 62, 65, .5);
    box-shadow: 0 0 12px rgba(128, 62, 65, .5);
    position: relative;
    top: 0;
    width: 410px;
    padding: 20px 15px;
    text-align: left
}

.event-timeline ul li:nth-child(2n) .single-event {
    left: 35px
}

.event-timeline ul li:nth-child(2n+1) .single-event {
    left: -445px;
    text-align: right
}

.event-timeline ul li .single-event img {
    height: 77px;
    width: 77px;
    float: left;
    border-radius: 10px;
    margin-right: 15px
}

.event-timeline ul li:nth-child(2n+1) .single-event img {
    float: right;
    margin-right: 0;
    margin-left: 15px
}

.event-timeline ul li .single-event::before {
    content: '';
    position: absolute;
    top: 23px;
    width: 0;
    height: 0;
    border-style: solid
}

.event-timeline ul li:nth-child(2n+1) .single-event::before {
    right: -15px;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #fff
}

.event-timeline ul li:nth-child(2n) .single-event::before {
    left: -16px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #fff transparent transparent
}

.event-timeline ul li .single-event h3 {
    margin-bottom: 5px;
    color: #bf0000
}

.event-timeline ul li .single-event p {
    margin-bottom: 5px
}

@media screen and (max-width:780px) {
    header nav {
        display: none
    }
    .slicknav_menu {
        display: block;
        position: absolute;
        right: 15px
    }
    .slicknav_menu ul {
        background-color: rgba(0, 0, 0, .6);
        text-align: center
    }
    .navbar-logo {
        width: 270px;
        text-align: center
    }
    .logo {
        width: 68%
    }
    .dragon {
        left: -290px;
        width: calc(100% + 290px)
    }
    .about-image {
        width: 80%
    }
    .about-quote {
        width: 85%
    }
    #gallery .col-4 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
        padding: 3px
    }
    .contact-info {
        width: 60%;
        margin: auto
    }
    .info-msg {
        width: 90%
    }
    .event-timeline ul li:nth-child(2n+1) .single-event {
        left: 35px;
        text-align: left
    }
    .event-timeline ul li {
        margin: 0 auto;
        padding-top: 20px;
        margin-left: calc(50% - 190px)
    }
    h3 {
        font-size: 24px
    }
    .event-timeline ul li .single-event h3 {
        margin-left: 90px
    }
    .event-timeline ul li:nth-child(2n+1) .single-event img {
        float: left;
        margin-right: 15px;
        margin-left: 0
    }
    .event-timeline ul li:nth-child(2n+1) .single-event::before {
        left: -16px;
        border-width: 8px 16px 8px 0;
        border-color: transparent #fff transparent transparent
    }
    .event-timeline ul li::after {
        top: 42px
    }
}

@media screen and (max-width:600px) {
    body {
        font-size: 20px
    }
    h1 {
        font-size: 28px
    }
    #featured-image {
        background-image: url(images/head-featured-bg-mobile.jpg)
    }
    .event-timeline ul li .single-event {
        width: 310px
    }
    .event-timeline ul li {
        margin-left: calc(50% - 170px)
    }
    #cross-area-a h1,
    #cross-area-b h1 {
        margin: 25px auto;
        width: 250px;
        display: block
    }
    footer p {
        width: 80%;
        display: block;
        margin: auto
    }

    #header h4 {
    	display: none !important;
    }

    #gallery .section-header a{
    	position: initial!important;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translate3d(0, 80%, 0)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.fade-in {
    animation-name: fade-in
}


#gallery-page {
    background-color: #eee;
}

#gallery-page #featured-image {
    height: 50vh;
}

#gallery-page .logo {
    top: 10%;
}

#gallery-page .dragon {
    top: calc(50vh - 250px);
}

#gallery-page  #gallery .col-4 {
    margin-bottom: 10px;
    padding-right: 5px;
    padding-left: 5px;
}