/* top header */
.header {
	background-color: var(--secondary);
	padding: 1rem;
	color: var(--color);
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.header > .flex {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.header > .flex > div {
	margin: 0 1rem;
}

.header > .flex > div > a {
	color: var(--accent);
	text-decoration: none;
	font-size: 0.8rem;
}

#time {
	color: var(--accent);
}

/* Navigation bar */
.logo {
	text-decoration: none;
	color: var(--color);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
}

nav > .nav_list {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background-color: var(--secondary);
	position: fixed;
	top: 0;
	right: 0;
	z-index: 2;
	transition: 0.2s ease-in-out;
	transform: translateX(100%);
}

nav > .nav_list > li {
	padding: 1rem;
}

nav > .nav_list > li > a {
	color: var(--color);
	text-decoration: none;
}

nav > .nav_list_active {
	transform: translateX(0%);
}

nav > .nav_list > .close {
	width: 100%;
	display: flex;
	justify-content: flex-end;
}

.nav_toggle {
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	padding: 0.5rem;
}

nav > .nav_toggle:active {
	background-color: var(--secondary);
}

.nav_dropdown {
	position: relative;
	color: var(--color);
}

.nav_dropdown:focus-within ul {
	opacity: 1;
}

.nav_dropdown > ul {
	opacity: 0;
	transition: all 0.5s ease-in-out;

	position: absolute;
	top: 100%;
	left: -40%;

	display: flex;
	padding: 1rem;
	border-radius: 0 0 0.5rem 0.5rem;
	background-color: var(--primary);
}

.nav_dropdown > ul > li {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.5rem;
	cursor: pointer;
}

.nav_dropdown > ul > li:before {
	content: '';
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	margin-right: 0.5rem;
}

#light:before {
	border: 2px solid black;
	background-color: white;
}

#dark:before {
	border: 2px solid white;
	background-color: black;
}


@media only screen and (min-width: 768px) {
	.header {
		font-weight: 500;
	}
	.header > .flex {
		flex-direction: row;
		align-items: center;
	}
	nav > .nav_list {
		flex-direction: row;
		justify-content: flex-end;
		position: inherit;
		transform: translateX(0%);
		background: none;
	}
}
