body {
    width: 100%;
    height: 100%;
    font-family:
        'Raleway',
        sans-serif,
        Microsoft YaHei;
    position: relative;
    /* overflow-x: hidden; */
}

h1,
h2,
p,
span {
    color: #57585b;
}

p,
span {
    font-size: 16px;
}

a {
    text-decoration: none !important;
}

a:focus {
    outline: unset;
}

li {
    list-style-type: none;
}

figure {
    margin: 0;
}

.border-frame {
    border-radius: 30px;
    border: 1px solid #fff;
}

.header {
    /* background: url("../images/bg.jpg") no-repeat center center fixed #435255; */
    background-image: url('../images/bg.jpg');
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.header span,
works_header span {
    position: relative;
    left: 10px;
}

.menu-button {
    padding: 15px;
    font-size: 200%;
    color: #888;
    position: fixed;
    z-index: 1;
    cursor: pointer;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.4));
}

.my-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 90%;
}

.about-me-container h1,
.portfolio-container h1,
.contact-container h1 {
    letter-spacing: 10px;
    margin: 35px auto 20px;
}

.about-me-container h1 {
    border-bottom: 1px solid #bbb;
}

.about-me-container h1 {
    margin: 15px auto 15px;
    padding: 10px;
}

.about-me-container p {
    line-height: 35px;
}

.my-logo h1,
.my-logo p {
    color: white;
    line-height: 50px;
    filter: drop-shadow(0px 0px 8px #333);
}

.my-logo p {
    font-size: 200%;
}

.title {
    -webkit-filter: blur(10px);
    transition: 1s;
    text-align: center;
    padding: 30px;
}

.title:hover {
    -webkit-filter: blur(0px);
}

.title img {
    width: 55%;
}

.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    width: 100%;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
}

.grid figure img {
    position: relative;
    display: block;
    max-width: 100%;
    opacity: 0.9;
}

.grid figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*---------------*/
/***** Layla *****/
/*---------------*/

figure.effect-layla {
    background: none;
}

figure.effect-layla figcaption {
    padding: 2em;
}

figure.effect-layla figcaption::before,
figure.effect-layla figcaption::after {
    position: absolute;
    content: '';
    opacity: 0;
}

figure.effect-layla figcaption::before {
    top: 40px;
    right: 20px;
    bottom: 40px;
    left: 20px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

figure.effect-layla figcaption::after {
    top: 20px;
    right: 40px;
    bottom: 20px;
    left: 40px;
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

figure.effect-layla h3 {
    margin-top: 10px;
    font-size: clamp(1em, 2.5vw, 1.8em);
    letter-spacing: 1px;
}

figure.effect-layla p {
    color: #fff;
    padding: 1px 5px;
    text-transform: none;
    opacity: 0;
    -webkit-transform: translate3d(0, -10px, 0);
    transform: translate3d(0, -10px, 0);
}

figure.effect-layla img,
figure.effect-layla figcaption::before,
figure.effect-layla figcaption::after,
figure.effect-layla p {
    -webkit-transition:
        opacity 0.35s,
        -webkit-transform 0.35s;
    transition:
        opacity 0.35s,
        transform 0.35s;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.8));
    letter-spacing: 1px;
    line-height: 10px;
}

figure.effect-layla:hover figcaption::before,
figure.effect-layla:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.effect-layla:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

@keyframes bouncing {
    0% {
        bottom: 0;
    }

    50% {
        bottom: 20px;
    }

    100% {
        bottom: 0;
    }
}

.chevron-container {
    display: flex;
    justify-content: center;
}

.fa-chevron-down {
    animation: bouncing 1s infinite ease-in-out;
    bottom: 0;
    display: block;
    position: absolute;
    left: 50%;
    padding: 25px 0px;
    font-size: 200%;
    color: white;
}

/* The side navigation menu */

#mySidenav {
    padding: 30px 0 20px;
}

.sidenav {
    /* 100% Full-height */
    width: 0;
    /* 0 width - change this with JavaScript */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Stay on top */
    top: 0;
    left: 0;
    background-color: #333;
    /* Black*/
    /* overflow-x: hidden; */
    overflow: hidden;
    /* Disable horizontal scroll */
    padding-top: 0px;
    /* Place content 60px from the top */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in the sidenav */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    height: 100vh;
}

.sidenav h2 {
    font-size: clamp(1em, 2.5vw, 1.7em);
    margin: 0;
    margin-left: -160px;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: 0.5s;
}

/* The navigation menu links */

.sidenav a {
    padding: 8px 35px 8px 35px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */

.sidenav a:hover,
.offcanvas a:focus {
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 0px;
    font-size: 36px;
    margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */

#about-me {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.about-me {
    padding: 1%;
    background-color: #f3f3f3;
}

.about-me-container {
    max-width: 80vw;
}

.about-me,
.about-me-container,
.about-me-text,
.about-me-img-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.about-me-text {
    text-align: center;
    letter-spacing: 1px;
}

.about-me-text,
.about-me-img-container {
    padding: 2% 0px 1%;
}

.about-me-text p span {
    font-size: 150%;
    letter-spacing: -4px;
}

.about-me img {
    max-height: 40vh;
}

.demo_web {
    margin: 20px auto 50px;
    text-align: center;
    font-size: 20px;
    display: block;
}

#portfolio {
    max-width: 100%;
    overflow: hidden;
}

.portfolio,
.contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.portfolio-container,
.contact-container {
    width: 100%;
    padding-top: 20px;
}

#contact {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    max-width: 70%;
}

#contact .contact {
    width: 50%;
}

.portfolio-img {
    filter: grayscale(100%);
    transition: 0.5s;
    padding: 0;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.portfolio-img:hover {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}

.list_title {
    font-size: 1.6em;
    color: #555;
    letter-spacing: 1px;
}

.list_content {
    font-size: 1.4em;
    color: #aaa;
    letter-spacing: 1px;
}

#submit {
    padding: 0;
    margin: -5px 0px 0px 0px;
    font-family: 'Lato', sans-serif;
    font-size: 0.875em;
    color: #b3aca7;
    outline: none;
    cursor: pointer;
    border: solid 1px #b3aca7;
    border-top: none;
}

#submit:hover {
    color: #e2dedb;
}

.dl-horizontal li {
    margin-bottom: 10px;
}

footer {
    margin-top: 100px;
}

/* 作品頁 */
.lg-actions .lg-next,
.lg-actions .lg-prev {
    font-size: 4em;
    top: 42%;
}

.works_container {
    max-width: 100%;
    height: 100%;
    margin: 0px auto 100px;
    overflow: hidden;
}

.works_title {
    text-align: center;
    letter-spacing: 10px;
    margin: 0 auto 30px;
    padding: 70px 15px 20px;
    border-bottom: 1px solid #ccc;
}

.works_title p {
    font-size: 18px;
    margin-top: 10px;
    letter-spacing: 8px;
}

.works_title span {
    font-size: 18px;
    letter-spacing: 2px;
}

.works_img_frame {
    width: 100%;
}

.works_container > ul {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.works_container > ul > li {
    max-width: 180px;
    height: 200px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s;
}

.works_container > ul > li:hover {
    box-shadow: 0px 2px 20px #ccc;
    cursor: pointer;
}

.works_container > ul > li a {
    border: 3px solid #fff;
    border-radius: 3px;
    display: block;
}

.works_container > ul > li a > img {
    -webkit-transition: -webkit-transform 0.25s ease 0s;
    -moz-transition: -moz-transform 0.25s ease 0s;
    -o-transition: -o-transform 0.25s ease 0s;
    transition: transform 0.25s ease 0s;
    -webkit-transform: scale3d(2, 2, 2);
    transform: scale3d(0.8, 0.8, 0.8);
    height: 100%;
    width: 100%;
    margin: 0px auto;
}

.works_container > ul > li a:hover > img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.demo-gallery > ul > li a:hover .demo-gallery-poster > img {
    opacity: 1;
}

.demo-gallery > ul > li a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.demo-gallery > ul > li a .demo-gallery-poster > img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.demo-gallery > ul > li a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.5);
}

.demo-gallery .justified-gallery > a > img {
    -webkit-transition: -webkit-transform 0.15s ease 0s;
    -moz-transition: -moz-transform 0.15s ease 0s;
    -o-transition: -o-transform 0.15s ease 0s;
    transition: transform 0.15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
}

.demo-gallery .justified-gallery > a:hover > img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.demo-gallery .justified-gallery > a:hover .demo-gallery-poster > img {
    opacity: 1;
}

.demo-gallery .justified-gallery > a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.demo-gallery .justified-gallery > a .demo-gallery-poster > img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.demo-gallery .justified-gallery > a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.5);
}

.demo-gallery .video .demo-gallery-poster img {
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    opacity: 0.8;
    width: 48px;
}

.demo-gallery.dark > ul > li a {
    border: 3px solid #04070a;
}

.work_footer {
    position: fixed;
    width: 100%;
    bottom: 0px;
    margin: 0px;
    padding: 0px;
}

.work_footer p {
    margin: 0px;
    color: #fff;
    background: #333;
    height: 40px;
    line-height: 40px;
}

.works_container .logo_link {
    position: fixed;
    top: 0px;
    right: -2px;
}

.logo_link {
    display: block;
    text-align: right;
    margin: 10px;
}

.logo_link img {
    width: 90px;
}

/*瀑布流*/
#wrapper {
    max-width: 1300px;
    margin: 0px auto;
    padding: 0px 10px;
}

#container {
}

.item {
    max-width: 160px;
    min-height: 100px;
    height: auto;
    padding: 10px;
    background: #fff;
    margin: 8px;
    font-size: 12px;
    float: left;
    box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
    -moz-box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);
    -webkit-box-shadow: 0 1px 3px rgba(34, 25, 25, 0.4);

    -webkit-transition:
        top 1s ease,
        left 1s ease;
    -moz-transition:
        top 1s ease,
        left 1s ease;
    -o-transition:
        top 1s ease,
        left 1s ease;
    -ms-transition:
        top 1s ease,
        left 1s ease;
}

.item strong {
    border-bottom: 1px solid #ccc;
    margin: 10px 0;
    display: block;
    padding: 0 0 5px;
    font-size: 17px;
}

.item .meta {
    text-align: right;
    color: #777;
    font-style: italic;
}

.item .imgholder img {
    max-width: 100%;
    display: block;
    background: #ccc;
    display: block;
    background: url(../images/loding.gif) no-repeat center;
    margin: 0px auto;
}

.demo2 {
}

.demo_container section {
    padding: 5% 15%;
    margin: 0 auto;
}

.demo_container {
    letter-spacing: 3px;
    line-height: 24px;
}
