@import url("https://fonts.googleapis.com/css?family=Poppins:400,700");

:root {
	--color-hue: 0;
	--color-saturation: 0%;
}

a {
	text-decoration: none;
	color: white;
	z-index: 1;
}

html,
body {
	margin: 0px;
	padding: 0px;
	font-family: "Poppins", serif;
	line-height: 1;
}

::backdrop {
	background: black;
	opacity: 0.7;
}

dialog {
	width: 40vw;
	height: 30vw;
	background-color: #121212;
	border: none;
	border-radius: 30px;
	padding: 2em;
	overflow: hidden;
}

#close {
	float: right;
	cursor: pointer;
	margin: 0.1em;
	width: 2em;
	height: 2em;
}
#close img {
	width: 2em;
	height: 2em;
}

.context {
	width: 100%;
	position: absolute;
	top: 10vh;
	text-align: center;
	color: #fff;
}

.context h1 {
	font-size: 24px;
}
.context h2 {
	font-size: 22px;
}
.context h3 {
	font-size: 20px;
}
.context h4 {
	font-size: 18px;
}
.context h5,
.context h6 {
	font-size: 16px;
}
s {
	text-decoration: line-through 2px;
}

#container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
	grid-gap: 2rem;
	margin: 2rem;
}

#counter {
	margin-left: auto;
	margin-right: auto;
	height: 20px;
	width: 135px;
	z-index: 10;
	position: absolute;
	display: inline-block;
	justify-content: none;
}
#el1 {
	display: inline-block;
	margin: 0;
}
h3 {
	color: white;
	font-size: 24px;
	margin: 20px 0 0 20px;
}
p {
	color: white;
	font-weight: 400;
	font-size: 16px;
	align-self: end;
	margin: 0 0 20px 20px;
	letter-spacing: 0.5px;
}
.circles li img,
.card img {
	position: absolute;
	top: 0;
	height: 110%;
	width: 100%;
	z-index: -1;
	transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	filter: brightness(0.6);
}
.card {
	height: 215px;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
	display: grid;
	grid-template-rows: 1fr 1fr;
	transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
	z-index: 1;
}
.card:hover {
	transform: scale(1.035, 1.035);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.card:hover img {
	transform: translateY(-10px);
}
button {
	display: inline-block;
	border-radius: 4px;
	background-color: var(--search-backgrounds);
	border: none;
	color: #ffffff;
	text-align: center;
	font-size: 17px;
	padding: 16px;
	width: 130px;
	-webkit-transition: all 0.5s;
	transition: all 0.5s;
	cursor: pointer;
	margin: 5px;
}
#search-bar.failedSearch {
	border-color: #f00;
}
button span {
	cursor: pointer;
	display: inline-block;
	position: relative;
	-webkit-transition: 0.5s;
	transition: 0.5s;
}
button span:after {
	position: absolute;
	opacity: 0;
	top: 0;
	right: -15px;
	-webkit-transition: 0.5s;
	transition: 0.5s;
}
button:hover span {
	padding-right: 15px;
	z-index: 5;
}
button:hover span:after {
	opacity: 1;
	right: 0;
	z-index: 5;
}

.small-text {
	font-size: 15px;
	font-family: Arial;
	color: white;
	text-align: center;
}

.dotted {
	color: black;
	border-radius: 10px;
	padding: 1em;
	display: inline-block;
	width: 90%;
}

.pink {
	background: pink;
}

.blue {
	background: #89cff0;
}

.black {
	color: white;
	background: black;
	border-color: white;
	border-style: dashed;
}

.secret {
	opacity: 0;
}
.secret:hover {
	opacity: 30%;
	transition: 0.5s;
}
a.link {
	text-decoration: underline;
	font-family: Arial;
}

#submit-search {
	width: 22px;
	height: 24px;
	margin: -8px -13.5px;
	position: relative;
	left: -27px;
	background-image: url("../images/bitmap/search.png");
}
.search-button {
	padding: 0px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	overflow: hidden;
	outline: none;
	background-size: contain;
	background-repeat: no-repeat;
	transition: 1s;
}
.search-button:hover {
	scale: 120%;
}
#advanced-search {
	position: relative;
	top: 8px;
	margin: 0px 10px;
	width: 24px;
	height: 24px;
	background-image: url("../images/bitmap/drop.png");
}
#advanced-search.active {
	transform: rotate(-180deg);
}
#advanced-menu {
	background-color: color-mix(in hsl, var(--search-border-color), white 10%);
	display: block;
	overflow: hidden;
	width: calc(340px - 2em);
	border: var(--search-border-color) solid;
	text-align: left;
	margin: -15px calc(50% - 165px) 20px auto;
	padding: 0px 2em;
	height: 0px;
	transition: all 1s;
	line-height: normal;
}
#advanced-search.active + #advanced-menu {
	padding: 2em;
	font-weight: bold;
	height: 400px;
	overflow-y: auto;
}
#search-bar {
	width: 22em;
	position: relative;
	padding: 0.6em 1em;
	box-sizing: border-box;
	border-radius: 20px;
	font-size: 1.1em;
	transition: 2s;
}
#tag-search {
	width: calc(80% - 24px);
}
#tag-list {
	display: none;
	top: 5px;
	position: relative;
	width: inherit;
	overflow-wrap: anywhere;
}
#submit-tag {
	display: inline-block;
	aspect-ratio: 1/1;
	justify-content: center;
	height: 29px;
	text-align: center;
	border-color: var(--search-border-color);
	background-color: var(--search-backgrounds);
	cursor: pointer;
}
.text-container {
	width: 100%;
	display: inline-flex;
	margin-top: 0.3em;
}
.text-container input {
	flex: auto;
}
.search-text {
	color: white;
	font-family: "Poppins";
	border: solid;
	border-color: var(--search-border-color);
	background-color: var(--search-backgrounds);
}
.search-text:hover {
	border-color: color-mix(in hsl, var(--search-border-color), white 25%);
	cursor: pointer;
}
.search-text:focus {
	border-color: white;
	outline: none;
	cursor: text;
	background-color: color-mix(in hsl, var(--search-backgrounds), white 10%);
}
.tag-query {
	cursor: url("../images/bitmap/x.png") 8 8, auto;
}
.tag-block {
	padding: 5px;
	display: inline-block;
	background-color: hsl(
		var(--color-hue),
		calc(var(--color-saturation) - 5%),
		13%
	);
	margin: 2px 5px;
	transition: 0.2s all;
}
.tag-block:hover {
	color: orange;
	text-decoration: underline;
}

.tag-query.tag-block:hover {
	color: #f00;
	text-decoration: line-through;
}
.fake-card div {
	background-image: linear-gradient(
		-70deg,
		#3c3c3c,
		#3c3c3c 35%,
		#9f9f9f,
		#3c3c3c 65%
	);
	background-size: 200% 100%;
	animation: 1s linear 1s infinite load;
}
footer {
	line-height: 1.5;
}
@keyframes load {
	from {
		background-position-x: -80%;
		scale: 100%;
	}
	50% {
		scale: 105%;
	}
	to {
		background-position-x: 120%;
		scale: 100%;
	}
}
