/*
	Future Imperfect by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/* FRAMEWORK ------------------------------------------------------------*/

@-ms-viewport {
	width: device-width;
}

body {
	-ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {

	html, body {
		min-width: 320px;
	}

}

body {
	background: #f3f3f3;
}

body.is-loading *, body.is-loading *:before, body.is-loading *:after {
	-moz-animation: none !important;
	-webkit-animation: none !important;
	-ms-animation: none !important;
	animation: none !important;
	-moz-transition: none !important;
	-webkit-transition: none !important;
	-ms-transition: none !important;
	transition: none !important;
}

/* Section/Article */

section.special, article.special {
	text-align: center;
}

header p {
	font-family: 'Noto Sans HK', sans-serif;
	
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 2;
	margin-top: -1em;
	text-transform: uppercase;
}

/* FOOTER --------------------------------------------------------- */

#footer .icons {
	color: #aaaaaa;
}

#footer .copyright {
	color: #aaaaaa;
	font-family: 'Noto Sans HK', sans-serif;
	font-size: 0.5em;
	font-weight: 400;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

body.single #footer {
	text-align: center;
}

/* BOX MODEL ------------------------------------------------------ */

*, *:before, *:after {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

#main {
	-moz-flex-grow: 1;
	-webkit-flex-grow: 1;
	-ms-flex-grow: 1;
	flex-grow: 1;
	-ms-flex: 1;
	width: 100%;
}

/* WRAPPER --------------------------------------------------------- */

#wrapper {
	display: -moz-flex;
	display: -webkit-flex;
	display: -ms-flex;
	display: flex;
	-moz-flex-direction: row-reverse;
	-webkit-flex-direction: row-reverse;
	-ms-flex-direction: row-reverse;
	flex-direction: row-reverse;
	-moz-transition: opacity 0.5s ease;
	-webkit-transition: opacity 0.5s ease;
	-ms-transition: opacity 0.5s ease;
	transition: opacity 0.5s ease;
	margin: 0 auto;
	max-width: 100%;
	opacity: 1;
	padding: 4.5em;
	width: 90em;
}

body.is-menu-visible #wrapper {
	opacity: 0.15;
}

@media screen and (max-width: 1680px) {

	#wrapper {
		padding: 3em;
	}

}

@media screen and (max-width: 1280px) {

	#wrapper {
		display: block;
	}

}

@media screen and (max-width: 736px) {

	#wrapper {
		padding: 1.5em;
	}

}

body.single #wrapper {
	display: block;
}


/* SIDEBAR ---------------------------------------------------------- */

#sidebar {
	margin-right: 3em;
	min-width: 22em;
	width: 22em;
}

#sidebar > * {
	border-top: solid 1px rgba(160, 160, 160, 0.3);
	margin: 3em 0 0 0;
	padding: 3em 0 0 0;
}

#sidebar > :first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

@media screen and (max-width: 1280px) {

	#sidebar {
		border-top: solid 1px rgba(160, 160, 160, 0.3);
		margin: 3em 0 0 0;
		min-width: 0;
		padding: 3em 0 0 0;
		width: 100%;
	}
}

/* BUTTONS ------------------------------------------------------------*/

button {
	border: 0 !important;
	margin: 1em 0;
}

button a {
	display: block;
	text-decoration: none;
	border: 0;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;

	border: 0;

	color: #FFFFFF !important;
	cursor: pointer;
	display: inline-block;
	font-size: 0.8em;
	font-weight: 800;
	line-height: 1;
	padding: 1em 2.5em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;

	background: rgba(255, 255, 255, 0.14);
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	opacity: 0.8;
    color: #FFFFFF;
}

	input[type="submit"]:hover:active,
	input[type="reset"]:hover:active,
	input[type="button"]:hover:active,
	button:hover:active,
	.button:hover:active {
        color: #FFFFFF !important;
	}

input[type="submit"]:before, input[type="submit"]:after,
input[type="reset"]:before,
input[type="reset"]:after,
input[type="button"]:before,
input[type="button"]:after
button:before,
button:after,
.button:before,
.button:after {
	color: #FFFFFF !important;
	position: relative;
}

input[type="submit"]:before,
input[type="reset"]:before,
input[type="button"]:before,
button:before,
.button:before {
	left: -1em;
	padding: 0 0 0 0.75em;
    
}

input[type="submit"]:after,
input[type="reset"]:after,
input[type="button"]:after,
button:after,
.button:after {
	left: 1em;
	padding: 0 0.75em 0 0;
}

input[type="submit"].fit,
input[type="reset"].fit,
input[type="button"].fit,
button.fit,
.button.fit {
	display: block;
	margin: 0 0 1em 0;
	width: 100%;
}

input[type="submit"].big,
input[type="reset"].big,
input[type="button"].big,
button.big,
.button.big {
	font-size: 0.7em;
	padding: 1.5em 3em;
}

input[type="submit"].small,
input[type="reset"].small,
input[type="button"].small,
button.small,
.button.small {
	font-size: 0.5em;
}

input[type="submit"].disabled, input[type="submit"]:disabled,
input[type="reset"].disabled,
input[type="reset"]:disabled,
input[type="button"].disabled,
input[type="button"]:disabled,
button.disabled,
button:disabled,
.button.disabled,
.button:disabled {
	-moz-pointer-events: none;
	-webkit-pointer-events: none;
	-ms-pointer-events: none;
	pointer-events: none;
	color: #FFFFFF !important;
}

input[type="submit"].disabled:before, input[type="submit"]:disabled:before,
input[type="reset"].disabled:before,
input[type="reset"]:disabled:before,
input[type="button"].disabled:before,
input[type="button"]:disabled:before,
button.disabled:before,
button:disabled:before,
.button.disabled:before,
.button:disabled:before {
	color: #FFFFFF !important;
}

/* FORM --------------------------------------------------------------*/

form {
	margin: 0 0 2em 0;
}

form.search {
	text-decoration: none;
	position: relative;
}

form.search:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

form.search:before {
	color: #aaaaaa;
	content: '\f002';
	display: block;
	height: 2.75em;
	left: 0;
	line-height: 2.75em;
	position: absolute;
	text-align: center;
	top: 0;
	width: 2.5em;
}

form.search > input:first-child {
	padding-left: 2.5em;
}

label {
	color: #3c3b3b;
	display: block;
	font-size: 0.9em;
	font-weight: 700;
	margin: 0 0 1em 0;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	background: rgba(160, 160, 160, 0.075);
	border: none;
	border: solid 1px rgba(160, 160, 160, 0.3);
	border-radius: 0;
	color: inherit;
	display: block;
	outline: 0;
	padding: 0 1em;
	text-decoration: none;
	width: 100%;
}

input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
input[type="tel"]:invalid,
select:invalid,
textarea:invalid {
	box-shadow: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
	border-color: #2ebaae;
	box-shadow: inset 0 0 0 1px #2ebaae;
}

.select-wrapper {
	text-decoration: none;
	display: block;
	position: relative;
}

.select-wrapper:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

.select-wrapper:before {
	color: rgba(160, 160, 160, 0.3);
	content: '\f078';
	display: block;
	height: 2.75em;
	line-height: 2.75em;
	pointer-events: none;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: 2.75em;
}

.select-wrapper select::-ms-expand {
	display: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
	height: 2.75em;
}

textarea {
	padding: 0.75em 1em;
}

input[type="checkbox"],
input[type="radio"] {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	display: block;
	float: left;
	margin-right: -2em;
	opacity: 0;
	width: 1em;
	z-index: -1;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
	text-decoration: none;
	color: #343a40;
	cursor: pointer;
	display: inline-block;
	font-size: 1em;
	font-weight: 400;
	padding-left: 2.4em;
	padding-right: 0.75em;
	position: relative;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
	background: rgba(160, 160, 160, 0.075);
	border: solid 1px rgba(160, 160, 160, 0.3);
	content: '';
	display: inline-block;
	height: 1.65em;
	left: 0;
	line-height: 1.58125em;
	position: absolute;
	text-align: center;
	top: 0;
	width: 1.65em;
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
	background: #274e65;
	border-color: #274e65;
	color: #ffffff;
	content: '\f00c';
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
	border-color: #2ebaae;
	box-shadow: 0 0 0 1px #2ebaae;
}

input[type="radio"] + label:before {
	border-radius: 100%;
}

::-webkit-input-placeholder {
	color: #aaaaaa !important;
	opacity: 1.0;
}

:-moz-placeholder {
	color: #aaaaaa !important;
	opacity: 1.0;
}

::-moz-placeholder {
	color: #aaaaaa !important;
	opacity: 1.0;
}

:-ms-input-placeholder {
	color: #aaaaaa !important;
	opacity: 1.0;
}

.formerize-placeholder {
	color: #aaaaaa !important;
	opacity: 1.0;
}

/* IMAGE ------------------------------------------------------------------ */

.image {
	border: 0;
	display: inline-block;
	position: relative;
}

.image img {
	display: block;
}

.image.left, .image.right {
	max-width: 40%;
}

.image.left img, .image.right img {
	width: 100%;
}

.image.left {
	float: left;
	padding: 0 1.5em 1em 0;
	top: 0.25em;
}

.image.right {
	float: right;
	padding: 0 0 1em 1.5em;
	top: 0.25em;
}

.image.fit {
	display: block;
	margin: 0 0 2em 0;
	width: 100%;
}

.image.fit img {
	width: 100%;
}

.image.featured {
	display: block;
	margin: 0 0 3em 0;
	width: 100%;
}

.image.featured img {
	width: 100%;
}

@media screen and (max-width: 736px) {
	.image.featured {
		margin: 0 0 1.5em 0;
	}
}

.image.main {
	display: block;
	margin: 0 0 3em 0;
	width: 100%;
}

.image.main img {
	width: 100%;
}


/* TABLE --------------------------------------------------------------------- */

.table-wrapper {
	-webkit-overflow-scrolling: touch;
	overflow-x: auto;
}

table {
	margin: 2em 0;
	width: 100%;
}

table tbody tr {
	border: solid 1px #adb5be;
	border-left: 0;
	border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
	background-color: #f7f7f7;
}

table td {
	padding: 0.75em 0.75em;
    position: relative;
}

table th {
	font-size: 0.9em;
	font-weight: 700;
	padding: 0.75em 0.75em 0.75em 0;
	text-align: left;
}

table thead th {
	color: #40c057;
}

table tbody th {
	color: #343a40;
}

table thead {
	border-bottom: solid 2px #adb5be;
}

table tfoot {
	border-top: solid 2px #adb5be;
}

table.alt {
	border-collapse: separate;
}

table.alt tbody tr td {
	border: solid 1px rgba(160, 160, 160, 0.3);
	border-left-width: 0;
	border-top-width: 0;
}

table.alt tbody tr td:first-child {
	border-left-width: 1px;
}

table.alt tbody tr:first-child td {
	border-top-width: 1px;
}

table.alt thead {
	border-bottom: 0;
}

table.alt tfoot {
	border-top: 0;
}

/* ICON ------------------------------------------------------------------ */

.icon {
	text-decoration: none;
	border-bottom: none;
	position: relative;
}

.icon:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	text-transform: none !important;
}

.icon > .label {
	display: none;
}

.icon.suffix:before {
	float: right;
}

