
/******* core styles *******/

a.button {
	padding: 0 12px;
	background: var(--blue-cta);
	color: var(--white);
	display: block;
	height: 2em;
	line-height: 2em;
	text-align: center;
	border-radius: 4px;
	text-decoration: none;
	position: relative;
}
	a.button:hover {
		background: #0087ff;
		box-shadow: 0 0 10px rgba(0,0,0, 0.3);
	}
	a.button:active {
		top: 2px;
	}

	a.button svg {
		position: relative;
		top: -2px;
		fill: var(--white);
	}

a.button.large {
	padding: 0 25px;
	height: 60px;
	line-height: 60px;
}


svg.icon {
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

svg.icon.in-link {
	width: 1em;
	height: 1em;
	background: var(--white);
	fill: var(--blue-cta);
	padding: 3px;
	border-radius: 50%;
}


/********* tabs *********/

.tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	padding-left: 10px;
}
	/* don't expand by default */
	.tabs > li {
		flex: 0 1 auto;
		position: relative;
	}

	.tabs p {
		padding: 10px 10px 10px 0;
		margin: 0;
	}

	.tabs > li.tab {
		display: none;
		opacity: 0.5;
	}
		.tabs > li.tab:hover {
			opacity: 0.7;
		}
		.tabs > li.tab p {
			cursor: pointer;
			color: white;
			/*position: absolute;*/
			/*left: 50%;*/
			bottom: 0;
			/*transform: translateX(-50%);*/
			background: white;
			border-radius: 4px 4px 0 0;
			padding: 12px 30px;
			color: var(--ackert-dark-blue);
			margin: 10px 10px 0 5px;
		}

		.tabs > li.tab.active {
			opacity: 1;
		}

	/* help tab is way on the right */
	.tabs li.help {
		position: absolute;
		right: 10px;
	}

	/* if we have selected a firm, show the tabs */
	.firm-mode .tabs > li.tab {
		display: block;
	}

/********* tabbed pages *********/

section.page {
	display: flex;
	flex-flow: column nowrap;
	width: 100%;
	height: calc(100vh - 50px);
	background: white;
	position: relative;
}
	section.page > nav {
		flex: 0 0 50px;
		padding: 6px 0;
		height: 50px;
		text-align: center;
		border-bottom: 1px var(--ackert-dark-blue) solid;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
		background: white;
		position: relative;
		z-index: 1;
	}
	section.page > .button-bar-container {
		flex: 1 1 auto;
		height: calc(100vh - 50px - 50px);
		background: #eaeaea;
		color: #212121;
		position: relative;
		z-index: 0;
	}

		.button-bar-container > * {
			opacity: 0;
			pointer-events: none;
			position: absolute;
			left: 0;
			top: 0;
			right: 0;
			padding: 20px;
			transition: 0.3s opacity;

			height: 0;
			padding: 0;
			overflow: hidden;
		}
			.button-bar-container > .active {
				opacity: 1;
				pointer-events: all;

				overflow-x: hidden;
				overflow-y: auto;

				padding: 20px;
				height: 100%;
			}


/********* panels *********/

.panel {
	background: white;
	padding: 12px;
	border-radius: 6px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
	margin-bottom: 2em;
	position: relative;
}
	.panel h2 {
		font-size: 20px;
		margin: -12px -12px 10px -12px;
		padding: 12px;
		letter-spacing: 0;

		color: #2d498d;
		text-align: left;
		font-weight: 200;
		border-bottom: 3px #2d498d solid;
	}
	.panel .ack-hud {
		margin-top: 30px;
	}

	.panel fieldset {
		border: 0;
		border-top: 1px lightgray solid;
		border-bottom: 1px lightgray solid;
		padding: 20px 0;
		margin-top: 20px;
	}



/********* subscriptions *********/

.subscriptions > .panel {
	text-align: center;
}
.org-subscriptions {
	display: inline-flex;
	justify-content: center;
}
	.org-subscriptions > .service {
		flex: 1;
		text-align: center;
		margin: 5px;
		background: #efefef;
		border-radius: 6px;
		padding: 10px 30px;
		color: gray;
	}
	.org-subscriptions label {
		display: block;
		font-weight: bold;
		margin-top: 10px;
	}
	.org-subscriptions small {
		display: block;
		font-weight: normal;
		white-space: nowrap;
	}
	.org-subscriptions svg {
		width: 3em;
		height: 3em;
		fill: gray;
	}
		.org-subscriptions > .service.on {
			background: #2d498d;
			color: white;
		}
		.org-subscriptions > .service.on svg {
			fill: white;
		}



/********* force elements into a row *********/

.horz-line {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
	.horz-line > li {
		margin-right: 10px;
		vertical-align: middle;
	}
	.horz-line label {
		margin-right: 5px;
		font-size: 13px;
		font-weight: bold;
		color: gray;
		text-transform: uppercase;
	}


.scroller {
	display: block;
	max-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

/********* spinner animation *********/

.spinner-container {
	position: fixed;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	background-color: rgba(0,0,0,0.5);
}

.spinner {
	width: 40px;
	height: 40px;
	background-color: #2d498d;

	margin: 100px auto;
	-webkit-animation: rotateplane 1.2s infinite ease-in-out;
	animation: rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes rotateplane {
	0% { -webkit-transform: perspective(120px) }
	50% { -webkit-transform: perspective(120px) rotateY(180deg) }
	100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}

  @keyframes rotateplane {
    0% {
		transform: perspective(120px) rotateX(0deg) rotateY(0deg);
		-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    } 50% {
		transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
		-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    } 100% {
		transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
		-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
  }
