:root {
	--primary-color: #7e57c2; /* deep-purple lighten-1 */
	--secondary-color: #5c6bc0; /*  indigo lighten-1 */
}

html {
	height: 100%;
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px;
}

.tabs {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

.tabs-content.carousel .carousel-item {
	height: auto !important;
}

.tabs .indicator {
	background-color: var(--primary-color) !important;
}

.tab a:hover {
	background-color: rgba(103, 58, 183, 0.1) !important; /* deep-purple with opacity */
	color: var(--secondary-color) !important;
}

.tab a.active {
	background-color: rgba(103, 58, 183, 0.1) !important; /* deep-purple with more opacity */
	color: var(--secondary-color) !important;
}

.menu-button {
  cursor: pointer;
  padding-top: 14px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Switch color customization */
input[type=checkbox]:checked + .lever {
	background-color: rgba(103, 58, 183, 0.5) !important; /* deep-purple with opacity */
}

input[type=checkbox]:checked + .lever:after {
	background-color: var(--primary-color) !important; /* deep-purple */
}

.container {
	margin-top: 20px;
}

#test, #practice {
	position: relative;
	height: 100%;
}

/* Show controls image only on mobile */
@media only screen and (max-width: 600px) {
	#test::after, #practice::after {
		content: '';
		position: fixed;
		bottom: 40px;
		left: 50%;
		transform: translateX(-50%);
		width: 90%;
		max-width: 400px;
		height: 100px;
		background-image: url('../icons/controls.svg');
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		pointer-events: none;
		z-index: 1000;
	}
}

.search-bar {
	margin: 0 30px 0 10px;
}

/* Autocomplete colors */
.input-field .prefix.active {
	color: var(--secondary-color) !important;
}

input:focus {
	border-bottom: 1px solid var(--secondary-color) !important;
	box-shadow: 0 1px 0 0 var(--secondary-color) !important;
}

input:focus + label {
	color: var(--secondary-color) !important;
}

/* Autocomplete dropdown */
.autocomplete-content li span {
	color: black !important;
}

.autocomplete-content li .highlight {
	color: var(--secondary-color) !important;
}

.autocomplete-content li:hover {
	background-color: rgba(92, 107, 192, 0.1) !important;
}

.card {
	border-radius: 8px;
}

.card-title a {
	margin-left: 20px;
	color: black;
}

.card-title i {
	color: var(--primary-color);
}

.card-answer {
	font-size: 1.8em;
	font-weight: 500;
	text-align: center;
	color: var(--secondary-color);
}

.hat {
	width: 65%;
	height: 180px;
	margin: auto;
}

.org-data {
	margin-top: 16px;
}

.top {
	height: 24px;
	border-top: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.middle {
	height: 24px;
	border-left: 1px solid black;
	border-right: 1px solid black;
}

.bottom {
	height: 24px;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

li i {
	vertical-align: text-bottom;
}

.map {
	height: 100%;
	width: 100%;
}

.practice {
	max-height: 500px;
	opacity: 1;
	overflow: hidden;
	transition: opacity 0.3s ease, max-height 0.3s ease;
	display: block !important;
}

.practice.hide {
	max-height: 0;
	opacity: 0;
}

.test {
	max-height: 300px;
	opacity: 1;
	margin-top: 24px;
	text-align: center;
	overflow: hidden;
	transition: opacity 0.3s ease, max-height 0.3s ease;
	display: block !important;
}

.test.hide {
	max-height: 0;
	opacity: 0;
}

/* Hide tooltips and action buttons on mobile */
@media only screen and (max-width: 600px) {
	.material-tooltip {
		display: none !important;
	}
	
	.fixed-action-btn {
		display: none !important;
	}
}
