/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
@font-face {
  font-family: 'DFFN_W7';
  src: url('DFFN_W7.woff') format("woff"),
         url('DFFN_W7.ttf') format("truetype");
}
:root {
    --cnvs-primary-font: 'Noto Sans TC', serif;
    --cnvs-body-font: 'Noto Sans TC', serif;
}
body{
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
}
#primary-menu-trigger,
#page-submenu-trigger {
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 50%;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    -webkit-transition: opacity .3s ease;
    -o-transition: opacity .3s ease;
    transition: opacity .3s ease;
}
.side-header #header {
    position: fixed;
    top: 90px;
    left: 0;
    z-index: 10;
    width: 300px;
    height: 100%;
    height: calc(100vh - 90px);
    background-color: transparent;
    border: none;
    overflow: hidden;
    background-image: url(../images/ham-menu.png);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
}
.side-header #header-wrap {
    width: 300px;
    height: 100%;
    overflow: hidden;
    padding-right: 40px;
}
.side-header #header .container {
   width: 300px !important;
    padding: 0 30px !important;
    margin: 0 !important;
}
.side-header #logo {float: none;margin: 60px 0 40px;}
.side-header #logo img { height: auto !important; }
.side-header #primary-menu {  margin: 30px 0;}
.side-header #primary-menu:not(.nobottomborder):after { margin-top: 40px; }
.side-header #primary-menu,
.side-header #primary-menu ul {float: none;height: auto;}
.side-header #primary-menu ul li {
    float: none;
    margin: 10px 0 0;
    list-style: none;
    border: none;
}
.side-header #primary-menu ul li:first-child { margin-top: 0; }
.side-header #primary-menu ul li a {
    height: 45px;
    line-height: 45px;
    padding: 0;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
    color: #ffffff !important;
}
.side-header #primary-menu ul li a:hover,
.side-header #primary-menu ul li a:active,
.side-header #primary-menu ul li a:focus{color: #01d2ea !important;}
.side-header #primary-menu ul li i { line-height: 24px; }
.side-header #primary-menu ul ul {
    position: relative;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    border: none;
    height: auto;
    z-index: 1;
    top: 0;
    left: 0;
    margin: 5px 0;
    padding-left: 12px;
}
.side-header #primary-menu ul ul ul { top: 0 !important;left: 0;}
.side-header #primary-menu ul ul.menu-pos-invert {left: 0;right: auto;}
.side-header #primary-menu ul ul ul.menu-pos-invert { right: auto; }
.side-header #primary-menu ul ul li {margin: 0;border: 0;}
.side-header #primary-menu ul ul li:first-child { border-top: 0; }
.side-header #primary-menu ul ul a {
    font-size: 12px;
    height: auto !important;
    line-height: 24px !important;
    padding: 2px 0 !important;
}
.side-header #primary-menu ul ul li:hover > a {background-color: transparent !important;color: #01d2ea !important;}
.side-header #primary-menu ul > li.sub-menu > a,
.side-header #primary-menu ul > li.sub-menu:hover > a { background-image: none !important; }
.side-header #primary-menu ul > li.sub-menu > a:after {
    position: absolute;
    content: '\e7a5';
    top: 1px;
    right: 0;
    -webkit-transition: transform .2s linear;
    -o-transition: transform .2s linear;
    transition: transform .2s linear;
}
.side-header #primary-menu ul > li.sub-menu:hover > a:after {
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.side-header:not(.open-header) #wrapper {margin: 0 0 0 260px !important;width: auto !important;}
.side-header:not(.open-header) #wrapper .container {width: auto;max-width: none;margin: 0 40px;}
.side-header.open-header.push-wrapper { overflow-x: hidden; }
.side-header.open-header #header { left: -300px; }
.side-header.open-header.side-header-open #header { left:15px; }
.side-header.open-header #wrapper { left: 0; }
.side-header.open-header.push-wrapper.side-header-open #wrapper { left: 260px; }
#header-trigger { display: none; }
.side-header.open-header #header-trigger {
    display: block;
    position: fixed;
    cursor: pointer;
    top: 20px;
    left: 0;
    z-index: 11;
    width: 260px;
    height: 80px;
    background-image: url(../images/hambuger.png);
    background-position: left top;
    background-size: auto 100%;
    background-repeat: no-repeat;
}
.side-header.open-header #header,
.side-header.open-header #header-trigger,
.side-header.open-header.push-wrapper #wrapper {
    -webkit-transition: left .4s ease;
    -o-transition: left .4s ease;
    transition: left .4s ease;
}
.mylife{
    position: absolute;
    right: 0;
    left:0;
    margin: 0 auto;
    width: auto;
    height:150px;
    transform: translate3d(0,50px,0);
    opacity: 0;
}
#slider{
    position: relative;
    width: 100vw;
    text-align: center;
}
.protfolio-img{
    position: relative;
    text-align: left;
    color: #222222;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
    max-width: 1500px;
    margin: 0 auto;
    width:100%;
    height: 100vh;
    padding: 0 10%;
    background-image: url(../images/protfolio-whites.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    align-content: center;
    justify-content: center;
}
img.mylife1,img.mylife2 {
    height: 150px;
    width: auto;
    top: -4vh;
    position: relative;
    margin-right: 20px;
    padding: 0;
}
img.mylife2 {top: -7vh;height: 400px;}
img.mylife3 {
    position: absolute;
    height: 130px;
    width: auto;
    right: 80px;
    bottom: 1vh;
}
.protfolio-img h2{color: #222222;margin: 0 0 80px 0;}
.protfolio-img h2:before{
    content: '';
    display: block;
    position: absolute;
    width: 50px;
    height:1px;
    background-color: #222222;
    bottom:-30px;
    left:0;
    right:0;
    margin: 0 auto;
}
.protfolio-img .text-fade img{position: relative;display: block;width: 100%;border-radius: 10px; margin: 0;}
.protfolio-img .col-md-3{width: 26.5%;}
.protfolio-img .col-md-9{width: 68%;text-align: justify;font-weight: normal;padding-left: 35px;}
#menu{
    position: relative;
    background-image: url(../images/nysm.jpg);
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    text-align: center;
}
#man{
    position: absolute;
    width: 100vw;
    height: 100vh;
    top:0;
    right:0;
    background-image: url(../images/lobby-man.png);
    background-size: auto;
    background-position: right;
    background-repeat: no-repeat;  
}
.skip{
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: rgb(255 255 255 / 50%);
    box-shadow: 0 0 12px rgba(255,255,255,0.9);
    border: 1px solid #ffffff;
    color: rgba(255,255,255,0.9);
    width: 70px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    opacity: 0;
}
.skip:hover{background-color: #01d2ea;color:rgba(0,62,67,0.63);}
/*.slider-text{
    position: absolute;
    top: 7vh;
    right: 10vw;
    z-index: 2;
    color: #ffffff;
    font-size: 32px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px black, 0 0 1px black, 0 0 15px black;
    font-family: 'kttf','Noto Serif TC',serif;
}

.slider-text:last-child{bottom: 5vh;left: 5vw;top: auto;right: auto;font-size: 28px;}
.slider-text .text-fade.fadeInUp.animated {margin-top: 6px;}
.slider-text .text-fade{    float: right;
    margin-left: 15px;
    -webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;
    text-orientation: upright;
}
.slider-text:last-child .text-fade:nth-child(2){
    height: 870px;
}*/
.portfolio-ajax-modal{
    max-width: 900px;
    height: 100%;
    background-color:transparent !important;
}
.portfolio-ajax-modal iframe{
	width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #000000;
}
.mfp-close{bottom:auto;}
.mfp-close:active {
    top: 30px;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6{color:#ffffff;}
.portfolio-desc span, .portfolio-desc span a{color:#01d2ea;}
.bg-overlay-bg{--cnvs-bg-overlay-bg-opacity:0.8;}
.bg-overlay-content.dark{padding: 0;}
.text-dark{background-color: #01d2ea !important;width: 100%;height: 100%;}
.fa-brands, .fab{font-size: larger;}
.is-expanded-menu.side-header:not(.open-header) #wrapper{margin:0 !important;}
#gotoTop{
    background-color: rgba(0,62,67,0.63);
    box-shadow: 0 0 12px rgba(1,210,234,0.66);
    border: 2px solid #01d2ea;
    color: rgba(1,210,234,0.9);
    animation: gotopshine 2s infinite cubic-bezier(.43,1.5,.57,-0.78);
}
#gotoTop:hover{background-color: #01d2ea;color:rgba(0,62,67,0.63);}
@keyframes gotopshine{
    0% {
    box-shadow: 0 0 12px 0 rgba(1,210,234,0.66);
}
  50% {
    box-shadow: 0 0 12px 2px rgba(1,210,234,0.8);
  }
  100% {
    box-shadow: 0 0 12px 1px rgba(1,210,234,0.7);
  }
}
.ndfHFb-c4YZDc-i5oIFb.ndfHFb-c4YZDc-e1YmVc .ndfHFb-c4YZDc-Wrql6b{
    display: none !important;
}
@media (min-width: 1300px) and (max-width: 1400px){
}

@media(min-width: 1200px) and (max-width: 1300px){
.protfolio-img{padding: 0 5%;font-size: 19px;}

}
@media(min-width: 992px) and (max-width: 1199px){
.slider-text {left: 25vw;font-size: 26px;}
.slider-text:last-child{font-size: 26px;}
.mfp-close{transform: translate3D(290px, 0, 0);}
.protfolio-img{padding: 0 5%;font-size: 19px;}
}
@media(min-width: 992px) and (max-width: 1100px){ 
}
@media(min-width: 768px) and (max-width: 991px){
 .protfolio-img{max-width: 900px;}
}

@media(max-width: 767px) {
 .protfolio-img{max-width: 430px;}
.row {--bs-gutter-x: 0;--bs-gutter-y: 0;}
.side-header.open-header #header-trigger {
    top: 10px;
    left: -6%;
    width: 200px;
    height: 60px;
}
.side-header #header {
    top: 57px;
    left: 0;
    width: 200px;
    height: 100%;
    height: calc(100vh - 170px);
}
.side-header.open-header.side-header-open #header {left: 5px;}
.side-header #header-wrap {
    width: 200px;
    height: 100%;
    padding-right: 0;
}
.side-header #header .container {
    width: 200px !important;
    padding: 0 30px !important;
    margin: 0 !important;
}
.side-header #primary-menu {margin: 16px 0 0 0;}
.side-header #primary-menu ul li {margin: 0;}
.side-header #primary-menu ul li:first-child {margin-top:0;}
.side-header #primary-menu ul li a {font-size: 18px;height: 37px;line-height: 37px;}
}