@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap");

* {
	border: 0;
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	margin: 0;
	padding: 0;
}

:root {
	--backgroundColor: #fefefe;
	--boxShadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	--boxShadowBorderColor: rgba(223, 225, 229, 0);
	--borderColor: #dfe1e5;
	--entityH1Color: #fff;
	--entityH1BackgroundColor: #222;
	--entityLabelColor: #666;
	--bookmarkBackground: #4caf50;
	--bookmarkColor: #fff;
	--bookmarkDropShadow: 0 1px 1px rgba(0, 0, 0, .25);
	--bookmarkDropShadow: 0 1px 0 rgba(0, 0, 0, .25);
}

body {
	background-color: #fefefe;
	background-color: var(--backgroundColor);
	height: 100%;
	width: 100%;
	overflow-x: hidden;
}

#search {
	margin: 50px auto 30px;
	position: relative;
	width: 100%;
	max-width: 700px;
}
#search a {
	background-color: #4caf50;
	background-color: var(--bookmarkBackground);
	border-radius: 2px;
	color: #fff;
	color: var(--bookmarkColor);
	font-size: 10px;
	height: 23px;
	letter-spacing: -.25px;
	opacity: 0;
	padding: 4px 10px 5px;
	position: absolute;
	right: 50px;
	text-decoration: none;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	text-shadow: var(--bookmarkDropShadow);
	top: 50px;
	transition:
		.3s background-color ease-in-out,
		.3s opacity ease-in-out,
		.5s top cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transition-delay: .5s;
	width: 88px;
}
#search a.show {
	transition-delay: 0s;
}
#search a.show:hover {
	background-color: #039be5;
	transition-delay: 0s;
}
#search a::before {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmMxMDciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgLjU4N2wzLjY2OCA3LjU2OCA4LjMzMiAxLjE1MS02LjA2NCA1LjgyOCAxLjQ4IDguMjc5LTcuNDE2LTMuOTY3LTcuNDE3IDMuOTY3IDEuNDgxLTguMjc5LTYuMDY0LTUuODI4IDguMzMyLTEuMTUxeiIvPjwvc3ZnPg==);
	background-position: 5px;
	background-repeat: no-repeat;
	background-size: 13px;
	content: "";
	filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
	filter: drop-shadow(var(--bookmarkDropShadow));
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
#search a::after {
	content: "Bookmarklet";
	height: 100%;
	padding-left: 12px;
	position: absolute;
	width: 100%;
}
#search a label {
	display: none;
}
#search a.show {
	opacity: 1;
	top: 16px;
}
#search.fixed a {
	display: none;
}
#search h1 {
	cursor: default;
	font-size: 40px;
	letter-spacing: -2px;
	margin: 0 0 20px;
	text-align: center;
	user-select: none;
}
#search h1 span {
	font-weight: 800;
}
#search h1 span:nth-child(1) {
	color: #f44336;
}
#search h1 span:nth-child(2) {
	color: #2196f3;
}
#search h1 span:nth-child(3) {
	color: #ffc107;
}
#search h1 span:nth-child(4) {
	color: #4caf50;
}
#search h1 label {
	background: #222;
	background: var(--entityH1BackgroundColor);
	bottom: 7px;
	color: #fff;
	color: var(--entityH1Color);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	padding: 5px 10px 7px;
	position: relative;
}
#search input[type=text] {
	background: #fff;
	background: var(--backgroundColor);
	border: 1px solid #dfe1e5;
	border: 1px solid var(--borderColor);
	border-radius: 20px;
	color: #222;
	height: 40px;
	padding: 15px;
	width: 100%;
}
#search input[type=button] {
	background: #fff;
	background: var(--backgroundColor);
	border-radius: 50%;
	color: #666;
	color: var(--entityLabelColor);
	font-size: 20px;
	height: 30px;
	line-height: 0;
	outline: none;
	padding-bottom: 2px;
	position: absolute;
	right: 5px;
	text-align: center;
	top: 80px;
	transition: .3s box-shadow ease-in-out;
	width: 30px;
	z-index: 2;
}
#search input[type=button]:active,
#search input[type=button]:hover {
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
}
#search.fixed {
	background: #fff;
	background: var(--backgroundColor);
	border-bottom: 1px solid #dfe1e5;
	border-bottom: 1px solid var(--borderColor);
	height: 81px;
	margin: 0;
	padding: 20px;
	position: fixed;
	transition: .3s padding-left ease-in-out;
    max-width: 100%;
    z-index: 3;
}
#search.fixed h1 {
	cursor: pointer;
	float: left;
	font-size: 26px;
	letter-spacing: 0;
	margin: 2px 10px 0 0;
	text-align: center;
	width: 183px;
}
#search.fixed h1 label {
	bottom: 4px;
	font-size: 16px;
	padding: 5px;
}
#search.fixed h1 span,
#search.fixed h1 label {
	pointer-events: none;
}
#search.fixed input[type=text] {
	width: calc(100% - 200px);
}
#search.fixed input[type=button] {
	right: 33px;
	top: 25px;
}

#search input[type=text]:active,
#search input[type=text]:focus,
#search input[type=text]:hover,
#entities .entity:hover {
	border-color: rgba(223, 225, 229, 0);
	border-color: var(--boxShadowBorderColor);
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	outline: none;
	position: relative;
	transition:
		.3s border-color ease-in-out,
		.3s box-shadow ease-in-out;
	z-index: 2;
}

#radioButtons {
	margin: 0 auto 30px;
	text-align: center;
	width: 100%;
	max-width: 700px;
}
.copyLabel {
	background: #2196f3;
	border-radius: 20px;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 5px 10px;
	text-transform: uppercase;
}
#radioButtons label {
	color: #666;
	color: var(--entityLabelColor);
	cursor: pointer;
	font-size: 12px;
	margin: 0 15px;
	padding-left: 20px;
	position: relative;
	text-transform: uppercase;
}
#radioButtons label:last-of-type {
	margin: 0;
}
#radioButtons label input:checked ~ .radioButton {
	background: #ff4081;
	border: 0;
}  
#radioButtons label input:checked ~ .radioButton::after,  
#radioButtons label:hover .radioButton::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	content: "";
	height: 13px;
	left: 6px;
	position: absolute;
	top: 6px;
	width: 13px;
}
#radioButtons label:hover .radioButton::after {
	background: #ff4081;
	left: 5px;
	top: 5px;
}
#radioButtons input[type=radio] {
	opacity: 0;
}
#radioButtons .radioButton {
	background-color: #fefefe;
	background-color: var(--backgroundColor);
	border: 1px solid #fefefe;
	border: 1px solid var(--borderColor);
	border-radius: 50%;
	height: 25px;
	left: 0;
	position: absolute;
	top: -4px;
	width: 25px;
}

#toCopySelect {
	display: none;
	margin: 0 auto 15px;
	text-align: center;
	width: 100%;
	max-width: 170px;
	max-width: 300px;
}
#toCopySelect select {
	background: #fefefe;
	background: var(--backgroundColor);
	border: 1px solid var(--borderColor);
	border-radius: 2px;
	color: var(--entityLabelColor);
	font-size: 10px;
	padding: 6px;
	text-transform: uppercase;
	width: calc(100% - 55px);
}

#entities {
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	margin: 0 auto 50px;
	position: relative;
	width: 100%;
	max-width: 1440px;
}
#entities .entity {
	--hw: 150px;
	background: #fefefe;
	background: var(--backgroundColor);
	border: 1px solid #dfe1e5;
	border: 1px solid var(--borderColor);
	border-radius: 2px;
	flex: 0 0 var(--hw);
	height: var(--hw);
	margin: 5px;
	position: relative;
	text-align: center;
	width: var(--hw);
}
#entities .entity:hover {
	cursor: pointer;
}
#entities .entity.hide {
	display: none;
}
#entities .entity h1 {
	background: #222;
	background: var(--entityH1BackgroundColor);
	border-radius: 2px;
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	color: #fff;
	color: var(--entityH1Color);
	font-size: 30px;
	font-weight: 400;
	height: 60px;
	width: 60px;
}
#entities .entity label {
	color: #666;
	color: var(--entityLabelColor);
	display: block;
	font-size: 11px;
	overflow: hidden;
	margin: 15px auto 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	max-width: 110px;
}
#entities .entity h1,
#entities .entity label {
	pointer-events: none;
}
#entities .nothingFound {
	color: #666;
    color: var(--entityLabelColor);
	margin: auto;
    font-size: 16px;
    font-weight: 400;
}
#entities .nothingFound label {
	display: block;
    font-size: 50px;
    font-weight: normal;
    line-height: 0;
	margin: 20px 0;
	padding: 20px 0 0px;
    text-align: center;
}

#notification {
	bottom: 60px;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: .3s opacity ease-in-out;
	width: 100%;
	z-index: 4;
}
#notification div {
	background: #039be5;
	border-radius: 2px;
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	color: #fff;
	font-size: 14px;
	height: 40px;
	line-height: 1;
	padding: 5px 15px;
	width:  auto;
}

#scrollToTop {
	background-color: #ff9800;
	border-top-left-radius: 2px;
	border-bottom-left-radius: 2px;
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	bottom: 50px;
	color: #fff;
	cursor: pointer;
	font-size: 50px;
	height: 60px;
	line-height: 1;
	opacity: 0;
	outline: none;
	padding: 0 0 8px;
	pointer-events: none;
	position: fixed;
	right: 0;
	transition:
		.3s background-color ease-in-out,
		.3s opacity ease-in-out;
	width: 60px;
	z-index: 1;
}
#scrollToTop:active,
#scrollToTop:hover {
	background-color: #f44336;
	box-shadow: 0 1px 6px 0 rgba(32, 33, 36, .2);
	box-shadow: var(--boxShadow);
	color: #fff;
}
#scrollToTop.show {
	opacity: 1;
	pointer-events: all;
}

.centerAlign {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.entity.centerAlign {
	visibility: hidden;
}
#notification.fadeInOut {
	opacity: 1;
}

textarea {
	background: transparent;
	height: 1px;
	overflow: hidden;
	width: 1px;
}

@media screen and (max-width: 1460px) {
	#entities {
		max-width: 1280px;
	}
}
@media screen and (max-width: 1300px) {
	#entities {
		max-width: 1120px;
	}
}
@media screen and (max-width: 1140px) {
	#entities {
		max-width: 800px;
	}
}
@media screen and (max-width: 1020px) {
	#search a {
		display: none;
	}
}
@media screen and (max-width: 830px) {
	#search {
		max-width: 540px;
	}
	#entities {
		max-width: 640px;
	}
}
@media screen and (max-width: 670px) {
	#search {
		margin-bottom: 15px;
		max-width: 400px;
	}
	#search.fixed {
		margin: 0;
		top: 0;
	}
	#radioButtons {
		display: none;
	}
	#toCopySelect {
		display: block;
		margin-bottom: 10px;
	}
	#entities {
		max-width: 480px;
	}
	#radioButtons .copyLabel {
		display: block;
		font-size: 9px;
		margin: 0 auto 5px;
		width: 50px;
	}
	#radioButtons label {
		display: inline-block;
		font-size: 10px;
		margin: 10px 5px 0;
		padding-left: 15px;
	}
	#radioButtons .radioButton {
		border-radius: 50%;
		height: 22px;
		left: 0;
		position: absolute;
		top: -3px;
		width: 22px;
	}
	#radioButtons label input:checked ~ .radioButton::after, #radioButtons label:hover .radioButton::after {
		height: 10px;
		width: 10px;
	}
}

@media screen and (max-width: 500px) {
	#search {
		max-width: 350px;
	}
	#search h1 {
		font-size: 30px;
	}
	#search h1 label {
		bottom: 4px;
		font-size: 18px;
		font-weight: 600;
		padding: 3px 6px 4px;
	}
	#search input[type=button] {
		top: 66px;
	}
	#search.fixed {
		height: 61px;
		padding: 0;
	}
	#search.fixed h1 {
		font-size: 18px;
		margin: 18px 10px 0;
		width: 130px;
	}
	#search.fixed h1 label {
		bottom: 2px;
		font-size: 12px;
		padding: 3px 5px;
	}
	#search.fixed input[type=text] {
		margin-top: 10px;
		width: calc(100% - 165px);
	}
	#search.fixed input[type=button] {
		right: 21px;
    	top: 15px;
	}
	#toCopySelect {
		margin-bottom: 16px;
		max-width: 280px;
	}
	#toCopySelect .copyLabel {
		margin-right: 10px;
	}
	#toCopySelect select {
		width: calc(100% - 65px);
	}
	#entities {
		max-width: 401px;
	}
	#entities .entity {
		--hw: 100px;
		border-radius: 0;
		margin: -1px 0 0 -1px;
	}
	#entities .entity h1 {
		font-size: 20px;
		height: 40px;
		width: 40px;
	}
	#entities .entity label {
		display: none;
	}
	#entities .nothingFound {
		font-size: 12px;
	}
	#entities .nothingFound label {
		font-size: 36px;
		margin-bottom: 10px;
	}
	#notification {
		bottom: 0;
	}
	#notification div {
		border-radius: 0;
		padding: 12px 0;
		width: 100%;
	}
	#scrollToTop {
		bottom: 30px;
		font-size: 40px;
		height: 50px;
		padding: 0 0 5px;
		right: 0;
		width: 50px;
	}
}
@media screen and (max-width: 420px) {
	#search {
		max-width: 280px;
	}
	#search.fixed {
		height: 61px;
		padding: 0;
	}
	#search.fixed h1 {
		display: none;
	}
	#search.fixed input[type=text] {
		margin-left: 10px;
		width: calc(100% - 20px);
	}
	#entities {
		max-width: 300px;
	}
}
@media screen and (max-width: 315px) {
	#search {
		max-width: 240px;
	}
	#search h1 {
		font-size: 24px;
	}
	#search input[type=button] {
		top: 58px;
	}
	#entities {
		max-width: 198px;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--backgroundColor: #151515;
		--boxShadow: 0 1px 8px 0 rgba(10, 10, 10, .7);
		--boxShadowBorderColor: rgba(0, 0, 0, 0);
		--borderColor: #0e0c08;
		--entityH1Color: #ccc;
		--entityH1BackgroundColor: #191919;
		--entityLabelColor: #bbb;
		--greyWhite: #ddd;
	}
	.copyLabel {
		color: var(--greyWhite);
	}
	#search h1 label {
		color: var(--entityH1Color);
	}
	#search h1 label,
	#radioButtons .radioButton {
		background-color: var(--borderColor);
	}
	#radioButtons label input:checked ~ .radioButton::after {
		background: var(--greyWhite);
	}
	#search input[type=text],
	#search input[type=button],
	#toCopySelect select {
		color: var(--entityH1Color);
		background-color: var(--borderColor);
	}
	#search input[type=button]:active,
	#search input[type=button]:hover {
		background: var(--backgroundColor);
		box-shadow: none;
	}
	#entities .entity {
		border-color: var(--borderColor);
	}
	#entities .entity h1 {
		background: var(--borderColor);
		box-shadow: 0 1px 4px 0 rgba(10, 10, 10, .6);
	}
	#entities .entity:hover h1 {
		background-color: var(--greyWhite);
		color: var(--borderColor);
		transition: .3s all ease-in-out;
	}
	#entities .entity:hover label {
		color: var(--greyWhite);
		transition: .3s color ease-in-out;
	}
	#scrollToTop {
		background: var(--borderColor);
		color: var(--entityH1Color);
	}
}