@charset "UTF-8";

:root {
	--headerheight: 3rem;
	
	--backgroundcolor: hsl(0 0% 100%);
	--accentcolor: hsl(0 58% 38%);
	--accentlighter: hsl(0 58% 68%);
	--goldhighlight: hsl(51 100% 50%);
	--footercolor: hsl(0 0% 66%);
	--tableheader: hsl(0 0% 75%);
	--inputborder: hsl(0 0% 53%);
	--lightondark: hsl(0 0% 100%);
	--lodop: hsl(0 0% 100% / 0.8);
	--darkonlight: hsl(0 0% 0%);
	--dolop: hsl(0 0% 0% / 0.8);

	--error: hsl(0 100% 40% / 0.5);
	accent-color: var(--accentcolor);

	--formborder: var(--accentcolor);
}

* {
	box-sizing: border-box
}

@font-face {
	font-family: 'Regular';
	src: url('../font/bould-regular-webfont.woff') format('truetype');
	}
@font-face {
	font-family: 'RegularItalic';
	src: url('../font/bould-regularitalic-webfont.woff') format('truetype');
	}
@font-face {
	font-family: 'Bold';
	src: url('../font/bould-bold-webfont.woff') format('truetype');
	}
@font-face {
	font-family: 'DigitalClock';
	src: url('../font/DSEG7n.ttf') format('truetype');
	}
@font-face {
	font-family: 'DigitalClock14';
	src: url('../font/DSEG14n.ttf') format('truetype');
	}

@keyframes dlg-bd {
	from { opacity: 0; }
	to { opacity: 1; }
}

html {
	font: normal normal normal max(18px, 2dvh) system-ui;
	-webkit-font-smoothing: antialiased;
	font-smooth: antialiased;

	scrollbar-width: thin;
	scrollbar-color: var(--accentcolor) var(--backgroundcolor);
	scrollbar-gutter: stable;
}
body {
	padding: 0;
	margin: 0;
	height: 100dvh;
	width: 100dvw;
	overflow-y: hidden;
	background: var(--backgroundcolor);
}
body.m i.menu-off-button {
	display: none;
}

body.l i.menu-on-button {
	display: none;
}
header {
    -webkit-box-align: center;
    -ms-flex-align: center;
	position: absolute;
	inset: 0 auto auto 0;
    width: 100%;
	height: 3rem;
    padding: 0.25em;
    background: var(--accentcolor);
    z-index: 4;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
	
	button {
		background: transparent;
		border: none;
		padding: 0;
		border-radius: 0.25rem !important;
		&:focus-visible {
			outline: none;
			background: var(--goldhighlight);
			color: var(--darkonlight);
			i {
				color: var(--darkonlight);
			}
		}
	}
}

h1 {
	font: 600 1.5rem/1 system-ui;
    padding: 0 0 0.2rem 0;
    margin: 0;
}
h1 + strong {
    padding-inline-start: 0.75rem;
}
h1, h2 {
	margin-block-end: 0.75rem;
}
hr {
	border: 2px solid var(--accentcolor);
}
strong {
	font: bold 1em/1 system-ui;
}
header {
	img.header {
		height: 100%;
		-o-object-fit: cover;
		object-fit: cover;
		flex: 0 0 auto;
		aspect-ratio: 1 / 1;
		object-position: left;
		margin-inline: 10px;
	}
	img.selfie {
		height: 2.5em;
		-o-object-fit: cover;
		object-fit: cover;
		margin-inline-end: 0.5rem;
	}
}
form {
	width: 100%;
	font: 1.25rem/1 system-ui;
	display: block;
}
button[type="submit"] {
	padding-inline-end: 1rem;
	margin-block-start: 0.5rem;
}
button[type="submit"],[type="Reset"]:not(.btn) {
	border-radius: 1.25rem;
	background: var(--accentcolor);
	border: 3px outset var(--accentcolor);
	color: var(--lightondark);
	font: 600 1.5rem/1 system-ui;
	cursor: pointer;
	justify-self: end;
	padding-block: 0.25rem;
}
span.title {
    font: 1.9rem/1 system-ui;
    text-align: left;
    color: var(--lightondark);
    flex: 1 0 auto;
}
.title sup {
    vertical-align: super;
    font: 0.9rem/1 system-ui;
    border-radius: 1rem;
	background: var(--lightondark);
    color: var(--accentcolor);
    padding: 0 0.4rem;
    margin-inline: 0.5rem 0;
}
h2 sup {
    vertical-align: super;
    font: 0.9rem/1 system-ui;
    background-color: var(--darkonlight);
    border-radius: 1rem;
    color: var(--lightondark);
    padding: 0 0.4rem;
    margin-inline: 0.25rem 0;
}
div.show.X > div.title > i, div.show.X > div.title > .portnumber {
    display: none;
}
span.username {
    font: 1rem/1 system-ui;
    color: var(--lightondark);
    text-align: right;
    padding-inline: 0 0.5rem;
}
span.logout {
    font: 2rem/1 system-ui;
    text-align: center;
    color: var(--lightondark);
}
#menu {
	position: fixed;
	inset: var(--headerheight) auto auto auto;
	width: max-content;
	padding: 0 1vw;
	background: none;
	height: calc(100% - var(--headerheight));
	z-index: 111;
	background: var(--accentcolor);
	overflow-y: scroll;
	line-height: 1;
	transform: translateX(-100%);
	
	-webkit-transition: transform 0.6s ease-in-out;
	-o-transition: transform 0.6s ease-in-out;
	transition: transform 0.6s ease-in-out;

	display: flex;
	flex-flow: column;
	justify-content: space-between;
	section {
		padding-block-end: 0.5rem;
		&::before {
			content: attr(data-head);
			font: 700 1.25em / 1 system-ui;
			color: white;
			text-decoration: underline;
			&:last-of-type {
				margin-block-end: 1rem;
			}
		}
		a {
			display: flex;
			font: 2vh / 1 system-ui;
			padding-block-start: 0.1rem;
			margin-block-start: 0.1rem;

			> i.fa-bell, 
			> i.fa-up-right-from-square {
				padding-left: 0.5rem;
				font: 0.8em/1;
			}
		}
	}
}

i.menu-on-button, i.menu-off-button {
	font-size: 2rem;
	color: var(--lightondark);
	text-align: center;
	flex: 0 0 auto;
}
i.sign-out {
	font-size: 2rem;
	color: var(--lightondark);
	text-align: center;
	flex: 0 0 auto;
}
main {
    position: absolute;
	display: flex;
	flex-direction: column;
	inset: var(--headerheight) auto auto auto;
    width: 100%;
    height: calc(100% - var(--headerheight));
    padding: 0.5rem;
    overflow-y: auto;
    z-index: 3;
	font-size: max(18px, 2.4cqh);

	p {
		margin-block: 0.5rem;

		&:first-of-type {
    		margin-block-start: 0;
		}
	}

	section {
		background-color: var(--backgroundcolor);
	}
}

dialog {
	width: min(100%, 36rem);
	padding: 0;
	border-radius: 2rem;
	border: 3px solid var(--accentcolor);
	background: hsl(from var(--lightondark) h s l / 80%);
	box-shadow: none;
	color: var(--darkonlight);
	font: 1.1rem/1.1 system-ui;

	opacity: 0;
	display: none;
	transform: scale(0.5) translateY(-25vh);

	transition-property: display, opacity, transform, box-shadow;
	transition-duration: 400ms, 400ms, 400ms, 1s;
	transition-behavior: allow-discrete, allow-discrete, allow-discrete, allow-discrete;

	&::backdrop {
		transition-property: background-color, backdrop-filter;
		transition-duration: 500ms, 500ms;
		transition-behavior: allow-discrete, allow-discrete;

		background-color: transparent;
		backdrop-filter: none;
	}

	&[open] {
		opacity: 1;
		box-shadow: 0px 0px 2rem var(--accentcolor);
		display: block;
		transform: scale(1) translateY(0vh);

		&::backdrop {
			background-color: var(--lodop);
    		backdrop-filter: blur(2px);
		}
	}

	p {
		grid-column: 1 / 3;
		margin-block: 0.5rem;
		margin-inline: 0;
	}

	div.buttons {
		clear: none;
	}

	div#newprofilepic {
		button#goback {
			grid-column: 1 / -2;
			font: 1.5em / 1 system-ui;
			padding: 0.25rem 0.75rem;
			justify-self: start;
			margin-inline-start: 1rem;
			margin-block-end: 1rem;
		}
	}

	form {
		display: grid;
		grid-template-columns: max-content 1fr;
		grid-template-rows: minmax(min-content, 1.65rem);
		width: 100%;
		padding: 0.5rem 1rem;
		margin: 0.5rem 0;
		gap: 0.25rem;
		border-top: 3px solid var(--formborder);
		align-items: center;

		* {
			font-family: system-ui;
		}

		input[type=checkbox],[type=radio] {
			border: 0;
			height: 1.25rem;
			width: 1.25rem;
		}

		input:not(:invalid):focus, select:focus {
    		background: rgba(255 255 0 / 0.6);
		}

		input:invalid::-webkit-calendar-picker-indicator {
    		filter: invert(1)
		}

		&.sent {
			grid-auto-rows: minmax(1.5rem, max-content);
			border-bottom: 3px solid var(--formborder);
			margin: 1rem 0;
			align-items: center;

			input {
				&[type=checkbox] {
					display: none;

					&:checked ~ label.stat::before {
						content: 'Yes';
					}
					&:not(:checked) ~ label.stat::before {
						content: 'No';
					}
					&:disabled ~ label.stat::before {
						content: 'N/A';
					}
				}

				&::placeholder {
					opacity: 0;
				}

				&::-webkit-outer-spin-button,
				&::-webkit-inner-spin-button {
					-webkit-appearance: none;
					margin: 0;
				}
			}

			input#showHr, input#showMin {
				field-sizing: content;
				padding-inline-end: 0.5ch;
			}

			div.duration button {
				display: none;
			}

			span.long label {
				text-decoration: underline;
				color: var(--darkonlight);
				font: 700 normal 1.25rem/1 system-ui !important;
			}

			input, label, textarea, select, div.duration {
				font: 1rem / 1 system-ui;
				height: max-content;
				border: none;
				font-variant-numeric: tabular-nums;
			}
			
			label:not(.stat) {
				font: condensed 1em/1.1 system-ui !important
			}

			button.btn_submit, div.range_container p, div.sliders_control,
			::-webkit-calendar-picker-indicator, input[type="checkbox"], label[class*="-lbl"]{
				display: none !important;
			}
			
			input:not([type=checkbox]):read-only, select:read-only, textarea:read-only {
				-webkit-appearance: textfield;
				-moz-appearance: textfield;
				appearance: textfield;
				border: none;
			}

			span[class^="error"] {
				display: none;
			}
		}
		
		&:not(.sent) {
			label {
				font: condensed 1em/1 system-ui;
			}
			label.stat {
				color: var(--darkonlight);
				font: normal 1.25rem/1 system-ui !important;
			}
			input[type=checkbox]::after {
				display: none
			}
		}

		button[type="submit"] {
			grid-column: 1 / -1;
		}
		input {
			caret-color: var(--accentcolor);

			&[type=checkbox] {
				justify-self: start;
				aspect-ratio: 1;
				margin: 0 0 0 0.5rem;
			}
			&::-webkit-date-and-time-value {
				text-align:left;
			}
			&:not[type="radio"] {
				width: 100%;
			}

		}
		label[for="Message"] {
			align-self: baseline;
			margin-block: 0.15rem 0;
		}
		span {
			&.dnd, &.hotlinks {
				display: none;
			}
		}
		select, textarea {
    		width: 100%
		}
		textarea::placeholder {
			line-height: 2.8;
		}

		span.result, span.btns {
			grid-column: 1 / 3;
			margin-bottom: 0.5rem;
		}
	}

	h1 {
		padding: 0 0.75rem;
		margin-block: 0.75rem;
	}

	div.newpics {
		display: grid;
		grid-auto-flow: row;
		grid-template-rows: repeat(3, auto);
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 0.5rem;
		justify-content: center;
		justify-items: center;

		span.head {
			width: 100%;
			text-align: center;
			padding: 0.25rem 0;
			background: var(--accentcolor);
			color: var(--lightondark);
			font: condensed 0.8em / 1 system-ui;
		}

		div.pv{
			&:nth-of-type(1) {
				span.head::before {
					content: 'Main Profile Pic';
				}
				span.head::after {
					content: ' (400px Square)';
				}
			}
			&:nth-of-type(2) {
				span.head::before {
					content: 'Bio Pic';
				}
				span.head::after {
					content: ' (160px * 400px)';
				}
			}
			&:nth-of-type(3) {
				span.head::before {
					content: 'Facebook Card';
				}
				span.head::after {
					content: ' (225px Square with Watermark - leave space on the left)';
				}
			}
			&:nth-of-type(4) {
				span.head::before {
					content: 'Twitter Card';
				}
				span.head::after {
					content: ' (120px Square)';
				}
			}
		}
	}
}

@starting-style {
	dialog[open] {
		opacity: 0;
		box-shadow: none;
		transform: scale(0.5) translateY(-25vh);

		&::backdrop {
			background-color: transparent;
			backdrop-filter: none;
		}
	}
}

span.results {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.25rem 0.5rem;
	
	h3 {
    	grid-column: 1 / -1;
    	margin-block: 0.5rem;
	}
}

#push_results {
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-auto-rows: minmax(1.65rem, max-content);
	width: 100%;
	padding: 0.5rem 1rem;
	margin: 0.5rem 0;
	gap: 0.25rem;
	align-items: center;

	span {
		&:nth-of-type(2n-1) {
			font: condensed 1rem / 1 system-ui;
			color: var(--inputborder);
			height: 100%;
			border: none;
			text-align: right;
			align-content: center;
		}
		&:nth-of-type(2n) {
			font: 1rem/1 system-ui 
		}
	}
}
form#newprofilepic button.btnSubmit {
    grid-column: -2 / -1 !important;
}
dialog {
	p.modal { padding-inline: 0.75rem; }

	&:not(.p, .f) { div.newpics { display: none; } }

	&.p {
		form, img[id^='cropped_img'] { display: none; }
		width: 100% !important;
		div#newprofilepic p.modal::after {
			content: 'Please select a cropping area for each image by dragging over them to create your cropping box.  You can alter the crop until you are happy. Then, click "Crop & Submit".';
		}
		div#newprofilepic p.modal:first-of-type:after{
			content: 'After it is uploaded you will be asked to crop your image to suit various formats.';
			white-space: pre;
			text-wrap: auto;
			display: block;
		}
	}

	&.f {
		form, div.jcrop-holder { display: none; }
		div.newpics { grid-template-columns: repeat(4, max-content); grid-template-rows: repeat(3, auto); gap: 0.5rem; grid-row: -2 / -1 }
		div.newpics button.btnRefresh { display: inline; }
		div.newpics button#crop { display: none; }
		div.newpics div.pv span.head::after { display: none; }
		.pv { width: 150px; }
		div#newprofilepic p.modal::after{ content: 'Your images have been uploaded. Click "Close" to continue back to the main page.'; }
	}

	span:not(:empty).conf { display: block; padding: 0 1rem 1rem; }

	form.sent span.conf { display: flex; flex-direction: column; margin-inline-start: 0.75rem; margin-block-end: 0.75rem; }

	form span.long {
		grid-column: 1 / -1; display: flex; flex-flow: row wrap; justify-content: start;
		input { margin-inline: 0 0.5rem; }
	}

	form span.hotlinks { margin: 0.25rem 0; font: 400 condensed 1em/1 system-ui; }
	form span.wr { display: flex; }

	span.result { float: left; padding-inline: 0.75rem; margin-block-end: 0.75rem; }
	span.result:empty { display: none }
	span.result ul { list-style-type: none; padding: 0 0.75rem; }
	span.result #whatport { margin-block-end: 0.5rem; font: italic 1rem/1 system-ui; }

	div.newpics button#crop, div.newpics button.btnRefresh, div.newprofilepic button.btnReset {
		grid-column: -2 / -1; font: 1.5em / 1 system-ui; padding: 0.25rem 0.75rem; height: max-content; justify-self: end; align-self: center; margin-inline-end: 1rem; margin-block-end: 1rem;
	}
}

.ql-snow.ql-toolbar button, .ql-snow .ql-toolbar button {
	padding: 0 0.25rem 0 0 !important;
	width: unset !important;
	margin: 0 !important;
}
.ql-toolbar.ql-snow {
	border: 2px solid var(--accentcolor) !important;
	padding: 0.5rem;
	border-radius: 1rem 1rem 0 0;
}
.ql-toolbar.ql-snow .ql-formats:not(:last-of-type) {
	border-right: 2px solid rgb(64 64 64 / 0.625) !important;
}
.ql-snow .ql-stroke {
	stroke: rgb(64 64 64 / 0.625) !important;
}
.ql-snow .ql-picker {
	color: rgb(64 64 64 / 0.625) !important;
}
dialog:not(.p) div.newprofilepic button#goback {
	display: none;
}
dialog.f div.newpics {
    grid-template-columns: repeat(4, max-content);
    grid-template-rows: repeat(3, auto);
    gap: 0.5rem;
	grid-row: -2 / -1
}
dialog.f div.newpics button.btnRefresh {
	display: inline;
}
dialog.f div.newpics button#crop {
	display: none;
}
dialog.f div.newpics div.pv span.head::after {
    display: none;
}
dialog.f .pv {
    width: 150px;
}
.pv {
    display: flex;
    flex-flow: column;
    align-items: center;
}
img[id^='cropped_img'] {
    height: 150px;
}
label.stat {
    font-stretch: normal;
    color: var(--darkonlight);
    padding: 0 0 0 0.5rem;
}
form:not(.sent) input:not[type="radio"] ~ label.stat {
    display: none
}
dialog span.result ul {
    margin: 0.5rem 0;
}
i.dialog-close {
    position: absolute;
	inset: 0.25rem 0.25rem auto auto;
	font-size: 2rem;
    color: var(--accentcolor);
}
ul.list {
	display: grid;
	padding: 0;
	counter-reset: number;
	list-style-type: none;
	align-self: center;
	max-width: 95%;
	gap: 0 0.5rem;
	
	li {
		i {
			color: var(--accentcolor);

			&:not(.fa-edit, .fa-trash) {
				margin-inline-end: 0.25rem;
			}

			&[title="Twitter"], &[title="Facebook"] {
				margin-inline: -0.2rem
			}
		}
		
		span {
			text-overflow: ellipsis;
		}
	}
	
	> li {
		display: grid;
		align-items: center;
		font: 1rem / 1 system-ui;
		grid-column: 1 / -1;
		grid-template-columns: subgrid;
		padding-block: 0.2rem;
		padding-inline: 0.25rem;
	}
}
ul.list:not(#yourshows) li {
	border-bottom: 1px solid var(--inputborder);
	padding-inline: 0.25rem;
}

ul.list:not(#yourshows, .hol) > li:first-of-type {
	position: sticky;
	position: webkit-sticky;
	inset: -0.625rem auto auto auto;
	padding-block: 0.25rem;
	border-left: 0;
	border-right: 0;
	border-bottom: 2px solid var(--inputborder);
	font: bold 1rem/1 system-ui;
	text-align: left;
	background: var(--tableheader);
	color: var(--darkonlight);
}
ul.list:not(#requests) li:first-of-type span {
	font: bold 1rem/1 system-ui;
}
[popover] ul.stats {
	text-align: center;
	display: none;
    list-style: none;
	width: 100%;
    padding: 0;
    margin: 0;
}
[popover] ul.stats li:not(:last-of-type) {
	border-block-end: 2px solid rgb(0 0 0 / 0.3);
	margin-block-end: 0.2rem;
	padding-block-end: 0.2rem;
}
[popover] div.buttons {
	display: inline;
}
body.l div#menu	 {
	transform: none;
}
div.links {
	grid-area: links;
	background: var(--accentcolor);
	padding: 0.5rem;
	height: calc(100% - 1rem);
	overflow-y: auto;
}
div.menu strong {
	padding-block: 0.25rem 0;
}
table.conn {
	font-variant-numeric: tabular-nums;
}

a:link, a:visited, a:hover, a:active	{color: var(--accentcolor); text-decoration: underline }

a.dellink:link, a.dellink:visited, a.dellink:hover, a.dellink:active {
	background-color: var(--accentcolor);
	color: var(--lightondark);
	text-decoration: none;
	cursor: pointer
}

#menu a:link	{ text-decoration: none; color: var(--lightondark); cursor: pointer}
#menu a:hover, #menu a:focus-visible	{ outline: none; font-weight: bold; text-decoration: none; color: var(--lightondark); cursor: pointer }
#menu a:active	{ text-decoration: none; color: var(--lightondark); cursor: pointer}
#menu a:visited	{ text-decoration: none; color: hsl(from var(--lightondark) h s l / 80%); cursor: pointer}

.fa-sign-out-alt, .fa-bars, .fa-times-circle {
	cursor: pointer !important;
}

div.requests > table > tbody > tr > td:nth-of-type(4), div.smsmessages > table > tbody > tr > td:nth-of-type(1) {
	font-variant-numeric: tabular-nums;
}
.cantdoit, .subtitle {
	display: inline-block;
	background: var(--accentcolor);
	color: var(--lightondark);
	padding: 0 0.5rem;
	border-radius: 0.75rem;
	cursor: pointer
}
button.btn {
	display: inline-block;
	width: 9rem;
	margin-inline: 0 2px;
	background: var(--accentcolor);
	border: none;
	color: var(--lightondark);
	font: 750 2rem/1 system-ui;
	text-align: center;
	cursor: pointer;
}
div.buttons {
    clear: both;
    padding-block: 0.25rem 0;
}
#voting {
    grid-area: vote;
    width: 100%;
	padding: 0 0 0.25rem 0;
    overflow-y: auto;
	column-fill: auto;

	&:empty {
		&::before {
			content: "NO ACTIVE VOTING";
			~ #pollinstr {
				display: block;
			}
		}
	}

	&:not(:empty) {
		padding: 0.25rem 0;
		border-bottom: 4px solid var(--accentcolor);

		~ #pollinstr {
			display: none;
			
			&::before {
				font: bold 1.5rem/1 system-ui;
				content: "VOTING RESULTS";
				display: block;
				text-decoration: underline;
				text-underline-offset: 4px;
			}
		}
	}

	span.summary { 
		display: block;
		
		span:not(:last-of-type):after {
			content: ', ';
			padding-inline: 0 1.5rem;
		}
	}

	span.question {
		padding-block: 0.5rem 0;
		font: italic 1.2rem/1 system-ui;
		display: block;
	}
	
	button {
		margin: 0.25rem 0;
	}
	
	.votes {
		span.answer {
			cursor: pointer;
			
			&:not(:last-of-type):after {
				content: ', ';
				padding-inline: 0 1.5rem;

				&:hover {
					color: var(--accentcolor)
				}
			}
		}
	}

	#pollinstr {
		border-bottom: 4px solid var(--accentcolor)
	}
}

button.btn {
	&:first-of-type {
		border-top-left-radius: 1.25rem;
		border-bottom-left-radius: 1.25rem;
	}
	&:last-of-type {
		border-top-right-radius: 1.25rem;
		border-bottom-right-radius: 1.25rem;
		margin-inline: 0;
	}
	&:only-child {
		border-radius: 1.25rem;
	}
}
i:not(.x) {
	cursor: pointer;
}	
i.djic.fa-clipboard-check {
	color: green;
	padding-inline: 0 0.5rem;
}
div.warning {
	background-color: hsl(0 100% 50%);
	border-radius: 1rem;
	padding: 0.75rem;
	margin-block: 0.5rem 0;
	color: hsl(0 0% 100%);
}
div.warning > i.fa-pull-left {
	margin-block: 0.1rem 0;
}
form label, span.results span:nth-of-type(2n-1) {
	text-align: right;
	font-stretch: condensed;
	color: var(--inputborder);
}
form input {
    padding: 0 0.5rem 0 0;
}
form input, form select, form textarea {
	height: 1.75rem;
	box-sizing: border-box;
	padding: 0 0 0 0.5rem;
	border-width: 0 0 2px 0;
	border-style: solid;
	border-color: var(--inputborder);
	background: none;
	font: 1.2rem/1 system-ui;
}
form textarea {
	min-height: 3lh;
	height: unset;
	field-sizing: content;
}
form input:not([type=checkbox],[type=radio],[type=number]), form select, form textarea {
	width: 100%;
}
form input:not[type="range"]:focus, form input[type="checkbox"]:focus, form textarea:focus, form select:focus, form select:focus-visible, select:focus-visible {
	outline: none;
	background: hsl(60 100% 79% / 0.7) !important;
	color: var(--darkonlight) !important;
}
form input:focus::placeholder, form textarea:focus::placeholder {
	color: darkslategray
}
span.error {
	grid-column: 2 / 3;
	display: inline;
	background: none;
    font-variant-caps: all-small-caps;
    color: var(--accentcolor);
	font: condensed 1rem/1 system-ui !important;
    justify-self: start;
	font-variant-caps: small-caps;
}
button[type="submit"]:not(.btn):focus {
	outline: none;
	border: 3px outset var(--goldhighlight);
	background: var(--goldhighlight);
	color: var(--accentcolor);
}
form input::placeholder, form textarea::placeholder {
	color: var(--inputborder);
	font: 0.6rem/1 system-ui;
	line-height: 2em;
	text-transform: uppercase;
}
form input:read-only {
    border: none;
    font: 0.8em/1 system-ui;
    opacity: 0.8;
}
form input[type="date"],[type="time"] {
	font-variant-numeric: tabular-nums
}
form input#userImage {
	grid-column: 1 / -1;
	padding: 0;
}
span.params {
	display: grid;
	grid-template-columns: repeat(2, max-content);
	margin-block-end: 0.5rem;
	color: var(--accentcolor);
	
	span {
		&:nth-of-type(2n-1) {
			text-align: right;
			font-stretch: condensed;
			padding-inline: 0 1rem;
		}
		&:nth-of-type(2n-1)::after {
			content: ':'
		}
	}
}

form {
	label.stat {
		color: var(--darkonlight);
	}
  .cbw {
    --blue: hsl(0, 58%, 38%);
    --g08: hsl(216, 20%, 80%);
    --g04: hsl(219, 13%, 57%);

    .cbut {

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

      &::selection,
      &:after::selection,
      &:before::selection,
      & *::selection,
      & *:after::selection,
      & *:before::selection,
      & + label::selection {
        background: none;
      }

    + label {
      outline: 0;
      display: block;
      aspect-ratio: 3;
      height: 2rem;
      position: relative;
      cursor: pointer;
      user-select: none;
      font-size: 12px;
      font-weight: 400;
      color: #fff;
      display: flex;
      align-items: center;
      container: coolbutton / size;
      overflow: clip;
      
      background: var(--g08);
      border: 3px outset var(--g08);
      border-radius: 20rem;
      padding: 2px;
      transition: all 0.4s ease;
      
      &:after,
      &:before {
        position: relative;
        display: block;
        content: "";
        height: auto;
        font-size: 66cqh;
      }

      &:after {
        left: 0cqw;
        height: 100cqh;
        aspect-ratio: 1;
        
        border-radius: 2em;
		background: radial-gradient(#999 0%, #ddd 10%, white);
        transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
      }

      &:before {
        display: inline;
        position: absolute;
        width: 66cqw;
        height: auto;
        
        content: "Hidden";
        text-align: right;
        left: calc(34cqw - 0.25rem);
        color: black;
        transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      
      ~ label {
		&.stat {
			display: none;
			font: 1rem/1 system-ui;
		}
      }
      }
      
    &:checked {
		+ label {
			background: var(--blue);
			border: 3px outset var(--accentcolor);

			&:active {
				box-shadow: inset 0 0 0 30px rgba(0, 0, 0, 0.1);

				&:after {
					margin-inline: -0.4em 0;
				}
			}

			&:before {
				content: "Visible";
				left: 0.5rem;
				color: #fff;
				text-align: left;
			}

			&:after {
				left: calc(100cqw - 100cqh);
			} 
		}     
      }

	  &:focus {
		+ label {
			&:after {
				background: radial-gradient(#999 0%, yellow 10%, yellow);
			}
		}
	  }
   }
}

	&.sent {
		.cbw {
			.cbut {
				+ label {
					display: none;
				}
				~ label {
					&.stat {
						display: inline;
						padding: 0;
					}
				}
			}
		}
	}
}

@supports not (contain: inline-size) {
	html {
		font: 16px/1 system-ui;
	}
}

@supports not (background-color: rgb(from white r g b)) {
	dialog {
		background: var(--lodop);
	}
	@media screen and (prefers-color-scheme: dark) {
		dialog {
			background: var(--dolop);
		}
	}
}

@supports not (corner-shape: squircle) {
	button[type="submit"],[type="Reset"]:not(.btn) {
		padding: 0.25rem 0.5rem !important;
	}
}

@supports (corner-shape: squircle) {
	button[type="submit"] {
		corner-shape: squircle bevel bevel squircle;
	}
	dialog {
		corner-shape: squircle;
	}
}

@media screen and (prefers-color-scheme: dark) {
	:root {
		--backgroundcolor: hsl(0 0% 13%);
		--accentcolor: hsl(0 58% 38%);
		--goldhighlight: hsl(51 100% 50%);
		--footercolor: hsl(0 0% 66%);
		--lightondark: hsl(0 0% 92%);
		--darkonlight: hsl(0 0% 13%);
		--inputborder: hsl(0 0% 63%);

		--formborder: var(--accentlighter);
	}
	::-webkit-calendar-picker-indicator {
		filter: invert(1);
	}
	html {
		scrollbar-color: var(--accentlighter) var(--backgroundcolor);
	}
	body {
		background: var(--backgroundcolor);
		color: var(--lightondark);
	}
	
	th {
		border-top: 2px solid var(--darkonlight);
		border-bottom: 2px solid var(--darkonlight);
	}
	td {
		color: var(--lightondark);
	}
	
	#customnowplaying {
		background: var(--darkonlight);
	}
	
	h2 sup {
		background-color: var(--lightondark);
		color: var(--darkonlight);
	}
	
	i.hand {
		color: var(--accentlighter);
	}
	
	ul.list li {
		border-bottom: 2px solid var(--inputborder);
	}

	ul.list li i {
		color: var(--accentlighter);
	}

	ul:not(#yourshows).list li:first-of-type span {
		color: var(--darkonlight);
	}

	dialog {
		border: 3px solid var(--accentlighter);
		background: hsl(from var(--darkonlight) h s l / 85%);
		color: var(--lightondark);
		
		&[open] {
			box-shadow: 0px 0px 2rem var(--accentlighter);

			@starting-style {
				opacity: 0;
				box-shadow: none;
				transform: scale(0.5)
			  }
		}

	}
	dialog::backdrop {
		background-color: var(--dolop);
		backdrop-filter: blur(2px);
	}
	
	dialog form input {
		caret-color: var(--accentlighter);
		accent-color: var(--accentlighter);
	}
	dialog i.dialog-close {
		color: var(--accentlighter);
	}

	.ql-toolbar.ql-snow {
		border: 2px solid var(--accentlighter) !important;
	}

	.ql-toolbar.ql-snow .ql-formats:not(:last-of-type) {
		padding-inline-end: 0.5rem !important;
		margin-inline-end: 1rem !important;
		border-right: 2px solid hsl(0 0% 60% / 0.6) !important;
	}

	.ql-toolbar.ql-snow .ql-formats:last-of-type {
		border-right: none !important
	}

	.ql-snow .ql-stroke {
		stroke: rgb(144 144 144) !important;
	}

	.ql-snow .ql-picker {
		color: rgb(144 144 144) !important;
	}
	
	a:link, a:visited, a:hover, a:active {
		color: var(--accentlighter);
		text-decoration: none
	}

	#prof_warning a {
		color: var(--lightondark);
	}

	#timer1 > div {
		color: var(--lightondark);
	}

	form label {
		color: var(--inputborder);
	}

	form input, form select, form textarea, select {
		color: var(--lightondark);
		border-bottom: 2px solid var(--inputborder);
	}

	span.params, span.error {
		color: var(--accentlighter);
	}

	button.btn {
		background: var(--accentlighter);
		color: var(--darkonlight);
	}

	ul.results li span:first-of-type {
		color: hsl(0 0% 86%);
	}

	ul.results li span:last-of-type:empty::after {
		color: hsl(0 0% 71% / 0.7);
	}

	dialog form.sent span.long label {
		color: var(--lightondark);
	}

	#voting .votes span.answer:hover {
		color: var(--accentlighter)
	}

	button[type="submit"],[type="Reset"]:not(.btn) {
		background: var(--accentlighter);
		border: 3px outset var(--accentlighter);
		color: var(--darkonlight);
	}
	
	dialog form:not(.sent) {
		label.stat {
			color: var(--lightondark);
		}
	}
	
	form {
		input {
			&:invalid {
					background: var(--error) !important;

				&::placeholder {
					color: white;
				}
			}
		}
		.cbw {
			.cbut {
				+ label {
					background: oklch(from var(--g08) calc(l - 0.25) c h);
					border: 3px outset oklch(from var(--g08) calc(l - 0.25) c h);

					&:before {        
						color: var(--lightondark);
						transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
					}
				}
      
				~ label {
					color: var(--lightondark);
				}
      
				&:checked {
					+ label {
						background: var(--accentlighter);
						border: 3px outset var(--accentlighter);

						&:before {
							color: var(--darkonlight);
						}
					}
				}
			}
		}
	}
}

@media screen and (min-width: 701px) and (orientation: portrait)
{
	html {
		font: normal normal normal max(18px, 0.8dvh) system-ui;
	}
	form[name="DJLogin"] {
		width: 65%;
	}
	.mainlinks div:nth-child(2) {
		display: block
	}
	#menu section a {
		font-size: 2.2vh;
	}
}

@media screen and (max-width: 700px) {
	header {
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		position: absolute;
		inset: 0 auto auto 0;
		height: 6rem;
		padding: 0.25rem;
		background: var(--accentcolor);
		z-index: 4
	}
	div.title {
		font: 1.2rem/1 system-ui;
		text-align: left;
		color: var(--lightondark);
		padding-left: 0.4rem;
	}
	dialog form {
		font: 1.75rem/1.1 system-ui;
	}
}

@media screen and (max-width: 700px) {
	dialog {
		width: 100%;
	}
}

@media screen and (max-width: 800px) {
	:root {
		--headerheight: 6rem;
	}
	html {
		font: 13px/1 system-ui;
	}
	header {
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		z-index: 4;
		height: 6rem;

		img.header {
			order: 1;
			height: 50%;
			margin-inline: 0 10px;
		}
			img.selfie {
			order: 7;
		}
	.showmenu {
		display: block;
	}
	.links {
		grid-area: links;
		background: var(--accentcolor);
		padding: 0.5rem;
	}
	span.title {
		order: 2;
		font: 1.5rem/1 system-ui;
	}
	button {
		order: 3;
	}
	button.menu-toggle {
		order: 5;
		margin: 0 0.25rem;
	}
	span.username {
		order: 6;
		flex: 1 0 auto;
	}
	span.break {
		flex-basis: 100%;
		height: 0;
		order: 4
	}
	#menu {
		padding: 0 1rem;
	}
	}
}
@media screen and (-webkit-min-device-pixel-ratio: 3), screen and (min-resolution: 3dppx), screen and (max-width: 600px) {
	[popover] {
		text-align: center;

		div.buttons {
			clear: both;
		}

		span button {
			margin: 0;
			display: block;
		}

		i {
			display: none;
		}
	}
}
@media screen and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) {

}
@media screen and (-webkit-min-device-pixel-ratio: 3) and (orientation: landscape) {
	header {
		height: 3rem;
	}
	div.title {
		font: 1.9rem/1 system-ui;
		padding-left: 0.25rem;
	}
	div.links {
		font: 1.6rem/1 system-ui;
	}
}