:root {
	--bs-body-font-size: min(1rem, max(calc(0.2em + 1vw), 0.9rem));
	--pink: rgb(255, 175, 255);
	--correct-green: rgb(165, 255, 186);
	--timeline-line-color: rgba(255, 175, 255, 0.2);
	--timeline-bg-color: rgba(255, 175, 255, 0.1);
	--timeline-bg-color2: transparent;
	--timeline-day: calc(40px);
	--timeline-line-width: 5px;
}
.my-tooltip,
.tooltip-inner {
	color: var(--pink);
	max-width: min(500px, 40vw);
}
img, .no-select {
	user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	-ms-touch-select: none;
}
.dropdown-menu .dropdown-toggle {
	--bs-dropdown-link-color: var(--pink);
}
label:has(~ input, ~ select) {
	margin-right: 1em;
}
.modal-content {
	color: white;
	background-color: rgb(54, 52, 54);
}
.screenshot {
	background-color: var(--bs-body-bg)
}
.bg-secondary {
	background-color: var(--bs-body-color)
}
.responsive-font {
	font-size: calc(0.6em + 0.35vw);
}
.col.student-insights.student-picker {
	/* At 1020, Student Insights Image will be above it causing click issues. */
	/* Specifically, 1020 is sticky-top */
	z-index: 1021 !important;
}
input {
	z-index: 1021 !important;
}
.student.card .card-img-overlay {
	z-index: 1021 !important;
}
.toast-body {
	z-index: 1021 !important;
}
.toast.bg-dark .toast-header {
	background-color: #353234;
	color: var(--bs-dark-rgb);
}
.my-nav {
	z-index: 1022 !important;
}
.z-top {
	z-index: 9999 !important;
}
.image-mood {
	width: calc(1em + 1.2vw);
	min-width: 1em;
	max-width: 10em;
}
.badge-violet {
	background-color: purple;
	color: white;
}
.text-violet {
	color: purple;
}
.bg-violet {
	background-color: purple;
}
.bg-pink {
	background-color: var(--pink);
}
/* bg-violet-transparent-70 text-white */
.btn-violet {
	background-color: rgba(128,0,128, 0.7) !important;
	color: white
}
.btn-violet[disabled] {
	background-color: rgba(78, 18, 78, 0.557) !important;
	color: white
}
.btn-violet:hover {
	background-color: rgba(128,0,128, 1) !important;
}
.btn-close {
	color: var(--pink);
    filter: brightness(120%) !important;
	--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffafff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
.modal-content .pagination .page-item .page-link {
	border: 1px solid #495057
}
.page-item .page-link[role='button']:not(.disabled):not(.active) {
	background-color: #212529;
	/* background-color: var(--bs-pagination-bg); */
}
.modal-content .pagination .page-item input
 {
	color: white;
	background-color: #6c6c6c
}
.page-item.disabled .page-link
 {
	color: white;
	background-color: rgba(128,0,128, 0.02);
}
.bg-pink-border {
	border: 2px solid;
	background-color: transparent;
	opacity: 0.7;
	color: var(--pink);
	border-color: var(--pink);
}
.rounded-border {
	padding: 10px;
	margin: 5px;
	border-radius: 20px;
}
.bg-violet-transparent-70 {
	background-color: rgba(128,0,128, 0.7);
}
.bg-blue-transparent-70 {
	background-color: rgba(0, 0, 128, 0.7);
}
.bg-black-transparent-70 {
	background-color: rgba(0, 0, 0, 0.7);
}
.bg-violet-transparent-20 {
	background-color: rgba(128,0,128, 0.2);
}
.bg-violet-transparent-10 {
	background-color: rgba(128,0,128, 0.1);
}
.bg-violet-transparent-05 {
	background-color: rgba(128,0,128, 0.05);
}
.bg-default {
	background-color: rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important;
}
.bg-grey {
	background-color: rgb(54, 52, 54);
}
.bg-dull-yellow {
	background-color: rgb(146, 138, 80);
}
.bg-dull-violet {
	background-color: rgb(181, 110, 162);
}
.accordion-header button::after{
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFAFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-header button[aria-expanded="true"]::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFAFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-header button[aria-expanded="true"] {
	background-color: rgb(36, 15, 50);
	color: #ffafff;
}
.nav-link:not(.active):not(.disabled),
a:not([class]),
.text-pink,
ul.pagination li.page-item a.page-link {
	color: var(--pink) !important;
}

.form-switch .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffafff'/%3e%3c/svg%3e");
	border-color: var(--pink);
}
.form-check-input:focus {
	border-color: var(--pink);
	box-shadow: 0 0 0 0.25rem rgba(255, 175, 255, .25);
}
.form-switch input:checked,
.form-check input:checked {
	background-color: rgb(181, 110, 162);
	border-color: var(--pink);
}
ul.pagination li.page-item.active span.page-link,
.nav.nav-pills .active {
	background-color: purple;
	border-color: var(--pink);
	/* background-color: var(--pink); */
}
.list-item.student.badge {
	margin-top: 5px;
	margin-right: 5px;
}
.list-item.student.badge.include {
	border: 2px solid;
	border-color: transparent;
}
.list-item.student button {
	max-height: 10px;
	margin-right: 2px;
}
div.search input {
	width: 80%;
}
div.search span {
	width: 20%;
}
.table-violet {
    --bs-table-color: #fff;
    --bs-table-bg: #2a1f2f;
    --bs-table-border-color: #373b3e;
    --bs-table-striped-bg: rgb(62, 49, 62);
    --bs-table-striped-color: #fff;
    --bs-table-active-bg: #373b3e;
    --bs-table-active-color: #fff;
    --bs-table-hover-bg: rgb(132, 88, 121);
    --bs-table-hover-color: #fff;

    color: var("--bs-table-color");
    border-color: var("--bs-table-border-color");
}

.image-ue {
	filter: saturate(200%) brightness(180%) grayscale(0%);
}

.custom-spinner {
	position: relative;
}

.custom-spinner > span {
	position: absolute;
	top: 0;
	left: 0;
}

.custom-spinner .rotating-spinner img {
	animation: spin 4s linear infinite; /* Apply animation to the back layer */
}

.grayscale,.greyscale {
	filter: grayscale(100%)
}

.board .tile {
	/* max-width: 15vw; */
	margin: 1vw;
}

.banner-summary.card {
	min-width: 150px;
}
.resource-entry.card {
	min-width: 150px;
	margin: 2vw;
	/* max-width: 25vw; */
}
.student-bond-panel {
	width: 22rem;
}
.student-bond-panel {
	.quality-2 img {
		filter: sepia(1) saturate(20) hue-rotate(225deg)
	}
	.gift {
		padding-left: 1px;
		padding-right: 1px;
	}
	.progress-bar label {
		font-size: 0.8rem; 
		width: 50%; 
		margin: 0;
	}
}
.gift.card {
	min-width: 9rem;
	margin: 0.5vw;
	max-width: 20vw;
}

.xraid-leaderboard-team-renderer {
	margin: 5px;
	padding: 5px;
}
.team-render {
	justify-content: center;
	margin: 0
}
.team-render .team.student {
	/* min-width: 10rem; */
	/* min-width: min(10rem, 49%); */
	min-width: min(10rem, 98vw);
	max-width: 14rem;
	padding: 0;
}

.team-render .team.student .student.assist {
	/* img.display { */
		/* filter: hue-rotate(225deg);
		transform: scaleX(-1); */
	/* } */
	.nameplate {
		background-color: rgba(69, 13, 42, 0.7);
	}
}
.team-type-render {
	text-align: center;
}

a .ue-icon {
	text-decoration: underline;
}

.ue-icon {
	text-decoration-color: rgb(97, 208, 255);
	color: rgb(97, 208, 255);
}

.assist-icon .tag-badge {
	padding: 0.4em;
}

@keyframes spin {
	from {
		transform: rotate(0deg); /* Start rotation from 0 degrees */
	} to {
		transform: rotate(360deg); /* End rotation at 360 degrees */
	}
}

/* Mobile */

@media (max-width: 991.9px) {
	div#root:has(.navbar-collapse.collapse.show) {
		height: 100vh;
		overflow: hidden;
	}
	
	.navbar-collapse.collapse {
		max-height: 100vh;
		overflow: scroll;
	}
}
@media (max-width: 575.9px) {
	.xteam-render .team.student {
		/* min-width: 10rem; */
		/* min-width: min(10rem, 49%); */
		min-width: 40%;
		max-width: 14rem;
		padding: 0;
	}
	.xraid-leaderboard-team-renderer {
		margin: 0px;
		padding: 0px;
	}
}

@media (min-width: 576px) {
	.banner-group {
		width: 100%;
	}
	.board .tile .card {
		max-width: 13vw;
	}
	.team-render .team.student {
		padding: min(12px, 1%);
	}
}
@media (min-width: 768px) {

}

/* Mobile */
@media (min-width: 992px) {
	.banner-group {
		width: auto;
	}
	.banner-summary.card {
		max-width: 15vw;
	}
	.resource-entry.card {
		max-width: 41vw;
	}
	.gift.card {
		max-width: 6vw;
	}
	.dropdown-submenu-container:has(.dropdown-submenu.dropdown-toggle:hover) .dropdown-menu,
	/* .dropdown-submenu-container:has(.dropdown-submenu.dropdown-toggle:focus) .dropdown-menu, */
	.dropdown-submenu-container .dropdown-menu:hover
	/* .dropdown-submenu-container .dropdown-menu:focus  */
	{
		display: block;
	}
	.team-render {
		justify-content: left;
	}
	.team-type-render {
		text-align: left;
	}
}
@media (min-width: 1200px) {
	.banner-summary.card {
		max-width: 11vw;
	}
	.board .tile .card {
		max-width: 8vw;
	}
	.resource-entry.card {
		max-width: 28vw;
	}
}
@media (min-width: 1400px) {
	.board .tile .card {
		max-width: 8vw;
	}
	.resource-entry.card {
		max-width: 19vw;
	}
}
@media (min-width: 1920px) {
	.board .tile .card {
		max-width: 5vw;
	}
}

/* overflow fix */
.badge.bg-secondary {
	white-space: normal;
}

.home-container {
	max-height: calc(100vh - 150px) !important;
}
.full-list .student.col {
	width: max(80px, min(155px, 17vw));
	max-width: max(80px, min(155px, 17vw));
	min-width: max(80px, min(155px, 17vw));
}

.noselect {
	-webkit-touch-callout: none; /* iOS Safari */
	  -webkit-user-select: none; /* Safari */
	   -khtml-user-select: none; /* Konqueror HTML */
		 -moz-user-select: none; /* Old versions of Firefox */
		  -ms-user-select: none; /* Internet Explorer/Edge */
			  user-select: none; /* Non-prefixed version, currently
									supported by Chrome, Edge, Opera and Firefox */
}
.crossword {
	td.cell {
		background-color: white !important;
		white-space: nowrap;
	};
	.id {
		font-size: 0.78em;
	}
	.direction-indicator {
		color: black !important;
		margin: 0 0 .5em 0;
		display: none;
	}
	td.cell:has(input:focus) {
		.direction-indicator {
			display: inline;
		}
	}
	td.cell:has(input:focus), 
	td.cell:hover
	{
		background-color: var(--pink) !important;
	};
	td.cell:has(.correct) {
		background-color: var(--correct-green) !important;
	};
	td.cell, td.none-cell {
		width: calc(3em + min(1vh, 1vw));
		height: calc(3em + min(1vh, 1vw));
	}
	@media (min-width: 1200px) {
		td.cell, td.none-cell {
			width: calc(1em + min(3vh, 3vw));
			height: calc(1em + min(3vh, 3vw));
		}
	}
}

.crossword.direction-horizontal .direction-indicator {
	transform: rotate(-90deg);
}
.messages .message-body {
	max-height: 80vh;
	overflow-y: scroll;
}
.discord-widget {
	/* filter: hue-rotate(45deg); */
	height: max(40vh, 40em);
	/* max-height: 80vh; */
	overflow-y: hidden;
	border-radius: 20px;
	
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.messages .discord-widget {
	height: max(80vh, 40em);
}

iframe.floatingchat-container {
	height: initial !important;
	position: unset !important;
}

.floatingchat-container-wrap {
	position: unset !important;
	width: initial !important;
	display: inline-block !important;
}

.web-footer {
	font-size: 0.85rem;
}

.kivodle {
	.table-responsive:has(table.answers)
	{
		width: unset;
		text-align: center;
	}

	table.answers {
		width: unset;
		display: inline-block;
	}
	table.answers td {
		min-width: 8rem;
		max-width: 30rem;
	}
	.distribution-container {
		justify-content: center;
	}
	.distribution {
		min-width: 20em;
		max-width: 50vw;
		border: 1px solid var(--pink);
		padding: 5px;
	}
	.distribution .chart .result {
		color: black;
		background-color: var(--pink);
		max-width: calc(100% - 3em);
		margin: 2px;
		padding-left: 2px;
		display: inline-block;
		border-radius: 2px 20px 20px 2px;
	}
}

/* Timeline.css */
.timeline {
	display: flex;
	flex-direction: column;
	overflow-x: scroll;
	background-attachment: local;
	background-position: calc(var(--timeline-line-width)) 0;
	background-image: repeating-linear-gradient(
		to right,
		transparent 0 calc(var(--timeline-day) - var(--timeline-line-width)),
		var(--timeline-line-color) var(--timeline-day)
	)
	,repeating-linear-gradient(
		to right,
		var(--timeline-bg-color),
		var(--timeline-bg-color2) calc(7*var(--timeline-day))
	)
	;
}
.timeline {
	.card-header {
		padding-top: 0.2em;
		padding-bottom: 0.05em;
	}
	
	.card-footer {
		padding-top: 0.1em;
		padding-bottom: 0.1em;
	}
	.card.entry {
		.card-title,
		.card-footer .card-text,
		.sticky-left {
			width: min-content;
			position: sticky;
			left: 0;
			right: 0;
		}
	}
}

.timeline-row {
	padding-top: 1rem;
	width: max-content;
}
.timeline-row:has(.tickets1,.tickets2) {
	height: 25px;
}
.timeline-row:has(.ticket) .card-header {
	height: 30px;
}

.timeline-row-entries {
	display: flex;
	flex-direction: row;
	white-space: nowrap;
	gap: 0;
}

.timeline-entry {
	position: relative;
	white-space: nowrap;
	height: 100%;
}
.timeline-entry .card,
.timeline-entry .timeline-content {
	height: 100%;
}

.timeline-content h4 {
	margin: 0;
}
