/* ---- Page global ---- */

::-webkit-scrollbar {
	width: 5px;
	height: 5px;
	background: rgba(255,255,255,0.05);
}
::-webkit-scrollbar-thumb {
	border-radius: 5px;
	background: rgba(255,255,255,0.25);
}
* {
	box-sizing: border-box;
	font-family: 'Roboto', sans-serif;
	-webkit-text-size-adjust: 100%;
}
html {
	background: #c8c8c8;
	height: 100%;
}
body {
	margin: 0;
	padding: 0px;
	height: 100%;
}
/* limit maximum size of window? */
@media screen and (min-width: 1024px) {
	html {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	body {
		flex: 0 0 auto;
		/*padding: 8px;*/
		width: 100%;
		/*max-width: 1024px;*/
		height: 100%;
		/*max-height: 1024px;*/
	}
}
input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: none;
}
::-moz-focus-inner {
	border:0;
}
button {
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-moz-user-select: none;    
	-ms-user-select: none;      
	user-select: none;
	touch-action: manipulation;
}

/* ---- Page specific ---- */

#site-window {
	position: relative;
	background: #eee;
	height: 100%;
	width: 100%;
	margin: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#site-window  a {
	color: inherit;
	text-decoration: none;
}
#site-window  a:hover {
	/*text-decoration: underline;*/
}

#site-header {
	position: relative;
	flex: 0 0 auto;
	min-height: 72px;
	height: 192px;
	width: 100%;
	background: #000;
	color: #fff;
	padding: 0px;
	font-size: 20px;
	display: flex;
	flex-direction: column;
	-webkit-transition: height 0.3s ease-out, min-height 0.3s ease-out;
	transition: height 0.3s ease-out, min-height 0.3s ease-out;
	overflow: hidden;
}
#site-header.hide {
	min-height: 0px;
	height: 0px;
}
#site-header-content {
	position: relative;
	flex: 1 1 auto;
	background: inherit;
	color: inherit;
	width: 100%;
	/*height: 66px;*/
	padding: 8px 32px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

#site-top-bar {
	position: relative;
	flex: 0 0 auto;
	min-height: 52px;
	height: 52px;
	width: 100%;
	background: #000;
    color: #fff;
	padding: 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	-webkit-transition: height 0.3s ease-out, min-height 0.3s ease-out;
	transition: height 0.3s ease-out, min-height 0.3s ease-out;
	overflow: hidden;
}
#site-top-bar.hide {
	min-height: 0px;
	height: 0px;
}
#site-top-bar-content {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	padding: 0px 16px;
	margin: 6px 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}
#site-top-bar-dynamic {
	flex: 1 1 auto;
	padding: 0 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#site-top-bar .nav-bar-button {
	padding: 8px 8px;
	font-size: 15px;
	-webkit-transition: opacity 0.3s ease-out;
	transition: opacity 0.3s ease-out;
}
:not(.touch-device) #site-top-bar .nav-bar-button:hover {
	opacity: 0.5;
}
.touch-device #site-top-bar .nav-bar-button:active {
	opacity: 1.0;
}
#site-top-bar .nav-bar-button span {
	margin-left: 8px;
}
@media screen and (max-width: 268px) {
	#site-top-bar .nav-bar-button span {
		display: none;
	}
}
.site-top-bar-ele {
	max-height: 36px;
	max-width: 150px;
	width: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 8px;
}
.site-top-bar-ele a {
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none !important;
}
.site-top-bar-ele img {
	max-height: 100%;
}
#site-top-bar-accent {
	position: relative;
	flex: 0 0 auto;
	background: #5683c4;
	background: linear-gradient(to right, #CEFF1A 0%, #16ABC3 100%);
	width: 100%;
	min-height: 3px;
	max-height: 3px;
}
#site-top-bar-accent.hide {
	min-height: 0px;
	height: 0px;
}

#site-footer {
	position: relative;
	flex: 0 0 auto;
	min-height: 40px;
	height: 40px;
	width: 100%;
	background: #000;
	color: #fff;
	padding: 0px 8px;
	font-size: 14px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	-webkit-transition: height 0.3s ease-out, min-height 0.3s ease-out;
	transition: height 0.3s ease-out, min-height 0.3s ease-out;
	overflow: hidden;
}
#site-footer.hide {
	min-height: 0px;
	height: 0px;
}
#site-footer .footer-button {
	padding: 8px 8px;
	font-size: 15px;
	-webkit-transition: opacity 0.3s ease-out;
	transition: opacity 0.3s ease-out;
}

#site-main {
	position: relative;
	flex: 1 1 auto;
	min-height: 72px;
	position: relative;
	background: #fff;
	color: #2F3035;
	width: 100%;
	display: flex;
	flex-direction: column;
}

#site-main-views {
	flex: 1 1 auto;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex-direction: column;
    align-items: center;
	width: 100%;
	display: flex;
	flex-direction: column;
    flex-wrap: wrap;
}
.site-view {
	flex: 1 0 auto;
	position: relative;
	width: 100%;
	max-width: 1024px;
	overflow: hidden;
	padding: 32px;
	/*display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;*/
	font-size: 16px;
}
.site-view li {
	margin: 6px 0px;
}

.site-popup {
	position: fixed;
	background: rgba(0, 0, 0, 0.75);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 109;
	display: flex;
	justify-content: center;
	align-items: center;
}
.site-popup-window {
	position: relative;
	background: #fff;
	color: #333;
	border-radius: 3px;
	box-shadow: 0px 3px 0px 0px rgba(100,100,100,1);
	width: 320px;
	min-height: 250px;
	max-width: 80%;
	max-height: 80%;
	padding: 32px 24px;
	overflow-y: auto;
	margin-bottom: 10%;
}
.site-popup-window a {
	color: #888 !important;
}
.site-popup-window h3 {
	margin: 4px 0 24px 0;
	font-weight: 400;
}
.site-popup-window a span {
	color: #4bc393 !important;
}
.popup-close-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: transparent;
    border: 0;
    color: #333;
    cursor: pointer;
}

.site-button {
	display: flex;
	align-items: center;
	justify-content: space-around;
	cursor: pointer;
	-webkit-user-select: none;  
	-moz-user-select: none;    
	-ms-user-select: none;      
	user-select: none;
}
.site-button i,
.site-button span {
	-webkit-user-select: none;  
	-moz-user-select: none;    
	-ms-user-select: none;      
	user-select: none;
	pointer-events: none;
}