@charset "utf-8";

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	margin-top: 5em;
	padding-bottom: 5em;

	min-width: 60vw;
	width: 60vw;
	margin-left: auto;
	margin-right: auto;

	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

header {
	z-index: 1;
	width: calc(100% - 2rem);
	top: 1rem;
	left: 1rem;
	right: 1rem;
	height: 4rem;
	position: fixed;
}

nav {
	height: 100%;
	display: flex;
	justify-content: space-between;
}

.heading {
	margin: 0;
	margin-left: auto;
	margin-right: auto;
	width: auto;
	height: 100%;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.back {
	text-align: left;
	margin-left: 0.5rem;
	height: 100%;
	transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
	transition-property: margin-left;
	display: flex;
	justify-content: center;
	align-items: center;
}

.back .arrow {
	line-height: 100%;
}

.back .text {
	opacity: 1;
	overflow: hidden;
	display: inline;
	text-transform: uppercase;
	transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
	transition-duration: 150ms;
	transition-property: max-height, opacity;
	transition-delay: 0s, 150ms;
}

section {
	padding: 1em;
	margin: 1.5em 0;
}

img, svg {
	width: 40%;
}

.floating {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 4em;
	height: 4em;
	right: 1em;
	bottom: 1em;
}

.themeButton {
	line-height: 100%;
	font-size: 3em;
	cursor: pointer;
}

@media (max-aspect-ratio: 1000/750) {

	body {
		width: 80%;
	}

	img, svg {
		width: 60%;
	}

	nav .back {
		margin-left: 0.2em;
	}

	nav .text {
		opacity: 0;
		max-height: 0;
		transition-delay: 150ms, 0s;
		width: 0;
	}

}

@media (max-aspect-ratio: 1/1) {

	body {
		width: calc(100% - 2rem);
	}

	img, svg {
		width: 100%;
	}

}