:root {
	--col-theme-accent: #60D1BB;
	--col-bg-main: #F8F8F8;
	--col-bg-toolbar: white;
	--col-low-border: 1px solid #ddd;
	--col-label-text: black;
	--img-opacity: 1;
	--tab-outline-style: none;
}
@media (prefers-color-scheme: dark) {
	:root {
		--col-bg-main: black;
		--col-bg-toolbar: #222;
		--col-low-border: 1px solid #666;
		--col-label-text: #ccc;
		--img-opacity: 0.4;
	}
	.topnav.unfixed img.loading {
		filter: invert(1);
	}
}

html, body {
	background-color: var(--col-bg-main);
	height: calc(100% - 8px);
	font-family: 'Avenir', Arial, Helvetica, sans-serif;
}
* {
	box-sizing: border-box;
}
a {
	text-decoration: none;
}

@font-face {
  font-family: 'Avenir';
  font-style: normal;
  font-weight: 400;
  src: local('Avenir LT Pro 45 Book'), local('AvenirLTPro-Book'), url(/fonts/Avenir_Roman.woff2) format('woff2');
}
@font-face {
  font-family: 'Avenir Heavy';
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/Avenir_Heavy.woff2) format('woff2');
}

/* UI Elements */
::-webkit-scrollbar {
	width: 14px;
	z-index:1001;
}
::-webkit-scrollbar-track {
	background-color: #eee;
	border-radius: 0;
}
::-webkit-scrollbar-thumb {
	background-color: rgba(100,100,100,0.8);
	border-radius: 10px;
	opacity: 0.75;
}
::-webkit-scrollbar-thumb:active {
  background-color: rgba(100,100,100,0.7);
	opacity:1;
}
::-webkit-scrollbar-corner {
  background-color: #eee;
}

#loadingBear {
	width: 120px;
	height: 120px;
	text-align: center;
	position: fixed;
	left: calc(50% - 60px);
	top: calc(50% - 60px);
}
sq {
	display:block;
	transition: 0.5s;
	position: fixed;
	bottom: 4px; right: 4px;
	z-index: 100;
	background-color: rgba(0,0,0,0.5);
	padding:8px;
	border-radius: 8px;
}

.topnav::-webkit-scrollbar {
	width: 0;
	height: 0;
}
.topnav a {
	outline: none;
}
.topnav a:focus button {
	color: var(--col-theme-accent);
}
.topnav button {
	background-color: rgba(0,0,0,0);
	display: inline-block;
	height: 50px;
	font-size: 24px;
	border: none;
	outline: none;
	cursor: pointer;
	color: #aaa;
	border-top: 4px solid rgba(0,0,0,0);
	border-bottom: 4px solid rgba(0,0,0,0);
	font-family: 'Avenir Heavy', Arial, Helvetica, sans-serif;
	text-transform: uppercase;
    font-size: 18px;
}
@media (hover: hover) {
	.topnav button:hover {
		opacity: 0.6;
	}
}
.topnav button.selected {
	border-bottom: 4px solid var(--col-btn-focused, #888);
	color: var(--col-btn-focused, #888);
}
.topnav, .search-bar {
	user-select: none;
	-webkit-user-select: none;
}

/* Channel Page Topnav */
.topnav.fixed {
	background-color: var(--col-bg-toolbar);
	display: flex;
	width: calc(100% - 46px);
	height: 51px;
	position: fixed;
	top: 0px;
	left: 46px;
	overflow-x: auto;
	overflow-y: visible;
	z-index: 10;
	border-bottom: var(--col-low-border);
}
.topnav.fixed button {
	z-index: 15;
	padding: 0 36px;
	min-width: auto;
	white-space: nowrap;
}
.topnav.fixed > *:nth-child(6n+1) button.selected {--col-btn-focused:rgb(228, 36, 132);}
.topnav.fixed > *:nth-child(6n+2) button.selected {--col-btn-focused:rgb(237, 88, 53);}
.topnav.fixed > *:nth-child(6n+3) button.selected {--col-btn-focused:rgb(241, 165, 47);}
.topnav.fixed > *:nth-child(6n+4) button.selected {--col-btn-focused:rgb(0, 192, 220);}
.topnav.fixed > *:nth-child(6n+5) button.selected {--col-btn-focused:rgb(222, 223, 56);}
.topnav.fixed > *:nth-child(6n+6) button.selected {--col-btn-focused:rgb(126, 201, 93);}

/* User Page Topnav */
.topnav.unfixed {
	background-color: var(--col-bg-toolbar);
	display: block;
	width: calc(100% + 16px);
	position: relative;
	margin: -8px;
	top: 0px;
	left: 0px;
	overflow-x: auto;
	padding-top: 56px;
	z-index: 10;
	border-bottom: var(--col-low-border);
	color: var(--col-label-text);
}
.topnav.unfixed .flex {
	flex-wrap: nowrap;
	justify-content: center;
}
.topnav.unfixed .flex > * {
	width: 100%;
}
.topnav.unfixed img {
	display: block;
	margin: 16px auto;
	width: 128px;
	border-radius: 50%;
}
.topnav.unfixed img.loading {
    padding: 20px;
}
.topnav.unfixed span {
	display: block;
	text-align: center;
	white-space: nowrap;
}
.topnav.unfixed a {
	display: inline-block;
	position: relative;
	width: 50%;
}
.topnav.unfixed button {
	width: 100%;
	margin: 0;
}
.topnav.unfixed .badge-container {
	text-align: right;
}
.badge-container > div[badge="1"] {
	position: relative;
	top: -8px;
	animation: scale-in 0.75s;
	margin-right: 16px;
}
.badge-container > div[badge="1"]::after {
	content: 'Top Planter';
    position: absolute;
    top: 100%;
    left: calc(50%);
    transform: translate(-50%, 8px);
    width: 100px;
    text-align: center;
    opacity: 0.54;
}
.topnav.unfixed .avatar-container {
	min-width: none;
	padding: 16px;
}
.topnav.unfixed .plant-count {
	z-index: 2;
	position: relative;
}
.topnav.unfixed .plant-count > span {
	display: inline-flex;
	line-height: 56px;
	font-size: 24px;
	font-family: sans-serif;
	padding-left: 16px;
	align-items: center;
	animation: fade-in 0.5s;
}
.topnav.unfixed .plant-count img {
	top: -2px;
	position: relative;
	display: inline-block;
	margin: 0;
	width: 48px;
	height: 48px;
}
.topnav.unfixed .plant-count > span > span {
	margin-left: 8px;
}
.topnav.unfixed :is(.avatar-container, .plant-count > span) > span {
    opacity: 0.54;
}
@media only screen and (max-width: 666px) {
	.topnav.unfixed .flex {
		flex-wrap: wrap;
	}
	.topnav.unfixed .flex > .plant-count, .topnav.unfixed > .flex .badge-container {
		width: 50%;
		order: 2;
	}
	div.badge-container > div[badge] {
		width: 72px;
		height: 56px;
		top: 0;
	}
	div.badge-container > div[badge]::after {
		content: none;
	}
	div.badge-container:empty {
		display: none;
	}
	div.badge-container:empty ~ .plant-count {
		text-align: center;
		padding-right: 16px;
	}
}

.topSticky {
	position: fixed;
	width: 100%;
	height: 50px;
	top: 0;
	left: 0;
	background-color: var(--col-bg-toolbar);
	z-index: 15;
	border-bottom: var(--col-low-border);
	color: var(--col-label-text);
}
.topSticky h1 {
    display: flex;
    text-align: center;
    margin: auto;
    padding: 8px;
    font-size: 18px;
    letter-spacing: 0.3px;
    height: 50px;
    align-items: center;
    justify-content: center;
	color: var(--col-btn-focused, #888);
}
.topSticky a {
	position: absolute;
	text-align: center;
	margin: auto;
	padding: 13px;
	font-size: 18px;
	background-color: var(--col-bg-toolbar);
	color: #999;
	height: 100%;
	display: flex;
	align-items: center;
}
.topSticky a:last-child {
	background-color: transparent;
}
.topSticky a:focus {
	border: var(--tab-outline-style);
	outline: none;
	box-sizing: border-box;
	padding: 13px calc(13px - 2px * var(--is-keyboard-active));
}
@media only screen and (min-width: 512px) {
	.topSticky a::after {
		content: " Back";
		padding: 0px 0 0 14px;
	}
}
.back {
	cursor: pointer;
}

.invalid-user-label {
	display: none;
	color: var(--col-label-text);
	text-align: center;
	position: fixed;
	width: 100%;
	top: 40%;
	font-size: 250%;
	font-family: 'Avenir', Arial, Helvetica, sans-serif;
}

.category-description {
	text-align: center;
	color: var(--col-label-text);
	opacity: 0.54;
	padding: 70px 12px 15px;
}
.category-description:empty {
    padding-top: 40px;
}

/* Project Cards */
.flex {
	display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: -5px;
    position: relative;
	justify-content: space-evenly;
	max-width: 100%;
	flex-wrap: wrap;
	align-content: space-around;
	user-select: none;
	-webkit-user-select: none;
}
.flex .project-card {
	background-color: var(--col-bg-toolbar);
	width: 300px;
	height: 400px;
	margin: 16px;
	position: relative;
	border-radius: 8px;
	color: var(--col-label-text);
	outline: none;
	border: 0px solid white;
	animation-name: slide-in;
	animation-duration: 1s;
}
.project-card a.thumbnail {
	width: 300px;
	height: 300px;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-around;
	padding: 0;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	opacity: var(--img-opacity);
	animation-duration: 0.5s;
}
.project-card a.thumbnail.loading {
	opacity: 0;
	transition: 0s;
}
.project-card .accessibility-label {
	opacity: 0;
	pointer-events: none;
	width: 100%;
}
.project-card *:focus {
	outline: var(--tab-outline-style);
}
.project-card a[disabled] {
	cursor: default;
	color: gray;
	display: inline-flex;
}

.remixbar {
	position: absolute;
	padding: 4px;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	max-width: 200px;
	overflow: hidden;
	white-space: nowrap;
	height: 25px;
	line-height: 16px;
	background-color: #ddd;
	color: #666;
	border-radius: 2px;
	opacity: 0.7;
	z-index: 2;
}
.remixbar .icon-remix {
	width: 14px;
	height: 14px;
	margin: 0 3px 0 1px;
	font-size: 14px;
	background-image: url('/images/icon_remix.svg');
	background-size: 14px;
}
.remixbar span {
    position: relative;
	text-overflow: ellipsis;
    overflow: hidden;
    font-size: 13px;
}
a.remixbar.time-remix {
	display: none;
}
.user-actions {
	display: flex;
	flex-direction: row;
	width: 92px;
	height: 100px;
	margin: 0;
	font-size: 36px;
	justify-content: center;
	align-items: center;
	color: gray;
	z-index: 1;
	position: relative;
}
.user-actions .flex {
	width: min-content;
	height: 100%;
	flex-direction: column;
	justify-content: space-evenly;
	position: relative;
	top: -8px;
	margin-left: auto;
}
.user-actions .plant {
	background-image: url(/images/profile-mushrooms.png);
    background-size: 32px;
    width: 32px;
    height: 32px;
    position: relative;
	transform: scale(1.15) translateY(1px);
}
.user-actions .heart {
	background-image: url(/images/heart_monochrome.svg);
    background-size: 32px;
    width: 32px;
    height: 32px;
	position: relative;
	transform: scale(1.3);
}
.user-actions .plant::after {
	content: attr(data-plants);
    color: white;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: gray;
    border-radius: 15px;
    padding: 0 0.5px 0 0;
    letter-spacing: 0px;
    position: absolute;
    bottom: -9px;
    right: -4px;
	box-sizing: border-box;
}
.user-actions .heart::after {
	content: attr(data-hearts);
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translate(-50%,0);
	font-size: 9px;
}
.info {
	display: block;
	width: 300px;
	height: 100px;
	margin: 0;
	position: absolute;
	top: 300px;
	right: 0px;
}
.info .name {
	display: block;
	margin: 4px 10px;
	text-align: right;
	font-size: 15px;
	overflow: hidden;
	position: absolute;
	top: 23px;
	right: 0;
	width: 188px;
	height: 45px;
	word-wrap: break-word;
	hyphens: auto;
	line-height: 22px;
}
.info .name.short {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
.info .name.truncate::after {
	content: '...';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.9em;
    height: 1.5em;
    background-color: var(--col-bg-toolbar);
}
.info .user-container {
	display: block;
	margin: 2px 8px 0px 12px;
	width: 188px;
	padding: 4px 4px 2px 0;
	white-space: nowrap;
	overflow: hidden;
	position: absolute;
	top: 0px;
	right: 0;
	font-size: 14px;
	text-align: right;
	text-overflow: ellipsis;
	background-size: 0 0;
}
.info .user {
	line-height: 20px;
	color: var(--col-label-text);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: #888;
	text-decoration-thickness: 1px;
	text-underline-offset: 1px;
}
.info .user:hover {
	opacity: 0.7;
}
.info stats {
	display: flex;
	justify-content: flex-end;
	position: absolute;
	bottom: 4px;
	right: 6px;
	width: 100%;
	color: gray;
	font-size: 12px;
}
.info stats > div {
	margin: 4px;
	display: flex;
	align-items: center;
}
.info stats .icon {
	height: 12px;
	display: inline-block;
	background-repeat: no-repeat;
	margin-right: 2px;
}
.info stats .icon-play {
	width: 10px;
	background-image: url('/images/icon_play.svg');
	background-size: 10px 12px;
}
.info stats .icon-clock {
	width: 12px;
	background-image: url('/images/icon_clock.svg');
	background-size: 12px;
	margin-right: 3px;
}
.info stats .icon-clock::after {
	content: attr(data-time);
	position: absolute;
	width: fit-content;
	background-color: black;
	transform: translate(0, -25px);
	text-align: center;
	right: 0;
	padding: 4px 6px;
	color: white;
	border-radius: 4px;
	font-family: sans-serif;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.info stats .icon-clock:hover::after {
	opacity: 1;
}

.link-btn {
	margin: 8px 8px 8px 16px;
	background-image: url('/images/icon_link.svg');
	background-size: 32px;
	width: 32px;
	height: 32px;
}
.link-btn, .report-icon {
	cursor: pointer;
}
.link-btn:hover, .report-icon:hover {
	opacity: 0.7;
}
.link-btn:active, .report-icon:active {
	opacity: 0.5;
}
.report-icon {
	margin: 0.25rem;
	color: #777;
	opacity: 0.2;
}

/* User Cards */
.user-card {
	display: flex;
	position: relative;
	background-color: var(--col-bg-toolbar);
	width: 320px;
	height: 64px;
	margin: 8px;
	padding: 8px;
	border-radius: 16px;
    box-shadow: 0 0 0 0px var(--col-theme-accent) inset;
    border: 0px solid white;
    opacity: 1;
    transition: box-shadow 0.25s;
}
.user-card:hover, .user-card:focus {
	box-shadow: 0 0 0 2px var(--col-theme-accent) inset;
	outline: none;
}
.user-card span.img-container {
	display: inline-block;
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	flex-shrink: 0;
	pointer-events: all;
}
.user-card img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
}
.user-card name {
	font-size: 16px;
	color: var(--col-label-text);
	display: inline-flex;
	height: 100%;
	align-items: center;
	padding: 12px;
}

/* Search Controls */
.proj-search-div {
	background-color: var(--col-bg-toolbar);
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	left: 0;
	top: 0;
	width: 46px;
	height: 51px;
	z-index: 12;
	border-bottom: var(--col-low-border);
}
.proj-search-div > span {
	width: 46px;
	height: 51px;
}
.proj-search-div > span > span {
	height: 51px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.proj-search-div .search-icon {
	background-color: rgba(0,0,0,0);
	display: flex;
	justify-content: center;
	align-items: center;
	padding-left: 2px;
	font-weight: 200;
	font-size: 24px;
	border: none;
	outline: none;
	cursor: pointer;
	color: #aaa;
	padding: 6px;
	box-sizing: content-box;
}
.proj-search-div .search-icon[hidden] {
	display: none;
}
.proj-search-div .search-icon:hover {
	opacity: 0.7;
}
.proj-search-div span:focus .search-icon {
	outline: var(--tab-outline-style);
}
.proj-search-div span {
	outline: none;
}

.search-bar {
	overflow: hidden;
	display: block;
	position: fixed;
	z-index: 11;
	width: calc(100% - 46px);
	height: 50px;
	top: -51px;
	left: 46px;
	padding: 4px 6px 6px 0;
	background-color: var(--col-bg-toolbar);
	transition: top 0.5s;
}
.search-bar input {
	display: inline-block;
	background-color: #444;
	opacity: 0.8;
	color: #ddd;
	width: calc(100% - 65px);
	top: -51px;
	left: 51px;
	font-size: 16px;
	padding: 8px 8px 8px 14px;
	border-radius: 25px;
	outline: none;
	border: 1px solid gray;
	font-family: 'Avenir', Arial, Helvetica, sans-serif;
}
.search-bar input::-webkit-search-cancel-button {
	position: relative;
	top: 0.5px;
	left: 1px;
	color: #ddd;
	appearance: none;
	-webkit-appearance: none;
	height: 14px;
	width: 14px;
	background-image: url('/images/search-x.png');
	background-size: 14px;
	display: block;
}
.search-bar span, .search-bar button {
	display: inline-block;
	padding: 0;
	background-color: rgba(0,0,0,0);
	color: #aaa;
	width: 28px;
	height: 32px;
	font-size: 18px;
	outline: none;
	border: none;
	cursor: pointer;
	position: relative;
	top: 1px;
}
.search-bar span {
	margin: 4px auto;
}
.search-bar button:hover {
	opacity: 0.7;
}
.search-bar span:focus button {
	outline: var(--tab-outline-style);
}
.search-bar button.selected {
	color: var(--col-theme-accent);
}

body .flex div.project-card.id-result, body .flex a.user-card.id-result {
	background-color: #add8e64f;
}

@media only screen and (max-width: 480px) {
	.proj-search-div {
		padding-right: calc(100% - 46px);
		width: 100%;
		z-index: 11;
	}
	div#menu-btn {					
		position: fixed;
		top: 0!important;
		right: 0;
		width: 42px;
		z-index: 11;
		color: #aaa;
		font-size: 20px;
		padding-top: 1.4px;
		display: flex!important;
		justify-content: center;
		align-items: center;
		height: 50px;
		background-color: var(--col-bg-toolbar);
		cursor: pointer;
	}
	#menu-btn:hover {
		opacity: 0.7;
	}
	.search-bar {									
		top: 0!important;
		width: calc(100% - 78px);
		z-index: 12;
	}
	.topnav.fixed {
		position: fixed;
		z-index: 10;
		left: unset;
		top: 51px;
		right: 0;
		width: 190px;
		height: auto;
		min-width: max-content;
		max-height: 0;
		display: block;
		padding: 0 8px 0 12px;
		text-align: right;
		background-color: var(--col-bg-toolbar);
		overflow: auto;
		transition: top 0.5s, width 0.5s, max-height 0.7s, padding 0.5s, border 0.75s;
		border-radius: 0 0 0 16px;
		border: var(--col-low-border);
		border-width: 0 0 0 2px;
	}
	.topnav.fixed.open {				
		max-height: 380px;
		padding: 4px 8px 8px 12px;
		border-bottom-width: 2px;
	}
	.topnav.fixed > a {									
		display: block;
		width: calc(100% + 6px);
	}
	.topnav.fixed button {
		height: auto;
		padding: 1px 6px;
		font-size: 18px;
		border-top: 4px solid transparent;
		border-bottom: 4px solid transparent;
		scroll-margin: 150px;
		text-transform: initial;
	}
}


/* Badges */
.info div[badge] {
    display: inline-block;
    width: 16px;
    height: 17px;
    line-height: 16px;
	background-repeat: no-repeat; 
	background-size: 16px 16px;
	vertical-align:text-bottom;
	flex-shrink: 0;
}
div > div[badge], table div[badge] {
	display: inline-block;
	width: 64px;
	height: 64px;
	line-height: 12px;
	background-repeat: no-repeat; 
	background-size: contain;
	vertical-align: text-bottom;
}
div[badge='1'] {
	background-image: url('../images/web-badges/top-planter.svg');
}

/* Embedded Player */
div#embed-container {
	display: block;
	position: fixed;
	width: 100vw;
	height: 100%;
	left: 0;
	bottom: -105%;
	transition: bottom 0.5s;
	z-index: 100;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
iframe#project-player {
	position: absolute;
	display: block;
	width: 100vw;
	height: 100%;
	border: none;
	top: 0;
	left: 0;
	z-index: 1;
	background-color: var(--col-bg-main);
}
#embed-container button {
	position: absolute;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	padding: 0;
	top: 4px; left: 4px;
	margin: 2px;
	z-index: 2;
	border: none;
	outline: none;
	background-color: rgba(0,0,0,0.54);
	cursor: pointer;
}

/* Animations */
@keyframes slide-in {
	0% {transform:translateY(18px);opacity:0;}
	100% {transform:translateY(0);opacity:1;}
}
@keyframes fade-in {
	0% {opacity:0;}
	100% {opacity:var(--img-opacity);}
}
@keyframes scale-in {
	0% {transform: scale(0)}
	60% {transform: scale(1.2)}
	100% {transform: scale(1)}
}

/* Print Styles */
@media print {
    .project-card img[hidden] {
		height: 300px;
		position: absolute;
        display: inline-block;
    }
    .proj-search-div, .search-bar {
        display: none;
    }
    body .topnav, body .topSticky {
        left: 0;
        width: 100%;
		margin: 0;
        position: relative;
    }
    body {
        margin: 0;
        --col-bg-main: #F8F8F8;
        --col-bg-toolbar: white;
        --col-low-border: 1px solid #ddd;
        --col-label-text: black;
        --img-opacity: 1;
    }
	body > br {
		display: none;
	}
	.xray-contents {
		display: none;
	}
}