*,
*:before,
*:after {
	box-sizing: border-box;
}

strong {
	font-weight: 900;
}

html, body {
	height: 100%;
}

:root {
	background-color: hsl(20 25% 92% / 1);
	color: #333;

	--color-accent-1: #318f0b
}

body {
	display: flex;
	flex-direction: column;
}

main {
	flex-grow: 1;
}

.container {
	max-width: 40rem;
}

.text-align-center {
	text-align: center;
}

.section-spacing {
	margin-block-end: 0;
	padding-block: 2rem;
}

.portfolio-image {
	border-radius: .5rem;
}

.site-header--logo {
	max-height: 3rem;
}

.tag {
	display: inline-block;
	line-height: 1;
	padding: .5rem 2rem;
	border-radius: 2rem;
	font-size: .75rem;
	
	background-color: #0002;

	font-weight: 600;
}

.copy h1,
.copy h2 {
	font-family: "Sour Gummy", sans-serif;
	line-height: 1;
}

.copy h1 {
	font-weight: 900;
	font-size: 2rem;

	text-decoration: underline;
	text-decoration-color: var(--color-accent-1);
}

.copy h2 {
	font-size: 2rem;
	color: var(--color-accent-1);
}

.hero-statements {
	margin-block: 2rem;
}

.hero-statements p {
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
	margin-block: 1rem;
}

.faq-q {
	font-weight: bold;
	font-style: italic;
	margin-bottom: 0;
}

/* Dark Theme Auto */
@media only screen and (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--pico-color: #fffa;
		background-color: #1e2627;

		.copy h1,
		.copy h2 {
			font-size: 2rem;
			font-weight: 900;
			color: #fff;
		}
	}
}

/* Dark Theme Selected */
[data-theme="dark"] {
	:root:not([data-theme]) {
		--pico-color: #fff;
		color: white;
	}

}

body > header {
	/* background-image: linear-gradient(to top right, #0001, transparent);
	border-bottom: 1px solid #0001; */
}

body > header nav {
	display: block;
	/* text-align: center; */
}

body > header nav > ul {
	display: block;
}

.list-cloud {
	display: flex;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: space-around;
}

.list-cloud li {
	list-style: none;
	flex: 1 1 auto;
	margin: 1rem;
}

/* FRAMEWERK MINIMAL */

/* FRAMEWERK FORMS */

.field {
	input:not([type]),
	input[type=text],
	input[type=hidden],
	input[type=password],
	input[type=email],
	input[type=url],
	input[type=time],
	input[type=date],
	input[type=datetime-local],
	input[type=tel],
	input[type=number],
	input[type=search] {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
	}
	/* clears some default styling like inner shadows on Safari */
}

.form {
	fieldset {
		padding: 0;
		margin: 0;
		border: none;
	}

	.field {
		margin: 1rem 0;

		&:before,
		&:after {
			display: table;
			content: " ";
		}

		&:after {
			clear: both;
		}
	}

	.field ::placeholder {
		font-weight: 300;
		font-style: italic;
		color: #ccc;
	}

	.field > label {
		display: block;
		display: flex;
		font-size: .8rem;
		line-height: 1rem;

		text-transform: uppercase;
		color: #999;

		.note {
			flex: 1 1 auto;
			text-align: right; /* fallback for not supporting 'end' */
			text-align: end; /* end is dynamic based on 'direction', e.g., rtl -> end = left side */
		}
	}

	.field > input,
	.field > output,
	.field > textarea,
	.field > select {
		display: block;
		width: 100%;
		padding: .5rem;
		border: 1px solid #ddd;
		border-radius: 3px;
		background-color: white;

		&:disabled {
			background-color: #f3f3f3;
		}
	}

	.field > input {
		height: 2rem;
		min-width: 100%;
	}

	.field > output {
		font-size: .9rem;
		line-height: 1rem;
		border: 1px solid transparent;
	}

	.field > textarea {
		overflow-x: hidden;
		overflow-y: auto;
		min-height: 8rem;
		max-height: 16rem;
		resize: vertical;
	}

	.field > select {
		margin-bottom: 1rem;
	}

	/* CHECKBOXES */

	.field.checkbox > label,
	.field.checkbox input {
		display: inline;
	}

	.field.checkbox > label {
		padding-left: .5rem;
		padding-right: .5rem;
		text-transform: none;
		font-size: 1rem;
		line-height: 1;
	}

	.field.checkbox input {
		display: inline-block;
		width: auto;
		min-width: unset;
		transform: translateY(3px);
		height: 1rem;
	}

	.field.checkbox input:checked + label {
		color: inherit;
	}

	.field.checkbox input:disabled + label {
		color: #999;
		opacity: .5;
	}

	&.submitted {
		input:invalid,
		select:invalid,
		textarea:invalid {
			background-color: hsla(0deg,50%,50%,20%);
			border-color: tomato;
			outline-color: tomato;
		}
	}
}

/* APPTS FORM */

:root {
	--primary: seagreen;
	--primary-darkened: rgb(25, 90, 53);
	--primary-disabled: rgb(148, 201, 171);
	--pico-primary-background: teal;
}

:root:not([data-theme=dark]), [data-theme=light] {
	--primary: seagreen;
	--pico-primary-background: teal;
}

/* .clearfix {
	&:before,
	&:after {
		display: table;
		content: " ";
	}

	&:after {
		clear: both;
	}
} */

.no-select {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading {
	position: relative;
	pointer-events: none;
}

.loading-spinner {
	display: none;
}

.loading .loading-spinner {
	display: block;
	position: absolute;
	z-index: 100;
	width: 32px;
	height: 32px;
	top: 50%; left: 50%;
	/* top: calc(~"50% - 16px"); left: calc(~"50% - 16px"); */
	transform: translate(-50%,-50%);

	border: 6px solid #ccc;
	border-top-color: var(--primary);
	border-radius: 50%;

	animation: spin 1s linear infinite;
}

.appts {
	box-sizing: border-box;
	width: 100%;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid #ddd;
	border-radius: 10px;
	background-color: white;
	box-shadow: 0 5px 30px rgba(0,0,0,.2);

	&:before,
	&:after {
		display: table;
		content: " ";
	}

	&:after {
		clear: both;
	}

	header,
	main {
		padding: 1rem;
	}

	main { padding-top: 0; }

	header {
		background-color: var(--primary);
		border-radius: 10px 10px 0 0;
	}

	.heading,
	.subheading {
		margin: 0;
		color: white;
	}

	.heading {
		font-weight: bold;
		font-size: 1.5rem;
		line-height: 1rem;
		text-shadow: 0 .25rem 1rem rgba(0,0,0,.5);

		/* @media @mobile {
			font-size: 1.2rem;
		} */
	}

	.subheading {
		font-size: 1rem;
		line-height: 2rem;
		margin-bottom: -.5rem;
		font-weight: 300;
		font-style: italic;
		text-shadow: 0 0 .25rem rgba(0,0,0,.9);

		/* @media @mobile {
			font-size: .9rem;
		} */
	}

	.appts__datetime {
		float: left;
		width: 40%;
		padding-right: 20px;

		input { margin:0; }
	}

	.appts__info {
		float: left;
		width: 60%;
	}

	@media (max-width: 510px) {
		.appts__datetime {
			padding-right: 0;
		}

		.appts__datetime,
		.appts__info {
			float: none;
			width: 100%;
		}
	}

	.appts__controls {
		text-align: right;
	}

	.date-controls {
		margin-top: -1rem;

		@media (min-width: 511px) {
		margin-bottom: 3rem;
		}

		.prev,
		.today,
		.next {
			float: left;
			padding: 0 8px;
			line-height: 2rem;
			height: 2rem;
			border: 1px solid #ddd;
			text-align: center;

			/* .no-select(); */

			&:hover,
			&:focus {
				text-decoration: none;
			}

			&:hover {
				background-color: var(--primary-darkened);
			}

			&:focus {
				background-color: var(--primary-darkened) !important;
			}

			&.disabled {
				background-color: var(--primary-disabled);
				pointer-events: none;
				cursor: not-allowed;
			}
		}

		.prev,
		.next {
			width: 25%;
			border-width: 0 1px 1px 1px;
		}

		.prev {
			border-radius: 0 0 0 10px;
		}

		.next {
			border-radius: 0 0 10px 0;
		}

		.today {
			width: 50%;
			text-transform: uppercase;
			font-size: .8rem;
			border-width: 0 0 1px 0;

			/* @media (min-width: 511px) and (max-width: 767px) {
				line-height: 1.2;
			} */
		}

		&:before,
		&:after {
			display: table;
			content: " ";
		}

		&:after {
			clear: both;
		}
	}

	fieldset[disabled] .date-controls {
		pointer-events: none;
	}

	input[name=date] {
		border-radius: 3px 3px 0 0;

		&:invalid {
			background-color: hsla(0deg,50%,50%,20%);
			border-color: tomato;
			outline-color: tomato;
		}

		&::-webkit-inner-spin-button {
			display: none;
			-webkit-appearance: none;
		}
	}

	select[name=time] {
		position: relative;
		margin: 0;
		padding: 0;
		width: 100%;
		border: 1px solid #ddd;
		border-radius: 3px;
		overflow: hidden;

		&:not([size]) {
			padding: 0 8px;
			height: 2rem;
		}

		&[size="0"],
		&[size=""] {
			padding: 0 8px;
			height: 2rem;
		}

		/* IE10+ specific styles go here */
		/* @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
			padding: 8px;
		} */

		option {
			position: relative;
			padding: 8px;
			font-size: .8rem;
			line-height: 1rem;

			&:disabled {
				font-style: italic;
				text-decoration: line-through;
				padding-left: 16px;
			}

			&:checked {
				font-weight: bold;
			}

			&:checked:after {
				display: inline-block;
				position: absolute;
				content: '\02713';
				top: 0; right: 0;
				padding: 8px;
				font-size: 1.2rem;
				line-height: 1rem;
			}
		}
	}
}
