* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
main {
	font-family: Arial, Helvetica, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
}
form > h1{
	margin-top: 5px;
}
.formHeader{
	margin: 10px 0;
}
.ensdf-search {
    display: flex;
    flex-direction: column;
    align-items: center;
	justify-content: flex-start;
	min-width: 400px;
	max-width: 600px;
	width: 100%;
	margin: 20px auto;
}

.ensdf-tabs {
	display: flex;
	height: 50px;
	margin-left: -2px;
	width: 100%;
}
.ensdf-search a {
	text-decoration: none;
}
.ensdf-tab-content {
	position: relative;
	width: 100%;
	max-width: 600px;
	flex-shrink: 1;
	background: var(--TEAL);
	color: #fff;
	padding: 25px 10px;
	border-radius: 10px;
	border-top-left-radius: 0px;
}

.ensdf-tab-content > .helpButton {
	position: absolute;
	top: 5px;
	right: 5px;
	border-radius: 50%;
	border: 2px solid var(--GOLDENROD);
	height: 20px;
	width: 20px;
	cursor: pointer;
	text-align: center;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	display: none;
}
.ensdf-tab-content form {
	display: none;
	flex-direction: column;
}
.ensdf-tab-content form.active {
	display: flex;
}
.ensdf-tab-content form .split-form {
	display: flex;
	justify-content: center;
}
form > h1 {
	font-size: 14px;
}
.form-row > p{
	text-align: center;
}
.form-submit-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 5px;
}
.submitButton {
	border: 1px solid var(--TEAL);
	background-color: var(--CERULEAN);
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	padding: 5px;
	margin: 5px 5px;
	min-width: 100px;
	width: 100px;
	box-shadow: none;
	border-radius: 4px;
	transition-duration: 0.4s;
}
.submitButton:hover{
    border: 1px solid var(--GOLDENROD);
    background-color: var(--TEAL);
}
.submitButton i {
	pointer-events: none;
}
.ensdf-tab-content form p {
	color: var(--GOLDENROD);
	font-size: 14px;
}
.ensdf-tabs button {
	float: left;
	max-width: 140px;
	width: 100%;
	border: 1px solid #ddd;
	outline: none;
	cursor: pointer;
	padding: 8px;
	padding-bottom: 12px;
	transition: all 0.5s ease;
	font-size: 16px;
	margin-right: 5px;
	margin-top: 10px;
	border-top: 4px solid var(--GOLDENROD);
	border-right: 2px solid var(--GOLDENROD);
	border-bottom: none;
	background-color: var(--CERULEAN);
	color: #fff;
	border-top-right-radius: 15px;
	border-top-left-radius: 15px;
	white-space: nowrap;
	font-weight: bold;
}
.ensdf-tabs button.active {
	background-color: var(--TEAL);
	margin-top: 0px;
	padding-bottom: 10px;
}
#decay-multiselect {
	height: 150px;
	min-width: 80px;
}
.ensdf-tab-content > .helpButton > i {
	font-size: 10px;
	color: var(--GOLDENROD);
}
.ensdf-tab-content table {
	color: #fff;
}
.ensdf-tab-content table th {
	text-align: right;
	font-size: 16px;
	white-space: nowrap;
	font-weight: bold;
}
.ensdf-tab-content table td {
	text-align: left;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.ensdf-tab-content form input[type="text"], .ensdf-tab-content form select {
	height: 25px;
	max-width: 250px;
	width: 100%;
}
.ensdf-tab-content table td > input, .ensdf-tab-content table td > select {
	margin: 5px;
}
.ensdf-tab-content .split-form > div > label {
	margin-bottom: 5px;
}
#decay-multiselect {
	height: 150px;
	min-width: 80px;
}
.ensdf-tab-content form label {
	font-size: 16px;
	font-weight: bold;
	margin-right: 5px;
	white-space: nowrap;
}
.ensdf-tab-content .split-form > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	margin-left: 10px;
}

/* Decay form */
.form-content {
    display: flex;
    justify-content: center;
    width: 100%;
}
.form-inputs > div > p{
    height: 20px;
}
.form-labels, .form-inputs {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.form-labels {
    margin: 0 10px 0 0;
}
.form-labels > span {
    font-size: 16px;
    font-weight: bold;
    color: #fff !important;
    text-align: right;
    height: 25px;
	line-height: 25px;
    margin: 8px 0 22px 0;
}
.form-inputs > div input,
.form-inputs > div select {
    margin: 8px 0 2px 0;
}
.formHeader{
	display: flex;
	gap: 5px;
}
/* Multi select */
.multi-select {
    position: relative;
	margin-bottom: 10px;
	width: 250px;
}
.focused {
    border: 2px solid #0060df;
	outline: 1px solid #588da0;
}
.multi-select.active .multi-selected{
	outline: 1px solid #588da0;
    border: 2px solid #0060df;
    border-top:none;
    border-bottom: none;
}
.multi-selected.active{
	display: flex;
}
.multi-selected {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 250px;
    padding: 5px;
    background: #fff;
    outline: 0;
    border: 1px solid #979797;
    border-right:1px solid #e3e3e3;
    border-top: none;
}
.multi-selected button {
    cursor: pointer;
    position: relative;
    background: #e6e6e6;
    border: 1px solid #bfbfbf;
    height: 25px;
    min-width: 55px;
    text-align: left;
    padding-left: 10px;
    border-radius: 8px;
    margin: 0 4px 4px 0;
}
.multi-select.active .no-decays{
	display: block;
}
.multi-select .no-decays {
	display: none;
	margin-top:3px;
	margin-left: 10px;
	color: #ed2412;
	font-weight: bold;
}
.multi-selected button:hover {
    border: 1px solid var(--CERULEAN);
}
.multi-selected button:before, .multi-selected button:after {
    position: absolute;
    top: 8px;
    right: 8px;
    content: '';
    height: 8px;
    width: 2px;
    background-color: #bfbfbf;
}
.multi-selected button:hover:before, .multi-selected button:hover:after {
    background-color: var(--CERULEAN);
}

.multi-selected button:before {
    transform: rotate(45deg);
}
.multi-selected button:after {
    transform: rotate(-45deg);
}
.multi-select input {
    height: 100%;
    margin-bottom: 0 !important;
    padding: 0 5px;
    border-radius: 2px;
}
.multi-select.active input{
    border-bottom: 1px solid #0000002f;
}
.multi-select.active .multi-options{
    display: flex;
}
.multi-options {
    display: none;
    flex-direction: column;
    position: absolute;
    background: #fff;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid #0000002f;
}

/* CSS for ENSDF image, copied from ensdf/ webapp. */
.ensdf-image {
    justify-content: flex-start;
    min-height: 470px;
}
.ensdf-card {
    border-radius: 10px;
    box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.5);
    color: #fff;
    font-size: 16px;
    max-width: 600px;
    min-width: 400px;
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%;
    margin: 0px 5px 20px 5px;
    border: 3px solid var(--GOLDENROD);
}

.ensdf-card img {
    max-width: 100%;
    vertical-align: top;
    position: relative;
    transition: all 1s ease;
}

.ensdf-card figcaption {
    padding: 10px;
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: 100%;
}

.ensdf-card figcaption:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--TEAL);
    content: '';
    background: linear-gradient(180deg, var(--TEAL) 0%, var(--CERULEAN) 100%, var(--CERULEAN) 100%);
    opacity: 0.8;
    z-index: -1;
}
.ensdf-card figcaption > p{
    text-align: center;
}
.ensdf-card figcaption > p > a, .ensdf-card figcaption > p > a:visited{
    color: var(--GOLDENROD);
}
.ensdf-card figcaption > p > a{
    position: relative;
    font-weight: bold;
    white-space: nowrap;
}

.ensdf-card .caption-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.ensdf-card .caption-buttons>a {
    white-space: nowrap;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--CERULEAN);
    background-color: var(--TEAL);
    padding: 5px;
    margin: 5px 5px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    color: #fff;
    box-shadow: none;
    border-radius: 4px;
    transition-duration: 0.4s;
}

.ensdf-card .caption-buttons>a:hover {
    border: 1px solid var(--GOLDENROD);
    background-color: var(--CERULEAN);
}

.ensdf-card .caption-buttons>button>a {
    position: absolute;
    width: 100%;
    height: 30px;
}

.ensdf-card h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ensdf-card p {
    font-size: 16px;
    margin-bottom: 0px;
}

.ensdf-card:hover img {
    transform: scale(1.1);
}

.multi-options button {
    width: 100%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 0;
}
.multi-options button.selected {
    background: #e4e4e4;
    color: #aeaeae;

}
.multi-options button:hover {
    background: #e4e4e4;
}
.ensdf-results.active {
	display: flex;
}
.ensdf-results {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 50px;
	width: 100%;
}
#ensdf-results-header {
	font-size: 25px;
	max-width: 900px;
  	width: 100%;
}

.ensdf-results table {
	width: 99.9%;
	border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.ensdf-results thead tr {
    background-color: var(--TEAL);
    color: #fff;
    text-align: left;
}
.ensdf-results th,
.ensdf-results td {
    padding: 10px;
}

.ensdf-results  tbody tr {
    border-bottom: 1px solid #aeaeae;
	border-left: 3px solid #ffffff00;
	border-right: 3px solid #ffffff00;
}

.ensdf-results tbody tr:nth-of-type(even) {
    background-color: #f1f1f1;
}

.ensdf-results td > button{
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ensdf-results td > button i {
	font-size: 28px;
	color: var(--TEAL);
	pointer-events: none;
}
.ensdf-results th:nth-last-child(-n+2){
	text-align: center;
}
.ensdf-results td > button:hover i {
	color: var(--CERULEAN);
}
.ensdf-table{
	overflow-x: auto;
	overflow-y: auto;
	max-height: 800px;
    margin: 10px 0 25px 0;
	border-bottom: 2px solid var(--TEAL);
	max-width: 900px;
	width: 100%;
	margin: 10px auto 30px auto;
}
.ensdf-table thead tr {
	position: sticky;
	top:0;
	z-index: 1;
}
.ensdf-results tbody tr:hover {
	border-left: 3px solid var(--GOLDENROD);
	border-right: 3px solid var(--GOLDENROD);
}
.ensdf-results tbody tr:hover td{
	text-shadow: 1px 0 0;
}
button.disabled {
	pointer-events: none;
	display: none;
}