:root {
	--sidebar-header-height: 19px;
	--sidebar-content-height: 148px;
	--sidebar-footer-height: 19px;
}

#sidebar {
  position: fixed;
	box-sizing: border-box;
  top: 0;
  left: 0;
	z-index: 2;
  max-width: 320px;
	width: 100%;
  height: 100%;
  padding: 2rem;
  background-color: #000;
	border-right: 1px solid #333;
  overflow-x: hidden;
  overflow-y: hidden;
  visibility: hidden;
  transform: translateX(-100%);
  transition: visibility 0.2s ease, transform 0.3s ease;
}

#sidebar.show {
  visibility: visible;
  transform: translateX(0);
}

.sidebar-header {
	margin-top: calc(50vh - var(--sidebar-header-height) - var(--sidebar-content-height) - var(--sidebar-footer-height));
	text-align: center;
}

.sidebar-content {
  border-top: 1px dashed gray;
  border-bottom: 1px dashed gray;
}

.sidebar-content ul {
	list-style-type: none;
	padding-inline-start: 0;	
}

.sidebar-content li {
	padding: 5px 10px;
	margin: auto;
}

.sidebar-content a {
	color: white;
	text-decoration: none;
}

.sidebar-toggle {
	position: fixed;
	top: 2rem;
	right: 2rem;
	z-index: 2;
}

.sidebar-footer p {
	text-align: center;
}

.bi-list {
	font-size: 32px;
	color: white;
	background-color: #222222;
	border-radius: 4px;
	padding: 0 4px;
}

.bi-list:hover {
	cursor: pointer;
}

.bi-caret-down {
	vertical-align: bottom;
	font-size: 12px;
}

.bi-caret-up-fill {
	font-size: 12px;
}

.dropdown:hover {
	cursor: pointer;
}

.dropdown-content {
	display: none;
	margin-left: 16px;
}

@media only screen and (max-width: 500px) {
	#sidebar {
		max-width: 100%;
	}
}

@media only screen and (max-height: 768px) {
	#sidebar {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.sidebar-header {
		margin: 0;
	}
	
	.sidebar-toggle {
		top: 0.5rem;
	}
}
