* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:root {
	font-family: Arial, Helvetica, sans-serif;

	/* Backgrounds */
	--bg-color-1: #ffffff;
	--bg-color-2: #f7f9fc;
	--bg-color-3: #eef3fb;

	/* Gradients / highlights */
	--gradient-blue-1: #16a3f4;
	--gradient-blue-2: #1567e2;
	--gradient-purple-1: #5534e5;
	--gradient-purple-2: #7c3fe6;
	--shadow-clr: rgba(6, 36, 101, 0.2);
	--alert: #ffcc00;
	--warning: #cb0e40;

	/* Text and icons */
	--text-color: #000000;
	--text-light-color: #333333;
	--text-light2-color: #666666;
	--icon-color: #062465;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg-color-1);
	color: var(--text-color);
}

section {
	padding: 1rem;
}

a {
	color: var(--icon-color);
}

a:hover {
	color: var(--gradient-blue-2) !important;
	text-decoration: underline;
	transition: 0.2s;
}

a:visited {
	color: var(--icon-color);
}

td {
  padding-left: 8px;
  vertical-align: top;
  text-align: justify;
}

hr {
	border-color: var(--bg-color-2);
	color: var(--bg-color-2);
	background-color: var(--bg-color-2);
}

.centered {
	display: flex;
	justify-content: center !important;
	align-items: center !important;
	text-align: center;
}

.alert {
	background: var(--warning) !important;
	color: var(--bg-color-1);
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 1rem;
}

.help-button {
	background: none !important;
	color: var(--gradient-blue-2) !important;
	border: none !important;
	padding: 0px !important;
	opacity: 0.8;
}

.help-button:hover {
	opacity: 1;
	color: var(--gradient-blue-1) !important;
	transition: 0.3s;
}

.styled-button {
	background: var(--icon-color);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0px 10px !important;
	font-size: 1rem;
	cursor: pointer;
}

.styled-button:hover {
	background: var(--gradient-blue-2);
	transition: 0.3s;
}

.label {
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	color: var(--text-light-color);
}

.tabs-material-wrapper {
	background-color: var(--bg-color-3);
	color: var(--text-light-color);
	box-shadow: 0 2px 2px lightgrey;
	z-index: 1000;
}

.tabs-material li a {
	font-family: Arial, Helvetica, sans-serif;
	text-transform: none !important;
	color: var(--text-light-color);
}

.tab-marker {
	background: linear-gradient(90deg, var(--icon-color), var(--gradient-purple-2));
	border-radius: 2px;
}

.select-small {
	width: 200px !important;

}

.spinner-small {
	width: 100px !important;
}

.phagegap-logo-text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;

	background: linear-gradient(
		90deg,
		var(--icon-color) 0%,
		var(--icon-color) 56%,
		var(--gradient-purple-1) 60%,
		var(--gradient-purple-2) 100%
	);

	-webkit-background-clip: text;
	background-clip: text;

	-webkit-text-fill-color: transparent;
	color: transparent;
}

.phagegap-cookie-disclaimer {
	position: fixed;
	font-family: monospace;
	bottom: 0;
	left: 0;
	background: var(--bg-color-1);
	border: 1px solid var(--bg-color-3);
	border-radius: 4px;
	padding: 1rem;
	box-shadow: 0 0px 24px rgba(6, 36, 101, 0.1);
	z-index: 1000;
}

.notify {
	background: rgba(255, 255, 255, 0.5) !important;
	border-radius: 4px;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.notify-title {
	color: var(--text-light-color);
	font-size: small !important;
	font-weight: bold !important;
}

.notify-message {
	color: var(--text-light-color);
	font-size: small !important;
}

#home {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

#home-relevance {
	background-image: url("../media/phage-bg.png");
	background-size: contain;
	background-position: right;
	background-repeat: no-repeat;
}

#home-relevance-image-credits {
	color: var(--text-color) !important;
	opacity: 0.9;
	position: absolute;
	bottom: 2px;
	right: 2px;
}

#home-relevance-image-credits:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border-radius: 2px;
}

#home-relevance-image-credits a {
	color: inherit !important;
}

#input-info {
	background: rgb(251, 251, 251);
}

#embedding-landscape-chart-container {
	height: 70vh;
	width: auto;
	border-radius: 3px;
}

#category-probabilities-chart-container {
	height: 18vh;
	width: auto;
	background: var(--bg-color-2);
	border-radius: 3px;
	cursor: default;
}

#nearest-neighbor-cloak {
	position: absolute;
	height: 100%;
	width: 100%;
	background: var(--bg-color-2);
	color: var(--text-light2-color);
	border-radius: 3px;
	z-index: 2;
}

#structure-view-container {
	height: 34vh;
	width: auto;
	background: var(--bg-color-2);
	border: 1px solid var(--bg-color-3);
	border-radius: 3px;
}

#structure-view-info {
	position: absolute;
	color: var(--text-light-color);
	font-family: monospace;
	font-size: small;
	background: transparent;
	z-index: 2;
}

#sequence-alignment-chart-container {
	height: 10vh;
	width: auto;
	background: var(--bg-color-2);
	border-radius: 3px;
}

#genomic-context-chart-container {
	height: 12vh;
	width: auto;
	background: var(--bg-color-2);
	border-radius: 3px;
}

#legal-information {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: 100%;
	min-height: 364px;
}

#legal-content {
	flex: 1 1 auto;
	width: 100%;
	padding: 0.6rem 0.8rem;
	box-sizing: border-box;
	background-color: var(--bg-color-3);
	border-radius: 3px;
	overflow-y: auto;
	overflow-x: hidden;
}

#legal-nav {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
}

#legal-nav button {
	appearance: none;
	border: 0;
	background: none;
	margin: 0;
	padding: 0;
	font: inherit;
	font-size: 0.76rem;
	color: var(--text-light2-color);
	cursor: pointer;
}

#legal-nav button:hover {
	color: var(--fg-color);
}

#legal-nav button.active {
	color: var(--fg-color);
	font-weight: 600;
}

#legal-nav .separator {
	margin: 0 0.5rem;
	color: var(--text-light2-color);
	user-select: none;
}

.legal-panel {
	width: 100%;
	max-width: 62vw;
	margin: 0 auto;
}

.legal-panel[hidden] {
	display: none;
}

.legal-section h3 {
	margin: 0 0 0.4rem;
	font-size: 0.95rem;
}

.legal-section h4 {
	margin: 0.75rem 0 0.25rem;
	font-size: 0.85rem;
}

.legal-meta {
	color: var(--text-light2-color);
	font-size: 0.8rem;
}

.legal-license-grid {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr);
	gap: 0.2rem 0.9rem;
	margin-bottom: 0.4rem;
}

.legal-license-grid .label {
	font-weight: 600;
}

.legal-list {
	margin: 0.2rem 0 0.4rem;
	padding-left: 1.1rem;
}

.legal-list li {
	margin-bottom: 0.12rem;
}

@media screen and (max-width: 900px) {
	.legal-section {
		width: 92%;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media screen and (max-width: 650px) {
	.legal-section {
		width: 100%;
		padding: 0.4rem 1rem 0.3rem;
	}

	.legal-license-grid {
		grid-template-columns: 1fr;
		gap: 0.05rem;
	}

	.legal-license-grid .label:not(:first-child) {
		margin-top: 0.3rem;
	}

	#legal-nav .separator {
		margin: 0 0.35rem;
	}
}

#usage {
	background: var(--bg-color-2);
	color: var(--text-color);
	padding: 1rem;
}

.usage-nav {
	position: sticky;
	top: 4rem;
	background: var(--bg-color-1);
	border: 1px solid var(--bg-color-3);
	border-radius: 4px;
	padding: 1rem;
	box-shadow: 0 8px 24px rgba(6, 36, 101, 0.1);
}

.usage-nav h3 {
	color: var(--text-color);
}

.usage-nav ul {
	list-style: none;
	padding-left: 0;
}

.usage-nav li a {
	color: var(--icon-color);
	margin-bottom: 0.5rem;
	cursor: pointer;
}

.usage-nav li a:hover {
	color: var(--gradient-blue-2);
	transition: 0.3s;
}

.usage-content {
	background: var(--bg-color-1);
	border: 1px solid var(--bg-color-3);
	border-radius: 4px;
	padding: 1rem;
	box-shadow: 0 8px 24px rgba(6, 36, 101, 0.1);
}

.usage-section {
	margin-bottom: 1rem;
}

.usage-section p {
	text-align: justify;
	padding-right: 1rem;
}
