/* Base styles */
html {
	height: 100%;
	font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;
}

body {
	display: grid;
	place-items: center;
	height: 100%;
	margin: 0;
	font-size: 16px;
	color: #1F1F1F;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: #44749f;
	background: radial-gradient(#8bbeec, #44749f);
}

body::before {
	content: '';
	z-index: -1;
	position: fixed;
	width: 100%;
	height: 100%;
	opacity: 0.3;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.23'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2 {
	font-weight: 600;
	line-height: 1;
	margin: 0;
	margin-bottom: 1rem;
}

h1 {
	color: #FFFFFF;
	font-size: 2.25rem;
	text-shadow: 0 2px rgba(0,0,0,.04);
	margin-bottom: 3rem;
}

h2 {
	font-size: 1.25rem;
}

p:first-of-type {
	margin-top: 0;
}

p:last-of-type {
	margin-bottom: 0;
}

a {
	text-decoration: none;
	color: #44749f;
}

/* Containers */
#hero {
	display: grid;
	place-items: center;
	max-width: 64rem;
	width: 100%;
}

.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 16rem;
	height: 100%;
}

/* Buttons */
button, .card .menu .menu-item a {
	font-family: inherit;
	transition: all 150ms ease-out;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}
button:disabled {
	cursor: not-allowed;
}
button.button:active, button:active, button.button.theme:active {
	transform: translateY(4px) scale(0.98);
}

button.button.theme {
	padding: 0.5rem 1rem;
	color: #FFFFFF;
	font-weight: 600;
	border: 1px solid rgba(0,0,0,0.13);
	border-radius: 6px;
	background-color: rgba(0,0,0,.2);
}
button.button.theme:hover {
	background-color: rgba(0,0,0,.4);
}

footer.active {
	transform: none;
	opacity: 1;
}
footer {
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	transition: all 300ms cubic-bezier(0.32, 0, 0.3, 1.2);
	transform: translateY(100%);
	transform-origin: bottom;
	opacity: 0;
}

button.upvote, .card .menu .menu-item button, .card .menu .menu-item a {
	background-color: transparent;
	border: none;
	box-shadow: none;
	color: #BBBBBB;
	font-size: 14px;
	font-weight: 500;
}
button.upvote:hover, .card .menu .menu-item button:hover, .card .menu .menu-item a:hover {
	color: #44749f;
}
button.upvote.upvoted {
	color: #44749f!important;
}

button > svg, a > svg {
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 0.375rem;
}

.icon-sm {
	width: 18px;
	height: 18px;
}

/* Lists */
.menu, .menu.menu-horizontal, .avatars {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu.menu-horizontal {
	display: flex;
}

.avatars {
	gap: 0.25rem;
	flex-direction: row-reverse;
}
.avatars > li {
	height: 24px;
	width: 24px;
}

.avatars > li img {
	border-radius: 2px;
	transition: transform 100ms ease-out;
}
.avatars > li:hover img {
	transform: scale(1.4);
	cursor: pointer;
}

/* Cards */
.card {
	display: flex;
	gap: 1rem;
	width: 100%;
	transition: all 300ms cubic-bezier(0.32, 0, 0.3, 1.2);
	transform: translateY(70%) scale(0.8);
	transform-origin: bottom;
	opacity: 0;
}
.card .avatar {
	position: sticky;
	top: 1rem;
	z-index: 1;
	width: 64px;
	height: 64px;
	padding: 4px;
	background-color: rgba(0,0,0,0.2);
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
	border-radius: 2px;
}

.card .content {
	position: relative;
	width: 100%;
	padding: 1rem;
	background-color: #FFFFFF;
	border-radius: 6px;
	box-shadow: 0px 1px 2px rgba(0,0,0,.2), 0px 2px 4px rgba(0,0,0,.18);
}

.card .author {
	margin-bottom: 1rem;
	color: #AAAAAA;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.avatar-sm {
	display: none;
}

.arrow-right::before {
	content: "";
	position: absolute;
	top: 30px;
	right: -22px;
	display: block;
	width: 12px;
	height: 12px;
	background-color: #ffffff;
	transform: rotate(45deg);
	box-shadow: 0px 1px 2px rgba(0,0,0,.2), 0px 2px 4px rgba(0,0,0,.18);
	clip-path: inset(0px 0px -11px -12px);
}

/* Effects */
#early {
	pointer-events: none;
	transition: opacity 200ms cubic-bezier(0.3, 0, 0.3, 1.5);
	opacity: 0;
}

.bounce {
	animation: bounce 1000ms infinite;
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(-25%);
		animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
	}
	50% {
		transform: translateY(0);
		animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
	}
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.card.active, #early.active {
	pointer-events: auto;
	transform: none;
	opacity: 1;
}

/* Themes */

body.mocha button.upvote.upvoted {
	color: #221d15!important;
}

body.mocha {
	background: none;
	background-color: #eadfd1;
}

body.mocha::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23000000' fill-opacity='0.2' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

body.mocha, body.mocha h1, body.mocha h2 {
	font-weight: 100;
	font-family: georgia;
	color: #221d15;
}

body.mocha .avatar, body.mocha .avatar img, body.mocha .avatars img {
	border-radius: 9999px;
	flex-shrink: 0;
	overflow: hidden;
}

body.mocha .avatars > li {
	margin-left: -8px;
}

body.hotchpotch {
	background: linear-gradient(90deg, rgba(255,0,0,1) 0%, rgba(255,154,0,1) 10%, rgba(208,222,33,1) 20%, rgba(79,220,74,1) 30%, rgba(63,218,216,1) 40%, rgba(47,201,226,1) 50%, rgba(28,127,238,1) 60%, rgba(95,21,242,1) 70%, rgba(186,12,248,1) 80%, rgba(251,7,217,1) 90%, rgba(255,0,0,1) 100%);
	font-family: "comic sans ms";
}

body.hotchpotch button.upvote.upvoted {
	color: rgba(208,222,33,1)!important;
}


body.hotchpotch::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28' width='56' height='28'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M56 26v2h-7.75c2.3-1.27 4.94-2 7.75-2zm-26 2a2 2 0 1 0-4 0h-4.09A25.98 25.98 0 0 0 0 16v-2c.67 0 1.34.02 2 .07V14a2 2 0 0 0-2-2v-2a4 4 0 0 1 3.98 3.6 28.09 28.09 0 0 1 2.8-3.86A8 8 0 0 0 0 6V4a9.99 9.99 0 0 1 8.17 4.23c.94-.95 1.96-1.83 3.03-2.63A13.98 13.98 0 0 0 0 0h7.75c2 1.1 3.73 2.63 5.1 4.45 1.12-.72 2.3-1.37 3.53-1.93A20.1 20.1 0 0 0 14.28 0h2.7c.45.56.88 1.14 1.29 1.74 1.3-.48 2.63-.87 4-1.15-.11-.2-.23-.4-.36-.59H26v.07a28.4 28.4 0 0 1 4 0V0h4.09l-.37.59c1.38.28 2.72.67 4.01 1.15.4-.6.84-1.18 1.3-1.74h2.69a20.1 20.1 0 0 0-2.1 2.52c1.23.56 2.41 1.2 3.54 1.93A16.08 16.08 0 0 1 48.25 0H56c-4.58 0-8.65 2.2-11.2 5.6 1.07.8 2.09 1.68 3.03 2.63A9.99 9.99 0 0 1 56 4v2a8 8 0 0 0-6.77 3.74c1.03 1.2 1.97 2.5 2.79 3.86A4 4 0 0 1 56 10v2a2 2 0 0 0-2 2.07 28.4 28.4 0 0 1 2-.07v2c-9.2 0-17.3 4.78-21.91 12H30zM7.75 28H0v-2c2.81 0 5.46.73 7.75 2zM56 20v2c-5.6 0-10.65 2.3-14.28 6h-2.7c4.04-4.89 10.15-8 16.98-8zm-39.03 8h-2.69C10.65 24.3 5.6 22 0 22v-2c6.83 0 12.94 3.11 16.97 8zm15.01-.4a28.09 28.09 0 0 1 2.8-3.86 8 8 0 0 0-13.55 0c1.03 1.2 1.97 2.5 2.79 3.86a4 4 0 0 1 7.96 0zm14.29-11.86c1.3-.48 2.63-.87 4-1.15a25.99 25.99 0 0 0-44.55 0c1.38.28 2.72.67 4.01 1.15a21.98 21.98 0 0 1 36.54 0zm-5.43 2.71c1.13-.72 2.3-1.37 3.54-1.93a19.98 19.98 0 0 0-32.76 0c1.23.56 2.41 1.2 3.54 1.93a15.98 15.98 0 0 1 25.68 0zm-4.67 3.78c.94-.95 1.96-1.83 3.03-2.63a13.98 13.98 0 0 0-22.4 0c1.07.8 2.09 1.68 3.03 2.63a9.99 9.99 0 0 1 16.34 0z'%3E%3C/path%3E%3C/svg%3E");
}

body.zen {
	color: #393424;
	background: none;
	background-color: #FEFADC;
	font-family: Palatino;
}

body.zen::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%23393424' fill-opacity='0.06'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body.zen button.upvote.upvoted {
	color: #393424!important;
}

body.zen .avatar-sm, body.peach .avatar-sm {
	display: inline-block;
}

body.peach .avatar-sm {
	border-radius: 2px;
}

body.zen .avatars img {
	border-radius: 0;
}

body.zen .avatars {
	opacity: 0.4;
}

body.zen .avatars:hover {
	opacity: 1;
}

body.zen .logo {
	color: #393424;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: .25rem;
}

body.zen .card .content {
	background-color: rgba(255,255,255,0.7);
	border-radius: 0px;
	box-shadow: none;
	border: 1px solid #393424;
}

body.zen .card .author > small, body.peach .card .author > small {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

body.zen .card .avatar, body.peach .card .avatar {
	display: none;
}

body.zen .card .arrow-right::before, body.peach .card .arrow-right::before {
	display: none;
}

body.bitter-sweet {
	background: none;
	background-color: #FE5F56;
	font-family: Palatino;
}

body.bitter-sweet::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='44' viewBox='0 0 34 44'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath fill-rule='evenodd' d='M1 6.2C.72 5.55.38 4.94 0 4.36v13.28c.38-.58.72-1.2 1-1.84A12.04 12.04 0 0 0 7.2 22 12.04 12.04 0 0 0 1 28.2c-.28-.65-.62-1.26-1-1.84v13.28c.38-.58.72-1.2 1-1.84A12.04 12.04 0 0 0 7.2 44h21.6a12.05 12.05 0 0 0 5.2-4.36V26.36A12.05 12.05 0 0 0 28.8 22a12.05 12.05 0 0 0 5.2-4.36V4.36A12.05 12.05 0 0 0 28.8 0H7.2A12.04 12.04 0 0 0 1 6.2zM17.36 23H12a10 10 0 1 0 0 20h5.36a11.99 11.99 0 0 1 0-20zm1.28-2H24a10 10 0 1 0 0-20h-5.36a11.99 11.99 0 0 1 0 20zM12 1a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-3.46-2a2 2 0 1 0-3.47 2 2 2 0 0 0 3.47-2zm0-4a2 2 0 1 0-3.47-2 2 2 0 0 0 3.47 2zM12 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.46 2a2 2 0 1 0 3.47-2 2 2 0 0 0-3.47 2zm0 4a2 2 0 1 0 3.47 2 2 2 0 0 0-3.47-2zM24 43a10 10 0 1 0 0-20 10 10 0 0 0 0 20zm0-14a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm3.46 2a2 2 0 1 0 3.47-2 2 2 0 0 0-3.47 2zm0 4a2 2 0 1 0 3.47 2 2 2 0 0 0-3.47-2zM24 37a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-3.46-2a2 2 0 1 0-3.47 2 2 2 0 0 0 3.47-2zm0-4a2 2 0 1 0-3.47-2 2 2 0 0 0 3.47 2z'/%3E%3C/g%3E%3C/svg%3E");
}

body.bitter-sweet button.upvote.upvoted {
	color: #FE5F56!important;
}

body.terminal {
	background: none;
	background-color: #000000;
	color: limegreen;
	font-weight: 400;
	font-family: Courier;
}

body.terminal::before {
	background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='limegreen' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

body.terminal button.upvote.upvoted {
	color: limegreen!important;
}

body.terminal .logo::after {
	content: '_';
	animation: pulse 900ms cubic-bezier(1, 0, 0.2, 1) infinite;
}

body.peach {
	color: #77656c;
	background: none;
	background-color: #fffafc;
	font-family: monospace;
}

body.peach::before {
	background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23953257' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

body.peach button.upvote.upvoted {
	color: #77656c!important;
}

body.peach a {
	color: #953257;
}

body.peach .logo {
	color: #953257;
}

body.peach .avatar, body.peach .avatars img {
	border-radius: 4px;
	flex-shrink: 0;
	overflow: hidden;
}

body.peach .avatar, body.peach .card .content {
	background-color: rgb(255, 255, 255);
	border: 1px solid #eee;
	box-shadow: none;
}

body.peach .avatar {
	padding: 0;
}

body.peach .avatar img, body.peach .avatar-sm {
	border-radius: 4px;
}

@media (max-width: 1024px) {
	.avatar, .avatars, .bump, .save {
		display: none;
	}
	.avatar-sm {
		display: inline-block;
	}
	.author > small {
		display: flex block;
		align-items: center;
		gap: 0.5rem;
	}
	.card .content {
		padding: 0.75rem;
		border-radius: 0;
	}
	.menu.menu-horizontal {
		gap: 0.75rem;
	}
	body.zen .card .content, body.peach .card .content {
		border-left: 0;
		border-right: 0;
	}
}