@import url("https://fonts.googleapis.com/css?family=Rubik");

html {
	height: 100%;
	font-family: "Rubik", sans-serif;
}

body:before {
	z-index: -1;
	content: "";
	background-image: url("../img/szinek.png");
	background-repeat: repeat;
	background-attachment: fixed;
	opacity: 0.05;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}

body {
	height: 100%;
	margin: 0;
}

#scroll-area {
	height: 100%;
	overflow: hidden auto;
	display: flex;
	flex-flow: row nowrap;
}

nav {
	display: table-cell;
	text-align: center;
	padding-left: 5px;
	padding-right: 5px;
	border-right: 1px solid #999;
	min-width: 250px;
	overflow: auto;
}

nav>a {
	text-align: center;
}

.column {
	display: flex;
	flex-flow: column nowrap;
}

#menu-button {
	display: none;
	width: 100%;
	text-align: right;
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	color: black;
}

#menu-button span {
	width: max-content;
	cursor: pointer;
	font-size: 3em;
	user-select: none;
}

#menu-list div {
	padding-top: 1em;
}

#menu a {
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	color: black;
	user-select: none;
}

#menu a[href="#"] {
	font-weight: normal;
	color: #999;
	pointer-events: none;
	text-indent: -1ch;
}

main {
	padding-left: 10px;
	padding-right: 10px;
	overflow-y: auto;
	flex-grow: 1;
}

@media screen and (max-width: 800px) {
	#scroll-area {
		text-align: left;
		flex-direction: column;
		justify-content: center;
		align-items: start;
	}

	nav {
		display: flex;
		overflow-y: hidden;
		flex-shrink: 0;
		justify-content: space-around;
		align-content: center;
		height: max-content;
		width: 100%;
		vertical-align: middle;
		border-right: none;
		border-bottom: 1px solid #999;
	}

	#menu {
		width: max-content;
		flex-wrap: nowrap;
		padding: 20px;
		float: right;
		flex-grow: 1;
	}

	#menu-button {
		display: unset;
	}

	#menu-list {
		overflow: hidden;
		text-align: right;
		transition: max-height 0.5s;
	}

	.collapsed {
		max-height: 0;
	}

	.expanded {
		max-height: 20em;
	}

	#menu a {
		padding-left: 0.5em;
		padding-right: 0.5em;
		text-align: center;
		line-height: 120%;
		width: max-content;
	}

	nav img {
		padding: 20px 0px 20px 20px;
		height: 5em;
	}
}
