@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playwrite+CZ:wght@100..400&display=swap');

:root {
	--base-color: #CA1C5D;
	--transparent-color: color-mix(in srgb, var(--base-color) 85%, transparent);
	--font-color: color-mix(in srgb, var(--base-color) 2%, white);
	--base-value: 8;
	--small-margin: calc(var(--base-value) * 1px);
	--standard-margin: calc(var(--base-value) * 2px);
	--big-margin: calc(var(--base-value) * 4px);
}

* {
	padding: 0;
	margin: 0;
}

body {
	background-image: url('/lib/img/hearts_background1.png');
	background-repeat: repeat;
	background-size: 350px;
}

body, #content, #poems {
	width: 100%;
	height: 100%;
}

body {
	min-width: 100vw;
	min-height: 100vh;
}

#poems {
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	align-items: flex-start;
	/*align-items: center;*/
	flex-wrap: wrap;
	overflow: auto;
}

.poem {
	margin: var(--standard-margin);
	padding: var(--big-margin);
	background: var(--transparent-color);
	border-radius: var(--standard-margin);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid var(--base-color);
	white-space: break-spaces;
	color: var(--font-color);
}

.poem_title {
	padding-bottom: var(--standard-margin);
	text-align: center;
	font-family: "Playwrite CZ", cursive;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 20pt;
}

.poem_text {
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 12pt;
}

#made {
	font-family: "Playwrite CZ", cursive;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 12pt;
	color: var(--font-color);
	background-color: var(--base-color);
	position: fixed;
	top: 100dvh;
	left: 0;
	width: 100dvw;
	transform: translateY(-100%);
}

/* For mobile devices */
@media screen and (max-width: 900px) {
	#poems {
		scroll-snap-type: both mandatory;
		overscroll-behavior-x: contain;
		max-width: 100dvw;
		max-height: 100dvh;
		flex-wrap: wrap-reverse;
		padding-bottom: var(--big-margin);
		box-sizing: border-box;
	}

	.poem {
		width: calc(100% - var(--big-margin));
		box-sizing: border-box;
		scroll-snap-align: start center;
		scroll-snap-stop: normal;
		scroll-margin-top: var(--big-margin);
	}
}

