/* MENU INDICATOR WHEN MENU IS NOT OPEN */
.menu-indicator {
	/* display: none; */
	display: flex;
	opacity: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: absolute;
	left: calc(var(--percentage-width) * -7);
	top: calc(var(--percentage-height) * 40);
	background-color: var(--illi-black);
	width: calc(var(--percentage-width) * 6);
	height: calc(var(--percentage-height) * 20);
	border-radius: calc(var(--percentage-width) * 1);
	color: white;
	box-shadow: 0 0 calc(var(--percentage-width) * 1) 0 rgba(0, 0, 0, 0.51);
	z-index: 102;
	transition: transform 1s ease-in-out;
}

.menu-indicator:hover {
	background-color: var(--illi-red);
}

.menu-indicator.active {
	/* display: flex; */
	opacity: 1;
	transform: translate(calc(var(--percentage-width) * 6), 0);
}

.menu-indicator .menu-icon,
.menu-indicator .right-icon {
	margin-top: calc(var(--percentage-width) * .5);
}

.menu-indicator .menu-icon {
	font-size: calc(var(--percentage-width) * 2);
}

.menu-indicator .right-icon {
	font-size: calc(var(--percentage-width) * 1.75);
}

/*  GENERAL MENU CSS */
#menu {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 200;
	height: 100vh;
	width: 100vw;
	transform: translate(-110vw);
	transition: transform 1.5s ease-out;
	background-color: var(--illi-dark-gray);
}

#menu.active {
	transform: translate(0);
}

.menu-container {
	flex-direction: column;
	align-items: center;
	display: flex;
	background-color: white;
	box-shadow: 1vw 0vw 8vw -3vw black;
	color: var(--illi-dark-gray);
	width: 100vw;
	overflow: hidden;
	height: 100vh;
}

#breadcrumb-bar {
	height: 6vh;
	width: 100%;
	background-color: #eaeaea;
	font-size: 3vh;
	color: var(--illi-red);
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9;
}

#breadcrumb-bar .selectedItem {
	display: none;
}

#breadcrumb-bar .selectedItem:before {
	content: ": ";
}

.menu-content {
	width: 100%;
	height: 83vh;
	flex-direction: column;
	align-items: center;
	display: flex;
}

/* MENU HEADER SECTION */

.menu-header {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	width: 100%;
	background-color: var(--illi-dark-gray);
	height: 11vh;
	box-shadow: 0px 0 1vw rgba(0, 0, 0, 0.37);
	z-index: 10;
}

.menu-header .button {
	width: 3vw;
	border-radius: 3vw;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	height: 6vh;
	background: none;
	color: white;
	overflow: hidden;
	transition: width 0.5s ease-in-out;
}

.menu-header .button:focus,
.menu-header .button:hover {
	width: 9.5vw;
	outline: none;
	background-color: white;
	color: var(--illi-black);
}

.menu-header .icon {
	height: 100%;
	min-width: 2vw;
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: center;
	filter: invert(100%);
	margin-right: 0.5vw;
	margin-left: 0.5vw;
}

.menu-header i {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	min-width: 2vw;
	margin-right: 0.5vw;
	margin-left: 0.5vw;
	font-size: 2vw;
}

.menu-header p {
	padding: 0;
	margin: 0;
	width: 5.5vw;
	text-align: center;
	font-size: 1vw;
}

/* LIST CONTAINER SECTION */
.playlist-buttons {
	background-color: white;
	display: none;
	width: 100%;
	justify-content: center;
	align-items: center;
	height: 10vh;
	margin-top: 1vh;
	z-index: 10;
}

.playlist.button,
.shuffle.button {
	background-color: lightgrey;
	color: var(--illi-black);
	width: 40%;
	font-size: 3vh;
	text-align: center;
	border: 1px solid var(--illi-black);
	outline: none;
	position: relative;
}

.playlist.button:focus,
.shuffle.button:focus {
	border: 0;
}

.playlist.button:focus span,
.shuffle.button:focus span {
	color: #000;
}

.playlist.button:focus::after,
.shuffle.button:focus::after {
	border: 3px solid var(--illi-red);
	content: "";
	position: absolute;
	width: calc(100% + 1vw);
	height: calc(100% + 1vw);
	left: -0.5vw;
	top: -0.5vw;
	background: var(--illi-light-red);
	z-index: 1;
	border-radius: 1vw;
	box-sizing: border-box;
}

.directories {
	font-size: 3vh;
	/* height: fit-content; */
	/* max-height: 100%; */
	height: 100%;
	width: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	/* -ms-overflow-style: none;
	scrollbar-width: none; */
}

/* .directories::-webkit-scrollbar {
    display: none;
} */

.directories.paddingTop {
	padding-top: 2vh;
}

.directories-list,
.search-list {
	display: flex;
	align-content: flex-start;
	width: 100%;
}

.menu-item {
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 24vw;
	/* need to keep in mind there's a scrollbar sometimes */
	height: fit-content;
	padding-bottom: 4vh;
}

/* DIRECTORY VIEW SECTION */

.empty-message {
	width: 100%;
	font-size: 2.2vw;
	display: flex;
	justify-content: center;
	margin-top: 10vh;
}

.directories-list.dir-view,
.directories-list.mix-view {
	flex-direction: row;
	flex-wrap: wrap;
	/* height: 100%; */
}

.directories-list.video-view,
.directories-list.settings-list-view {
	/* height: 74vh; */
	height: fit-content;
	padding-top: 3vh;
}

/* .directories-list.settings-list-view .dir-image{
	display: none;
} */

.menu-item:focus {
	outline: none;
}

/* .thumbnail-view .menu-item:focus {
	transform: scale(1.05);
} */

/* only the top-row items */
.menu-item.dir:nth-child(-n + 4),
.menu-item.playlist:nth-child(-n + 4),
.mix-view .menu-item.video:nth-child(-n + 4),
.menu-item.game:nth-child(-n+4),
.menu-item.action:nth-child(-n + 4) {
	padding-top: 6vh;
}

.menu-item.grey .dir-image {
	background: #f0f0f0;
	border: 1px solid #3a3c3b;
	box-sizing: border-box;
}

.menu-item.blue .dir-image {
	background: var(--illi-blue);
	border: 1px solid #3a3c3b;
	box-sizing: border-box;
}

.dir-image {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 1vw;
	border: 1px solid black;
	box-shadow: 0 0 1vw rgba(0, 0, 0, 0.15);
	min-height: 14vh;
	height: 25vh;
	width: 25vh;
	position: relative;
	z-index: 2;
	transition: transform 0.3s ease-in-out;
}

.dir-image .title {
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	width: 100%;
	text-align: center;
	font-size: 2vh;
	padding: 0.5vh 0;
	height: 2.5vh;
	white-space: nowrap;
	overflow: hidden;
}

.dir-image .title-text {
	overflow: visible;
	padding-left: 0.5vw;
	padding-right: 0.5vw;
}

.dir-image .title-text i {
	margin-right: 0.5vw;
}

.menu-item:focus .dir-image {
	border-color: rgba(255, 255, 255, 0);
	transform: scale(1.05);
}

.menu-item:focus .dir-image::after {
	border: 3px solid #94383a;
	content: "";
	position: absolute;
	width: calc(100% + 1vw);
	height: calc(100% + 1vw);
	background: var(--illi-light-red);
	z-index: 1;
	border-radius: 1.4vw;
}

.menu-item:focus .dir-name {
	color: #000;
	font-weight: 600;
	color: var(--illi-red);
}

.dir-image img {
	height: 10vh;
	filter: invert(20%) sepia(7%) saturate(164%) hue-rotate(97deg) brightness(95%) contrast(87%);
	z-index: 2;
}

.dir-image>i {
	font-size: 10vh;
}

.menu-item:focus .dir-image img {
	filter: brightness(0);
}

.directories-list.dir-view .dir-name,
.directories-list.mix-view .dir-name {
	text-align: center;
}

.dir-name {
	margin-top: 2.5vh;
	width: 97%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* overflow-wrap: break-word; */
}

/* VIDEO VIEW SECTION */
.directories-list.video-view,
.directories-list.settings-list-view {
	flex-direction: column;
}

.menu-item-no-icon .dir-name {
	text-align: start;
	line-height: 5vh;
	position: relative;
}

.menu-item-no-icon {
	width: 83%;
	margin-left: 10%;
	flex-direction: row;
	height: fit-content;
	margin-bottom: 3vh;
	padding-bottom: 0;
	/* padding-bottom: 3vh; */
	font-size: 4vh;
}

.menu-item-no-icon .dir-image {
	display: none;
}

.menu-item-no-icon:focus .dir-name {
	font-weight: 600;
	color: var(--illi-red);
	outline: none;
	text-decoration: underline;
}

.thumbnail-view {
	flex-wrap: wrap;
	padding: 1vw;
	box-sizing: border-box;
}

.thumbnail-view .menu-item {
	width: fit-content;
	height: fit-content;
	margin: 0;
	margin-left: 0.33vw;
	margin-right: 0.33vw;
	padding: 0 !important;
	position: relative;
}

.thumbnail-view.small-thumbnails .menu-item{
	width: 23.6vw;
}

.thumbnail-view.small-thumbnails .menu-item .dir-image {
	width: 100%;
	height: 24vh;
}

.thumbnail-view .menu-item .dir-image {
	display: block;
	border: 0;
	width: 30vw;
	height: 29vh;
	margin: 1vw;
	box-shadow: none;
	border-radius: 0.5vw;
	overflow: hidden;
	opacity: 0.5;
	box-shadow: 0 0 0 0.5vw rgba(0, 0, 0, 0);
}

.thumbnail-view .menu-item .dir-name {
	display: none;
}

.thumbnail-view .menu-item .dir-image img {
	height: 100%;
	width: 100%;
	filter: none;
	object-fit: cover;
	object-position: center;
	/* this is to prevent jagged edges */
	overflow-clip-margin: unset;
	overflow: visible;
}

.thumbnail-view .menu-item:focus .dir-image::after {
	content: none;
}

.dir-overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	z-index: 1;
	display: none;
}

.thumbnail-view .dir-overlay i.fa-folder {
	display: block;
	-webkit-text-stroke: 0.1vw #d0b564;
	text-stroke: 0.1vw #d0b564;
	font-size: 5vw;
	color: #fbda79;
	margin: 1vw;
}

.thumbnail-view .dir-overlay.active {
	display: block;
}

.dir-image .title.dir {
	background-color: rgba(255, 229, 146, 0.95);
	color: rgb(32, 32, 32);
}

.thumbnail-view .dir-overlay .fa-custom-icon {
	font-size: 2vw;
	color: var(--illi-black);
	margin: 1vw;
}

.thumbnail-view .menu-item:focus .dir-image {
	opacity: 1;
	transform: scale(1.05);
	border-color: var(--illi-red);
	box-shadow: 0 0 0 0.5vw var(--illi-red), inset 0 0 0 0.5vw var(--illi-red), 0 0 1vw rgba(0, 0, 0, 0.35);
}

/* SEARCH SECTION */
.search-bar-component {
	display: none;
}

.search-bar {
	width: 100%;
}

.search-bar-component {
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 10vh;
	background-color: var(--illi-blue);
	box-shadow: 0px 0 1vw rgba(0, 0, 0, 0.37);
}

.search-container {
	width: 100%;
	height: 100%;
}

.search-container input {
	width: 100%;
	height: 100%;
	font-size: 3vh;
	padding: 0 5vw;
}

#search-input {
	border: none;
}

#search-input:focus {
	outline: none;
}

.menu-page-content {
	padding-left: 10%;
	padding-right: 10%;
	padding-top: 2%;
}

.menu-page-content h4 {
	margin-top: 0;
}

.menu-page-content .text {
	position: relative;
}

.menu-page-content .text .privacy {
	font-size: 1.2vw;
}

.menu-page-content .text .privacy h1 {
	font-size: 2vw;
}

/* .video-settings-text {
	font-size: 2vw;
	font-weight: bold;
	margin-bottom: 1vh;
}

.video-settings-quality {
	height: 4vh;
	width: 10vw;
	margin: 0.8vh;
	margin-left: 3vh;
	display: flex;
	align-items: center;
	padding-left: 1vw;
	padding-right: 1vw;
}

.video-settings-quality:focus {
	font-weight: 600;
	color: var(--illi-red);
	outline: none;
	text-decoration: underline;
}

.video-settings-quality::before {
	content: " ";
	display: flex;
	height: 1.5vh;
	width: 1.5vh;
	position: absolute;
	background-color: none;
	left: 0.5vh;
	border-radius: 2vw;
	border-style: solid;
	border-width: 0.3vh;
	border-color: var(--illi-gray);
}

.video-settings-quality.active {
	font-weight: bold;
}

.video-settings-quality.active::before {
	content: "";
	background-color: #767676;
} */

.menu-table {
	font-size: 3vh;
	width: 100%;
	border: 1px solid #d9d9d9;
	background: #fafafa;
	border-radius: 0.5vw;
}

.menu-table:focus {
	/* border-color: var(--illi-red); */
	outline: var(--illi-red) solid 0.2vw;
}

.menu-table td {
	padding: 2vh;
	width: 50%;
}

.noneFound {
	text-align: center;
}

.loadingIndicator {
	height: 2vh;
	width: 100%;
}

.loadingIndicatorWrapper {
	height: 2vh;
	width: 100%;
}

.loadingIndicatorBar {
	height: 100%;
	width: 100%;
	background-color: #94383a;
	animation: loadingAnimation 2s infinite;
	transform-origin: left center;
	/* will-change: transform; */
}

@keyframes loadingAnimation {
	0% {
		transform: scaleX(0);
	}

	100% {
		transform: scaleX(1);
	}
}

.scroll-indicator {
	z-index: 50;
	opacity: 0;
	transition: 0.5s;
	position: fixed;
	bottom: 0;
	width: 100vw;
	left: 0;
	text-align: center;
	height: 10vh;
	color: white;
	line-height: 10vh;
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
	background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000', GradientType=0);
}

.scrollable.showScrollIndicator .scroll-indicator {
	opacity: 1;
}

@keyframes pulse {
	from {
		opacity: .1;
		margin-top: 0;
	}

	to {
		opacity: 1;
		margin-top: 1vh;
	}
}

.scroll-indicator i {
	filter: drop-shadow(0px 3px 3px #000);
	--fa-animation-duration: 1.5s;
}