*, *::before, *::after {
	box-sizing: border-box;
	justify-content: center;
	margin: 0;
}

p {
	text-align: justify;
}

pre {
	white-space: pre-line;
	font-family: unset;
}

ul {
	padding: 0;
	list-style-type: none;

	li::before {
		content: "—";
  	margin-right: 5px;
	}
}

audio {
	margin-block: 6px;

	&::-webkit-media-controls-panel {
		background-color: #55555555;
	}
}

hr {
	height: 1px;
	border: 0;
	margin-block: 0.5em;
	background-color: black;
}

p, h1, h2, h3, h4, h5, h6, pre {
	padding-block: 6px;

	&:first-child {
		padding-top: 0;
	}

	&:last-child {
		padding-bottom: 0;
	}
}

h1, h2 {
	font-size: min(3rem, 8dvw);
}

h3 {
	font-size: 1.5em;;
}

h5 {
	font-weight: normal;
}

body {
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: min(1200px, 90%);
	margin: auto;
	font-family: "Roboto Condensed", sans-serif;
	background-image: url("/uploads/background.png");
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
}

header, footer {
	display: flex;
	padding-block: 35px;
	text-wrap: nowrap;
	gap: 20px;
}

header {
	nav {
		width: 100%;

		a:first-child {
			margin-right: auto;
		}
	}
}

nav {
	display: flex;
	gap: 20px;
	border-radius: 10px;
	align-items: center;
	user-select: none;

	a {
		display: flex;
		height: 2.4em;
		padding: 10px;
		border-radius: 10px;
		align-items: center;
		gap: 5px;
		color: black;
		text-decoration: initial;
		background-color: white;
		box-shadow: 0 0 10px #00000080;
		transition: scale .5s ease;

		&:hover {
			scale: 1.05;
		}

		i {
			margin-right: 4px;
		}
	}
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: white;
	flex-grow: 1;

	> h1 {
		text-shadow: 0 0 10px #00000080;
	}

	nav {
		justify-content: flex-start;
		margin-block: 10px;
		gap: 8px;

		a {
			background-color: #555555;
			box-shadow: none;
			color: white;
		}
	}
}

section {
	width: 100%;
	border-radius: 10px;
	display: flex;
	color: black;
	flex-direction: column;
	padding-bottom: 40px;
	background-color: white;
	box-shadow: 0 0 10px #00000080;
	overflow: hidden;

	&:not(:first-child) {
		margin-top: 35px;
	}

	:last-child {
		margin-bottom: 0;
	}

	> *:not(.banner) {
		margin-inline: 40px;
	}

	&:not(:has(.banner)) {
		padding-top: 40px;
	}
}

.banner {
  display: flex;
	width: 100%;
	padding-bottom: 20px;

	img {
		min-width: 500px;
		user-select: none;
		pointer-events: none;
	}
}

.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
	padding-block: 20px;

	img {
		max-width: 65%;
		max-height: 500px;
	}
}

.section-menu {
	margin-block: 20px;
}

.episode {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-block: 20px;
}

.thumbnail {
	width: 250px;
	border-radius: 10px;
}

@media only screen and (max-width: 700px) {
	header, footer {
		nav, a {
			width: 100%;

			span {
				display: none;
			}
		}
	}

	.section-menu {
		justify-content: center;
	}

	.episode {
		flex-direction: column;
	}
}