/*
	Theme Name: [Float History by Bobby Desmarais]
	Description: A simple timeline theme to aggregate the history of a niche electric board sport.
	Author: Bobby Desmarais
	Version: 0.24.0
*/

/* NORMALIZE */

	/*! normalize.css v8.0.1 is MIT License, retrieved from github.com/necolas/normalize.css */

	html {
		line-height: 1.15; /* 1 */
		-webkit-text-size-adjust: 100%; /* 2 */
	}

	body {
		margin: 0;
	}

	main {
		display: block;
	}

	h1 {
		font-size: 2em;
		margin: 0.67em 0;
	}

	hr {
		box-sizing: content-box; /* 1 */
		height: 0; /* 1 */
		overflow: visible; /* 2 */
	}

	pre {
		font-family: monospace, monospace; /* 1 */
		font-size: 1em; /* 2 */
	}

	a {
		background-color: transparent;
	}

	abbr[title] {
		border-bottom: none; /* 1 */
		text-decoration: underline; /* 2 */
		text-decoration: underline dotted; /* 2 */
	}

	b, strong {
		font-weight: bolder;
	}

	code, kbd, samp {
		font-family: monospace, monospace; /* 1 */
		font-size: 1em; /* 2 */
	}

	small {
		font-size: 80%;
	}

	sub, sup {
		font-size: 75%; 
		line-height: 0; 
		position: relative; 
		vertical-align: baseline;
	}

	sub {
		bottom: -0.25em;
	}

	sup {
		top: -0.5em;
	}

	img {
		border-style: none;
	}

	button,	input, optgroup, select, textarea {
		font-family: inherit; /* 1 */
		font-size: 100%; /* 1 */
		line-height: 1.15; /* 1 */
		margin: 0; /* 2 */
	}

	button,	input { /* 1 */
		overflow: visible;
	}

	button, select { /* 1 */
		text-transform: none;
	}

	button,
	[type="button"], [type="reset"], [type="submit"] {
		-webkit-appearance: button;
	}

	button::-moz-focus-inner,
	[type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
		border-style: none;
		padding: 0;
	}

	button:-moz-focusring,
	[type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
		outline: 1px dotted ButtonText;
	}

	fieldset {
		padding: 0.35em 0.75em 0.625em;
	}

	legend {
		box-sizing: border-box; /* 1 */
		color: inherit; /* 2 */
		display: table; /* 1 */
		max-width: 100%; /* 1 */
		padding: 0; /* 3 */
		white-space: normal; /* 1 */
	}

	progress {
		vertical-align: baseline;
	}

	textarea {
		overflow: auto;
	}

	[type="checkbox"], [type="radio"] {
		box-sizing: border-box; /* 1 */
		padding: 0; /* 2 */
	}

	[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
		height: auto;
	}

	[type="search"] {
		-webkit-appearance: textfield; /* 1 */
		outline-offset: -2px; /* 2 */
	}

	[type="search"]::-webkit-search-decoration {
		-webkit-appearance: none;
	}

	::-webkit-file-upload-button {
		-webkit-appearance: button; /* 1 */
		font: inherit; /* 2 */
	}

	details {
		display: block;
	}

	summary {
		display: list-item;
	}

	template {
		display: none;
	}

	[hidden] {
		display: none;
	}

/* END NORAMLIZE*/ 

:root {
	--content-max-width: 720px;
	--content-gap: 30px;
	--event-padding: 20px;
	--event-border-radius: 10px;
	--event-background: white;
	--event-background-color: white;
	--event-border: none;
	--timeline-left-margin: 15px;
	--nf-field-margin: 25px;
	--text-color: #302f33;
	--muted-text-color: #6b6873;
	--link-color: #3f2a6f;
	--link-visited-color: #5b458e;
	--link-hover-color: #5f31c8;
	--timeline-color: #494552;
	--background: white;
	--background-color: white;
	--shadow-color: #cecece;
	--error-color: #e00000;
	--highlight-color: #c0d5ff;
	--filter-require-color: #17692e;
	--code-background-color: rgba(0, 0, 0, 0.06);
	--code-border-color: rgba(0, 0, 0, 0.1);
	scroll-behavior: smooth;

	color-scheme: light;
	transition: 0.3s all;
}

html[data-theme="dark"] {
	--event-background: radial-gradient(circle at 0% 50%, #222a45, #191a1f 150%);
	--event-background-color: #191a1f;
	--event-border: 1px solid #4d546d;
	--text-color: white;
	--muted-text-color: #a8a6b2;
	--link-color: #a3b7ff;
	--link-visited-color: #d2dcff;
	--link-hover-color: #b6adff;
	--timeline-color: #ffffff;
	--background: radial-gradient(circle at 50% 125%, #222a45, #191a1f);
	--background-color: #191a1f;
	--shadow-color: #0000005e;
	--error-color: #ff7979;
	--highlight-color: #c0d5ff;
	--filter-require-color: #8ce2a4;
	--code-background-color: rgba(255, 255, 255, 0.1);
	--code-border-color: rgba(255, 255, 255, 0.15);

	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--event-background: radial-gradient(circle at 0% 50%, #222a45, #191a1f 150%);
		--event-background-color: #191a1f;
		--event-border: 1px solid #4d546d;
		--text-color: white;
		--muted-text-color: #a8a6b2;
		--link-color: #a3b7ff;
		--link-visited-color: #d2dcff;
		--link-hover-color: #b6adff;
		--timeline-color: #ffffff;
		--background: radial-gradient(circle at 50% 125%, #222a45, #191a1f);
		--background-color: #191a1f;
		--shadow-color: #0000005e;
		--error-color: #ff7979;
		--highlight-color: #c0d5ff;
		--filter-require-color: #8ce2a4;
		--code-background-color: rgba(255, 255, 255, 0.1);
		--code-border-color: rgba(255, 255, 255, 0.15);
	}
}

html {
	background-color: var(--background-color);
	background: var(--background);
	background-attachment: fixed;
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	color: var(--text-color);
	font-family: sans-serif;
	gap: var(--content-gap);
}

#wpadminbar {
	position: fixed !important;
}

p, .nf-field-element, li {
	font-size: 12pt;
	line-height: 19pt;
}

p.smaller, li.smaller {
	font-size: 10pt;
	line-height: 16pt;
}

a {
	color: var(--link-color);
}

a:visited {
	color: var(--link-visited-color);
}

a:hover, a:focus, a:active {
	color: var(--link-hover-color);
}

.site-title a {
	color: var(--text-color);
	text-decoration: none;
}

.site-title a:hover, .site-title a:focus {
	color: var(--text-color);
	text-decoration: underline;
}

/* Tone back secondary header/footer text. Links (a) and the site headline
   (.site-title a) match directly and keep their own color; the WIP notice
   lives outside these containers, so it stays at full contrast. */
.header, .footer {
	color: var(--muted-text-color);
}

/* Keep these at full contrast: section headings and the whole reach-out block. */
.header h2, .footer h2, .footer #contact {
	color: var(--text-color);
}

code, kbd, samp {
	background-color: var(--code-background-color);
	border: 1px solid var(--code-border-color);
	border-radius: 4px;
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}

pre {
	background-color: var(--code-background-color);
	border: 1px solid var(--code-border-color);
	border-radius: 6px;
	padding: 0.75em 1em;
	overflow-x: auto;
}

pre code, pre kbd, pre samp {
	background-color: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	font-size: inherit;
}

.header, .timeline, .footer, .content {
	max-width: var(--content-max-width);
	margin: 0px 5%;
	align-self: center;
}

.header *:last-child, .timeline *:last-child, .footer *:last-child, .content *:last-child {
	margin-bottom: 0px;
}

.timeline {
	display: flex;
	flex-direction: column;
	align-self: center;
	width: calc(90% - var(--timeline-left-margin));
	max-width: calc(var(--content-max-width) - var(--timeline-left-margin));
	position: relative;
	gap: var(--content-gap);
	padding: 0 0 0 var(--timeline-left-margin);
}

.header, .content, .footer {
	width: 90%;
}

.header {
	padding-top: var(--content-gap);
}

.header *:first-child, .content *:first-child, .footer *:first-child {
	margin-top: 0px;
}

.footer {
	padding-bottom: var(--content-gap);
}

.timeline::after {
	content: '';
	position: absolute;
	width: 10px;
	top: 0;
	bottom: 0;
	background-color: var(--timeline-color);
	left: var(--timeline-left-margin);
}

.timeline .event {
	margin-left: var(--content-gap);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.event .details {
	display: flex;
	flex-direction: column;
	border-radius: var(--event-border-radius);
	padding: var(--event-padding);
	box-shadow: 0px 0px 10px var(--shadow-color);
	background-color: var(--event-background-color);
	background: var(--event-background);
	border: var(--event-border);
}

.event .title a {
	color: var(--text-color);
	text-decoration: none;
}

.event .title a:hover, .event .title a:focus, .event .title a:active {
	color: var(--text-color);
	text-decoration: underline;
}

.event .title *, .event .date * {
	margin: 0;
	padding: 0;
}

.event .date {
	position: relative;
}

.event .date::after {
	position: absolute;
	content: '';
	width: 20px;
	height: 20px;
	left: -40px;
	background-color: var(--background-color);
	border: 5px solid var(--timeline-color);
	top: -2px;
	border-radius: 50%;
	z-index: 1
}

.event .date p {
	font-weight: 700;
}

.details .desc *:last-child {
	margin-bottom: 0px;
}

ul li, ol li {
	margin-bottom: 10px;
}

.categories p {
	font-size: 80%;
}

/* Pagination */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pagination {
	max-width: var(--content-max-width);
	width: 90%;
	margin: 0px 5%;
	align-self: center;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-start;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	line-height: 1;
	border: 1px solid var(--link-color);
	border-radius: 5px;
	color: var(--link-color);
	text-decoration: none;
	transition: 0.3s all;
}

.pagination a.page-numbers:hover, .pagination a.page-numbers:focus {
	background-color: var(--link-color);
	color: var(--background-color);
}

.pagination .page-numbers.current {
	background-color: var(--link-color);
	color: var(--background-color);
	font-weight: 700;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	color: var(--text-color);
}

/* Search */

.search-form {
	display: flex;
	gap: 10px;
}

.search-form label {
	flex: 1;
	display: flex;
	min-width: 0;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
	padding: 10px 15px;
	color: var(--text-color);
	background-color: var(--event-background-color);
	border: 1px solid var(--timeline-color);
	border-radius: 5px;
}

.search-form .search-submit {
	background-color: var(--link-color);
	color: var(--background-color);
	font-weight: 700;
	padding: 10px 15px;
	transition: 0.3s all;
	border: 2px solid var(--link-color);
	border-radius: 5px;
}

.search-form .search-submit:hover, .search-form .search-submit:active, .search-form .search-submit:focus {
	background-color: var(--background-color);
	color: var(--link-color);
	cursor: pointer;
}

mark.search-highlight {
	background-color: var(--highlight-color);
	border-radius: 3px;
	padding: 0 3px;
}

/* Search category filters */

.category-filters {
	margin-top: 15px;
}

.category-filters h3 {
	margin: 0 0 5px;
	font-size: 12pt;
}

.category-filter-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
	padding: 0;
}

.category-filter-list li {
	margin: 0;
}

a.category-filter, a.category-filter:visited {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--muted-text-color);
	border-radius: 999px;
	font-size: 10pt;
	line-height: 1.4;
	text-decoration: none;
	color: var(--muted-text-color);
	transition: 0.3s all;
}

a.category-filter:hover, a.category-filter:focus, a.category-filter:active {
	background-color: var(--code-background-color);
	color: var(--text-color);
}

a.category-filter .filter-state {
	font-size: 8pt;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

a.category-filter.state-require, a.category-filter.state-require:visited,
a.category-filter.state-require:hover, a.category-filter.state-require:focus, a.category-filter.state-require:active {
	border-color: var(--filter-require-color);
	color: var(--filter-require-color);
}

a.category-filter.state-include, a.category-filter.state-include:visited,
a.category-filter.state-include:hover, a.category-filter.state-include:focus, a.category-filter.state-include:active {
	border-color: var(--link-color);
	color: var(--link-color);
}

a.category-filter.state-exclude, a.category-filter.state-exclude:visited,
a.category-filter.state-exclude:hover, a.category-filter.state-exclude:focus, a.category-filter.state-exclude:active {
	border-color: var(--error-color);
	color: var(--error-color);
}

/* Ninja Forms */

.nf-before-form-content, .nf-form-cont .nf-error-msg {
	margin-bottom: var(--nf-field-margin);
}

.nf-form-cont input.ninja-forms-field, .nf-form-cont textarea.ninja-forms-field {
	padding: 10px 15px;
}

.nf-form-cont input[type=submit] {
	background-color: var(--link-color);
	color: var(--background-color);
	font-weight: 700;
	padding: 15px;
	transition: 0.3s all;
	border: 2px solid var(--link-color);
	border-radius: 5px;
}

.nf-form-cont input[type=submit]:hover, .nf-form-cont input[type=submit]:active, .nf-form-cont input[type=submit]:focus {
	background-color: var(--background-color);
	color: var(--link-color);
	cursor: pointer;
}

.nf-form-cont #nf-field-8-wrap {
	display: none; 
}

.nf-form-cont nf-fields-wrap .nf-field-element {
	margin-bottom: 12pt;
}

.nf-form-cont nf-fields-wrap .nf-field-element *:first-child {
	margin-top: 0px;
}

.nf-form-cont .nf-error-msg, .nf-form-cont .ninja-forms-req-symbol {
	color: var(--error-color);
}

.nf-form-cont .nf-error .ninja-forms-field {
	border: 1px solid var(--error-color);
}