/* BioTIME Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Red+Hat+Text:ital,wght@0,400;0,500;1,400;1,500&family=Fira+Code&display=swap');

:root {
  --Font1: 'Libre Franklin', sans-serif;
  --Font2: 'Red Hat Text', sans-serif;
  --Font3: 'Fira Code', monospace;
}

body {
	font-family: var(--Font1);
	font-size:  17px;
	color: #253A45;
	padding: 0;
	margin: 0;
	line-height: 140%;
	overflow-x: hidden;
}

a:link, a:visited, a:active, a {
	color: #155f49;
	font-weight: 500;
	text-decoration: none;
	font-family: var(--Font2);
}

a:hover {
	color: #67b6c4;
	text-decoration: underline;
	transition: color 0.1s ease-in-out;
}

a.button {
	display: inline-block;
	padding: 4px 12px;
	border: 1.5px solid #253A45;
	border-radius: 15px;
	font-family: var(--Font3);
	font-size: 15px;
	text-align: center;
	margin: 10px 15px 10px 0;
	color: #253A45;
}

a.button:hover {
	color: #d9d956;
	background-color: #253A45;
	text-decoration: none;
}

td {
	vertical-align: top;
	align:left;
}

select {
	font-family: var(--Font1);
	font-size: 14px;
}

h1 {
	font-family: var(--Font1);
	font-size: 50px;
	line-height: 110%;
}

h2 {
	font-family: var(--Font2);
	font-size: 30px;
	font-weight: 500;
	line-height: 110%;
	margin-bottom: 7px;
}

h3 {
	font-family: var(--Font3);
	font-size: 26px;
	font-weight:  normal;
	line-height: 110%;
	margin-bottom: 7px;
}

h4 {
	font-size: 23px;
	margin-bottom: 7px;
}

img {max-width: 100%; height: auto;}

span.input-field {
	width: auto;
	height: auto;
	display: inline-block;
	margin-right: 8px;
}

.input-field input, .input-field select {
	position: relative;
	margin: 0px;
}

.input-field label {
	font-family: var(--Font3);
	font-size: 14px;
	display: block;
}

input, select {
	border: 1.5px solid #253A45;
	border-radius: 10px;
	padding: 5px 7px;
	font-family: var(--Font1);
	font-size: 17px;
	max-width: 90vw;
	margin: 0 10px;
}

input[type='submit'] {
	border-radius: 15px;
	background-color: #FFF;
	padding: 7px;
}

input[type='submit']:hover, input[type='submit']:focus {
	background-color: #253A45;
	color: #FFF;
}

/* Header navigation bar */

div#navbar {
	position: absolute;
	top: 25px;
	left: 25px;
	width: 90%;
	height: 50px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: start;
	align-items: baseline;
	align-content: start
}

h1#title, h1#title a {
	font-family: var(--Font1);
	font-size: 40px;
	font-weight: bold;
	margin: 0;
	display: inline-block;
	text-decoration:  none;
	color: #253A45;
	line-height: 100%;
	flex: 0 0 auto;
}

ul#nav {
	list-style:  none;
	margin: 0;
	display:  inline-block;
	position: relative;
	bottom: 0;
	flex: 0 0 auto;
}

#nav li {
	display: inline-block;
	list-style: none;
	margin-right: 25px;
}

#nav li a {
	text-decoration: none; 
	color: #253A45; 
	font-size: 17px;
	font-weight: normal;
	padding-bottom: 2px;
	font-family: var(--Font1);
	transition: all 0.15s ease-in-out;
}

#nav li a:hover {
	box-shadow: 0 6px 0 0 #67b6c4;
}

#logo {
	position: absolute;
	top: 25px;
	right: 25px;
	width: 70px;
	height: auto;
}

/* Page architecture */

div#wrapper {
	position: absolute;
	top: 120px;
	left: 0;
	width: 100%;
	min-height: 100%;
	height: auto;
}

div.intro {
	position: relative;
	top: 0;
	left: 0;
	width: 75%;
	padding: 0 25px 25px 25px;
	box-sizing: border-box;
}

.intro h1 {
	font-size: 35px;
	line-height: 110%;
	margin-top: 0;
	margin-bottom: 10px;
}

div.intro h2 {
	line-height:  115%;
	margin-top: 0;
	margin-bottom: 10px;
}

iframe#dataset-explorer {
	width: 100%!important;
	height: 80vh!important;
	position: relative;
	left: 0!important;
	border: none;
	margin-top: 40px;
}

div.row {  /* row wrapper */
	position: relative;
	width: 100%;
	box-sizing: border-box;
	height: auto;
}

div.padded {
	padding: 0 50px;
}

.column-row {
	display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: start;
  align-items: start;
  align-content: start;
	padding: 0 50px;
	position: relative;
	width: 100%;
	height: auto;
	box-sizing: border-box;
}

.col {
	position: relative;
	width: calc(50% - 60px);
	margin-right: 40px;
}

div.feature-text-row { /* for rows to highlight some text with an action button */
	padding: 50px 0;
	position: relative;
	width: 75%;
	left: 12.5%;
	height: auto;
	font-family: var(--Font2);
	font-weight: 500;
	font-size: 25px;
	display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center
}

.feature-text-row .text {
	flex: 0 0 auto;
	margin-right: 15px;
	max-width: 65%;
	width: auto;
	display: block;
	line-height: 120%;
}

.feature-text-row .action-button {
	flex: 0 0 auto;
	display: block;
}

/* Download area collapsible browse datasets */

div.realm-bar {
	width: 100vw!important;
	display: block;
	position: relative;
	height: 200px;
	transition: 0.4s background ease;
	background-position: 0 40%;
	background-size: cover;
	background-repeat: no-repeat;
	padding: 40px;
	box-sizing: border-box;
	font-family: var(--Font2);
	font-size: 25px;
	color: #FFF;
	line-height: 120%;
	display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  align-content: center
}

div.realm-bar:hover {
	background-position: 0 42%;
}

.realm-bar h2 {
	font-size: 45px;
	margin: 3px 0;
	line-height: 110%;
	font-weight: 500;
	color: #FFF;
}

.chevron::before {
	border-style: solid;
	border-width: 0.25em 0.25em 0 0;
  border-color: #FFF;
	content: '';
	display: block;
	height: 40px;
	position: relative;
	top: 0;
	left: 0.15em;
	transform: rotate(135deg);
	vertical-align: top;
	width: 40px;
	transition: .3s transform ease;
}

span.chevron {
	margin-right: 30px;
	margin-top: -10px;
}

/* Accordion controls */

.realm {
  transform: translateZ(0);
  width: 100%;
  margin: 0;
}

.realm > .accordion-toggle{
  position: absolute;
  opacity: 0;
  display: none;
}

.realm > label {
	display: block;
	position: relative;
	top: 0;
  left: 0;
	width: 100%;
	cursor: pointer;
}

.realm > div.realm-content {
  max-height: 0;
  transition: .3s all ease;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  position: relative;
  top: 0;
  left: 0;
  display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: start;
	align-items: start;
	align-content: start;
}

.realm-item:hover {
	opacity: 0.6;
}

div.realm-item {
	flex: 0 0 auto;
	width: calc(25% - 20px);
	min-width: 200px;
	height: auto;
	margin: 10px;
	font-family: var(--Font2);
  font-weight: 400;
  font-size: 21px;
  line-height: 120%;
  padding: 0;
  color: #253A45;
  transition: 0.3s opacity ease;
}

.realm-item a {
	display: block;
	width: 100%;
	height: auto;
	color: #253A45;
}

.realm-item a:hover {
	text-decoration: none;
	color: #253A45;
}

.realm-item img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	margin-bottom: 7px;
}

.realm-item h4 {
	margin: 0 0 5px 0;
	font-family: var(--Font1);
}

.accordion-toggle:checked ~ label div span.chevron::before {
	transform: rotate(-45deg);
}

.accordion-toggle:checked ~ div.realm-content {
  max-height: 200vh!important;
  padding: 30px;
}

div.footer {
	width: 100%;
	box-sizing: border-box;
	margin-top: 100px;
	padding: 70px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: start;
	align-content: start;
}

.footer-col {
	width: 30%;
	color: #707070;
	font-size: 16px;
	line-height: 145%;
	margin-right: 3%;
}

.footer-col h3 {
	font-size: 25px;
	font-family: var(--Font3);
	font-weight: normal;
	color: #707070;
	margin-bottom: 10px;
	margin-top: 0;
}

.footer-col h3:nth-of-type(2) {
	margin-top: 30px;
}

ul#sitemap-nav {
	width: 90%;
	position: relative;
	left: 0;
	column-count: 2;
	column-gap: 20px;
	list-style:  none;
	margin: 0;
	padding: 0;
}

#sitemap-nav li {
	display: block;
	padding: 9px 0;
	margin: 0;
}

#sitemap-nav li a {
	font-weight: normal;
	font-family: var(--Font1);
	font-size: 23px;
	margin: 0;
	transition: all 0.1s ease-in-out;
}

#sitemap-nav li a:hover {
	text-decoration: none;
	font-weight: bold;
}

div.social {
	width: 100%;
	position: relative;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	align-content: start;
	margin: 30px 0;
}

.social-icon {
	margin: 0 35px 0 0;
	width: 40px;
	height:  auto;
	opacity: 0.4;
	transition: opacity 0.1s ease-in-out;
}

a:hover > .social-icon {
	opacity: 0.6;
}

table {
	position: relative;
}

/* Small screen styling */

@media screen and (max-width: 800px) {
	div#navbar {width: 100%;}

	ul#nav {display: none;}

	#show-menu, #nav-button {display: inline-block!important;}

	h1#title {display: block}

	div.intro {width: 100%; left: 0;}
	
	iframe#dataset-explorer {height: 120vh!important;}

	.feature-text-row {width: 80%; left: 10%; text-align: center;}

	.feature-text-row .text {max-width: 100%; text-align: center; margin-bottom: 20px;}

	div.footer {padding: 100px 50px;}

	.footer-col {width: 100%; margin-bottom: 60px; margin-right: 0;}

	ul#sitemap-nav {width: 100%}

	#sitemap-nav li a{
		font-size: 20px;
		margin: 10px 0;
	}

	.social-icon {width: 50px;}

	div.social {justify-content: center;}

	#logo {display: none;}

	.col {
		position: relative;
		width: 100%;
	}

	.column-row .col::nth-of-type(1) {
		margin-right: 0;
	}

}

/* Menu Icon */

#show-menu {
display: none;
width: 30px;
height: 30px;
margin: 0;
position: absolute;
top: 30px;
right: 30px;
border: none;
background: none;
outline: 0;
z-index: 100;
}

#show-menu:focus {
    outline:0;
}

#nav-button {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
    z-index: 100!important;
}

#nav-button span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #253A45;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-button span:nth-child(1) {
  top: 0px;
}

#nav-button span:nth-child(2),#nav-button span:nth-child(3) {
  top: 10px;
}

#nav-button span:nth-child(4) {
  top: 20px;
}

#nav-button.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

#nav-button.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#nav-button.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#nav-button.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

/* end icon */

#show-menu:hover
{cursor: pointer;}

#show-menu, #nav-button {display: none;}

/* Small screen navigation menu */

div#full-nav {
    position: relative;
    width: calc(100% - 50px);
    height: auto;
    top: 0;
    left: 25px;
    display: none;
    transition: all 0.3s ease-in-out;
    margin-bottom: 40px;
}

 #full-nav ul{
    list-style: none;
    position: relative;
    top: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

#full-nav ul li {
  list-style: none;
  display: block;
	margin: 7px 0;
}

#full-nav ul li a {
    font-family: var(--Font1);
    color: #253A45;
    font-size: 25px;
    font-weight: normal;
    margin: 0;
    text-align: left;
    border: none;
    transition: all 0.15s ease-in-out;
}

#full-nav ul li a:hover {
  color: #67b6c4;
  text-decoration: none;
  font-weight: bold;
  margin-left: 7px;
}