body > header {
	position: sticky;
	top: 0;
	background-color: var(--color-blue);
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	color: var(--color-light);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	height: 37px;
	z-index: 10;

	h1 {
		font-size: 2em;
		margin: 0;
	}

	input, label {
		display: none;
	}

	nav {
		display: flex;

		button {
			background: none;
			border: none;
			color: var(--color-light);
			cursor: pointer;
			font-size: 1.3em;
			margin: 0 8px;
			padding: 0;
			text-align: center;
			text-decoration: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}
}


/* === Media Queries === */

@media (max-width: 768px) {
	body > header {
		label:nth-of-type(1) {
			cursor: pointer;
			display: block;

			svg line {
				transform-origin: center;
				transition: transform 0.5s ease-in-out, rotate 0.5s ease-in-out, opacity 0.25s 0.25s ease-in-out;
			}
		}

		label:nth-of-type(2) {
			height: 100%;
			width: 100%;
			position: fixed;
			top: 0;
			left: 0;
			z-index: 8;
		}

		nav {
			position: fixed;
			top: 69px;
			right: -100%;
			bottom: 0;
			width: 150px;
			z-index: 9;

			background-color: var(--color-blue);
			box-shadow: rgba(0, 0, 0, 0.24) -3px 0px 8px;
			flex-direction: column;
			padding: 16px;
			transition: right 0.5s ease-in-out;

			button {
				margin: 16px 0;
			}
		}

		#sidebar-active:checked {
			& ~ label:nth-of-type(1) svg line {
				transition: transform 0.5s ease-in-out, rotate 0.5s ease-in-out, opacity 0.25s ease-in-out;

				&:nth-of-type(1) {
					transform: translateY(9px);
					rotate: 45deg;
				}

				&:nth-of-type(2) {
					opacity: 0;
				}

				&:nth-of-type(3) {
					transform: translateY(-9px);
					rotate: -45deg;
				}
			}

			& ~ label:nth-of-type(2) {
				display: block;
			}

			& ~ nav {
				right: 0;
			}
		}
	}
}

@media (max-width: 425px) {
	body > header h1 {
		font-size: 2em;
	}
}