:root {
	background: white;
	padding: 80px;
	font-size: 20px;
	line-height: 1.5;
	font-family: MerriweatherSans;
}

body {
	max-width: 800px;
	margin: auto;
}

input, select, textarea, button {
	font-size: inherit;
	font-family: inherit;
	font-weight: normal;
	background: rgba(255, 255, 255, 0.6);
	border: 2px solid white;
	padding: 0.3em;
}

h1,
h2,
h3,
h4 {
	font-family: Pattaya;
	font-weight: normal;
}

main {
	z-index: 1;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	background-color: rgba(255, 255, 255, 0.5);
	padding: 20px;
	border-radius: 20px;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}
form > label {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.switcher {
	display: flex;
	flex-direction: row;
	justify-content: right;
}

.photos {
	z-index: -1;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-auto-flow: column;
}
.photos > .list {
	position: relative;
}
.photos > .list > div {
	position: absolute;
	animation-name: photoflow;
	animation-duration: 40s;
	animation-delay: 1s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.photos > .list > div:hover {
	animation-play-state: paused;
}
.photos > .list > div > img {
	display: block;
	width: 100%;
}

@media only screen and (max-width: 800px) {
	:root {
		padding: 50px 20px 200px;
	}
	.photos > .list:nth-child(3) {
		display: none;
	}
	.switcher {
		flex-direction: column;
	}
}
@keyframes photoflow {
	0% {
		translate: 0;
	}
	50% {
		translate: 0 calc(-100% + 101vh);
	}
	100% {
		translate: 0;
	}
}
@font-face {
	font-family: Pattaya;
	src: url("./Pattaya.woff2") format("woff2");
}
@font-face {
	font-family: MerriweatherSans;
	src: url("./MerriweatherSans-Light.woff2") format("woff2");
}
