@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,600");
@import url('./noto-sans-tc.css');
@import url("./fontawesome-all.css");
@import url("./ffxiv.css");
@import url("./frame.css");

/* loading */

body.is-loading {
	overflow: hidden;
	height: 100%;
}

body.is-loading #wrapper {
	opacity: 0;
}

#is-loading {
	display: none;
}

body.is-loading #is-loading {
	display: block;
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background-color: #eee;
	z-index: 10;
	text-align: center;
}

body.is-loading .loader {
	width: 100px;
	top: 50%;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	margin-top: -50px;
}

body.is-loading .loader:before {
	content: '';
	display: block;
	padding-top: 100%;
}

body.is-loading .circular {
	-webkit-animation: rotate 2s linear infinite;
	animation: rotate 2s linear infinite;
	height: 100%;
	-webkit-transform-origin: center center;
	-ms-transform-origin: center center;
	transform-origin: center center;
	width: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
}

body.is-loading .path {
	stroke-dasharray: 1, 200;
	stroke-dashoffset: 0;
	-webkit-animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
	animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
	stroke-linecap: round;
}

@-webkit-keyframes rotate {
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes rotate {
	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@-webkit-keyframes dash {
	0% {
		stroke-dasharray: 1, 200;
		stroke-dashoffset: 0;
	}

	50% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -35;
	}

	100% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -124;
	}
}

@keyframes dash {
	0% {
		stroke-dasharray: 1, 200;
		stroke-dashoffset: 0;
	}

	50% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -35;
	}

	100% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -124;
	}
}

@-webkit-keyframes color {

	100%,
	0% {
		stroke: #0063af;
	}

	40% {
		stroke: #0063af;
	}

	66% {
		stroke: #0063af;
	}

	80%,
	90% {
		stroke: #0063af;
	}
}

@keyframes color {

	100%,
	0% {
		stroke: #0063af;
	}

	40% {
		stroke: #0063af;
	}

	66% {
		stroke: #0063af;
	}

	80%,
	90% {
		stroke: #0063af;
	}
}

body .frame,
body .frame-float-nav {
	display: none;
}

/* Reset */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}


article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
	background-color: #222;
	opacity: 1;
}

body {
	font-family: 'Open Sans', 'Noto Sans TC', "微軟正黑體", Microsoft JhengHei, Arial, sans-serif;
	font-size: 1.25em;
	line-height: 1.75em;
	font-weight: 300;
	letter-spacing: 1px;
	color: #eee;
	-webkit-text-stroke: 0.25px;
}

a {
	text-decoration: none;
}

a,
a i,
#wrapper,
button,
h1,
.photoBox header,
.photoBox header span,
.morelinkBox header,
.morelinkBox header span {
	-webkit-transition: background-color ease-in .15s, color ease-in .15s, border-color ease-in .15s, text-shadow ease-in .15s;
	-moz-transition: background-color ease-in .15s, color ease-in .15s, border-color ease-in .15s, text-shadow ease-in .15s;
	-ms-transition: background-color ease-in .15s, color ease-in .15s, border-color ease-in .15s, text-shadow ease-in .15s;
	-o-transition: background-color ease-in .15s, color ease-in .15s, border-color ease-in .15s, text-shadow ease-in .15s;
	transition: background-color ease-in .15s, color ease-in .15s, border-color ease-in .15s, text-shadow ease-in .15s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.75em;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1.5em;
}

h4 {
	font-size: 1.4em;
}

section:before,
section:after {
	content: "";
	display: block;
	clear: both;
}

::-moz-selection {
	/* Code for Firefox */
	color: #FFF;
	background: rgba(0, 0, 0, 0.5);
}

::selection {
	color: #FFF;
	background: rgba(0, 0, 0, 0.3);
}

.clear {
	position: relative;
	clear: both;
}

/* nav */

nav.topbar {
	height: 120px;
	padding: 20px 0;
}

nav.topbar .nav-container {
	position: relative;
	width: fit-content;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	transition: none;
}

nav.topbar .nav-icon {
	display: block;
	height: 180px;
	width: 180px;
	background-image: url("../images/icon.webp");
	background-color: #FFF;
	background-size: cover;
	border-radius: 50%;
	border-color: #FFF;
	border-style: solid;
	border-width: 5px;
	margin: 0 auto;
}

nav .nav-icon span {
	display: none;
}

nav.topbar.ld .nav-container {
	width: fit-content;
	position: fixed;
	top: 30px;
	left: 30px;
	transform: none;
	z-index: 100;
	transition: top ease-in .15s;
	cursor: pointer;
}

nav.topbar.ld .nav-icon {
	height: 45px;
	width: 45px;
	border-width: 2px;
	margin-top: 0;
}

nav.topbar.ld .nav-icon:after {
	content: ' ';
	height: 45px;
	width: 45px;
	display: block;
	background-color: rgba(255, 255, 255, 0);
	border-radius: 50%;
	-webkit-transition: background-color ease-in .15s;
	-moz-transition: background-color ease-in .15s;
	-ms-transition: background-color ease-in .15s;
	-o-transition: background-color ease-in .15s;
	transition: background-color ease-in .15s;
}

nav.topbar.ld:hover .nav-icon:after {
	background-color: rgba(255, 255, 255, 0.75);
}

nav.topbar.ld .nav-icon:before {
	content: ' ';
	opacity: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	background-position: -96px 0;
	-moz-background-size: 656px auto;
	-o-background-size: 656px auto;
	-webkit-background-size: 656px auto;
	background-size: 1312px auto;
	display: block;
	background-image: url("../images/common_logo.webp");
	background-repeat: no-repeat;
	z-index: 102;
	transform: translateX(-50%)translateY(-50%);
	-webkit-transition: opacity ease-in .15s;
	-moz-transition: opacity ease-in .15s;
	-ms-transition: opacity ease-in .15s;
	-o-transition: opacity ease-in .15s;
	transition: opacity ease-in .15s;
}

nav.topbar.ld:hover .nav-icon:before {
	opacity: 1;
}

/* section */

section {
	width: 100%;
	height: 100vh;
	min-height: 700px;
}


section .section-inner {
	width: 1280px;
	height: 100%;
	margin: 0 auto;
	position: relative;
}

section .section-h2 {
	font-size: 48px;
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

section.cover {
	height: 80vh;
	min-height: 512px;
	max-height: 960px;
	background-image: url("../images/full.webp");
	background-position: 48% 60%;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	z-index: 1;
}

section.ingress #ingresstext,
section.ffxiv #ffxivtext {
	position: absolute;
	top: 0;
}

section.ffxiv {
	background-image: url("../images/ffxiv/cover.webp");
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: scroll;
	position: relative;
	height: 56.25vw;
}

section.ffxiv #ffxivtext {
	right: 0;
}

section.ffxiv .section-h2 span {
	color: #0063af
}

section.ffxivchars {
	height: auto;
	min-height: 0;
}

section.ffxivchars #ffxivchars {
	width: 100%;
}

section.ffxivchars .ffxivcharsInner {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0 0 10px;
}

section.ffxivchars li.ffxivchar {
	float: left;
	position: relative;
	width: 32%;
	height: 80px;
	margin-left: 10px;
	margin-top: 10px;

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 8px 36px 8px 10px;
	border-radius: 8px;
	box-sizing: border-box;
	background: #333333;
	box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
}

section.ffxivchars li.ffxivchar::after {
	content: ' ';
	position: absolute;
	top: 50%;
	right: 10px;
	margin-top: -8px;
	width: 16px;
	height: 16px;
	background-position: -32px 0;
	-moz-background-size: 656px auto;
	-o-background-size: 656px auto;
	-webkit-background-size: 656px auto;
	background-size: 656px auto;
	display: block;
	background-image: url("../images/common_logo.webp");
	background-repeat: no-repeat;
}

section.ffxivchars li.ffxivchar .ffxivcharicon {
	display: table-cell;
	vertical-align: middle;
	width: 50px;
	height: 50px;
	margin-right: 8px;
	padding-right: 0;
	border-radius: 50%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

section.ffxivchars li.ffxivchar .ffxivinner {
	float: left;
	position: relative;
}

section.ffxivchars li.ffxivchar .ffxivchardetails {
	display: table-cell;
}

section.ffxivchars li.ffxivchar .ffxivname {
	overflow: hidden;
	font-size: 14px;
	line-height: 1.2;
	color: #ccc;
	font-weight: bold;
	text-overflow: ellipsis;
	white-space: nowrap;
}

section.ffxivchars li.ffxivchar .ffxivworld {
	font-size: 10px;
	color: #999;
	line-height: 1.4;
}

section.ingress {
	height: 80vh;
	background-image: url("../images/ingress/cover.webp");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 33% 20%;
	background-attachment: scroll;
	position: relative;
}

section.ingress .section-h2 span {
	color: #32b24a
}

section.ingress #ingresslogo {
	background-image: url("../images/ingress/logo.webp");
	background-position: right center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 432px;
	height: 267px;
	right: 10%;
	top: 50%;
	transform: translateY(-50%);
	position: absolute;
}

section.self {
	height: 300px;
	min-height: 0;
	/*background-image: url("../images/ingress/cover2.webp");*/
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

section.self #icon {
	float: left;
	display: block;
	width: auto;
	height: 300px;
	position: relative;
}

section.self #info {
	float: right;
}

section.self .outer {
	display: table-cell;
	position: relative;
	height: 300px;
	vertical-align: middle;
	padding-left: 30px;
}

section.self .outer:last-child {
	padding-right: 30px;
}

section.self #icon .icon-inner {
	display: block;
	height: 90px;
	width: 90px;
	background-image: url("../images/ingress/icon.webp");
	background-color: #FFF;
	background-size: 200px auto;
	background-position: 39% 70%;
	border-radius: 50%;
	border-color: #222;
	border-style: solid;
	border-width: 3px;
}

section.self .section-h2 {
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	font-size: 36px;
	color: #EEE
}

section.self ul.nav-links-container {
	height: 90px;
	float: right;
	display: table;
}

section.self ul.nav-links-container li.nav-link {
	height: 90px;
	display: table-cell;
	vertical-align: middle;
	padding: 0 50px;
	border-right-style: solid;
	border-right-width: 1px;
	border-right-color: #CCC;
	font-size: 36px;
}

section.self ul.nav-links-container li.nav-link span {
	display: none;
}

section.self ul.nav-links-container a {
	text-decoration: none;
	color: #CCC;
}

section.self ul.nav-links-container a:hover {
	color: #FFF;
}

section.self ul.nav-links-container a:last-child li.nav-link {
	border-right-style: none;
}

section.gallery {
	height: auto;
	min-height: auto;
}

section.gallery .gallery-inner {
	display: flex;
	top: 0;
	position: relative;
	width: auto;
	overflow-x: overlay;
	overflow-y: hidden;
	direction: ltr;
}

/* width */
section.gallery .gallery-inner::-webkit-scrollbar {
	width: 5px;
}

/* Track */
section.gallery .gallery-inner::-webkit-scrollbar-track {
	background: #f1f1f1;
}

/* Handle */
section.gallery .gallery-inner::-webkit-scrollbar-thumb {
	background: #888;
}

/* Handle on hover */
section.gallery .gallery-inner::-webkit-scrollbar-thumb:hover {
	background: #555;
}

section.gallery .gallery-inner .gallery-item {
	background-size: cover;
	background-position: center;
	width: 550px;
	height: 550px;
	position: relative;
	min-width: 550px;
}

section.gallery .gallery-inner .gallery-item .gallery-item-info {
	width: 100%;
	height: 100%;
	transition: background-color ease-in .15s;
	cursor: pointer
}

section.gallery .gallery-inner .gallery-item .gallery-item-info h3 {
	color: rgba(255, 255, 255, 0);
	width: 100%;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	text-shadow: 0 0 3px rgba(0, 0, 0, 0);
	transition: color ease-in .15s, text-shadow ease-in .15s;
}

section.gallery .gallery-inner .gallery-item .gallery-item-info p {
	color: rgba(255, 255, 255, 0);
	font-size: 14px;
	padding-top: 30px;
	text-align: center;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0);
	transition: color ease-in .15s, text-shadow ease-in .15s;
}

section.gallery .gallery-inner .gallery-item:hover .gallery-item-info {
	background-color: rgba(0, 0, 0, 0.7);
}

section.gallery .gallery-inner .gallery-item:hover .gallery-item-info h3,
section.gallery .gallery-inner .gallery-item:hover .gallery-item-info p {
	color: rgba(255, 255, 255, 1);
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Footer */

footer.copyright {
	font-size: 12px;
	text-align: center;
	padding: 30px 0 30px;
}

@media (pointer:coarse) {
	section.cover {
		background-size: auto 100%;
		background-attachment: scroll;
	}

	nav.topbar.ld .nav-icon:after {
		background-color: rgba(99, 85, 85, 0.75);
	}

	nav.topbar.ld .nav-icon:before {
		opacity: 1;
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info {
		background-color: rgba(0, 0, 0, 0.7);
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info h3,
	section.gallery .gallery-inner .gallery-item .gallery-item-info p {
		color: rgba(255, 255, 255, 1);
		text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
	}
}

@media screen and (max-width: 1279px) {
	section {
		min-height: 0;
	}

	section .section-inner {
		width: 100%;
		height: 700px;
	}

	section.ingress #ingresstext,
	section.ffxiv #ffxivtext {
		position: relative;
		text-align: center;
	}

	section.ffxiv .section-inner {
		height: 100%;
		padding: 0;
	}

	section.ffxiv #ffxivtext {
		position: absolute;
		left: 0;
		bottom: 0;
		top: auto;
	}

	section.ffxivchars li.ffxivchar {
		width: 48%;
		overflow-y: hidden;
	}

	section.ffxivchars .section-inner {
		height: auto;
	}

	section.ingress {
		height: 700px;
	}

	section.ingress #ingresslogo {
		width: 100%;
		top: auto;
		bottom: 10px;
		right: 0;
		transform: none;
		background-position: center 0;
	}

	section.self .section-inner {
		height: 300px;
		width: fit-content;
	}

	section.self #icon {
		float: none;
		height: 150px;
		width: fit-content;
		margin: 0 auto;
	}

	section.self #info {
		float: none;
		width: fit-content;
		margin: 0 auto;
	}

	section.self #icon .icon-inner {
		height: 80px;
		width: 80px;
		background-size: 180px auto;
	}

	section.self .section-h2 {
		font-size: 28px;
	}

	section.self .outer {
		height: 150px;
	}

	section.self ul.nav-links-container li.nav-link {
		font-size: 22px;
		height: 60px;
		padding: 0 40px;
	}

	section.self ul.nav-links-container {
		height: 60px;
	}

}

@media screen and (max-width: 600px) {

	section.cover {
		background-size: auto 100%;
		background-attachment: scroll;
	}

	section.ffxiv #ffxivtext {
		height: 100px;
		background-color: #222;
		display: table-cell;
		width: 100vw;
		vertical-align: middle;
	}

	section .section-h2 {
		font-size: 20px;
	}

	section.ffxivchars li.ffxivchar {
		width: auto;
		float: none;
		margin-right: 10px;
	}

	section.ffxiv #ffxivtext {
		bottom: -70px;
	}

	section.ingress #ingresslogo {
		height: 178px;
	}

	section.self {
		height: 150px;
	}

	section.self .section-inner,
	section.self .outer {
		height: 75px;
	}

	section.self #icon {
		height: 75px;
	}

	section.self #icon .icon-inner {
		height: 40px;
		width: 40px;
		background-size: 90px auto;
	}

	section.self .section-h2 {
		font-size: 18px;
	}

	section.self ul.nav-links-container li.nav-link {
		height: 50px;
		font-size: 16px;
		padding: 0 30px;
	}

	section.gallery .gallery-inner .gallery-item {
		width: 225px;
		height: 225px;
		min-width: 225px;
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info h3 {
		font-size: 0.7em;
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info p {
		font-size: 0.5em;
	}

}

@media screen and (max-height: 650px) {

	section.self {
		height: 150px;
	}

	section.self .section-inner,
	section.self .outer {
		height: 75px;
	}

	section.self #icon {
		height: 75px;
	}

	section.self #icon .icon-inner {
		height: 40px;
		width: 40px;
		background-size: 90px auto;
	}

	section.self .section-h2 {
		font-size: 18px;
	}

	section.self ul.nav-links-container li.nav-link {
		height: 50px;
		font-size: 16px;
		padding: 0 30px;
	}

	section.gallery .gallery-inner .gallery-item {
		width: 225px;
		height: 225px;
		min-width: 225px;
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info h3 {
		font-size: 0.7em;
	}

	section.gallery .gallery-inner .gallery-item .gallery-item-info p {
		font-size: 0.5em;
	}
}