::selection {
  color: rgba(0,0,0,1.0);
  background: rgba(204, 149, 40, 1.0);
}

::-moz-selection {
  color: rgba(0,0,0,1.0);
  background: rgba(204, 149, 40, 1.0);
}

body {
	height: 100%;
	width: 100%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 1.0);
	color: rgba(255,255,255,1);
	line-height: 1;
	font-size: 1em;
	animation: hueRotation 60s linear 4s infinite;
	-webkit-animation: hueRotation 60s linear 4s infinite;
}

button, label, p, div {
	font-family: "BalooThambi2Regular", "Roboto", Sans-serif;
}

.blocker {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0px;
	top: 0px;
}

#focusBlocker {
	z-index: 10;
	background-color: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	transition: opacity 0.2s;
}

#inputBlocker {
	z-index: 20;
	background-color: rgba(0, 0, 0, 0.0);
}

#loadBlocker {
	z-index: 50;
	background-color: rgba(0, 0, 0, 1.0);
}

#backgroundImageWrapper {
	z-index: -1;
	height: 100%;
	width: 100%;
	filter: brightness(0.75);
}

.backgroundImage, .backgroundImageAnimated {
	left: 0%;
	top: 0%;
	position: fixed;
	height: 100%;
	width: 100%;
	overflow: hidden;
	background-size: cover;
	background-attachment: fixed;
	background-repeat: no-repeat;
	background-position: center center;
	z-index: -2;
}

#backgroundImageStatic {
	z-index: -3;
}

#backgroundTint {
	z-index: 0;
	left: 0vh;
	top: 0vh;
	position: fixed;
	height: 100%;
	width: 100%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.0);
}

#pageContentWrapper {
	z-index: 0;
	position: fixed;
	left: 0vh;
	top: 0vh;
	height: 100vh;
	width: 100vw;
}

#pageInfoContainer {
	width: 98%;
	margin: 0px 1%;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	height: 0px;
	position: fixed;
	top: 1vh;
	font-size: 1.25em;
}

#linkInfoContainer {
	width: 98%;
	margin: 0px 1%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	height: 0px;
	position: fixed;
	bottom: 1vh;
	font-size: 1.25em;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#contentContainer {
	width: 60%;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%)
}

#linkInfoContainer {
	width: 98%;
	margin: 0px 1%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end;
	height: 0px;
	position: fixed;
	bottom: 1vh;
	font-size: 1.25em;
}

.infoText, .infoTextDecor {
	text-align: center;
}

#pageInfoContainer .infoText {
	margin-bottom: 0.5vh;
}

#linkInfoContainer .infoText {
	margin: 0px 0.5em;
}

#linkInfoContainer .infoTextDecor {
	margin: 0px 0em;
}

.infoText a {
	color: rgba(204, 149, 40, 1.0);
	transition: color 0.2s;
	text-decoration: none;
	cursor: pointer;
}

.infoText a:hover {
	color: rgba(204, 175, 122, 1.0);
	text-decoration: none;
	cursor: pointer;
}

.infoText a:active {
	color: rgba(255, 255, 255, 1.0);
}

.contentText {
	text-align: center;
}

#ideaTitleContainer {
	font-weight: bold;
	font-size: 2.75em;
	min-height: 2em;
	margin-bottom: 1vh;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
}

#ideaDescriptionContainer {
	font-size: 1.75em;
	min-height: 8em;
	margin-bottom: 5vh;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}

.controlsContainer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

#generateButtonContainer {
	margin-bottom: 3vh;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#generateButton {
	font-size: 1.75em;
	border: none;
	border-radius: 0.25em;
	background-color: rgba(204, 149, 40, 1.0);
	color: rgba(255, 255, 255, 1.0);
	padding: 0em 0.25em; /* Font-dependent. */
	cursor: pointer;
	transition: background-color 0.2s;
}

#generateButton:hover {
	background-color: rgba(204, 175, 122, 1.0);
}

#generateButton:active {
	background-color: rgba(204, 149, 40, 1.0);
}

#settingsContainer {
	margin-bottom: 1vh;
	
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.settingCheckboxWrapper {
	font-size: 1.5em;
	margin: 0px 0.625em;
	display: block;
	position: relative;
	padding-left: 1.25em;
	cursor: pointer;
	transition: background-color 0.2s;
}

.settingCheckbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.settingCheckboxStyled {
	position: absolute;
	top: 0;
	left: 0;
	height: 1em;
	width: 1em;
	border-radius: 0.25em;
	background-color: rgba(255, 255, 255, 1.0);
	transition: background-color 0.2s;
}

.settingCheckboxWrapper:hover input ~ .settingCheckboxStyled {
	background-color: rgba(204, 175, 122, 1.0);
}

.settingCheckboxWrapper:hover input:checked ~ .settingCheckboxStyled {
	background-color: rgba(204, 175, 122, 1.0);
}

.settingCheckboxWrapper input:checked ~ .settingCheckboxStyled {
	background-color: rgba(204, 149, 40, 1.0);
}

.settingCheckboxStyled:after {
	content: "";
	position: absolute;
	opacity: 0.0;
	transition: opacity 0.2s;
}

.settingCheckboxWrapper input:checked ~ .settingCheckboxStyled:after {
	opacity: 1.0;
}

.settingCheckboxWrapper .settingCheckboxStyled:after {
	left: 0.29em;
	top: 0.08em;
	width: 0.25em;
	height: 0.5em;
	border: solid rgba(255,255,255,255.0);
	border-width: 0px 0.2em 0.2em 0px;
	border-radius: 0.125em;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

#settingsInfo {
	font-size: 1.5em;
	opacity: 1.0;
}

.detailedText {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50% , -50%);
	width: 60%;
	max-height: 90%;
	box-sizing: border-box;
	padding: 2vh;
	border-style: solid;
	border-width: 0.5em;
	border-radius: 1em;
	border-color: rgba(204, 149, 40, 1.0);
	background-color: rgba(15, 15, 15, 1.0);
	z-index: 21;
	line-height: 1.2;
	overflow-y: auto;
	font-size: 1.4em;
	opacity: 0.0;
	pointer-events: none;
}

.detailedText h1 {
	font-size: 2em;
	margin-bottom: 0.5em;
	text-align: center;
}

.detailedText h2 {
	font-size: 1.5em;
	margin-top: 1em;
}

.detailedText p {
	margin-top: 0.5em;
	margin-left: 1em;
}

.detailedText p.extraP {
	margin-top: 4.5em;
}

.detailedText ol {
	margin-left: 3em;
	list-style-type: upper-roman;
}

.detailedText ul {
	margin-left: 3em;
	list-style-type: square;
}

.detailedText a {
	margin-left: 1em;
	display: inline-block; /* Fixes links ignoring left margin after word wrapping. */
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-word;
}

.detailedText a:link {
	color: rgba(204, 149, 40, 1.0);
	text-decoration: none;
	transition: color 0.2s;
}

.detailedText a:hover {
	color:  rgba(204, 175, 122, 1.0);
}

.detailedText a:active {
	color: rgba(255, 255, 255, 1.0);
}

#fullscreenButton {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	height: 4em;
	width: 4em;
	border-radius: 2em;
	background-color: rgba(204, 149, 40, 1.0);
	color: rgba(255, 255, 255, 1.0);
	z-index: 10;
	cursor: pointer;
	position: fixed;
	bottom: 1em;
	right: 1em;
	visibility: hidden;
}

#fullscreenButton:hover {
	background-color: rgba(204, 175, 122, 1.0);
}

#fullscreenButtonImage {
	height: 2em;
}

/* Low width */
@media (max-aspect-ratio: 14/9) {
	
	#contentContainer {
		width: 75%;
	}
	
	.detailedText {
		width: 75%;
	}
	
}

/* Very low width */
@media (max-aspect-ratio: 12/9) {
	
	#contentContainer {
		width: 90%;
	}
	
	.detailedText {
		width: 90%;
	}
	
}

/* Phones. */
@media (max-width: 70em) {
	
	body {
		font-size: 1.7em;
	}
	
	#pageInfoContainer {
		width: 96vw;
		margin: 0vh 2vw;
		top: 2vw;
	}

	#linkInfoContainer {
		width: 96vw;
		margin: 0vh 2vw;
		bottom: 2vw;
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
	}

	#pageInfoContainer .infoText {
		margin-bottom: 0.5vh;
	}
	
	#linkInfoContainer .infoText {
		margin-top: 0.5vh;
	}

	#linkInfoContainer .infoTextDecor {
		display: none;
	}
	
	#contentContainer {
		width: 96vw;
		margin: 0vh 2vw;
		transform: translate(-50vw, -50%)
	}

	#ideaTitleContainer {
		min-height: 2.5em;
	}

	#ideaDescriptionContainer {
		min-height: 14.5em;
	}

	.detailedText {
		width: 90%;
		max-height: 70%;
		padding: 2vw;
		border-width: 0.25em;
		font-size: 1.2em;
	}
	
	/* Landscape orientation. */
	@media (min-aspect-ratio: 5/3) {
		
		body {
			font-size: 0.7em;
		}
		
		#pageInfoContainer {
			width: 99vw;
			margin: 0vh 0.5vw;
			top: 0.5vw;
		}
		
		#linkInfoContainer {
			width: 99vw;
			margin: 0vh 0.5vw;
			bottom: 0.5vw;
			flex-direction: row;
			justify-content: center;
			align-items: flex-end;
		}
		
		#linkInfoContainer .infoText {
			margin: 0px 0.5em;
		}
		
		#linkInfoContainer .infoTextDecor {
			margin: 0px 0px;
			display: block;
		}
		
		#contentContainer {
			width: 99vw;
			margin: 0vh 0.5vw;
			transform: translate(-50vw, -50%)
		}

		#ideaTitleContainer {
			min-height: 1.25em;
		}

		#ideaDescriptionContainer {
			min-height: 7.25em;
		}

		.detailedText {
			width: 70%;
			max-height: 90%;
		}

		#fullscreenButton {
			visibility: visible;
		}
		
	}
	
}



@keyframes hueRotation {
	from {
		filter: hue-rotate(0deg);
	}
	to {
		filter: hue-rotate(360deg);
	}
}