@font-face {
    font-family: Elegant Typewriter;
    src: url(https://files.catbox.moe/7xnlsp.ttf);
}
@font-face {
    font-family: Elegant Typewriter;
    src: url(https://files.catbox.moe/7r8hse.ttf);
    font-weight: bold;
}

@font-face {
    font-family: Badly Stamped;
    src: url(https://files.catbox.moe/s3z99w.ttf);
}

body {
	background-image: url(assets/backgrounds/bricks.jpg);
	font-family: Elegant Typewriter, Lucida Sans Typewriter, Courier New, monospaced;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;
}

#layout {
	width: 100%;	
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1em;
}

header {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.2em;
	width: 100%;
}

h1 {
	margin: 0px;
	font-size: 2.2em;
	background-image: url(assets/backgrounds/quilt_purple.gif);
	background-size: 40px;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1.5px black;
	font-family: Badly Stamped;
	letter-spacing: -1.5px;
	display:inline-block;
    -webkit-transform:scale(1,1.4);
}

h1:hover {
	transition-duration: 0.3s;
	-webkit-transform:scale(1.05,1);
	background-image: url(assets/backgrounds/quilt_green.gif);
}

main {
	background-image: url(assets/backgrounds/shelf.png);
	aspect-ratio: 500 / 374;
	background-size: cover;
	border-radius: 30px;
	background-color: black;
	width: 48.5%;
	padding: 17px;
	position: relative;
	filter: drop-shadow(2px 2px 3px black);
}

.button-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	background-color: grey;
	background-image: url(assets/backgrounds/quilt_green.gif);
	background-size: 40px;
	border-radius: 10px;
	filter: drop-shadow(2px 2px 3px black);
}

.btn {
	cursor: pointer;
	border-radius: 10px;
	padding: 5px 7px;
	font-size: 1.1em;
	font-family: Elegant Typewriter, Lucida Sans Typewriter, Courier New, monospaced;
	filter: drop-shadow(2px 2px 2px black);
}

.btn:hover {
	transform: scale(1.2);
	transition-duration: 0.15s;
}

.shelf-item {
	position: absolute;
}

.shelf-item img {
	width: 100%;
}

.shelf-item .title {
	display: none;	
	position: absolute;
	bottom: 88%;
	left: -30%;
	background-color: black;
	color: white;
	padding: 0.75em;
	border-radius: 0.35em;
	font-size: 0.9em;
	margin: 0;
}

.shelf-item:hover .title {
	opacity: 100%;
	display: block;
	transition-duration: 0.25s;
	z-index: 3;
}

.shelf-item:hover {
	transition-duration: 0.17s;
	transform: scale(1.1);
}


.filterDiv {
	display: none;
}

.show {
  display: block;
}

@media only screen and (max-width: 800px) {
	.layout {
		width: 80%;
		margin-top: 70px;
	}
	
	header {
		flex-direction: column;
		justify-content: center;
		width: 90%;
		margin-top: 20px;
	}
	
	.button-container {
		padding: 0.5em;
	}
	
	h1 {
		margin-top: 10vh;
		margin-bottom: 2.5vh;
	}
	
	main {
		width: 92%;
	}
}