/*
 * Camp Mani-Toebeans Main Style
 *
 * Some classes are used purely as modifiers:
 *  .main:	Signifies the most prominent element of its type on this
 *					page, like the main nav or the main section. (Instead of IDs)
 *	.left:	For things that style on the right, style on the left instead
 *	.right:	For things that style on the left, style on the right instead
 *	.small:	An alternate style that uses smaller padding/font than normal,
 *					especially for use inline with text.
 *
 */


/* HTML Element styles */

*, *:before, *:after {
    box-sizing: inherit;
}

html, body
{
	font-size:15px;
	font-family: "Segoe UI",Arial,sans-serif;
	height: 100%;
	box-sizing: border-box;
}
body
{
	line-height: 2;
	margin:0;
	padding:0;
  padding-top: 3em;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}
img
{
	max-width:100%;
}
a
{
    color: inherit;
}
p 
{
    margin-block-end: 0.8em;
    margin-block-start: 0.8em;
}
p img
{
	vertical-align: text-bottom;
}
input
{
	font-size:1em;
}
/* input.locked, textarea.locked,form.locked, button.locked
{
FIX: use js? Style later to accommodate, if needed. (or delete this)	
} */
input.button
{
	border-width:0;
	line-height:2;
}
fieldset
{
	width:100%;
}
nav
{
	display: flex;
	justify-content:space-between;	
}
nav>div
{
	display:flex;
	justify-content: flex-end;
}
nav.main
{
	box-shadow: 0 0.13em 0.33em 0 hsla(0,0%,0%,0.3);
	position: fixed;
	top:0;
  width: 100%;
  z-index: 1;
}
nav.main>div>a
{
	line-height: 1;
	display: flex;
	align-items:center;
	white-space: unset;
}

fieldset
{
	border-width:0;
}

footer
{
	padding:1em;
}

h1
{
	font-size:1.6em;
	font-weight:700;
}
h2
{
	font-size:1.3em;
	font-weight:600;
}
h3
{
	font-size:1.1em;
	font-weight:500;
	font-weight:500;
	font-style:italic;
}
h4
{
	font-size:1em;
	font-weight:600;
	font-style:italic;
}
h5
{
	font-size:0.95em;
	font-weight:600;
	font-style:italic;
}
h6
{
	font-size:0.8em;
	font-weight:700;
	font-style:italic;
}
pre
{
	white-space: pre-wrap;
}
dt
{
	font-weight:600;
}

/* IDs for specific page elements */

#homebg
{
	background-image: url("../images/homebg.png");
	animation: fadein 0.8s;
	background-size: contain;
	background-repeat: no-repeat;
}
#top
{
	height: 0;
  display: block;
}
#version-table
{
	grid-template-columns:auto auto auto auto 4fr 1fr;
	line-height:1.3;
	grid-row-gap:1em;
}


/* Classes */

.reset
{
	font-size:17.25px;
	font-family: "Segoe UI",Arial,sans-serif;
}
.box 
{
	padding:1em;
}
.box> :first-child
{
	margin-top:0;
}
.edge
{
	display:flex;
	justify-content: space-between;
}
.spread
{
	display:flex;
	justify-content: space-evenly;
}

.modal
{
	position:fixed;
	z-index:1;
	top:0;
	bottom:0;
	left:0;
	right:0;
	margin:0;
	padding:0;
	padding-top:3.8em;
	padding-bottom:1.8em;
	background-color:hsla(0,0%,0%,0.8);
	overflow:auto;
}
/* .modal:before
{
	display:block;
	content: "File Chooser";
	max-width:400px;
	margin:auto;
	padding-left:1em;
	line-height:2;
	border-radius:1em 1em 0 0;
	background-color:hsl(0,0%,0%);
	color:white;
} */
.modal>*
{
	position:relative;
	max-width:30em;
	margin:auto;
	padding:1em;
}
.modal>*>div
{
	max-height:15em;
	overflow:auto;
}

.media-picker
{
	display:flex;
	flex-wrap: wrap;
}
.media-picker>div
{
	flex-basis:5em;
	max-width:24%;
	padding:0.18em;
	margin:0.1em;
	text-align:center;
}
.media-picker>.selected
{
	border:0.08em solid hsl(210,65%,65%);
	padding:0.1em;
}
.media-picker>div img
{
	height:inherit;
	max-height: 6em;
}
.media-picker span
{
	display:block;
	margin-top:-0.5em;
	margin-bottom:1.5em;
	font-size:0.5em;
}
.searchbox
{
	max-width:85%;
}

.button
{
	display: inline-block;
	/* align-self: start; CHECK: did this do anything? */
	padding: 8px 16px;
	vertical-align: middle;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	white-space: nowrap;
}
.button.small
{
	font-size:0.9em;
	padding: 2px 14px;
}
.button:not(.locked):hover
{
	color: hsl(0, 0%, 0%);
	background-color: hsl(0, 0%, 80%);
}
.button img
{
	max-height: 2em;
	padding-right: 0.6em;
}
select, input[type='date']
{
	display: inline-block;
	padding: 8px 3px 7px 4px;
	vertical-align: middle;
	cursor: pointer;
	white-space: nowrap;
	font-size:1em;
}


.background
{
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	z-index: -90;
	background-position: center;
	background-size: cover;	
}

.fullheight
{
	position:relative;
	/* Apparently doesn't work any more... */
	/* min-height:100%; */
	min-height:90vh;
	display:flex;
  padding: 1em;
	flex-direction: column;
	justify-content: space-around;
	align-items:flex-start;
}

.cardbox
{
	display:flex;
	justify-content:space-evenly;
	justify-items: stretch;
	flex-wrap: wrap;
}
.cardbox>*, .card
{
	border:1px solid white;
	background:hsla(0,0%,100%,0.4);
	border-radius:0.2em;
	min-width:2.9em;
	text-align:center;
	padding:1em 0.6em;
	margin:1.2em 0.4em;
	font-size:0.9em;
	max-width:13em;
	box-shadow: 0.16em 0.16em 0.2em hsla(0,0%,0%,0.2), 0.2em 0.2em 0.6em hsla(0,0%,0%,0.2);
}
.card
{
	margin:1.2em auto;
}

.cardbox.header>*>:first-child, .cardbox .header>:first-child, .card.header>:first-child, .card .header>:first-child
{
	font-weight:600;
	font-size:1.15em;
	display:block;
}

.stamp
{
	position:absolute; 
	bottom:100%; 
	margin-bottom:-0.7em; 
	left:0; 
	right:0; 
	transform:rotate(-20deg); 
	line-height:1;
	font-size:1.4em;
	font-weight:bold; 
	color:#396
}

.lined
{
	display:flex;
	flex-wrap: wrap;
	align-items:center;
	justify-content: flex-end;
}
.lined.left
{
	flex-direction: row-reverse;
}
.lined.overwide
{
	flex-wrap: nowrap;
	justify-content: flex-start;
}
.lined>:first-child
{
	flex-grow: 1;
}
.lined.overwide>:first-child
{
	flex-shrink: 0;
}
.lined.left>:first-child
{
	text-align:right;
}
.lined>*+*
{
	margin-left:0.7em;
	flex-shrink:0;
}
.lined.left>*+*
{
	margin-left:0;
	margin-right:0.7em;
	flex-shrink:0;
}
.grid
{
	display:grid;
	grid-column-gap: 1em;
}
.grid>*{	position:relative;}
.grid.x2{	grid-template-columns: auto auto;}
.grid.x3{	grid-template-columns: auto auto auto;}
.grid.x4{	grid-template-columns: auto auto auto auto;}
.grid.x6{	grid-template-columns: auto auto auto auto auto auto;}
.grid.x7{	grid-template-columns: auto auto auto auto auto auto auto;}
.grid.x8{	grid-template-columns: auto auto auto auto auto auto auto auto;}
.g2{	grid-column: span 2;}
.g3{	grid-column: span 3;}
.g4{	grid-column: span 4;}
.g5{	grid-column: span 5;}
.g6{	grid-column: span 6;}
.g7{	grid-column: span 7;}
.g8{	grid-column: span 8;}
/* FIX: Sorting; add JS hooks and add pointer cursor */
.grid.x2.header>:nth-child(-n+2),
.grid.x3.header>:nth-child(-n+3),
.grid.x4.header>:nth-child(-n+4),
.grid.x5.header>:nth-child(-n+5),
.grid.x6.header>:nth-child(-n+6),
.grid.x7.header>:nth-child(-n+7),
.grid.x8.header>:nth-child(-n+8)
{font-weight:600;}

.grid>span
{
	word-break:break-word;
}
.grid input
{
	margin:0.25em;
}
.grid>.button
{
	margin-bottom:auto;
}

.illustrated
{
	display:flex;
	flex-direction: row-reverse;
	align-items: center;
	text-align:justify;
	justify-content: space-evenly;
}
.illustrated>:first-child
{
	width:1000%;  /* FIX? This is only here because Firefox is stupid */
	max-width: 10em;
	margin-left: 1em;
	margin-bottom: auto;
  margin-top: 0.5em;
	}
.illustrated.left
{
	flex-direction: row;
}
.illustrated.left>:first-child
{
	margin-right:1em;
	margin-left:initial;
}

.flanked
{
	display:flex;
	justify-content:space-evenly;
	align-items: center;
	text-align:justify;
}
.flanked>:first-child
{
	max-width:20%;
	height:auto;
	padding-right:1em;
}
.flanked>:last-child
{
	max-width:20%;
	height:auto;
	padding-left:1em;
}
/* for Edge */
@supports (-ms-ime-align: auto) 
{
	.flanked, .cardbox
	{
		justify-content:space-around;
	}
  .flanked>:first-child, .flanked>:last-child
	{
		width:100%;
		text-align: center;
  }
}
.punchtext
{
	margin-top:1em;
	margin-bottom:1em;
	line-height: 1.2;
	text-align: justify;
}
.punchtext>p
{
	font-size:1.2em;
	margin: 0px auto;
	margin-left:2.4em;
}
.punchtext>p:first-of-type
{
	font-size:2.4em;
	margin-left:0;
}

.preview
{
	width:100%;
	height:100%;
}

.tab
{
	margin-bottom:-0.06em;
	padding:0.1em 1em;
	width:10em;
	border:0.06em solid white;
	border-bottom-width:0;
	border-radius: 1.5em 1.5em 0 0;
	font-size:1.15em;
	font-weight:600;
}

.footer
{
	padding: 1em;
	text-align: center;
}

input[type=number]
{
	width:4em;
}

.draggable
{
	cursor:-webkit-grab;	
	cursor:row-resize;	
	padding: 8px 16px;
}
.draggable.small
{
	font-size:0.9em;
	padding: 2px 14px;
}
.dragover
{
	border-bottom: 0.1em solid hsl(0, 0%, 0%);
	padding-bottom: 0.35em;
	margin-bottom: -0.45em;
}
.dragover:last-child
{
	margin-bottom:0.35em;
}

[draggable=true] {
  -khtml-user-drag: element;
  -webkit-user-drag: element;
  -khtml-user-select: none;
  -webkit-user-select: none;
}

.tiny
{
	font-size:0.5em;
}

/* Animations */

@keyframes fadein{from{opacity:0} to{opacity:1}}
@keyframes downswoop{from{top:-300px;opacity:0} to{top:0;opacity:1}}
@keyframes rightswoop{from{left:-300px;opacity:0} to{left:0;opacity:1}}
@keyframes leftswoop{from{right:-300px;opacity:0} to{right:0;opacity:1}}
@keyframes upswoop{from{bottom:-300px;opacity:0} to{bottom:0;opacity:1}}

/* Font-Awesome Fixes */
.fa, .fab, .fal, .far, .fas
{
	font-family: inherit;
	font-weight: inherit;
}
.fa:before, .fas:before
{
	font-weight: 900;
}
.largelinks .fa:before, .largelinks .fab:before, .largelinks .fal:before, .largelinks .far:before, .largelinks .fas:before
{
	font-size: 2em;
	vertical-align: middle;
}
.fa:before, .far:before, .fas:before
{
	font-family: "Font Awesome 5 Free";
}
.fab:before, .fal:before
{
	font-family: "Font Awesome 5 Brands";
}
.fas:hover:before, .fab:hover:before
{
	color:inherit;
}
.fa-envelope::before
{
	color:hsl(142,20%,20%);
}
.fa-twitter-square:before
{
	color:hsl(196,44%,44%);
}
.fa-facebook-square:before
{
	color:hsl(223,35%,35%);
}
.fa-discord:before
{
	color:hsl(227,34%,44%);
}
.fa-telegram:before
{
	color:hsl(198,80%,36%);
}













/* Media Adjustments */

@media screen and (orientation: portrait)
{
	.button, input.button
	{
		line-height:2.3;
		padding:0.5em 1em;
	}
}

.button:hover img.logo
{
	background-image: url('../images/logo.png');
	padding:2em 0 0 2.55em;
	background-size:contain;
	background-repeat: no-repeat;
}

@media screen and (max-width:700px)
{
	.cardbox>*, .card
	{
		font-size:0.75em;
	}
}



/* Small Screen, mobile view */
/* WARNING: If this number changes, also change handleResize in JS. */
@media screen and (max-width: 620px)
{
	#version-table>.g6
	{
		grid-column:span 3;
	}
	#version-table>:nth-child(5n+1):nth-last-child(-n+5):after, 
	#version-table>:nth-child(5n+1):nth-last-child(-n+5) ~ *:after
	{
		border-bottom-width:0;
	}
	#version-table>:nth-of-type(5n):after, 
	#version-table>:nth-of-type(5n-1):after
	{
		content: "";
		position: absolute;
		right: -0.5em;
		left: -0.5em;
		bottom: -0.6em;
		border-bottom-width: 0.08em;
		border-bottom-style: solid;
	}

	#sidebar
	{
		display:block;
		position: fixed;
		top:0;
		right:0;
		bottom:0;
		min-width: 15em;
		z-index: 1;
		overflow: auto;
		animation: leftswoop 0.4s;
		display:block;
	}
	#sidebar>*
	{
		display: block;
		text-align: left;
		white-space: normal;
		line-height: 2.4;
	}

	.punchtext
	{
		text-align:left;
	}
	.punchtext>p
	{
		font-size:1.3em;
		margin: 0 auto;
		margin-left:2em;
		margin-right:1em;
	}
	.punchtext>p:first-of-type
	{
		font-size:1.9em;
		margin-left:0;
		margin-right:0;
	}
	.box .box, .fullheight .box
	{
		margin-left:-1em;
		margin-right:-1em;
		min-width:calc(100% + 2em);
	}
	.edge, .spread
	{
		display:block;
	}
	.cardbox>*, .card
	{
		font-size:1em;
		max-width:none;
		margin:2em;
	}

	.illustrated, .illustrated.left
	{
		flex-direction: column;
		padding-right:0;
		padding-left:0;
		text-align:left;
	}
	.illustrated>:first-child, .illustrated.left>:first-child
	{
		position:static;
		display:block;
		margin:0 auto;
		width:auto;
		max-width:80%;
		max-height:18em;
	}
	.flanked
	{
		flex-direction: column;
		text-align:left;
	}
	.flanked>:first-child, .flanked>:last-child
	{
		max-height:6em;
		max-width:unset;
		width:auto;
		padding-left:0;
		padding-right:0;
	}

	.grid
	{
	}
	.grid.x6, #version-table
	{
		grid-template-columns: auto 1fr auto;
		position: relative;
	}

	.grid.x4, .grid.x5, .grid.x6
	{
		font-size:0.9em;
		grid-column-gap: 0.5em;
	}
}
@media screen and (max-width:460px)
{
	.grid.x4, .grid.x5, .grid.x6
	{
		font-size:0.8em;
		grid-column-gap: 0.3em;
	}
}
@media screen and (min-width:620px)
{
	.button.mobile
	{
		display:none;
	}
	.grid.x4, .grid.x5, .grid.x6
	{
		grid-column-gap: 0.5em;
	}
}

/* Size Adjustments */

@media screen and (min-width:0px)
{
	body
	{
		font-size:0.35em;
	}
	.mediaspacer
	{
		margin-top:0%;
	}
}
@media screen and (min-width:180px)
{
	body
	{
		font-size:0.50em;
	}
	.mediaspacer
	{
		margin-top:0%;
	}
}
@media screen and (min-width:230px)
{
	body
	{
		font-size:0.7em;
	}
	.mediaspacer
	{
		margin-top:0%;
	}
}
@media screen and (min-width:270px)
{
	body
	{
		font-size:0.8em;
	}
	.mediaspacer
	{
		margin-top:0%;
	}
}
@media screen and (min-width:320px)
{
	body
	{
		font-size:0.9em;
	}
	.mediaspacer
	{
		margin-top:6%;
	}
}
@media screen and (min-width:360px)
{
	body
	{
		font-size:1.1em;
	}
	.mediaspacer
	{
		margin-top:14%;
	}
}
@media screen and (min-width:420px)
{
	body
	{
		font-size:1.2em;
	}
	.mediaspacer
	{
		margin-top:14%;
	}
}
@media screen and (min-width:480px)
{
	body
	{
		font-size:1.3em;
	}
	.mediaspacer
	{
		margin-top:25%;
	}
}
@media screen and (min-width:540px)
{
	body
	{
		font-size:1.3em;
	}
	.mediaspacer
	{
		margin-top:25%;
	}
}
@media screen and (min-width:620px)
{
	body
	{
		font-size:1.2em;
	}
	.mediaspacer
	{
		margin-top:30%;
	}
}
@media screen and (min-width:700px)
{
	body
	{
		font-size:1.2em;
	}
	.mediaspacer
	{
		margin-top:35%;
	}
}
@media screen and (min-width:820px)
{
	body
	{
		font-size:1.3em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:950px)
{
	body
	{
		font-size:1.45em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:1100px)
{
	body
	{
		font-size:1.65em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:1240px)
{
	body
	{
		font-size:1.7em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:1440px)
{
	body
	{
		font-size:1.85em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:1600px)
{
	body
	{
		font-size:2.1em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:1900px)
{
	body
	{
		font-size:2.6em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
@media screen and (min-width:3000px)
{
	body
	{
		font-size:4em;
	}
	.mediaspacer
	{
		margin-top:40%;
	}
	.grid.small-5th :nth-child(5n)
	{
		font-size:inherit;
	}
}
