﻿/************************************************************************************
RESET
*************************************************************************************/
html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, ul,
dd, dt, li, button, del, ins, map, object,
a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span,
strong, sub, sup, tt, var, legend, fieldset {margin: 0;padding: 0; box-sizing:border-box;-moz-box-sizing:border-box; -webkit-box-sizing:border-box;}
html {-webkit-text-size-adjust: none; height:100%;}
img, fieldset {border: 0;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
a{color:#966;}
.clearfix:after { content: "."; visibility: hidden; display: block; height: 0; clear: both; }
div,section,nav,header,footer { box-sizing: border-box; }
/*************************************************************************************/
/*************************************************************************************/
a:link { text-decoration: none; }
a:hover { text-decoration: underline; }
a:active { text-decoration: none; }
a:visited { text-decoration: none; }
body { overflow-y: scroll; color: #333333; width:100%; height:100%; background-color: #f7f7f7; /* background: #f7f7f7 url('../images/bg_repeat.gif') repeat-x; */ }
hr { background: url('../images/dotline.png') center left repeat-x; border: 0px; height: 5px; }

#wrapper { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; background: url('../images/bg_header@2x.jpg') center top no-repeat; background-size: 1200px auto; }
#header { width: 100%; height: 360px; display:block; }
#logo { position: absolute; top: 60px; right: 4%; /* width: 78px; height: 79px; */ }
#logo img { width: 100%; }
#intro { position: absolute; top: 60px; right: calc(4% + 100px); max-width: 400px; }
#intro img { width: 100%; height: auto; }
#rthklogo { position: absolute; top:15px; left: 20px; z-index:99; }
#rthklogo  a { display: block; }
#footer { font-size: 13px; height: 40px; color:#333; text-align:left; margin-top: -1em; }
#copyright { /* float: left; */ text-align: center; padding: 1.5em 10px; font-size: 1.1em; letter-spacing: .1em; }
#remarks { float: right; font-size: 13px; color: #666666; padding: 10px 10px; }

/* SHARING */
#sharing { position: absolute; background: url('../images/btn_share.png') left top no-repeat; width: 57px; height: 30px; right: 20px; top: 15px; z-index: 98; _background: url('../images/btn_share.gif') left top no-repeat;  }
#sharing #icon-facebook { display: block; height: 22px; width: 22px; position: absolute; left: 5px; top: 5px; }
#sharing #icon-twitter { display: block; height: 22px; width: 22px; position: absolute; left: 30px; top: 5px; }
#sharing #icon-weibo { display: none; height: 22px; width: 22px; position: absolute; left: 55px; top: 5px; }

/* MENU */
#content{ position:relative; padding: 0 3%; width: 100%; display: flex; flex-direction: column; }
#menu { text-align: center; margin: 20px 0px; }
.als-container { height: 230px; overflow: hidden; }
.als-viewport { overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
ul.vlist { list-style-type: none; margin: 0 auto; padding: 0; margin-top: 10px; height: 220px; }
ul.vlist li { /* float: left; */ margin: 0; padding: 0; min-width: 50px; margin-right: 10px; transition: all .1s ease; }
ul.vlist li a { font-family: 'source-han-serif-tc-variable', 'Noto Serif TC', serif; display: flex; align-items: center; letter-spacing: .05em; line-height: 1.6em; text-shadow: 1px 1px #c3aa93; font-size: 16px; color: #50351e; font-weight: bold; min-width: 50px; padding: 12px 8px; height: 220px; background: url('../images/btn_wood.jpg'); background-size: 100% 100%; }
ul.vlist li a:hover { text-decoration: none; opacity: 1; /* background-image: url('../images/btn_wood_hv.png'); */ }
ul.vlist li:hover { transform: translateY(-5px); }
.new { color: #cc3333; font-size: 15px; display: inline-block; }

/* CATEGORIES MENU */
#categories-btns { font-size: 0px; }
#categories-btns .cbtn { display: inline-block; transition: background-color 0.3s ease; text-decoration: none; border: solid 1px #eaeaea; border-left: none; border-right: none; background-color: white; font-size: 16px; font-weight: bold; color: #50351e; padding: 15px 1.5%; cursor: pointer; letter-spacing: 0.1em; }
#categories-btns .cbtn:hover { background-color: #e5dace61; }
#categories-btns .cbtn.active { background-color: #8b7357; color: white; }
#categories-btns .cbtn:first-child { border-radius: 10px 0 0 10px; border-left: solid 1px #eaeaea; }
#categories-btns .cbtn:last-child { border-radius: 0 10px 10px 0; border-right: solid 1px #eaeaea; }

/* Project Item */
.projectItem { position: relative; display: flex; flex-direction: row; /* height: 252px;*/ width: 100%; /* flex-flow: column-reverse; */ margin: 1.2em auto; }
.projectItem .thumbnail { position: relative; z-index:11; width: 360px;  /* float: left; position: absolute; */ margin-top: .5em; }
.projectItem .thumbnail span.arrow { position: absolute; right: -1px; display: block; width: 100%; height: 100%; z-index: 10; background: url('../images/arrow.png') top right no-repeat; }
.projectItem .thumbnail img { width: 100%; height: auto; border-radius: 10px 0 0 10px; display: block; }
.projectItem .title { font-family: 'source-han-serif-tc-variable', 'Noto Serif TC', serif;color: #9b846a; font-size: 2em; font-weight: bold; margin-bottom: 0.3em; padding: 15px 0px 0px 0px; /* white-space: nowrap; */ letter-spacing: 0.08em; }
.projectItem .detail { width: calc(100% - 360px); background-color: white; padding: 1.5em 3% 1.5em 4%; border: solid 1px #eaeaea; overflow: hidden; border-radius: 10px; }
.projectItem .desc { font-family: 'Noto Sans TC', sans-serif; color: #666666; font-size: 15px; letter-spacing: 0.05em; line-height: 24px; margin-bottom: 10px; padding: 0px 3% 0px 0px; /* height: 120px; overflow-y: auto; */ }
.projectItem .access { margin-top: 1em; }
.projectItem .access a { margin-right: 8px; margin-bottom: 8px; display: inline-block; float: left; }
.projectItem .top { display: none; clear: both; }
.projectItem .top a { font-size: 13px; color:#CCC; position: absolute; bottom: 15px; right: 15px; }
.projectItem .top a:hover { color: #999; }

.projectItem { order: 99; }
.top1 { order: 1; }
.top2 { order: 2; }
.top3 { order: 3; }
.top4 { order: 4; }
.top5 { order: 5; }
.top6 { order: 6; }
.top7 { order: 7; }
.top8 { order: 8; }
.top9 { order: 9; }
.top10 { order: 10; }

a.button { display: inline-block; font-family: 'Noto Sans TC', sans-serif; background-color: #c1a98e; color: white; letter-spacing: .1em; transition: background-color 0.3s ease; min-width: 140px; border-radius: 4px; padding: 12px 30px; text-align: center; }
a.button.arrow { background-image: url('../images/arrow-right.svg'); background-position: right center; background-repeat: no-repeat; background-size: 20px 20px; }
a.button:hover { background-color: #b0987e; text-decoration: none; }
.clear { clear: both; }
.highlight { color: #cd3d57; font-weight: bold;  border-bottom: solid 1px white; border-radius: 5px; }
.brownText { color: #7c6164; }
.icon-incompatible { margin: 5px; color: #666666; font-size: .8em; padding: 5px; background: url('../images/icon_mobile_incompatible.svg') no-repeat left center; padding-left: 30px; height: 25px; background-size: 25px 25px; float: left; }
.icon-incompatible span { display: none; }

/* BACK TO TOP */
.back-to-top {
	position: fixed;
	bottom: 15px;
	right: 15px;
	display: none;
	background: url('../images/back-to-top.png');
	background-size: 100%; 
	width: 50px;
	height: 0px;
	padding-top: 50px;
	overflow: hidden;
	z-index: 999;
	/* border-radius: 3px; */
	opacity: 0.8;
	transition: opacity 0.3s ease;
}
.back-to-top:hover {	
	opacity: 1;
}
@media (max-width: 1200px) {
	#lista1 .als-viewport{ width: 80% !important; margin: 0 auto; } 	
	#lista1 .als-prev { left: 3%; } 
	#lista1 .als-next { right: 3%; }
}
@media (max-width: 992px) {
	.projectItem .thumbnail { width: 260px; }
	.projectItem .thumbnail img { /* margin-left: -20px; */ }
	.projectItem .detail { width: calc(100% - 260px); }
	a.button.arrow { width: auto; }
}
@media (max-width: 767px) {
	#rthklogo { left: 10px; top: 10px; }
	#sharing { right: 10px; top: 10px; }
	#rthklogo img { width: 70%; height: auto; }
	.projectItem { height: auto; flex-direction: column; }
	.projectItem .thumbnail { position: relative; width: 100%; }
	.projectItem .thumbnail img { width: calc(100% - 20px); height: auto; margin: 0; border-radius: 10px 10px 0 0; margin-left: 10px; margin-right: 10px; }
	.projectItem .detail { width: 100%; padding: 6%; }
	.projectItem .detail .title { margin-top: 0; }
	.projectItem .detail .title img { max-width: 100%; }
	.projectItem .detail .desc { height: auto; padding: 0; }
	.projectItem .detail .access { position: relative; bottom: -5px; }
	.projectItem .thumbnail span.arrow { display: none; }
	/*#lista1 {  display: none;  }

	#lista1 .als-viewport{ width: 80% !important; margin: 0 auto; } 
	#lista1 .als-item { margin: 5px 5px; }*/
	#logo { width: 60px; top: 50px; }
	#intro { width: 75%; top: 50px; right: calc(4% + 80px); }
	a.button.arrow { width: 100%; float: none; }
	.icon-incompatible { width: auto; }
	.icon-incompatible span { display: block; }
	#categories-btns .cbtn { width: 100%; display: block; border-radius: 0 !important; border: 0; border-top: solid 1px #eaeaea; }
}
@media (max-width: 450px) {
	#logo { width: 40px; top: 50px; }
	#intro { width: 75%; top: 50px; right: calc(4% + 50px); }
}