:root {
	--color-dark: #093767;
	--color-light: #1D7BC3;
	--color-lightgray: #eee;
	--color-midgray: #ccc;
	--color-gray: #666;
	--color-error: #fc8b8b;
	--transition-time: 0.2s;
}
body {
	font-family: 'Open-sans', sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	color: var(--color-gray);
	background-color: #ddd;
	font-size: 10pt;
	line-height: 1.5em;
}
* {
	box-sizing: border-box;
}
textarea,
input[type="text"],
input[type="button"],
input[type="submit"], 
button {
     -webkit-appearance: none;
}

a {
	font-weight: bold;
	text-decoration: none;
	color: var(--color-light);
	transition: color 0.3s;
}
a:hover {
	color: var(--color-dark);
}
label {
	margin-top: 1em;
	font-size: 0.8em;
	color: var(--color-gray);
	text-transform: uppercase;
	font-weight: bold;
}

label, input:not([type="checkbox"]):not([type="submit"]), textarea {
	display: block;
	width: 100%;
}
textarea {
	width: 100%;
	height: 10rem;
	font-family: 'Open-sans', sans-serif;
	margin: 0;
}
input:not([type="submit"]), textarea {
	border: 1px solid var(--color-lightgray);
	font-size: 1.4em;
	padding: 0.3em 0.6em;
}
input:focus, textarea:focus {
	border: 1px solid var(--color-light);
}
select {
	display: block;
	width: 100%;
	border: 1px solid var(--color-lightgray);
	font-size: 1.4em;
	padding: 0.3em 2em 0.3em 0.6em;

	-webkit-appearance: none;
	-moz-appearance: none;
	-chrome-appearance: none;
	appearance: none;
	
	background-color: transparent;
	background: url('../img/down.svg') no-repeat right center;
	background-size: 2em 1.6em;
}
select:focus {
	border: 1px solid var(--color-light);
}
[data-error]:not([data-error=""]) > select {
	border: 1px solid var(--color-error);
}

input::placeholder {
	color: var(--color-midgray);
	font-style: italic;
}
input[type="submit"], button, .button {
	margin-top: 1em;
	border: 0;
	color: white;
	background-color: var(--color-light);
	transition: background-color var(--transition-time);
	border-radius: 10000px;
	padding: 0.6em 2em;
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
}
input[type="submit"]:hover, button:hover, .button:hover {
	background-color: var(--color-dark);
}
[data-error]:not([data-error=""]) > input {
	border: 1px solid var(--color-error);
}
label[data-error]:not([data-error=""]):after {
	display: block;
	color: var(--color-error);
	content: attr(data-error);
}

.link {
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
	transition: color var(--transition-time);
	color: var(--color-light);
	text-decoration: none;
}
.link:hover {
	color: var(--color-dark);
}

.frame {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	min-height: 100vh;

	background-size: cover;
	background-repeat: no-repeat;
	background-color: white;
	max-width: 30rem;
	/*width: 30rem;*/
	margin: 0 auto;
}

.frame > div {
	flex-grow: 1;
}

#frame {
	display: auto;
}
body[data-page]:not([data-page="frame"]) #frame, body:not([data-page]) #frame {
	display: none;
}

header {
	background-color: var(--color-dark);
	color: white;
	padding: 1.2em 1em 1.2em 1em;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	text-transform: uppercase;
	border-bottom: 1px solid white;
}
header a {
	display: block;
	margin: 0;
	border: 0;
	padding: 0;
	line-height: 0;
	text-decoration: none;
}
header > div {
	font-size: 1.2em;
	font-weight: bold;
}
.logo {
	height: 3.5em;
	display: block;
}
.header-nav {	
	height: 1.6rem;
}

footer {
	background-color: var(--color-dark);
	color: white;
	padding: 1em;
	font-size: 0.8em;
}
footer a {
	color: white;
	text-decoration: none;
}
footer a:hover {
	color: var(--color-light);
	/*border-bottom: 1px solid white;*/
}

.action-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: baseline;
}
.action-bar > * {
	margin-left: 1em;
}
.minor {
	font-size: 0.8em;
}

.tab-bar {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: baseline;
	list-style: none;

	border: 0;
	padding: 0;
	margin: 0;
}
.tab-bar > li {
	border: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--color-lightgray);
	flex-grow: 1;
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	text-transform: uppercase;
	padding: 1em 0;
	border-right: 1px solid white;
}
.tab-bar > li:last-child {
	border-right: 0;
}

.tab-bar > li:not(.tab-disabled) {
	background-color: var(--color-lightgray);
	transition: background-color var(--transition-time), color var(--transition-time);
	/*font-weight: bold;*/
}
.tab-bar > li.tab-disabled {
	color: var(--color-gray);
	background-color: var(--color-lightgray);
}
.tab-bar > li:hover:not(.tab-selected):not(.tab-disabled)  {
	cursor: pointer;
	background-color: var(--color-gray);
	color: white;
}
.tab-bar > li.tab-selected {
	background-color: var(--color-light);
	color: white;
}

.tab-workspace {
	padding: 1em;
}
.tab-workspace > div {
	display: none;
}
.tab-workspace > div.tab-selected {
	display: block;
}


span[data-error] {
	color: var(--color-error);
}

#flashbar {
	flex-grow: 0;
}
#flashbar > div {
	color: white;
	padding: 1em;
	margin-bottom: 1px;
}
#flashbar .error, #flashbar .flash-error {
	background-color: #f78880;
	border: 2px solid red;
}
#flashbar .flash-info {
	/*border: 2px solid var(--color-dark);*/
	background-color: var(--color-light);
	color: white;
}
#flashbar a {
	color: white;
}
#flashbar a:hover {
	color: var(--color-dark);
}

.body {
	padding: 1em 1em 1em 1em;
}

hr {
	border: 0;
	border-bottom: 6px solid var(--color-light);
	width: 6em;
}
.campaign-link{
	display: block;
	padding-bottom: 1em;
}
.campaign-link > a {
	display: block;
}
.campaign-link > .campaign-img {
	text-align: center;
}
.campaign-link > .campaign-img > img {
	max-width: 100%;
	width: 100%;
}
.campaign-title {
	font-size: 1.3em;
	text-transform: uppercase;
	color: var(--color-light);
	font-weight: bold;
	margin-bottom: 0.6em;
}
.campaign-link > .campaign-title {
	font-size: 1.3em;
	text-transform: uppercase;
	flex-grow: 1;
}
.campaign-detail {

}
.campaign-ends {
	font-weight: bold;
}

/* THE MENU */
#menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: var(--color-dark);
	color: white;
	font-size: 1.4em;
	display: none;
}

#menu:target {
	display: block;
}
.menu-list {
	padding: 0;
	margin: 0;
}
.menu-list > a {
	display: block;
	/*text-transform: capitalize;*/
	padding: 0.6em 1em;
	border-bottom: 1px solid #06294C;
	color: white;
	font-weight: normal;
}
.menu-list > a:hover {
	/*color: var(--color-light);*/
	background-color: var(--color-light);
}

/* TERMS AND CONDITIONS */
#terms {
	display: none;
}
#terms:target {
	display: block;
}
#recorded { display: none; } 
#recorded:target { display: flex; }
/* CONTACT US */
#contact {
	display: none;
}
#contact:target {
	display: block;
}
.pager {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
}
.pager > div {
	min-width: 2em;
}
.pager > div img {
	height: 1em;
}
.pager > div:nth-child(2) {
	flex-grow: 1;
	text-align: center;
	font-weight: bold;
	font-size: 0.8em;
}
.pager > div:nth-child(3) {
	text-align:right;
}
#sales-table {
	font-size: 0.7em;
	display: table;
/*	grid-template-columns: repeat(5, 1fr);
	grid-column-gap: 0.8em;
*/
}
#sales-table .head {
	display: table-header-group;
	font-weight: bold;
	border-collapse: collapse;
}
#sales-table .head > div {
	display: table-row;
}
#sales-table .head > div > div {
	display: table-cell;
	border-bottom: 1px solid var(--color-gray);
	padding: 0.2em 0.4em;
	line-height: 1.2em;
}
#sales-table .head > div > div:last-child {
	text-align: right;
}
#sales-table .row {
	display: table-row;
}

#sales-table .row:nth-child(2n+1) {
	background-color: var(--color-lightgray);	
}
#sales-table .row > div {
	display: table-cell;
	padding: 0.2em 0.4em;
	line-height: 1.2em;
}
#sales-table .price {
	text-align: right;
}

#forgot {
	display: none;
}
#forgot:target {
	display: flex;
}
.submit-call-to-action {
	width: 100%;
	padding: 1em;
	font-weight: bold;
	background-color: var(--color-lightgray);
	margin: 1em 0;
}