/* CSS Variables */
:root {
	--bg-color: #010009;
	--bg-color-inverted: #fefff7;
	--bg-overlay-color: rgba( 6, 0, 41, 1);
	--bg-overlay-color-light: rgba( 6, 0, 41, 0.85);
	--bg-overlay-color-lighter: rgba( 6, 0, 41, 0.6);
	--button-color: #280035;
	--button-hover-color: #380d56;
	--button-secondary-hover-color: #280035;
	--text-color: #fff;
	--text-color-notice: #292727;
	--text-color-gray: #9d9999;
	--text-color-light-gray: #c9c9c9;
	--link-color: #3bbbf7;
	--link-color2: #13a5e9;
	--track-color: #0089ff;
	--link-color-hover: #6dd1ff;
	--link-color-inverted: #de7240;
	--dynamic-highlight-color: var(--text-color-light-gray); /* fallback */

	--color-error-light: #ff5555;
	--color-error: #cc0606;
	--color-error-inverted: #33f9f9; /* opposite of cc0606 */
	--color-error-dark: #500707;

	--color-success: #cdff91;
	--color-success-dark: #55aa55;

	--font-size-xlarge: 1.45rem;
	--font-size-large: 1.25rem;
	--font-size-normal: 1.125rem;
	--font-size-small: 1rem;
	--font-size-small2: 0.93rem;
	--font-size-xsmall: 0.825rem;
	--font-size-xxsmall: 0.75rem;
	--font-size-xxxsmall: 0.65rem;

	--breakpoint-xxlarge: 1500px;
}

html.light-mode {
	filter: invert(100%);
	background-color: var(--bg-color-inverted);
}

/* re-invert on items that should not be inverted */
body.light-mode .dont-invert,
body.light-mode .video-js,
body.light-mode select,
body.light-mode div.error,
body.light-mode p.error,
body.light-mode ul.error,
body.light-mode ul.info,
body.light-mode .notice,
body.light-mode .success,
body.light-mode .tag,
body.light-mode a.button.confirm,
body.light-mode a.button.deny,
body.light-mode ul.drop-file-info li,
body.light-mode .grace-period-alert h2,
body.light-mode .start-turn-box h2 {
	filter: invert(100%);
}
body.light-mode label.error {
	color: var(--color-error-inverted); /* opposite of cc0606 */
}
body.light-mode form input.error {
	border-color: var(--color-error-inverted);
}

html {
	background: var(--bg-color);
	color: var(--text-color);
}

html,
body,
button,
input,
select,
option,
textarea {
	font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
	font-weight: 400;
	letter-spacing: 0.05em;
	color: var(--text-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-size: var(--font-size-normal);
	line-height: 1.4;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}
hr.big-space {
	margin: 3em 0;
}

img {
	vertical-align: middle;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

textarea {
	resize: vertical;
}

/* IE upgrade alert */
.chromeframe {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

.main {
	display: flex;
	min-height: calc( 100vh - ( 90px + 80px ) );
	margin: 0;
	padding: 0;
}

.main-inner {
	width: 100%;
	margin: auto; /* required for vertical centering https://stackoverflow.com/a/33455342/947370 */
	padding: 100px 0 40px;
	position: relative;
}
.games .main-inner {
	margin-top: 0;
	max-width: var(--breakpoint-xxlarge);
}

.main-inner > section > header {
	padding: 0 20px;
	text-align: center;
}

@media screen and (max-width: 820px) {
	.main-inner > section.homepage-games-section > header {
		padding: 40px 20px;
	}
}

.wrapper {
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0;
	position: relative;
	min-height: 100vh;
}

.site-header {
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	position: fixed;
	z-index: 777;
	height: 100px;
	background: var(--bg-color);
}

@media screen and (max-width: 600px) {
	.site-header {
		height: 80px;
	}
	.userinfo {
		display: none;
	}
}

.small-column {
	margin: 0 auto;
	padding: 0 20px;
	max-width: 600px;
}
.medium-column {
	margin: 0 auto;
	padding: 0 20px;
	max-width: 900px;
}
.full-column {
	margin: 0 auto;
	padding: 0 20px;
	max-width: 1800px;
}

/* About */

.about-video {
	margin: min( 5vw, 60px ) 0;
}

.about-content-wrapper a {
	color: var(--text-color);
}

/* Help Page */

.help-wrapper h2 {
	font-size: 1em;
	font-weight: 700;
	margin: 2em 0 0.8em;
}

/* Scheduler */

.scheduler-subsection {
	margin: min( 60px, 5vw ) 0;
}

/* custom cursors */

html,
body,
label,
a.button:disabled,
html input[type="button"]:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
	cursor: url(../images/cursor-default.svg), url(../images/cursor-default.png), auto;
}

a,
button,
.star,
.color,
a.tag,
.title-small,
.date-small,
.flatpickr-input[readonly],
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: url(../images/cursor-pointer.svg) 6 2, url(../images/cursor-pointer.png) 6 2, pointer;
}


a {
	color: var(--link-color);
	transition: color 300ms;
}

nav a,
header h1 a {
	color: #fff;
	text-decoration: none;
}

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

a:focus,
a:active {
	outline: 1px dashed var(--text-color-gray);
}

h1,
h2 {
	font-size: 2.2em;
	line-height: 1.1;
	font-weight: 300;
	letter-spacing: 0.1em;
}

h1.page-title {
	line-height: 1;
}

h3 {
	font-size: 1.2em;
}

h4,
h5,
h6 {
	font-size: 1em;
}

/* home page */

body {
	background-color: var(--bg-color);
}
body.home,
body.about,
body.newgame {
	background-image: radial-gradient(
		circle closest-corner at center 50%,
		var(--bg-overlay-color) 0%,
		transparent 60%
	);
	background-repeat: no-repeat;
}
body.register,
body.login,
body.forgot {
	background-image: radial-gradient(
		circle closest-corner at center 50%,
		var(--bg-overlay-color-lighter) 0%,
		transparent 38%
	);
	background-repeat: no-repeat;
}

body.home .site-header,
body.about .site-header,
body.newgame .site-header {
	background: transparent;
}

.new-game-must-login {
	margin-top: 2em;
}
.new-game-must-login p {
	margin-bottom: 2em;
}

.home-wrapper {
	text-align: center;
	max-width: 600px;
	display:flex;
	flex-wrap: wrap;

}

.home .wrapper {
	margin-bottom: 0;
}

.home .wrapper p {
	letter-spacing: 0.1em;
	margin: 1.5em auto 2.5em auto;
	max-width: 22em;
}

.home-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	gap: 20px;
}

.home .site-header h1 {
	display: none;
}

.home .main-inner .home-wrapper h2 {
	margin: 0;
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
}

.home .main-inner .home-wrapper h2 svg {
	max-width: 400px;
	filter: invert(100%);
	margin-left: 15px;
}

.home .main-inner .home-wrapper h2 svg g#cubes {
	transition: 1.5s ease;
	opacity: 0;
}

.home .main-inner .home-wrapper h2:hover svg g#cubes {
	opacity: 0.7;
}
.light-mode.home .main-inner .home-wrapper h2:hover svg g#cubes {
	opacity: 0.3;
}

.home .main-inner .home-wrapper h2::before {
	content: url(../images/dark/logo_pink.svg);
	width: 4rem;
	height: 3rem;
	display: inline-block;
	padding-right: 1.2rem;
	padding-bottom: 0.3rem;
}

/* Alerts */

label.error {
	display: block;
	margin: 0;
	padding: 0px;
	color: #e6007d;
	font-style: italic;
}

.error li {
	margin-left: 2em;
}
.error li a {
	color: #662222;
}

.notice {
	margin: 0 0 20px;
	padding: 10px 15px;
	border: 2px solid var(--text-color-notice);
	background: #ffffff;
	color: var(--text-color-notice);
}
body.dark-mode .notice {
	background: var(--text-color-light-gray);
	border-color: var(--text-color-gray);
}

ul.info {
	margin: 0 0 20px;
	padding: 10px 15px;
	border: 2px solid #444;
	background: rgba( 255,255,255,0.8);
	color: #222;
}
ul.info li {
	list-style-type: none;
	margin: 10px 0;
}

.success {
	margin: 10px 0;
	padding: 10px 14px;
	background: #cdff91;
	color: #333333;
}

.success a {
	color: #000;
}

.passcheck {
	margin: 0 0 0 10px;
	border: 2px solid var(--text-color-gray);
	padding: 3px;
	color: #222;
	font-size: var(--font-size-small);
	position: absolute;
	top: 2px;
	right: 0;
	background-color: #eaf8f4;
}

.password-container {
	position: relative;
}

.shortPass {
	background: #fff2f9;
	border-color: #e6007d;
}

.goodPass {
	background: #eaf8f4;
}

.strongPass {
	background: #eaf8f4;
	border-color: #00bb82;
}

/* Header */

header.site-header {
	text-align: right;
	max-width: 1600px;
	right: 0;
	left: 0;
	margin: 0 auto;
}

.site-header .title-tag {
	position: absolute;
	top: 29px;
	right: 86px;
	font-size: 1.2rem;
	margin: 0;
	line-height: 1;
	letter-spacing: 0.1em;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.site-header .title-tag svg {
	width: 180px;
	margin-left: 10px;
	filter: invert(100%);
}

.site-header .title-tag svg g#cubes {
	transition: 0.75s ease;
	opacity: 0;
}

.site-header .title-tag:hover svg g#cubes {
	opacity: 1;
}
body.light-mode .site-header .title-tag:hover svg g#cubes {
	opacity: 0.7;
}


.site-header .title-tag::before {
	content: url(../images/dark/logo_pink.svg);
	width: 2rem;
	height: 1.6rem;
	display: inline-block;
	padding-right: 1rem;
}


.site-header nav {
	position: absolute;
	visibility: hidden;
	top: 60px;
	right: 4px;
	max-width: 180px;
	font-size: var(--font-size-xsmall);
	z-index: 888;

	transition-property: opacity, top, visibility;
	transition-duration: 200ms, 200ms, 200ms;
	transition-delay: 0, 0, 200ms;
	padding: 0 20px 20px;

	background: linear-gradient(to left, var(--bg-color), var(--bg-color) 60%, transparent 100%);
	opacity: 0;
}

.site-header nav.open {
	top: 70px;
	opacity: 1;
	visibility: visible;
	transition-duration: 200ms, 200ms, 200ms;
	transition-delay: 0, 0, 0;
}

.site-header nav li a {
	line-height: 1.2;
	margin: 2px 0;
	padding: 3px 4px;
	display: block;
}

/* Dark Mode Switch */

:root {
	--toggle-dark: #010114;
	--toggle-light: #fff;
}

.switch {
	background-color: transparent;
	border-radius: 18px;
	cursor: pointer;
	display: inline-block;
	height: 20px;
	padding: 3px;
	position: relative;
	vertical-align: top;
	width: 45px;
}

.switch-input {
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
}

.switch-label {
	background: var(--toggle-light);
	border-radius: inherit;
	display: block;
	font-size: 10px;
	height: inherit;
	position: relative;
	text-transform: uppercase;
	transition: all 0.15s ease-out 0s;
}

.switch-label::before, .switch-label::after {
	line-height: 1;
	margin-top: -0.5em;
	position: absolute;
	top: 50%;
	transition: inherit;
}

.switch-handle {
	background-color: var(--toggle-dark);
	border-radius: 10px;
	height: 16px;
	left: 5px;
	position: absolute;
	top: 5px;
	transition: left 0.15s ease-out 0s;
	width: 16px;
}

.switch-input:checked ~ .switch-handle {
	left: 29px;
}



.userinfo {
	position: absolute;
	top: 74px;
	right: 24px;
	line-height: 1;
	margin: 0;
	font-size: var(--font-size-xxxsmall);
	color: #bbb;
	text-align: right;
	opacity: 1;
	transition: opacity 0.2s ease-out 0s;
}
nav.primary-navigation.open + .userinfo {
	opacity: 0;
}
.userinfo a {
	color: #ddd;
	text-decoration: none;
}

button.menu-toggle {
	background: none;
	display: block;
	width: 40px;
	height: 40px;
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 10px;
	z-index: 999;
	box-shadow: none;
	border: 0;
	min-width: 40px;
}

button.menu-toggle:hover {
	opacity: 0.9;
}

button.menu-toggle:focus {
	outline: 1px dashed #888;
}

button.menu-toggle:active {
	opacity: 1;
}

.hamburger {
	display: block;
	position: relative;
	width: 100%;
	height: 16px;
	border-bottom: 2px solid #fff;
	transition: transform 200ms;
}

.hamburger.open {
	transform: rotate(90deg);
}

.hamburger::before,
.hamburger::after {
	content: "";
	display: block;
	background: #fff;
	height: 2px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.hamburger::after {
	top: 8px;
}

/* FORMS */
button {
	outline: 0;
	border: 0;
	-webkit-appearance: none;
	background: transparent;
}

a.button,
input.button,
button.button,
input[type="button"],
input[type="submit"].button {
	background: var(--button-color);
	border: 1px solid var(--button-color);
	color: var(--text-color);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-weight: 500;
	text-align: center;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--font-size-xsmall);
	line-height: 1;
	padding: 0.85em 1.3em;
	margin: 0 3px;
	font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
	transition: color 0.35s ease, border 0.35s ease, background 0.35s ease;
	text-decoration: none;
	opacity: 1;
	border-radius: 0;
	min-width: 170px;
}

a.button:hover,
input.button:hover,
button.button:hover,
input[type="button"]:hover,
input[type="submit"].button:hover {
	border-color: var(--button-hover-color);
	background: var(--button-hover-color);
}

button:active,
a.button:active,
input.button:active,
button.button:active,
input[type="button"]:active,
input[type="submit"].button:active {
	color: var(--link-color2);
	background: rgba(255,255,255,0.15);
}

button:focus,
a.button:focus,
input.button:focus,
button.button:focus,
input[type="button"]:focus,
input[type="submit"].button:focus {
	outline: 2px solid var(--button-color);
	outline-offset: 2px;
}

button:disabled,
a.button:disabled,
input.button:disabled,
button.button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="submit"].button:disabled {
	color: var(--text-color-notice);
	background-color: var(--text-color-light-gray);
	border-color: var(--text-color-light-gray);
	outline-color: var(--text-color-light-gray);
	cursor: not-allowed;
}

a.button-secondary,
input.button-secondary,
button.button-secondary {
	background: transparent;
	border-color: transparent;
	color: var(--text-color);
}

a.button-secondary:hover,
input.button-secondary:hover,
button.button-secondary:hover {
	background: var(--button-secondary-hover-color);
	border-color: var(--button-secondary-hover-color);
	color: var(--text-color);
}

button.button-short {
	padding-top: 8px;
	padding-bottom: 6px;
}

a.button {
	display: inline-block;
}

.button-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin: 20px auto;
	gap: 20px;
}

a.button.confirm {
	background-color: var(--color-success-dark);
	color: #000;
	border-color: var(--color-success-dark);
	outline-color: var(--color-success-dark);
	opacity: 0.8;
}
a.button.confirm:hover {
	opacity: 1;
}

a.button.deny {
	background-color: var(--color-error-light);
	color: #000;
	border-color: var(--color-error-light);
	outline-color: var(--color-error-light);
	opacity: 0.8;
}
a.button.deny:hover {
	opacity: 1;
}

button.big {
	font-size: 19px;
	padding: 10px 1.5em 8px 1.5em;
}

.submit-container {
	text-align: right;
	max-width: 400px;
	margin: 5px 0;
}

.player-upload-submit-container {
	text-align: center;
}

@media only screen and (max-width: 414px) {
	a.button,
	input.button button.button,
	input[type="button"],
	input[type="submit"].button,
	button {
		padding: 0.5em;
	}
}

form {
	background: transparent;
	padding: 0;
}

form ul li,
form fieldset div,
form .form_section {
	padding: 0.5em 0;
	margin-bottom: 0.25em;
	list-style-type: none;
	list-style: none;
}

form ul ul li {
	margin: 0;
	padding: 0;
	background: transparent;
}

form ul {
	padding-left: 0;
}

form input {
	padding: 3px 10px;
	border: none;
	border-bottom: 1px solid #eee;
	vertical-align: top;
	margin-top: -6px;
	font-size: 0.95em;
	transition: border 600ms ease;
	background-color: transparent;
}

form input:focus {
	border-bottom-color: var(--link-color2);
	outline: 0;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=password] {
	width: 400px;
	max-width: 70%;
	box-sizing: border-box;
}

form ul li.inline {
	display: inline-block;
	margin-right: 15px;
}

.inline input[type=text],
.inline input[type=email],
.inline input[type=tel],
.inline input[type=password] {
	width: 150px;
}

form input.error {
	border-bottom-color: #e6007d;
}

form label {
	margin-right: 10px;
}

input::-webkit-input-placeholder {
	color: #555;
}

input:focus::-webkit-input-placeholder {
	color: #333;
}

input:-moz-placeholder {
	color: #555;
}

input:focus:-moz-placeholder {
	color: #333;
}

input::-moz-placeholder {
	color: #555;
}

input:focus::-moz-placeholder {
	color: #333;
}

input:-ms-input-placeholder {
	color: #555;
}

input:focus:-ms-input-placeholder {
	color: #333;
}

:placeholder {
	color: #555;
}

:focus:placeholder {
	color: #333;
}

select {
	margin: -7px 0 0;
	position: relative;
	vertical-align: top;
	padding: 5px 45px 3px 8px;
	color: #222;
	background-color: #fff;
	background-image: url('../images/chevron-down.svg');
	background-position: 97% center;
	background-position: right 8px center;
	background-repeat: no-repeat;
	background-size: 10px;
	border: 1px solid var(--text-color-gray);
	border-radius: 0 !important;
	-webkit-appearance: none;
	-webkit-border-radius: 0;
	-webkit-padding-end: 45px;
	-webkit-padding-start: 8px;
	-webkit-user-select: none;
	-moz-appearance: none;
	font-size: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: border 300ms;
	max-width: 100%;
}

select:focus {
	border-color: var(--link-color2);
	outline: 0;
}

select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #000;
}

option:focus {
	outline: 0;
}

p.error,
div.error,
ul.error {
	margin: 0 0 10px;
	padding: 10px 15px;
	background: rgba(255, 241, 241, 0.8);
	border: 2px solid var(--color-error);
	color: #222;
}

form ul.error li {
	background: none;
	padding: 0;
	margin: 0 0 0 1em;
	list-style: square;
	list-style-type: square;
}

@media only screen and (max-width: 780px) {
	form ul li.inline {
		display: block;
		margin-right: 0;
	}
	.inline input[type=text],
	.inline input[type=email],
	.inline input[type=tel],
	.inline input[type=password] {
		width: 300px;
		max-width: 70%;
	}
}

@media only screen and (max-width: 690px) {
	form label {
		display: block;
	}
	form input,
	select {
		margin-top: 6px;
	}
}

@media only screen and (max-width: 500px) {
	.inline input[type=text],
	.inline input[type=email],
	.inline input[type=tel],
	.inline input[type=password],
	input[type=text],
	input[type=email],
	input[type=tel],
	input[type=password] {
		max-width: 100%;
	}
}

.pretty input:checked~.state.p-success label:after,
.pretty.p-toggle .state.p-success label:after {
	background-color: var(--link-color2) !important;
}

.pretty .state label:after,
.pretty .state label:before {
	top: -1px;
}

.pretty .state label {
	text-indent: 0;
	padding: 0 0 0 1.8em;
	white-space: normal;
}

.pretty input:focus~.state label:before {
	border-color: #fff;
}

.helptext {
	font-size: 0.8em;
	line-height: 1.3;
	font-style: italic;
	margin: 0.2em 0 0;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
	margin: 0;
	padding: 0;
	/* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

a.small-help-text {
	color: var(--text-color-gray);
	font-size: 14px;
	display: block;
	margin-top: 30px;
}

.change-password-field {
	display: none;
	position: relative;
}

input[type=url] {
	width: 500px;
	max-width: 70%;
}

textarea {
	width: 500px;
	max-width: 70%;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid #fff;
	padding: 16px;
}


.step-audio .seed_audio,
.step-audio .instructions {
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}
.step-audio .instructions textarea {
	padding: 16px;
	max-width: calc( 100% - 32px );
	width: calc( 100% - 32px );
}

#invitees-list li {
	margin: 10px 0;
}

.back-continue {
	text-align: right;
	width: 100%;
}

.back-contine button {
	display: inline-block;
}

.back {
	float: left;
}

button.upload-button {
	color: #fff;
	border: 1px solid #fff;
	outline-color: #fff;
	background: none;
	padding: 4px 6px 2px 6px;
	font-weight: bold;
}

/* Player */

.game {
	display: block;
	margin: 30px 0;
	padding: 0;
	font-size: 16px;
}

.player-time {
	padding: 20px 20px 0 20px;
}

.player-info {
	text-align: left;
	padding: 0 20px;
}

.player-info div.game-full-header {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 10px 40px;
	line-height: 1.1;
	margin-bottom: 2.5rem;
}

.player-info .title a {
	color: #fff;
}

button.expand-game {
	background: none;
	font-size: var(--font-size-xxsmall);
	line-height: 1;
	color: #fff;
	box-shadow: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.expand-game svg {
	width: 1.5em;
	height: 1.5em;
	margin-left: 1em;
}

.play-pause {
	position: absolute;
	bottom: 35px;
	left: 6px;
	transition: opacity 0.3s ease;
	opacity: 0;
	display: none;
}

.game-single .play-pause {
	opacity: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.play-pause button {
	background: none;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 40px;
	padding: 0;
}

.play-pause svg {
	width: 37px;
	height: 37px;
}
.preview-playpause svg {
	width: 32px;
	height: 32px;
}

.play-pause .prev-next svg {
	width: 11px;
	height: 11px;
}

.player-bar {
	display: block;
	padding-left: 15px;
	width: calc( 100% - 30px );
	overflow: hidden;
}

.single-game .player-bar {
	padding-left: 132px;
	width: calc( 100% - 147px );
}

.color {
	height: 50px;
	width: 25%;
	box-sizing: border-box;
	display: block;
	float: left;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #fff;
	background: none;
	font-size: 12px;
	overflow: hidden;
	position: relative;
}

.color-bg {
	position: absolute;
	top: 0;
	left: 0;
	height: 50px;
	width: 100%;
	opacity: 0;
	transition: opacity 1s ease;
}

.game-single .color-bg {
	opacity: 0;
	transition: opacity 0.5s ease;
}

.color.active .color-bg {
	opacity: 0.2;
	transition: opacity 0.3s ease;
}

@media only screen and (hover: hover) {
	.color:hover .color-bg {
		opacity: 0.2;
		transition: opacity 0.3s ease;
	}
}

.color img.waveform {
	height: 70px;
	position: absolute;
	top: -10px;
	left: -2%;
	width: 108%;
	max-width: 108%;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.color.active img.waveform {
	opacity: 0.5;
}

@media only screen and (hover: hover) {
	.color:hover img.waveform {
		opacity: 0.5;
	}
}

.color img.waveform-overlay {
	height: 20px;
	position: absolute;
	top: 15px;
	left: 0;
	width: 104%;
	max-width: 104%;
	opacity: 0.5;
}

.player-time {
	position: relative;
	font-size: var(--font-size-xxxsmall);
	transition: opacity 0.3s ease;
	opacity: 0;
	color: var(--text-color-gray);
}

.jp-audio.jp-state-playing .player-time {
	opacity: 1;
}

.jp-duration {
}


.jp-playlist a {
	color: #fff;
	text-decoration: none;
}
.jp-playlist ul {
	padding-left: 1.5em;
}
.jp-playlist ul li {
	list-style-type: decimal;
	padding-left: 1em;
}
.jp-playlist li.jp-playlist-current a {
	color: var(--dynamic-highlight-color);
}
.jp-playlist li:hover a,
.game-single .jp-playlist li.jp-playlist-current a {
	color: var(--dynamic-highlight-color-full);
}


.jp-playlist li > div,
.jp-playlist li > div > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
}

@media screen and ( max-width: 820px ) { /* iPad Air and smaller */
	.jp-playlist li > div > div.current-track-info {
		display: none;
	}
}

.jp-playlist li {
	padding: 0;
	font-size: var(--font-size-small2);
}

.jp-playlist-item {
	font-size: var(--font-size-small2);
	letter-spacing: 0.1em;
	display: block;
	margin: 5px 0;
}

.current-track-info {
	font-size: var(--font-size-xxsmall);
	gap: 8px 15px;
	margin: 5px 0 5px 15px;
	opacity: 0;
	display: none;
}

.jp-playlist li.jp-playlist-current .current-track-info {
	opacity: 1;
	display: flex;
}
@media only screen and (hover: hover) {
	.jp-playlist li:hover .current-track-info {
		opacity: 1;
		display: flex;
	}
}

@media screen and (min-width: 700px) {
	.current-track-info {
		column-gap: 20px;
		margin-left: 20px;
		display: flex;
	}
}

@media screen and (min-width: 1160px) {
	.current-track-info {
		column-gap: 30px;
		margin-left: 30px;
	}
}

@media screen and (min-width: 1320px) {
	.current-track-info {
		column-gap: 40px;
		margin-left: 40px;
	}
}

.jp-playlist ol { counter-reset: no-dots-please; }
.jp-playlist li { counter-increment: no-dots-please; }
.jp-playlist li::marker {
	content: counter(no-dots-please);
	color: var(--bg-color);
	transition: color 0.3s ease;
}

.jp-playlist li:hover::marker,
.jp-playlist li.jp-playlist-current::marker {
	color: var(--text-color);
}

.jp-progress {
	width: 100%;
	height: 50px;
	position: absolute;
	display: none;
}
.jp-play-bar {
	height: 50px;
	background: var(--track-color);
	opacity: 0;
}
.color.active .jp-play-bar {
	opacity: 0.5;
}

.js .jp-no-solution {
	display: none;
}

.game-single {
	margin-top: 0;
	padding-top: 0;
}



.game-single .player-info div.title {
	font-size: var(--font-size-xlarge);
	display: block;
	font-weight: 500;
	letter-spacing: 0.1em;
}

.total-players-full {
	font-size: var(--font-size-small);
	font-weight: 300;
	font-style: italic;
	margin-bottom: 2px;
}


.share {
	font-size: var(--font-size-xxsmall);
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 1rem;
}
button.share {
	padding: 1px;
}
.share span {
	color: var(--dynamic-highlight-color);
}
.game-single .share span {
	color: var(--dynamic-highlight-color-full);
}
.share svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.share-container {
	display: flex;
	gap: 10px;
}



.share-copy-url svg.icon-link {
	width: 1rem;
	height: 1rem;
}

.share-copy-url a.copy-url,
.jp-playlist li.jp-playlist-current .share-copy-url a.copy-url {
	color: var(--text-color);
}

.share-copy-url a.copy-url.copied,
.jp-playlist li.jp-playlist-current .share-copy-url a.copy-url.copied {
	color: var(--dynamic-highlight-color);
}

.game-single .share-copy-url a.copy-url.copied,
.game-single .jp-playlist li.jp-playlist-current .share-copy-url a.copy-url.copied {
	color: var(--dynamic-highlight-color-full);
}

.copy-link-text {
	display: inline-block;
	min-width: 75px;
}
.share-copy-url,
.share-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.share-copy-url,
.share-copy-url.controls-inline {
	display: none;
	padding-left: 0.75rem;
}

a.share-link {
	font-size: var(--font-size-xxsmall);
	text-decoration: none;
}

button.copy-url-close {
	height: 1rem;
	padding: 0;
	padding-left: 0.75rem;
}
.copy-url-close svg {
	width: 1rem;
	height: 1rem;
	transform: scale(1.5);
	transform-origin: center;
}

.url-preview {
	font-size: var(--font-size-xxxsmall);
	font-weight: 300;
	color: var(--text-color) !important;
	text-decoration: underline;
	text-decoration-thickness: 0.01rem;
	text-underline-offset: 1.5px;
	padding-left: 0.75rem;
}

@media screen and (max-width: 540px) {
	.url-preview {
		display: none;
	}
}

.current-track-info .share svg {
	width: 1.35em;
	height: 1.35em;
}

.website-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.website-container::before {
	content: "";
	display: block;
	width: 1em;
	height: 1em;
	background: url(../images/dark/artist-globe.svg);
	opacity: 0.7;
}

.current-track-date {
	font-weight: 300;
	font-style: italic;
	color: var(--text-color-light-gray);
	letter-spacing: 0.1em;
}

.current-track-info .current-time {
	color: var(--text-color-light-gray);
	letter-spacing: 0.05em;
	font-family: Helvetica, sans-serif; /* because it has mono-spaced numbers */
}

.expand {
	font-size: var(--font-size-xxsmall);
	color: var(--text-color-light-gray);
}
.expand.hide {
	display: none;
}

.share a.share-link {
	display: inline-block;
	text-decoration: none;
	padding: 0 2px 0 4px;
}

.constelation-grid::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: radial-gradient( circle at 50%, transparent 0%, transparent 35%, var(--dynamic-highlight-color) 70%, transparent 70% );
	opacity: 0.1;
	trasition: opacity 0.15s ease;
	position: relative;
}

.constelation-grid {
	position: fixed;
	left: 50%;
	top: max( 120px, calc( 50vh - 25vw ) );
	aspect-ratio: 1 / 1;
	transition: opacity 0.15s ease;
	opacity: 1;
	display: block;
}
.game-small .constelation-grid {
	opacity: 0;
	display: none;
}

.constelation-grid svg {
	transform: translate( 5px, 5px );
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	aspect-ratio: 1 / 1;
}

.constelation-grid,
.constelation-grid svg {
	width: 100%;
	height: auto;
	min-width: 280px;
	min-height: 280px;
	max-width: min( 45vw, calc( 100vh - 240px) ); /* header is 90px, fixed player is 90px, plus 30px padding at top and bottom */
	max-height: calc( 100vh - 240px);
	margin: 0;
}

.star {
	width: 7px;
	height: 7px;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 100%;
	box-shadow: 0 0 0 3px;
	outline: 0px solid var(--link-color);
	position: absolute;
	left: 0;
	top: 0;
	transition: outline 300ms ease;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
}
.star:hover {
	outline-width: 14px;
}
.star.active {
	outline-width: 14px;
	animation: pulsestar 2s ease 1s infinite alternate;
}
@keyframes pulsestar {
	from { outline-width: 14px; }
	to { outline-width: 3px; }
}

.game-single .scrolling-info {
	margin: auto 0;
	padding-bottom: 20px;
	min-height: 35vh;
}
.game-single .jp-audio {
	min-height: calc(100vh - 200px);
	display: flex;
	flex-direction: column;
}

@media screen and ( min-width: 1000px ) {
	.game-single .scrolling-info {
		width: 58%;
		padding-right: 0;
	}
}

.fixed-player-controls {
	position: relative;
	text-align: center;
	padding: 10px 0 30px;
	width: 100%;
}
.top-row-player-small {
	display: grid;
	gap: 10px;
	grid-template-columns: auto auto auto auto 1fr auto auto auto;
	align-items: center;
	justify-content: space-between;
	position: relative;
}
@media screen and ( max-width: 750px ) {
	.top-row-player-small {
		display: flex;
		flex-wrap: wrap;
		justify-content: end;
		row-gap: 0;
	}
	.total-players.controls-inline {
		display: none;
	}
	.share-copy-url.controls-inline {
		position: absolute;
		bottom: -50px;
		padding: 10px;
		background: var(--bg-color);
		border: 1px solid var(--text-color-gray);
		z-index: 2;
		right: 20%;
		margin: 0 auto;
		width: auto;
		min-width: 140px;
	}
	.expand.hide {
		display: flex;
	}
}

.game-single .top-row-player-small {
	display: none;
}
.game-single .fixed-player-controls .player-time {
	display: none;
}

.game-single .fixed-player-controls {
	position: fixed;
	bottom: 0;
	left: 0;
	background: var(--bg-color);
}

@media screen and ( min-width: 1500px ) {
	.game-single .fixed-player-controls {
		bottom: 0;
		left: calc( ( 100vw - var(--breakpoint-xxlarge) ) / 2 );
		right: calc( ( 100vw - var(--breakpoint-xxlarge) ) / 2 );
		width: var(--breakpoint-xxlarge);
	}
}

.fixed-player-controls .player-time {
	display: flex;
	justify-content: space-between;
}
.game-single .expand {
	display: none;
}

@media screen and ( max-width: 820px ) { /* iPad Air and smaller */
	.game-single .jp-audio {
		display: grid;
	}
	.game-single .scrolling-info {
		order: 3;
	}
	.game-single .constelation-grid {
		position: relative;
		order: 1;
		top: auto;
		left: auto;
		width: 85%;
		height: auto;
		min-width: 0;
		min-height: 0;
		max-width: 450px;
		max-height: 450px;
		margin: 5% auto 8% auto;
	}
	.game-single .constelation-grid svg {
		min-width: 0;
		min-height: 0;
		max-width: 450px;
		max-height: 450px;
	}
	.game-single .fixed-player-controls {
		position: relative;
		order: 2;
	}
	.jp-playlist ul {
		padding-left: 0.5em;
	}
}


a.back-to-list,
a.back-to-list-single {
	text-decoration: none;
	font-size: var(--font-size-xsmall);
	display: block;
	padding: 0 10px 10px 0;
	margin-bottom: 20px;
	float: none;
}

.controls-inline {
	display: flex;
	padding: 10px;
	justify-content: space-between;
	align-items: center;
}


.game-small .back-to-list,
.game-small .jp-playlist,
.game-small .website,
.game-small .soundcloud,
.game-small .player-info div.game-full-header,
.game-small .date {
	display: none;
}
.game-small .fixed-player-controls {
	text-align: left;
}
.title-small {
	padding: 10px 20px 10px 15px;
	font-size: var(--font-size-xsmall);
	font-weight: 500;
}

@media screen and ( max-width: 750px ) {
	.title-small {
		width: calc( 100% - 104px );
		padding-left: 0;
	}
	.controls-inline {
		padding-top: 0;
		padding-bottom: 0;
	}
	.player-bar {
		padding-top: 20px;
	}
	.current-track-info.share-open {
		width: 100%;
	}
}

.current-creator {
	font-size: var(--font-size-xxsmall);
	color: var(--dynamic-highlight-color);
}
.total-players {
	font-size: var(--font-size-xxsmall);
	color: var(--text-color-light-gray);
}
.date-small {
	padding: 10px 20px;
}
.game-single .title-small,
.game-single .date-small,
.game-single .preview-playpause {
	display: none;
}

/* File Uploads */
.drop {
	border: 1px dashed #fff;
	padding: 40px;
	margin: 20px 0 0;
	max-width: 400px;
	box-sizing: border-box;
	display: block;
	text-align: center;
	font-size: 1.3em;
}
.drop button {
	display: block;
	margin: 10px auto;
}
.upload-file-input {
	display: none;
}
ul.drop-file-info {
	border-top: none;
	padding: 0px;
	margin: 0 0 20px;
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
}
ul.drop-file-info li {
	margin: 0;
	padding: 0;
	position: relative;
	background: rgba(0,190,0,0.4);
}
ul.drop-file-info li.working {
	background: none;
}
ul.drop-file-info li.error {
	background: rgba(190,0,0,0.4);
	padding: 10px;
	line-height: 1.2;
	word-wrap: break-word;
}
ul.drop-file-info p {
	padding: 10px 40px 10px 10px;
	margin: 0;
	color: var(--text-color-notice);
}
ul.drop-file-info i {
	font-size: 12px;
	display: inline-block;
	margin-left: 10px;
}
ul.drop-file-info span {
	position: absolute;
	background: rgba(255,255,255,0.6);
	width: 30px;
	height: 30px;
	display: block;
	top: 7px;
	right: 7px;
	border-radius: 5px;
	padding: 6px 8px;
	line-height: 1;
	box-sizing: border-box;
}

.progress {
	height: 4px;
	background-color: var(--link-color2);
	position: absolute;
	bottom: 0;
	left: 0;
	transition: width 100ms;
}
.drop-file-info input[type=text] {
	max-width: none;
	width: 100%;
}

.review-data {
	border: 2px solid var(--text-color-gray);
	padding: 20px;
	margin: 3px;
	text-transform: uppercase;
	color: #bbb;
}
.review-data span {
	font-weight: bold;
	text-transform: none;
}
#previewinvitations {
	margin-top: 0;
	margin-left: 20px;
	font-weight: bold;
	text-transform: none;
}
.preview-instructions span {
	display: block;
	margin-left: 20px;
}

.single-game-wrapper h1 {
	margin-bottom: 5px;
	line-height: 1.1;
}






.block {
	border: 2px solid var(--text-color-gray);
	border-radius: 20px;
	margin: 40px 0;
	position: relative;
	overflow: hidden;
}
.block-inner {
	background: #000;
	padding: 30px;
}

.gamecard-section {
	margin: 40px 0 0;
}
.gamecard-section:first-child,
.gamecard-section:empty  {
	margin-top: 0;
}
.gamecard-section > *:last-child {
	margin-bottom: 0;
}

.gamecard-header h1,
.gamecard-header h2,
.gamecard-header h2 a {
	font-size: 1.8rem;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0;
	text-decoration: none;
	font-weight: 700;
	color: var(--text-color);
	letter-spacing: 0;
}

.big-notice {
	font-size: 1.4rem;
	font-style: italic;
	line-height: 1.3;
}

.status-title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}
.status-title-success {
	color: var(--color-success-dark);
}
.status-title-error {
	color: var(--color-error);
}

.fine-print {
	font-size: 0.85em;
}

p.countdown-container {
	margin: 20px 0;
	padding: 10px;
	background: rgba(255,255,255,0.6);
	color: #444;
}
p.countdown-container-active {
	background: rgba(255,255,255,0.8);
}

p.countdown-container-grace-period {
	background: var(--color-error-dark);
	color: var(--text-color);
}

.countdown {
	color: #000;
	font-weight: bold;
}

p.countdown-container-grace-period .countdown {
	color:  var(--text-color);
}

p.countdown-plaintext .countdown {
	color: var(--text-color);
}

.countdown-container-hidden {
	opacity: 0;
	overflow: hidden;
	width: 1px;
	height: 1px;
}

.grace-period-alert {
	border: 5px solid #ff5555;
	padding: 15px;
	margin: 30px 0;
}

.grace-period-alert h2 {
	color: #ff5555;
}

.start-turn-box {
	border: 5px solid var(--color-success-dark);
	padding: 15px;
	margin: 30px 0;
}

.start-turn-box h2 {
	margin: 0 0 10px;
	color: var(--color-success-dark);
}
.start-turn-box p {
	margin-bottom: 0;
}

.tag {
	display: inline-block;
	background: none;
	color: #eee;
	font-weight: bold;
	font-size: 17px;
	padding: 0;
	margin: 5px 0;
	line-height: 1;
	vertical-align: top;
}
body.light-mode .tag {
	color: #444;
}
.tag.no,
.tag.sent {
	color: var(--text-color-gray);
}
body.light-mode .tag.no,
body.light-mode .tag.sent {
	color: #666;
}
.tag.complete,
.tag.accepted {
	color: #4ea800;
}
body.light-mode .tag.complete,
body.light-mode .tag.accepted {
	color: #41830a;
}
.tag.active {
	color: yellow;
}
body.light-mode .tag.active {
	color: #090f7a;
}
.tag.declined,
.tag.abandoned {
	color: #a84e00;
}
body.light-mode .tag.declined,
body.light-mode .tag.abandoned {
	color: #5a0f0f;
}

a.tag {
	text-decoration: none;
}

.upload-download-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 50px;
	margin-top: 70px;
}

.upload-download-container p:first-child {
	margin-top: 0;
}


.host-game-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 0 50px;
	margin: 40px 0;
}
.host-game-summary p {
	margin: 4px 0 15px;
}

.host-game-summary p.twowide {
	grid-column: span 2;
}

.host-game-summary > div {
	margin: 20px 0;
}

.host-view-rounds-preview-desktop,
.invites-host-desktop {
	display: none;
}

@media screen and (min-width: 820px) {
	.host-view-rounds-preview-mobile,
	.invites-host-mobile {
		display: none;
	}
	.host-view-rounds-preview-desktop,
	.invites-host-desktop {
		display: table;
	}
}

.game-mode label {
	font-weight: 700;
	margin-right: 10px;
	display: inline-block;
	margin-top: 7px;
}
select.game-mode-select {
	margin-top: 0;
}
.game-small .game-mode {
	display: none;
}
.game-single .player-info div.game-mode {
	display: block;
	margin: 10px 0;
}

.game-mode-select.value-changed {
	animation-duration: 2s;
	animation-name: value-changed;
}

a.game-more-info-button {
	padding: 8px 16px;
	margin: 0;
	min-width: 0;
}

@keyframes value-changed {
	from {
		background: #00bb00;
		color: #fff;
	}

	to {
		background: #fff;
		color: #222;
	}
}

.invitation-item {
	margin: 30px 0;
}

.invitation-item p {
	font-size: 0.9em;
	margin: 10px 0;
}


.invite-another-form {
	margin-bottom: 40px;
	position: relative;
}
form.invite-another-form input {
	height: 30px;
	font-size: 1em;
	margin: 0;
}
form.invite-another-form label.error {
	left: 0;
	position: absolute;
	top: 4.2em;
}

.failed {
	color: #ff5555;
}

table {
	width: 100%;
}
table th,
table td {
	padding: 3px;
	text-align: center;
}



/* Calendar Tile Type Display */
.calendar-tiles li {
	display: inline-block;
	margin: 0 10px 14px 0;
	border: 1px solid #aaa;
	max-width: 112px;
	padding: 10px;
	vertical-align: top;
}
.calendar-tiles li .pretty {
	margin-right: 0;
}

.calendar-tiles .pretty .state label {
	padding: 0;
}
.cal-tile {
	display: block;
	text-align: center;
}
.tile-round-length {
	display: block;
	font-size: 12px;
	font-style: italic;
	margin: 8px 0 0;
}
.tile-weekday,
.tile-month,
.tile-day {
	display: block;
	font-weight: 900;
	text-transform: uppercase;
	padding-left: 20px;
}
.tile-weekday {
	font-size: 18px;
}
.tile-month {
	font-size: 24px;
}
.tile-day {
	font-size: 30px;
}


li.timeline {
	border: 1px solid #444;
	padding: 20px;
}

dl {
	padding-left: 20px;
	border-left: 3px solid #fff;
}

dt {
	font-style: italic;
	margin-top:6px;
	position: relative;
}
dd {
	font-weight: bold;
}
dt::before {
	content: "";
	display: block;
	background: #000;
	border: 3px solid #fff;
	border-radius: 50%;
	width: 9px;
	height: 9px;
	position: absolute;
	left: -29px;
	top: 4px;
}

/* Pagination */
.prev-next-page {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	margin: 20px;
	gap: 20px;
}

.prev-next-page a {
	color: var(--text-color-gray);
	text-decoration: none;
	font-size: var(--font-size-small);
}

.open-game-body .prev-next-page {
	display: none;
}

.video-js,
.vjs-poster {
	background-color: transparent;
}

body .vjs-theme-forest {
	--vjs-theme-forest--primary: var(--link-color);
	--vjs-theme-forest--secondary: var(--bg-color);
}

body.light-mode .vjs-theme-forest {
	--vjs-theme-forest--primary: var(--link-color-inverted);
}

body .vjs-theme-forest {
	--vjs-theme-forest--primary: var(--link-color);
}

body .vjs-theme-forest .vjs-big-play-button {
	background: url('../images/play.svg');
}

body .vjs-control {
	color: var(--bg-overlay-color-light);
}

body .video-js .vjs-progress-holder .vjs-play-progress {
	background-color: var(--bg-overlay-color-light);
}

body .vjs-picture-in-picture-control {
	display: none;
}
