
@keyframes rotateReload {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.webSecurityIcon {
	position: absolute !important;
	top: 19px !important;
	left: 165px !important;
	color: var(--hover-text-color);
	height: 16px !important;
	width: 16px !important;
	font-size: 16px !important;
}

.shortcutsBig {
	max-width: 1000px;
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	gap: 20px;
	justify-content: center;
	margin-top: -3.5em;
	left: 50%;
	transform: translateX(-50%);
}

.shortcutBig {
	background: none;
	align-content: center;
	justify-content: center;
	transition: 0.2s ease-in-out;
	opacity: 1;
	border-radius: 30px;
}

.shortcutBigimg {
	animation: fade-in-bottom 1s;
	opacity: 0;
}

.shortcutBig img {
	width: 170px;
	height: 90px;
	border-radius: 20px;
	transition: 0.2s ease-in-out !important;
}

.shortcutBig img:hover {
	transform: scale(1.1);
	border-radius: 20px;
	transition: 0.12s ease;
	cursor: pointer;
	transition: 0.2s ease-in-out !important;
}

.shortcuts {
	width: 500px;
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	gap: 29px;
	justify-content: center;
	margin-top: 4.5em;
	left: 50%;
	transform: translateX(-50%);
}

.shortcut {
	width: 50px;
	height: 50px;
	border-radius: 23%;
	background-color: var(--shortcut-background-color);
	align-content: center;
	justify-content: center;
	transition: 0.2s ease-in-out !important;
	animation: fade-in-bottom 1s;
	opacity: 0;
}

.shortcut:hover {
	transform: scale(1.05);
	transition: 0.2s ease-in-out !important;
	cursor: pointer;
	box-shadow: var(--shortcut-box-shadow);
}

.shortcut img {
	width: 28px;
	height: 28px;
	padding: 11px;
	object-fit: cover;
	transition: 0.2s ease-in-out !important;
}

.spinner {
	background-image: linear-gradient(rgb(186, 66, 255) 35%, rgb(76, 0, 255));
	width: 100px;
	height: 100px;
	animation: spinning 1.7s linear infinite;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 30px;
	position: relative;
	border-radius: 50px;
	filter: blur(1px);
	box-shadow:
		0px -5px 20px 0px rgb(186, 66, 255),
		0px 5px 20px 0px rgb(76, 0, 255);
}

.spinner1 {
	background-color: rgb(36, 36, 36);
	width: 100px;
	height: 100px;
	border-radius: 50px;
	filter: blur(10px);
}

#catclassBrowserBar button .material-symbols-outlined{
	margin-top: 0px;
}

/* ---- Mobile: keep the home search form + shortcuts inside the viewport ---- */
@media (max-width: 640px) {
	/* The inline-styled column wrapper inside .header has width: 100vw +
	   margin-left: 5vw, which overflows past the sidebar. Reel it in. */
	.header > div {
		width: auto !important;
		max-width: calc(100vw - 70px) !important;
		margin: 20px 10px !important;
	}

	.search-header {
		margin-left: 0 !important;
		width: 100%;
		max-width: 100%;
		display: flex;
		align-items: center;
	}

	/* Make the form itself flex so the button stays on the same row as the
	   input and the input shrinks to fill the remaining space. */
	#formintospace {
		display: flex;
		align-items: center;
		flex: 1 1 0;
		min-width: 0;
		width: 100%;
	}

	.search-header__input,
	#gointospace {
		flex: 1 1 0 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		font-size: 14px !important;
		padding: 12px 40px 12px 16px !important;
		text-align: left !important;
		box-sizing: border-box !important;
		margin-right: -32px !important;
	}

	.searchEngineIcon {
		display: none !important;
	}

	.gointospaceSearchButton {
		flex: 0 0 auto !important;
		transform: translate(-6px, 1px) !important;
		z-index: 1;
	}

	.shortcutsBig {
		max-width: calc(100vw - 70px) !important;
		gap: 10px !important;
	}

	.shortcutBig img,
	.shortcutBigimg {
		width: 130px !important;
		height: 70px !important;
	}

	.shortcuts {
		width: calc(100vw - 70px) !important;
		gap: 14px !important;
	}
}

/* NEW!!!!!!!!!!!!!!! */
			/* Floating, vertically-centered, glassmorphic sidebar (index page only) */
			.navbar {
				position: fixed !important;
				top: 50% !important;
				right: auto !important;
				left: 18px !important;
				transform: translateY(-50%);
				height: auto !important;
				width: auto !important;
				padding: 10px 8px !important;
				background: rgba(22, 22, 22, 0.55) !important;
				backdrop-filter: blur(14px) saturate(140%);
				-webkit-backdrop-filter: blur(14px) saturate(140%);
				border: 1px solid rgba(255, 255, 255, 0.08);
				border-radius: 22px !important;
				box-shadow:
					0 10px 30px rgba(0, 0, 0, 0.35),
					0 1px 0 rgba(255, 255, 255, 0.04) inset;
				display: flex;
				flex-direction: column;
				align-items: center;
				gap: 4px;
				transition: transform 0.3s ease, opacity 0.3s ease;
			}
			.navbar:hover {
				background: rgba(22, 22, 22, 0.68) !important;
			}
			.navbar li {
				width: 40px;
				height: 40px;
				display: flex;
				align-items: center;
				justify-content: center;
				margin: 0 !important;
				border-radius: 12px;
				transition: background 0.18s ease, transform 0.18s ease;
				position: relative;
			}
			.navbar li:hover {
				background: rgba(255, 255, 255, 0.08);
				transform: translateY(-1px);
			}
			.navbar li a {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 100%;
				height: 100%;
				color: rgba(255, 255, 255, 0.72);
				text-decoration: none;
				transition: color 0.18s ease;
			}
			.navbar li:hover a,
			.navbar li:hover .material-symbols-outlined,
			.navbar li:hover .fa-brands {
				color: #fff;
			}
			.navbar .material-symbols-outlined,
			.navbar .fa-brands {
				font-size: 22px !important;
				margin: 0 !important;
				transform: none !important;
				color: rgba(255, 255, 255, 0.72);
				transition: color 0.18s ease;
			}
			.navbar li:has(#navactive) {
				background: rgba(255, 255, 255, 0.12);
			}
			.navbar li:has(#navactive)::before {
				content: '';
				position: absolute;
				left: -10px;
				top: 50%;
				transform: translateY(-50%);
				width: 3px;
				height: 18px;
				background: #bdf730;
				border-radius: 2px;
				box-shadow: 0 0 8px rgba(189, 247, 48, 0.6);
			}
			.navbar li:has(#navactive) .material-symbols-outlined {
				color: #fff;
			}
			.navbar .logo {
				width: 42px;
				height: 42px;
				border-radius: 8px;
			}
			.navbar hr {
				width: 24px !important;
				height: 1px;
				background: rgba(255, 255, 255, 0.1) !important;
				border: none;
				margin: 6px 0 !important;
			}
			/* Override the inline transforms on the Discord icon wrapper */
			.navbar li > a > div {
				height: auto !important;
				width: auto !important;
				margin: 0 !important;
				display: flex;
				align-items: center;
				justify-content: center;
			}
			.navbar li > a > div .fa-brands {
				transform: none !important;
			}

			html, body { overflow-x: visible !important; }
			.navbar {
				border: none;
				animation: navbarNeon 8s ease-in-out infinite;
			}
			@keyframes navbarNeon {
				0%   { border-color: #bdf730; box-shadow: 0 0 15px 2px rgba(189, 247, 48, 0.95), 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
				20%  { border-color: #00f0ff; box-shadow: 0 0 15px 2px rgba(0, 240, 255, 0.95),   0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
				40%  { border-color: #ff00d4; box-shadow: 0 0 15px 2px rgba(255, 0, 212, 0.95),   0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
				60%  { border-color: #ffaa00; box-shadow: 0 0 15px 2px rgba(255, 170, 0, 0.95),   0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
				80%  { border-color: #b300ff; box-shadow: 0 0 15px 2px rgba(179, 0, 255, 0.95),   0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
				100% { border-color: #bdf730; box-shadow: 0 0 15px 2px rgba(189, 247, 48, 0.95), 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset; }
			}
			.navbar .fa-discord  { color: #5865F2 !important; } /* discord brand */
			.navbar a[href*="classroom15x"] .material-symbols-outlined {
				color: #ffd60a !important;                       /* bookmark -> yellow */
			}