body {
	/*background-color: aliceblue;*/
	background-color: rgb(20, 20, 20);
}

a {
	color: #256ec0;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.projectTitle {
    font-size: 3em;
	text-align: left;
	
	font-weight: normal;
	line-height: 1.15;

    margin-top: 0;
    margin-bottom: 0.2em;	
}

.banner {
	margin: 20px;
	color: white;

	text-align: center;
	font-size: 2em;
	
	display: grid;
	grid-template-columns: min-content 1fr min-content;
	grid-column-gap: 20px;
	justify-content: center;
	align-items: center;
}

.banner:before, .banner:after {
	content: '~';
}

.pageWrapper {
	position: absolute;

    top: 0;
    left: 0;

	width: 100%;
	height: 100%;

	/* fallback for IE */
	min-height: 600px;
	min-height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    place-content: space-evenly;


	/* TODO: force Mozilla to overlay scrollbar */
	/* WARN: THIS CAUSES WIDTH BUG IN IE WHEN CHANGING TABS!!! */
	/* overflow-x: hidden;	 */

	/* prevent tabs with scrollbars from resizing pagewrapper */
	overflow: overlay;
}

.content {

	position: relative;

	width: 75%;
	height: 75%;

	/* fallback for IE  */
	min-width: 600px;

	max-width: 1000px;
	min-width: min(100%, 600px);

    margin-top: 10px;
    margin-bottom: 20px;

    display: grid;
	grid-template-rows: min-content minmax(min-content, 1fr);
	grid-template-columns: 100%;
}

.info {
	min-height: 200px;
	padding: 20px;

	color: black;
	background-color: whitesmoke;
	border-radius: 0 0 10px 10px;

    border-style: solid none;
    border-width: 1px;
	border-color: black;
	
	text-align: justify;
}

.tabs {
    /*default for old browsers AKA IE*/
	display: flex;
    flex-direction: row;

	top: 0;
	left: 0;
	position: relative;
	
    width: 100%;
	max-width: min(100%, 100vw);	

	height: min-content;
	
	display: flex;
	flex-flow: wrap-reverse;

	justify-content: center;

	background-color: gray;
	border-radius: 10px 10px 0 0;

	/* prevent tabs from squishing against walls */
	padding: 5px 10px 0;
    box-sizing: border-box;

	z-index: 0;
}

.tab {

	/* Make sure firefox renders tabs in correct order when wrapping in reverse */
	z-index: calc(0 - var(--index));

	min-width: min(120px, 100%);

	min-height: 25px;
	overflow-wrap: break-word;
	
    color: black;
    text-align: center;
    font-weight: bold;

	/* Max tabs stretch evenly to fill .tabs flex rows */
	flex-basis: 0;
	flex-grow: 1;
	flex-shrink: 1;

    display: flex;
    justify-content: center;
    align-items: center;    

	background-color: lightgray;
	border-radius: 10px 10px 0 0;
	
	/* Note: offset tab by 10px to coverup gap caused by boarder-radius in second row */
	margin-top: -10px;
	padding-bottom: 10px;

	border-style: solid solid none solid;
	border-color: black black whitesmoke black;
	border-width: 1px;

    cursor: pointer;
	user-select: none;
}

.tab:hover {
	background-color: whitesmoke;
	
	/* Grow tab by 10px. Note the original margin-top is -10px   */
	margin-top: -20px;
	padding-bottom: 20px;
	/* padding-bottom: 25px; */
}

.tabActive {

	/*TODO: try switching to outline to prevent having border offset not show in edge ;*/

	background-color: whitesmoke !important;
	
	/* Grow tab by 10px. Note the original margin-top is -10px   */	
	/* additional 1px to cover up black boarder in bottom row */
	margin-top: -20px !important;
	padding-bottom: 21px !important;
	margin-bottom: -1px !important;
}

.tab p {	

    padding: 10px;
	width: calc(100% - 2*10px);

	margin: 0;
	height: min-content;
	/* min-width: 100px; */

    font-size: 1em;	
    line-height: 1.15em;
}

/* TODO: use this to render speedtest? */
.loading {
	/* TODO: THIS???? */
}

.math {
	font-family: Cambria;
	font-weight: bold;
	font-size: .85em;
}

.image.loading:before {
    position: absolute;
    z-index: 100;
	
	content: "Loading Image";
    font-size: 1.5em;
	
	/* fallback for browsers that don't support 'fit-content' */
	text-align: center;
	height: 1.5em;
	
    width: fit-content;
    height: fit-content;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
	
	color: lightgrey;
}

.image.loading:after {
	position: absolute;
	z-index: 99;
	
	content: "";

	top: 0;
    bottom: 0;
    right: 0;
    left: 0;

	background-color: rgba(0, 0, 0, .5);	
}

.image {
	min-width: 100px;
	min-height: 100px;
	position: relative;
	overflow: hidden;
	display: flex;

	/* required on ios and oldwebkit browsers to keep '.image img' from filling max-height */
	flex-direction: column;
}

.image img {
	width: 100%;

	/* prevents IE from having 'auto height' = 'original image height' */
	min-height: 100%;
	max-height: 500px;
	
	/* safeguard so aspect ratio doesn't get messed up */
	object-fit: contain;
}

.photoReel {
	position: relative;
}

.overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
}

.photoReel .overlay {
	display: flex;
	flex-direction: row;
}

.photoReel .button {
	cursor: pointer;

	display: flex;
	position: relative;

	width: 100%;
	height: 100%;

	opacity: 0;
}

.photoReel .button.disabled {
	visibility: hidden;
}

.photoReel .button:hover {
	opacity: 1;
	transition: opacity .25s;
}

.photoReel .button:before {

	margin: auto;
	padding: 10px;

    font-weight: bold;
    font-family:"Consolas", "Courier New", monospace;
    font-size: 2em;	

    text-align: center;
	line-height: 50px;
	height: 50px;
    width: 50px;

	color: white;
	background-color: rgba(0, 0, 0, .5);
	border-radius: 5px;
	
	opacity: .5;
}

.photoReel .prevButton:before {
	content: "<";
	margin-left: 10px;
}

.photoReel .nextButton:before {
	content: ">";
	margin-right: 10px;
}

.photoReel .photos {
	position: relative;
	width: 100%;
	max-width: 700px;
	
	/* if no images are in photoReel */
	min-height: 100px;
	
	margin: auto;

	display: flex;
    flex-direction: row;
	overflow: hidden;	
	
	background-color: lightgray;
}

.photoReel .photos .image {
	min-width: 100%;
}

.photoReel .photos .active {
	order: -1;
}

.captionedObject {
	display: block;
	width: 100%;
	max-width: 700px;
	margin: 10px auto;	
}

.captionedObject > .caption {
	display: table;
    font-size: .85em;
	text-align: justify;
    margin: 10px auto;	
}

.youtubeVideo,
.googleSlides {
	width: 100%;
	padding-top: 56.25%; /*16:9 aspect ratio*/
	position: relative;	
}

.youtubeVideo > iframe,
.googleSlides > iframe {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	margin: 0;
}

.attachments > .youtubeVideo,
.attachments > .googleSlides {
	width: 75%;
	margin: auto;
}

.referenceBlock, .contactBlock {
	width: 100%;
	margin: 20px 0;

	border-collapse: separate;
	border-spacing: 0 5px;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.referenceBlock thead, .contactBlock thead {
	display: inline-table;
	width: 100%;
}

.referenceBlock tbody, .contactBlock tbody {
	display: table-cell;
	width: 100%;
	overflow: auto;
}

.referenceBlock tr, .contactBlock tr {
	width: 100%;
}

.referenceBlock .referencePrefix {
	/* hack to make sure first two 'td' have 'width: min-content' */
	width: .1%;
	white-space: nowrap;
}

.referenceBlock th, .contactBlock thead th {
	font-size: 1.5em;
	font-weight: bold;
	text-align: left;
	line-height: 1.5em;
	padding-left: 5px;

	border-bottom: solid 1px rgb(20, 20, 20);
}

.contactBlock tbody th {
	text-align: center;
	font-weight: bold;
}

.referenceBlock td {
	padding-left: 5px;
	vertical-align: baseline;
}

.contactBlock td:first-child, .contactBlock th:first-child {
	padding-left: 5px;
}

.contactBlock td, .contactBlock th {
	padding-left: 15px;
}

.referenceBlock .spacer {
	padding-left: 15px;
}

.contactBlock .spacer {
	text-align: center;
}
.contactBlock .spacer::before {
	content: "-";
} 

.referenceBlock div {

	/* Note: margin on right side of div to balance 5px padding on left of 'referencePrefix'
			 while keeping 'spacer' centered 
	*/
	margin: 6px 5px 6px 0;
	
	text-align: justify;
	line-height: 1em;
}

.section,
.downloadBlock {
	width: 100%;
	margin: 10px 0;
}

.section:before,
.downloadBlock:before {
	content: attr(name);
	font-size: 1.5em;	
	line-height: 1.5em;
	font-weight: bold;
	text-align: left;
	padding-left: 5px;

	display: block;
	margin: 0 0 5px 0;
	
	border-bottom: solid 1px rgb(20, 20, 20);
}

.downloadBlock {
	display: flex;
    flex-direction: column;
}

.downloadBlock a {
    margin: 2.5px;
}


.loadingSpinner {
    width: 50px;
    height: 50px;
    margin: 13px;
    position: relative;

    border: 7px solid;
    border-radius: 50%;
    border-color: #00008b47;
    border-left-color: darkblue;

    background: transparent;

    animation-name: loadingSpinnerAnimation;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes loadingSpinnerAnimation {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

.text {
    margin: 10px;	
}

.attachments {
	width: 100%;
    height: fit-content;
    margin-top: 20px;

    display: flex;
    flex-direction: column;
}

.attachments > label {
    font-size: 1.25em;
    font-weight: bold;
    margin: 10px;	
}

.pdf {
	position: relative;
	margin: auto;

	/*settings for old browsers*/
	width: 75%;
	padding-top: 97%;

	/*maintain aspect ratio and add 20px for pdf padding so scroll bar doesn't show*/
	width: min(700px, 100%) 								!important;
	padding-top: calc(min(700px, 100%) * 11/8.5 + 40px) 	!important;	
}

.pdf > object {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	border-radius: 10px;
}

/* small screen styles (tablets ~550-1024 css px width, phones ~320-475 css px width),  */
/* @media (max-width: 600px) {
	.tabs {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 300px) {
	.tabs {
		grid-template-columns: repeat(1, 1fr);
	}
} */
