/* -------------------------- BROWSER RESET */

* {
	box-sizing: border-box;
	text-decoration: none;
}

html, body, figure {
	scroll-behavior: smooth;
	font-family: sans-serif;
	padding: 0;
	margin: 0;
}

img, svg, video {
	max-width: 100%;
}

h1, h2, h3, h4 {
	font-family: "Sigmar", serif;
	font-weight: 400;
}

ul {
	list-style-type: none;
}

.none {
	display: none;
}

/* -------------------------- COLOR & IMPORTANT */

:root {
	--primary-background-color: rgb(254, 254, 254);
	--primary-text-color: rgb(15, 15, 15);
	--secondary-background-color: red;
	--secondary-text-color: black;
}

body {
	display: flex;
	position: relative;
	flex-direction: column;
	align-items: center;
	align-content: flex-start;
	justify-content: space-between;
	min-height: 100vh;
}

.font {
	font-family: "M PLUS Rounded 1c", static;
	font-size: 0.9rem;
}

/* -------------------------- HEADER */

#logo {
	display: flex;
	align-items: center;
	width: fit-content;
	cursor: pointer;
}

#logo img {
	width: 3rem;
}

#logo h1 {
	font-size: large;
	margin: 0;
	margin-left: 5px;
}

#nav-bar {
	display: flex;
	justify-content: space-evenly;
	width: 30rem;
	gap: 20px;
}

#nav-bar .bar-item {
	color: var(--primary-text-color);
	font-family: "M PLUS Rounded 1c", static;
	font-size: 0.9rem;
	width: fit-content;
	height: auto;
}

#nav-bar .selected-item {
	font-weight: bold;
	text-decoration: underline;
}

#nav-bar .bar-item:hover {
	color: var(--secondary-text-color);
	text-decoration: underline;
}

.burger-button {
	display: none;
	cursor: pointer;
}

header {
	background-color: var(--primary-background-color);
	display: inherit;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	min-height: 9vh;
	max-height: fit-content;
	padding: 2vh 4%;
}

.header-main {
	width: fit-content;
	display: inherit;
	align-items: center;
}

header div > figure {
	width: 100%;
}

/* -------------------------- MAIN */

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: fit-content;
	gap: 25px;
	min-height: 91vh;
}

main > h1 {
	text-align: center;
}

.black-button {
	background-color: transparent;
	border-color: black;
	border: 2px;
	border-style: solid;
	color: black;
	font-weight: bold;
	padding: 5px 10px;
	cursor: pointer;
}

.white-button {
	background-color: transparent;
	border-color: white;
	border-top: 2px;
	color: white;
	font-weight: bold;
	border-style: solid;
	padding: 5px 10px;
	cursor: pointer;
}

.button-hover:hover {
	width: 16vh;
	height: 4vh;
	padding-top: 8px;
}

/* -------------------------- FOOTER */

footer {
	background-color: var(--primary-background-color);
	display: flex;
	width: 100%;
	min-height: 9vh;
	max-height: fit-content;
	gap: 25px;
	padding: 2vh 4%;
}

.footer-box {
	width: 215px;
	margin: auto;
}

.footer-box > h1 {
	font-size: large;
}

.footer-box p {
	font-family: "M PLUS Rounded 1c", static;
	font-weight: bold;
	font-size: 0.9rem;
}

.footer-box a {
	color: var(--secondary-text-color);
}

.footer-flex p {
	display: flex;
	align-items: center;
	gap: 5px;
}

.footer-flex img {
	width: 2vh;
}

/* -------------------------- OTHER */

body .top-button {
	left: 10px;
	bottom: 10px;
	padding: 6px;
	border: none;
    color: white;
	position: fixed;
	cursor: pointer;
    font-weight: bold;
	border-radius: 100px;
	box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.35);
	background-color: black;
}

.old-version-notice {
	bottom: 10px;
	opacity: 0.25;
	z-index: 1000;
	padding: 25px;
	color: white;
	position: fixed;
	font-weight: bold;
	text-align: center;
	background: red;
	border-radius: 10px;
	transition: opacity 0.5s ease;
}

.old-version-notice a {
	color: inherit;
	font-weight: normal;
	text-decoration: underline;
}

.old-version-notice:hover {
	opacity: 1;
}

/* -------------------------- PHONE EDITION */

@media screen and (max-width: 800px) {
	
	/* ------- HEADER */
	
	.burger-button {
		display: block;
		width: fit-content;
	}

	.burger-button .button {
		margin: auto;
		width: 3vh;
	}

	header {
		flex-direction: column;
		gap: 25px;
	}

	.header-main {
		display: inherit;
		justify-content: space-between;
		width: 100%;
	}

	.header-burger {
		display: none;
	}

	.burger-show {
		display: block;
	}

	#nav-bar {
		align-items: center;
		flex-direction: column;
	}

	/* ------- MAIN */
	
	.main-selectors {
		flex-direction: column;
		align-items: center;
		padding: 5vh 0;
	}
	
	/* ------- FOOTER */
	
	footer {
		align-items: center;
		flex-direction: column;
	}

	.footer-box {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

}