:root {
	/*palette*/
	--black: #102b36;
	--gray-dark: #3e555f;
	--gray: #c3cfe7;
	--gray-light: #e7eaf7;
	--blue-dark: #151660;
	--blue-gray: #355090;
	--blue: #3442b0;
	--blue-light: #588efa;
	--yellow: #ecb922;
	--yellow-light: #f2da78;
	--red-dark: #570102;
	--red: #df4727;
	--red-light: #f0785c;
	--brown: #8e4228;
	--tan: #eba95c;
	--tan-light: #f4f0d7;
	--green-dark: #124a1d; /*#2e9156;*/
	--green-light: #bfde75;
	--green: #6daf4b;
	--teal-light: #8fffff;
	--teal: #4bb0b7;
	--teal-dark: #0b4f47;
	/*fonts*/
	--header-font: "Winky Sans", sans-serif;
	--body-font: "Nunito", sans-serif;
	/*spacing*/
	--gutter-x: 1rem;
	--gutter-y: 1rem;
}
/***GENERAL***/
body {
	color: var(--gray-dark);
	font-family: var(--body-font);
	margin: 0;
	background: var(--gray-light);
}

footer {
	font-size: 0.9rem;
}
p {
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	line-height: 1.4rem;
}
.form-container {
	padding: 3rem;
}
@media only screen and (max-width: 600px) {
	.form-container {
	padding: 2rem;
}
	
}
.container {
	display: flex;
	flex-flow: column;
	padding: 0 var(--gutter-x);
	max-width: 960px;
	margin: auto;
}
#weekly-log {
	font-family: var(--body-font);
	font-size: 1.1rem;
	background-color: var(--gray-light);

	& header {
		padding: .5rem var(--gutter-x);
		background-color: var(--blue);
	}
	& main {
		border-radius: 4px;
		padding: var(--gutter-x);
		margin: 0 auto;

		& .container {
			background-color: white;
			box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
		}

		& h1,
		& p {
			margin: auto;
		}
	}
	& nav {
		color: white;
		display: flex;
		justify-content: space-between;
		flex-wrap:wrap;
		font-size: 1.1em;
		& > * {
			white-space: nowrap;
		}
		& img {
			max-width: 2em;
			max-height: 2em;
		}
		& a {
			display: flex;
			align-items: center;
			gap: 0.5em;
		}
		& a[href] {
			color: white;
			text-decoration: none;
			font-weight: bold;
		}
		& a#brand {
			font-size: 1.4em;
		}
		& a#home-button {
		}
	}
	& h1 {
		color: var(--black);
		margin: 0.5rem auto;
	}
	& p {
	}
	& div[role="radiogroup"] {
		display: grid;
		grid-template-columns: 2em 1fr;
		align-items:center;
	}

	& .log-week-form-row {
		margin-top: 1rem;
		margin-bottom: 2rem;
		& label {
			text-transform: none;
			font-variant: normal;
			letter-spacing: normal;
			padding-bottom: 0.25rem;
			display: block;
		}
		& > :nth-child(2) {
			/*margin-left: 2em;*/
		}
	}

	& input[type="submit"] {
		background-color: var(--blue);
		color: white;
		font-size: 1.25em;
		font-weight: bold;
		padding: 10px 2rem;
		border-radius: 10px;
		border: 2px solid white;
		display:block;
		width:100%;
		max-width:400px;
	}

	& footer {
		padding: 0px 10px;
		background: var(--gray);
	}
}
@media only screen and (max-width: 600px) {
	#weekly-log nav {
		& a#brand {
			order:1;
		}
		& a#home-button {
			order:2;
		}
	}
}

#location-form,
#weekly-log-form {
	&#location-form {
		margin-left: 5em;
	}
	& fieldset {
		padding: 1rem 0 0 0;
		border:0;
	}
	& .form-element {
		display: grid;
		grid-template-columns: 10em 1fr;
		grid-column-gap: 20px;
		margin:0.5rem 0 1rem;
		align-items: center;
		
		& label {
			text-align: right;
		}
	}
	& input & .form-editor {
		font-size: 1.3rem;
	}
	.form-editor {
		line-height:1.5;
	}
	& label {
		/*color:var(--black);*/
	}

	& select {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		font-size: 1.3rem;
		padding: 2px 25px 2px 5px;
		margin:4px 2px;
		border: 1px solid var(--blue-light);
		color: var(--blue-gray);
		background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 0.65rem auto;
		max-width:100%;
		background-color:white;
	}

	& input[type="text"] {
		border: 1px solid var(--blue-light);
		border-radius: 5px;
		font-size:1.3rem;
		color: var(--blue-gray);
		text-align:center;
	}

	& textarea {
		width: 100%;
		min-height: 300px;
		font-size: 1.3rem;
		border-radius: 5px;
		border: 1px solid var(--blue-light);
	}
}

.org {
	& .org-header {
		display: flex;
		justify-content: space-between;
		align-items: end;
		border-bottom: 1px solid gray;
		margin-bottom: 4px;
		& h2 {
			flex-grow: 1;
			margin-bottom: 0px;
			margin-block-end: 0px;
		}
	}
	& ul {
		margin: 0px;
	}
	& .inactive a {
		color: gray;
	}
}

@media only screen and (max-width: 600px) {
	#location-form,
	#weekly-log-form {
		& select {
			width:100%;
		}
	}
}
	
input[type="radio"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: transparent;
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: var(--blue);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid var(--blue);
  border-radius: 50%;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="radio"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--blue);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}


#recent-data-table {
	width: 100%;
	& tbody tr > :nth-child(1) {
		white-space: nowrap;
	}
	& tbody tr > :nth-child(3) {
		font-weight: bold;
		font-size: 125%;
	}
	& tbody tr > :nth-child(3),
	& tbody tr > :nth-child(4),
	& tbody tr > :nth-child(5),
	& tbody tr > :nth-child(6) {
		text-align: center;
		white-space: nowrap;
	}
}

/*
	============================================   UTILITY-CLASSES
*/

.error,
.warning,
.notice {
	padding: 20px;
	padding-left: 65px;
	background-image: url(https://aces-shared-assets.nmsu.edu/_files/css/warning-light.svg);
	background-repeat: no-repeat;
	background-size: 30px 30px;
	background-position: 20px 50%;

	display: block;
	border: 1px solid black;
	margin: 10px 0px;
	border-radius: 10px;
}

.error {
	background-image: url(https://aces-shared-assets.nmsu.edu/_files/css/bomb-light.svg);
	background-color: #fcc;
	color: #633;
	border: 1px solid #966;
}

.notice {
	background-image: url(https://aces-shared-assets.nmsu.edu/_files/css/check-circle-light.svg);
	background-color: #def;
	color: #369;
	border: 1px solid #69c;
}

.warning {
	background-color: #ff9;
	color: #660;
	border: 1px solid #990;
}
