:root {
	--header: 5rem;
}

/* General Page Format */
* {
	font-family: sans-serif;
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

/* Header Section */
header {
	display: flex;
	background-color: #ed1c2f;
	text-align: center;
	height: var(--header);
	width: 100%;
}

#title {
	color: white;
	font-size: 1.5vw;
	width: 100%;
	margin: auto;
	font-weight: 100;
}

#swinLogo {
	position: absolute;
	left: 0;
	top: 0;
	height: var(--header);
}

/* Body Containers */
main {
	display: flex;
	flex-wrap: wrap;
	padding: 0.5%;
}

form {
	flex-basis: 0;
	flex-grow: 999;
	min-width: 50%;
}

aside {
	--offset: var(--header);
	flex-grow: 1;
	flex-basis: 500px;
	align-self: start;
	position: sticky;
	top: var(--offset);
	text-align: center;
}

aside > fieldset {
	position: relative;
	position: -webkit-sticky;
	position: -moz-sticky;
	position: -ms-sticky;
	position: -o-sticky;
	position: sticky;
	background-color: #343642;
	color: white;
}

#regions {
	height: 60vh;
	overflow-y: auto;
	border: 1px solid black;
	margin-bottom: 10px;
	background-color: white;
	color: black;
	text-align: left;
}

.storedRegion {
	padding-top: 1rem;
	padding-bottom: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
	border-bottom: 1px solid lightgray;
	margin: 0;
	cursor: pointer;
}

.storedRegion:hover {
	background-color: rgb(241, 241, 241);
}

.storedRegion.active {
	background-color: lightgray;
}

.storedRegion h3 {
	margin: 0;
	margin-left: 10px;
}

/* Import Button */
#importButton {
	width: 100%;
	font-size: 15px;
	margin-top: 5px;
}

#importButton button {
	width: 100%;
}

input[type="file"] {
	display: none;
}

.fileUpload {
	background-color: #dc2d27;
	color: white;
	cursor: pointer;
	border: none;
	padding: 10px 20px;
	font-weight: bold;
}

.fileUpload:hover {
	text-decoration: underline;
}

/* Submit Button */
#submitButton {
	width: 100%;
	font-size: 15px;
}

#submitButton button {
	width: 100%;
}

/* Map Section */
#mapid {
	height: 600px;
}

.centered {
	display: block;
	margin: auto;
}

/* Form Section */

/* Puts form input sections side by side */
.container {
	display: flex;
	flex-flow: row wrap;
	flex-wrap: wrap;
	align-items: center;
}

#optionsBox label {
	font-size: 20px;
	width: 25%;
}

#optionsBox select {
	width: 25%;
	font-size: 30px;
	text-align: center;
}

#optionsContainer label {
	width: 25%;
}
#optionsContainer label input,
#optionsContainer label select {
	width: 100%;
}

input {
	font-size: 18px;
	width: auto;
	padding-top: 10px;
	padding-bottom: 10px;
}

label,
select {
	padding: 10px;
	font-size: 14px;
	font-weight: bold;
	margin: 5px auto;
}

label title {
	display: block;
	margin-bottom: 5px;
}
label descriptor {
	display: inline;
	margin-right: 5px;
}

.leftcontainer {
	display: block;
	margin-bottom: 1em;
}

/* Centered container for inputs.*/
.centeredcontainer {
	width: 100%;
	margin: auto;
	text-align: center;
}

.centeredcontainer label {
	display: inline-block;
}

.centeredcontainer label title {
	text-align: left;
}

.geometryindex {
	width: 35px;
}

.environmentvariables {
	margin-top: 5px;
	margin-bottom: 5px;
	width: 350px;
}

/* Add New Job Details containters */
.jobContainer {
	width: 100%;
	margin: auto;
	text-align: center;
}

/* Job Time Input Container */
.jobtime input {
	width: 45px;
}

/* Buttons */
button {
	background-color: #dc2d27;
	color: white;
	cursor: pointer;
	border: none;
	padding: 10px 20px;
	font-weight: bold;
	margin-left: 5px;
	margin-right: 5px;
}

button:hover {
	text-decoration: underline;
}

#locationButton {
	padding: 5px;
	margin-top: 10px;
}

/* Footer */
footer {
	background-color: #343642;
	padding: 10px;
	text-align: center;
	color: white;
	margin-bottom: 0;
	clear: both;
}

/* Collapsable Headings */
.collapsibleHeading {
	display: block;
	background-color: #dc2d27;
	color: white;
	cursor: pointer;
	padding: 18px;
	width: auto;
	border: none;
	text-align: left;
	outline: none;
	user-select: none;
	margin-top: 5px;
	margin-bottom: 5px;
	margin-left: -12px;
}

.collapsibleHeading > * {
	display: inline;
	font-size: 16px;
	margin: auto;
	height: 100%;
	vertical-align: center;
}
.collapsibleHeading > img {
	float: right;
}

.collapsed {
	display: none;
}

.collapsableChild {
	padding-top: 8px;
	padding-bottom: 8px;
	background-color: #343642;
}

.collapsableChild > * {
	font-size: 12px;
}

#presetscontainer button {
	display: block;
	margin-top: 5px;
	margin-bottom: 5px;
	width: 150px;
}

.check-btn-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 160px;
}

.preset-group {
	column-count: 2;
	padding-left: 10px;
	padding-right: 10px;
}

.preset-wrapper label {
	width: 100%;
}

.preset-wrapper input {
	float: left;
	margin-left: 35%;
}

.preset-wrapper descriptor {
	float: left;
	margin-left: 18px;
	padding-top: 2px;
}

.error {
	display: block;
	padding-bottom: 5px;
	text-align: left;
}

.error span {
	display: inline;
	color: red;
	font-size: 140%;
}

.error title {
	display: inline;
}

.hide-span {
	display: none !important;
}

/* Style for Popup */

/* The Modal (background) */
.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
	position: relative;
	background-color: #fefefe;
	margin: auto;
	padding: 0;
	border: 1px solid #888;
	width: 600px;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s
  }
  
  /* Add Animation */
  @-webkit-keyframes animatetop {
	from {top:-300px; opacity:0} 
	to {top:0; opacity:1}
  }
  
  @keyframes animatetop {
	from {top:-300px; opacity:0}
	to {top:0; opacity:1}
  }
  
  /* The Close Button */
  .close {
	color: white;
	float: right;
	font-size: 28px;
	font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
  }
  
  .modal-header {
	padding: 2px 16px;
	background-color: #dc2d27;
	color: white;
  }
  
  .modal-body {padding: 2px 16px;}
  
  .modal-footer {
	padding: 2px 16px;
	background-color: #dc2d27;
	color: white;
  }
  