/*Style declaration for ILToxDB, v. 1.14 */

/* General body */
body { 
	font-family: Arial, sans-serif; 
}

/* Default header */
h2 {
	text-align: center; 
	color: #333; 
}

/* Default paragraph text */
p { 
text-align: center; 
	font-size: 18px; 
	color: #777; 
}

/* Small text */
.small {
	font-size:x-small;
	font-style:italic;
	color:gray;
}
.compound_name {
	font-size:small; 
}
sub {
	font-size:x-small;
	position:relative;
	top: 0px;
}

/* small rectangular labels */
DIV.category { background-color:#bbbbbb; 
	padding: 1px 8px;
	font-size:x-small;
	position:absolute; 
	bottom:0; 
	right:0;
}
DIV.idbox { background: linear-gradient(135deg, #9999ff, #03A007); 
	color:white; 
	padding: 1px 8px;
	font-size:x-small;
	position:absolute; 
	bottom:0; 
	right:0;
}

/* Popup description of Methods, Notes, etc. */
.popup {
	background-color:#dddddd;
	border: 3px solid black;
	font-size:medium;
	padding:3px;
	position:absolute;
	bottom:0px;
	right:0px;
}

 /* Form container */
form { 
	/*display: flex; */
	justify-content: center; 
	align-items: center; 
	gap: 10px; 
	margin-bottom: 20px; 
}

/* Input text field */
input[type="text"] {
	padding: 5px; 
	border: 1px solid #ddd; 
	border-radius: 5px;
	margin-bottom: 12px;
	text-align: left;
}
input:invalid {
	color:red
	}
input:valid {
	color:black
	}
::placeholder {
	color:#bbbbbb
	}

/* Submit button */
input[type="submit"] {
	text-align:center;
	padding: 12px 24px; 
	font-size: 18px; 
	background: linear-gradient(135deg, #9999ff, #03A007); 
	color: white; 
	border: none; 
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
	transition: background 0.3s ease, transform 0.2s ease;
}
input[type="submit"]:hover {
	background: linear-gradient(135deg, #43A047, #388E3C); 
	transform: translateY(-2px);
}
input[type="submit"]:active {
	background: #2E7D32;
	transform: translateY(1px);
}

/* Default button */
button { 
	background-color: #4CAF50; 
	color: white; 
	padding: 5px 10px; 
	border: none; 
	cursor: pointer; 
	border-radius: 5px;
}

/* + - buttons */
button.plusminus { 
	background-color: #888888; 
	color: white; 
	padding: 5px 10px; 
	border: none; 
	cursor: pointer; 
	border-radius: 5px;
	width: 30px;
}

/* row in SELECT used as a delimiter */
option.delimiter {
	font-size:x-small;
	font-style:italic;
	background-color:gray;
	color:white;
} 
option.delimiter:nth-child(1) {
	color:gray;
	background-color:white;
	font-style:italic;
} 

/* Default striped table */
table {
	min-width: 80%;
	overflow-wrap: break-word;
	border-collapse: collapse;
	margin: 20px auto;
	font-size: 0.6 em;
}
tr:nth-child(even) { 
	background-color: #eeeeee; 
}
tr:hover { 
	background-color: #bbbbbb; 
}
th, td { 
	border: 1px solid #ddd; 
	padding: 12px; 
	text-align: left; 
}
th { 
	background-color: #888888; 
	color: white; 
}

/* Table of search results */
table.results {
	position:relative; 
}
table.results td {
	padding:6px; 
}
table.results th {
	position:sticky; 
	top:0;
	z-index:9;
}


/* Invisible tables for layout adjustment*/
table.container, table.container tr, table.container tr td {
	width: 100%;
	margin: 0px ;
	padding: 0px;
	border:none
}
tr.container:hover {background-color: #ffffff;}
td.container {border:none; padding: 0px; margin: 0px; width:100%}

/* Small header over the search form */
tr.small_header * { 
	font-size:x-small;
	font-style:italic;
	padding-bottom:2px;
	border: none;
	background-color:white
}

/* Sorter icons */
A.sorter {
	float:right; 
	padding:2px; 
	text-decoration:none; 
	color:black
}
A.sorter DIV {
	float:right; 
	margin:0px; 
	text-align:center; 
	height:8px; 
	position:relative; 
	top:-8px
}
A.sorter DIV SPAN {
	font-size:8px; 
	color:black; 
	position:relative; 
	top:-10px
}

/* Molecular drawer related links */
SPAN.left_triangle {
	font-size:0px;
	height:0px; 
	width:0px; 
	border-top: 10px solid transparent; 
	border-bottom: 10px solid transparent; 
	border-right: 10px solid grey;
	vertical-align: middle;
}
SPAN.right_triangle {
	font-size:0px;
	height:0px; 
	width:0px; 
	border-top: 10px solid transparent; 
	border-bottom: 10px solid transparent; 
	border-left: 10px solid grey;
	vertical-align: middle;
}
SPAN.label {
	color:#888; 
}
.moldraw {
height: 12px;
background-color:grey;
color:white;
font-weight:bold;
padding:2px;
text-decoration:none;
vertical-align: middle;
}

