
@import 'overlay.css';

.toggle-menu {
	position: relative;
	display: none;
	cursor: pointer;
}
.toggle-menu.main {
	align-self: center;
	width: 55px;
	height: 55px;
	margin: 10px;
	border: none;
	background-color: transparent;
	color: transparent;
}
.toggle-menu.main:before {
	position: absolute;
	top: 0;
	left: 0;
	width: 45px;
	height: 55px;
	content: '';
	background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66"><rect style="fill:%23fff" x="0" y="12" width="66" height="10"/><rect style="fill:%23fff" y="28" width="66" height="10"/><rect style="fill:%23fff" y="44" width="66" height="10"/></svg>') no-repeat 0 0;
	background-size: cover;
}
.min-header .toggle-menu.main {
	width: 33px;
	height: 33px;
}
.min-header .toggle-menu.main:before {
	width: 33px;
	height: 33px;
}

@media (max-width: 866px) {
	#menu {
		position: absolute;
		width: 240px;
		top: 100px;
		left: -240px;
		flex-direction: column;
		justify-content: flex-start;
		padding-top: 20px;
		background-color: var(--main-color);
		height: 100vh;
		transition: .3s;
		z-index: 100;
	}
	.min-header #menu { top: 36px; }
	.toggle-menu { display: unset; }
	nav .toggle-menu {
		width: 30px;
		height: 30px;
		border: none;
		background-color: transparent;
		color: var(--main-color);
	}
	nav .toggle-menu:before {
		position: absolute;
		top: 0;
		left: 0;
		width: 30px;
		height: 30px;
		content: '';
		background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66"><polygon style="fill:%23fff" points="33,0 41.6,8.6 17.2,33 41.6,57.4 33,66 0,33"/></svg>') no-repeat 0 0;
		background-size: cover;
	}
	body.menu #menu { left: 0; }
	body.menu #overlay { display: block; }
}
