#web-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: var(--base-bg);
	overflow: hidden;
	user-select: none;
	box-sizing: border-box;
	z-index: -1;
	padding: 40px 12vw 6vh 12vw;
	opacity: 0;
	transition:
				opacity var(--transition-speed),
				z-index var(--transition-speed);
}

#web-menu.web-menu-show {
	opacity: 1;
	z-index: 3;
}

#web-menu-body {
	background: transparent;
	max-height: 100vh;
	overflow: hidden;
}

#web-menu-searchbox-container {
	position: relative;
	display: flex;
	flex-flow: column wrap;
	align-items: center;
	margin-bottom: 20px;
}

#web-menu-list-container {
	position: relative;
	display: flex;
  	justify-content: center;
  	max-height: 70vh;
	overflow-y: auto;
	scrollbar-color: var(--base-secondary-bg) var(--base-bg);
 	scrollbar-width: 10px;
}

#web-menu-list-container.web-menu-category-mode {
	display: block;
}

#web-menu-searchbox {
	background: var(--base-secondary-bg);
	color: var(--font-color);
	font-size: 12pt;
	font-weight: 700;
	text-align: center;
	padding: 2px;
	border: none;
	border-radius: 6px;
	width: 225px;
	height: 36px;
}

#web-menu-searchbox::placeholder {
	font-size: 11pt;
	font-weight: 700;
}

/* Unordered list */
#web-menu-list {
	list-style-type: none;
	padding: 0;
	margin: 0 auto;
	flex-grow: 1;
	text-align: justify;
	background: transparent;
}

#web-menu-list.web-menu-list-hide {
	display: none;
}

/* List */
#web-menu-list li {
	display: inline-block;
}

/* Selected list */
#web-menu-list li.selected {
	background: #ff00ff;
	border-radius: 6px;
}

/* Element inside the list item */
.web-item {
	background: var(--base-secondary-bg);
	width: 128px;
	height: 128px;
	margin: 5px;
	cursor: pointer;
	border-radius: 12px;
}

.web-item:hover {
	box-shadow: 0 0 0 1px var(--hover-bg) inset;
}

.web-item:active {
	background: var(--active-bg);
	box-shadow: 0 0 0 1px var(--active-bg) inset;
}

.web-item-focus {
	background: var(--active-bg);
}

.web-item-container {
	margin: 0 auto;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 5px;
}

.web-item-icon-container {
	position: relative;
	display: flex;
	flex-flow: column wrap;
	align-items: center;
}

.web-item-icon {
	height: 64px;
	width: 64px;
	margin-bottom: 0;
	background-size: cover;
}

.web-item-name {
	text-align: center;
	font-size: 11pt;
	font-weight: 400;
	word-wrap: break-word;
	color: var(--font-color);
}

.web-menu-link {
	display: block;
	text-decoration: none;
	outline: 0;
	border: none;
	outline-style: none;
	user-select: none;
}

#web-menu-categorized {
	list-style-type: none;
	padding: 0;
	margin: 0 auto;
}

#web-menu-categorized.web-menu-categorized-hide {
	display: none;
}

.category-body {
	margin: 10px 5px;
}

.category-name {
	font-weight: 700;
	color: var(--font-color);
	margin: 0 5px;
}

.category-list {
	list-style-type: none;
	padding: 0;
	margin: 0 auto;
	flex-grow: 1;
	text-align: justify;
	background: transparent;
	overflow: hidden;
}

.category-list li {
	display: inline-block;
}

#web-menu-mode-switcher-container {
	position: absolute;
	top: 0;
	right: 0;
	width: auto;
	height: auto;
	margin: 42px 42px;
	border-radius: 50%;
}

#web-menu-mode-switcher {
	background: var(--base-secondary-bg);
	border: none;
	outline: none;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	padding: 10px;
	cursor: pointer;
}

#web-menu-mode-switcher:hover {
	background: var(--button-hover);
}

#web-menu-mode-switcher:active {
	background: var(--button-active);
}

#web-menu-mode-switcher:selected {
	background: var(--button-active);
}

#web-menu-mode-switcher-img {
	background-image: url('../assets/buttons/alphabetical.svg');
	background-size: cover;
	filter: var(--image-invert);
	width: 100%;
	height: 100%;
}

#web-menu-mode-switcher-img.category-mode {
	background-image: url('../assets/buttons/categories.svg');
	background-size: cover;
	filter: var(--image-invert);
	width: 100%;
	height: 100%;
}

@media screen and (max-width: 470px) {
	#web-menu-searchbox {
		width: 50vw;
	}

	#web-menu {
		padding: 6vh 18vw 0 18vw;
	}

	#web-menu-list {
		flex-grow: 1;
	}

	#web-menu-list li {
		display: inline;
	}

	.web-item {
		width: auto;
		margin: 5px 1.2rem;
	}

	.web-item:hover {
		transform: scale(1);
	}

	.web-item-focus {
		transform: scale(1);
	}

	#web-menu-list-container {
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	#web-menu-list-container::-webkit-scrollbar {
		display: none;
	}

	#web-menu-mode-switcher-container {
		top: unset;
		right: 0;
		bottom: 0;
	}

	.category-name {
		text-align: center;
	}

	.category-list {
		flex-grow: 1;
	}

	.category-list li {
		display: inline;
	}
}
