﻿:root {
	--color-primary: #8A0000;
	--color-primary-fade: #B33333;
	--color-primary-medium: #FF0000;
	--color-primary-light: #FEE7E7;
	--color-primary-transparent: #8A000080;
	--color-background: #FEE7E7;
	--color-gray-dark: #808080;
	--color-gray-medium-dark: #989898;
	--color-gray: #D4D4D4;
	--color-gray-light: #E6E6E6;
	--color-gray-transparent: #D4D4D480;
	--color-gray-dark-transparent: #80808080;
	--font-size: 16px;
	--header-height: 70px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-family: 'Arial';
	font-size: var(--font-size);
	height: 100%;
}

body {
	background-color: var(--color-background);
	display: flex;
	flex-direction: column;
	height: 100%;
}

main {
	background-color: var(--color-gray);
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: auto;
}

	main button {
		background-color: var(--color-primary);
		border: none;
		border-radius: 5px;
		color: white;
		cursor: pointer;
		font-size: inherit;
		padding: 5px 10px 5px 10px;
		text-align: center;
	}

		main button:hover {
			opacity: 0.9;
		}

		main button:disabled {
			background-color: var(--color-primary-transparent);
		}

		main a.edge-link-disabled {
			background-color: var(--color-primary-transparent);
			pointer-events: none;
		}

	main iframe {
		border: 0;
	}

	main.edge-main-w-sub {
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

		main.edge-main-w-sub > div:first-child {
			background-color: var(--color-primary);
			border-bottom: 1px solid black;
			color: white;
			position: sticky;
			top: 0;
		}

			main.edge-main-w-sub > div:first-child p:first-child {
				font-size: 200%;
				font-weight: 600;
				padding: 0 0 10px 0;
				text-align: center;
			}

			main.edge-main-w-sub > div:first-child p:nth-child(2) {
				font-size: 150%;
				font-weight: 600;
				padding: 0 0 10px 0;
				text-align: center;
			}

		main.edge-main-w-sub > div:nth-child(2) {
			flex: 1;
			display: flex;
			flex-direction: column;
			overflow: auto;
			padding: 10px 10px 10px 10px;
		}

.edge-img-shrink-fit {
	position: relative;
}

	.edge-img-shrink-fit img {
		position: absolute;
		height: 100%;
	}

#LoadingIcon {
	animation: LoadSpin 1s linear infinite;
	border: 12px solid #f3f3f3;
	border-radius: 50%;
	border-top: 12px solid #444444;
	height: 70px;
	width: 70px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	z-index: 999;
}

@keyframes LoadSpin {
	100% {
		transform: rotate(360deg);
	}
}

@media only screen and (max-width: 412px) {
	.edge-btn-group-horiz {
		display: flex;
		gap: 10px;
		flex-wrap: wrap;
	}

		.edge-btn-group-horiz * {
			flex: 1 0 calc(50% - 5px);
		}

	.edge-btn-group-wide {
		flex: 1 0 100%;
	}
}

@media only screen and (min-width: 413px) {
	.edge-btn-group-horiz {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
		grid-gap: 10px;
	}
}

.edge-btn-link {
	background-color: var(--color-primary);
	border: none;
	border-radius: 5px;
	color: white;
	cursor: pointer;
	font-size: inherit;
	padding: 5px 10px 5px 10px;
	text-align: center;
	text-decoration: none;
}

.edge-lookup-header {
	cursor: pointer;
}

iframe {
	display: block;
}

#EdgeImageLarge {
	background-color: var(--color-gray-dark-transparent);
	position: absolute;
	top: var(--header-height);
	bottom: 0;
	left: 0;
	right: 0;
	padding: 39px 20px 20px 20px;
}

	#EdgeImageLarge img {
		cursor: zoom-out;
		object-fit: contain;
		height: 100%;
		width: 100%;
		max-height: 100%;
		max-width: 100%;
	}