/* https://pages.github.homedepot.com/ux/uxicon/uxicon.min.css */

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: url(/resources/fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
	src: local('Material Icons'),
		local('MaterialIcons-Regular'),
		url(/resources/fonts/MaterialIcons-Regular.woff2) format('woff2'),
		url(/resources/fonts/MaterialIcons-Regular.woff) format('woff'),
		url(/resources/fonts/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;  /* Preferred icon size */
	display: inline-block;
	/*line-height: 1;*/
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;

	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;

	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;

	/* Support for IE. */
	-webkit-font-feature-settings: 'liga';
			font-feature-settings: 'liga';
	/*
	-ms-flex-item-align:center;
		align-self:center;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-align:center;
		-ms-flex-align:center;
			align-items:center;
	*/
}

.vertical-center {
	-ms-flex-item-align:center;
	align-self:center;
	display:-webkit-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-align:center;
	-ms-flex-align:center;
	align-items:center;
}

:root {
	--hd-orange: #ee7125;
	--anonymous: #939392;
	--light-gray: #e5e5e5;
	--lighter-gray: #fafafa;
	--darker-gray: #ebebeb;
	--dark-gray: #2b3134;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--light-gray);
	font-family: 'Open Sans', sans-serif;
	font-size: 1.25em;
}

/* ===== TOP BAR ===== */

#top-bar {
	box-sizing: content-box;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	background-color: var(--dark-gray);
	color: white;
	margin: 0;
	position: fixed;
	z-index: 2;
	width: calc(100% - 1em);
	height: 2em;
	top: 0;
	left: 0;
	padding: 0.5em;
	-webkit-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	-moz-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
}

#top-bar span.label {
	text-transform: uppercase;
}

#top-bar span.label::before {
	background-image: url(/resources/smurfier_logo.svg);
	background-size: 2em 2em;
	height: 2em !important;
	width: 2em !important;
	display: inline-block;
	margin-right: 0.5em;
	line-height: 2em;
	vertical-align: middle;
	content: "";
}

#top-bar span.label::after {
	content: attr(title) " | Ver. " attr(version);
	line-height: 2em;
	vertical-align: middle;
}

#top-bar img {
	height: 2em;
	width: 2em;
	margin-right: 0.5em;
}

#top-bar .app-name {
	font-size: 1.25em;
	line-height: 1.25em;
}
#top-bar .app-version {
	font-size: 0.5em;
	line-height: 0.5em;
}

#top-bar span.button {
	color: var(--hd-orange);
	line-height: 2em;
	vertical-align: middle;
	cursor: pointer;
	margin-left: 1.5em;
}

/* ===== PAGE FOOTER ===== */

footer {
	width: 100%;
	height: 2em;
	line-height: 2em;
	background-color: var(--anonymous);
	margin: 0;
	padding: 0.5em 0;
	text-align: center;
	font-size: 0.5em;
}

footer::before {
	content: "\00a9 Copyright 2019 | John Murphy";
}

/* ===== MAIN PAGE CONTENTS ===== */

#main-container {
	width: 80%;
	/*min-height: calc(100vh - 8.5em);*/
	min-height: calc(100vh - 6.5em);
	margin: 5em auto 0 auto;
}

div.container {
	margin: 2em 0;
	background-color: white;
	-webkit-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	-moz-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
}

div.container:first-child {
	margin: 0;
}

div.container-content {
	padding: 1em;
}

div.container-label {
	background-color: #434343;
	color: white;
	margin: -1em 0 0.5em -1em;
	height: 2em;
	min-width: 10em;
	display: inline-block;
	padding: 0 10px;
	vertical-align: middle;
	line-height: 2em;
	-webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
			box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1), 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}

div.container-footer {
	padding: 1em;
	background-color: #f5f5f5 !important;
}

/* ===== INFO BANNERS ===== */

div.banner {
	width: 80%;
	display: block;
	-webkit-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	-moz-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
			box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	color: #FFFFFF;
	border-radius: 2px;
	padding: 15px;
	margin: 0 auto;
}

div.banner:before {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;  /* Preferred icon size */
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;

	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;

	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;

	/* Support for IE. */
	-webkit-font-feature-settings: 'liga';
			font-feature-settings: 'liga';
}

div.info-banner {
	background-color: #286fad;	
}

div.info-banner:before {
	/*content: url(resources/information-outline.svg);*/
	content: '\e88f';
	vertical-align: middle;
	font-weight: 400;
	margin-right: 15px;
}

div.error-banner {
	background-color: #ad2828;	
}

div.error-banner:before {
	/*content: url(resources/alert-outline.svg);*/
	content: '\e001';
	vertical-align: middle;
	font-weight: 400;
	margin-right: 15px;
}

.form-disabled {
	pointer-events: none;
	opacity: 0.4;
}

input[type=text], input[type="number"], input[type=password], output, select {
	width: 3em;
	display: inline-block;
	border: 1px solid var(--anonymous);
	margin: 0.1em;
	padding: 1px 1px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
			box-sizing: border-box;
	font: 400 1em Arial;
	text-align: center;
	background-color: #FFFFFF;
}

input::-webkit-input-placeholder {
	opacity: 1;
	color: rgb(100,100,100);
}

input:-ms-input-placeholder {
	opacity: 1;
	color: rgb(100,100,100);
}

input::-ms-input-placeholder {
	opacity: 1;
	color: rgb(100,100,100);
}

input::placeholder {
	opacity: 1;
	color: rgb(100,100,100);
}

output:empty::before{
	content: attr(placeholder);
	color: rgb(100,100,100);
}

select {
	font: 400 1em Arial;
}

button {
	display: inline-block;
	font-size: 18px;
	color: var(--hd-orange);
	background-color: #fbfbfb;
	-webkit-box-shadow: 0 0 2px 0 rgba(0,0,0,.12), 0 1px 2px 0 rgba(0,0,0,.24);
	-moz-box-shadow: 0 0 2px 0 rgba(0,0,0,.12), 0 1px 2px 0 rgba(0,0,0,.24);
	-ms-box-shadow: 0 0 2px 0 rgba(0,0,0,.12),0 1px 2px 0 rgba(0,0,0,.24);
	box-shadow: 0 0 2px 0 rgba(0,0,0,.12), 0 1px 2px 0 rgba(0,0,0,.24);
	line-height: 46px;
	min-height: 46px;
	text-decoration: none;
	border: none;
	border-radius: 2px;
	font-weight: 600;
	text-align: center;
	padding: 0 15px;
	outline: 0;
	margin: 0 7px;
	letter-spacing: 0;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left !important;
}

.text-large {
	font-size: 2em;
}

.text-small {
	font-size: 0.5em;
}

.text-medium {
	font-size: 0.75em;
}

.text-bold {
	font-weight: bold;
}

/* ===== FLEX ===== */

.flex-container {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
		-ms-flex-direction: row;
			flex-direction: row;
}

.flex-container-column {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
}

.full-flex {
	-webkit-box-flex: 1;
		-ms-flex-positive: 1;
			flex-grow: 1;
}

span.full-flex {
	display: inline-block;
}

.center-flex {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.space-evenly-flex {
	-webkit-box-pack: space-evenly;
	-ms-flex-pack: space-evenly;
	justify-content: space-evenly;
}

/* ===== TOOLTIP ===== */

/* Tooltip container */
.tooltip {
	position: relative;
	display: inline-block;
	/*border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: #555;
	color: #fff;
	text-align: center;
	padding: 5px 0;
	border-radius: 6px;

	/* Position the tooltip text */
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	margin-left: -60px;

	/* Fade in tooltip */
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	-o-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

span[onclick] {
	cursor: pointer;
}

/* ===== MODAL ===== */

/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 3; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	position: fixed;
	margin: 0;
	z-index: 4;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fefefe;
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
}

.no-padding {
	padding: 0;
}

.modal-body {
	padding: 20px;
}

.modal-footer {
	padding: 20px;
	background-color: #f5f5f5 !important;
}

.switch-input {
	display: none;
}

.switch-label {
	position: relative;
	display: inline-block;
	min-width: 112px;
	cursor: pointer;
	margin: 16px;
}

.switch-label:before, .switch-label:after {
	content: "";
	position: absolute;
	margin: 0;
	outline: 0;
	top: 50%;
	-ms-transform: translate(0, -50%);
	-webkit-transform: translate(0, -50%);
	transform: translate(0, -50%);
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

.switch-label:before {
	left: 1px;
	width: 34px;
	height: 14px;
	background-color: #9E9E9E;
	border-radius: 8px;
}

.switch-label:after {
	left: 0;
	width: 20px;
	height: 20px;
	background-color: #FAFAFA;
	border-radius: 50%;
	box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
}

.switch-input:checked + .switch-label:before {
	background-color: #A5D6A7;
}

.switch-input:checked + .switch-label:after {
	background-color: #4CAF50;
	-ms-transform: translate(80%, -50%);
	-webkit-transform: translate(80%, -50%);
	transform: translate(80%, -50%);
}

.hidden {
	visibility: hidden;
}