body
{
	margin: 0;
	margin-bottom: 50px;
	font-family: "Bahnschrift";
}
#heading
{
	margin: 0;
	padding: 20px;
	background: #501662;
	color: white;
}
h1
{
	font-size: 40px;
	text-align: center;
}
ul
{
	list-style-type: none;
	margin-bottom: 0;
}
li
{
	display: inline;
}
li a
{
	color: white;
	text-decoration: none;
	font-size: 15px;
	padding: 20px;
	margin-bottom: 0px;
}
li a.active
{
	background-color: white;
	color: #371043;
}
li a:hover:not(.active)
{
	background-color: #371043;
}

#filters
{
	position: absolute;
	display: inline-block;
	margin-left: 180px;
	margin-top: 40px;
	width: 565px;
	height: 155px;
}
input.metals
{
	display: none;
}
.purple-button
{
	margin: 5px;
	height: 30px;
	width: auto;
	border: none;
	border-radius: 3px;
	background-color: #501662;
	padding: 5px;
	color: white;
	text-align: center;
	outline: none;
}
.purple-button:hover, .purple-button:active;
{
	background-color: #371043;
}
input: hover,
{
	cursor: pointer;
}
#alkali{ color: #F3CB1F; }
#alkaline{ color: #F4A3E9; }
#transition{ color: #8EB0F3; }
#post-trans{ color: #70EE8E; }
#metalloid{ color: #CA8EF5; }
#diatomic{ color: #D26A77; }
#polyatomic{ color: #E98A56; }
#noble{ color: #9660EE; }
#lanthanide{ color: #75F0F2; }
#actinide{ color: #AFE186;}
#phase-key
{
	position: absolute;
	top: 50px;
	right: 100px;
	border: dotted 1px black;
	padding: 3px;
}
#solid-key{	color: #DB3723; }
#liquid-key{ color: #5888DC; }
#gas-key{ color: #72C872; }
#unknown-key{ color: #BDB9B7; }
#temp-block
{
	position: absolute;
	top: 10px;
	right: 10px;
}
#temp-slider
{
	transform: rotate(270deg);
	margin-top: 60px;
	-webkit-appearance: none;
	width: 130px;
	height: 10px;
	border-radius: 5px;
	background: #d3d3d3;
	outline: none;
	opacity: 0.7;
}
#temp-slider:hover {
	opacity: 1;
}
#temp-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #501662;
	cursor: pointer;
}
#temp-slider::-moz-range-thumb {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: #501662;
	cursor: pointer;
}

#periodic-table
{
	position: relative;
	display: inline-block;
	width: 1140px;
}
.header
{
	display: inline-block;
	background-color: white;
	border: none;
	width: 50px;
	height: 25px;
	margin: 5px;
	text-align: center;
	font-size: 20px
}
.header:hover
{
	cursor: pointer;
	background-color: #ECEFF2;
}
#blank:hover
{
	background-color: white;
	cursor: default;
}
.block
{
	display: inline-block;
	background-color: white;
	border: none;
	width: 50px;
	height: 50px;
	margin: 5px;
}
.fill
{
	background-color: #BDB9B7;
	border-radius: 5px;
	font-size: 15px;
	text-align: center;
	vertical-align: middle;
}
.fill:hover
{
	cursor: pointer;
}
.fill:focus
{
	outline: none;
}
.alkali-metal.in-color{ background-color: #F3CB1F; }
.alkaline-earth-metal.in-color{ background-color: #F4A3E9; }
.transition-metal.in-color{ background-color: #8EB0F3; }
.post-transition-metal.in-color{ background-color: #70EE8E; }
.metalloid.in-color{ background-color: #CA8EF5; }
.diatomic-nonmetal.in-color{ background-color: #D26A77; }
.polyatomic-nonmetal.in-color{ background-color: #E98A56; }
.noble-gas.in-color{ background-color: #9660EE; }
.lanthanide.in-color{ background-color: #75F0F2; }
.actinide.in-color{ background-color: #AFE186;}
.solid{	background-color: #DB3723; }
.liquid{ background-color: #5888DC; }
.gas{ background-color: #72C872; }
.modal
{
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.basic-info
{
	position: relative;
	background-color: white;
	border-radius: 10px;
	margin: auto;
	margin-top: 100px;
	padding: 20px;
	border: 1px solid #888;
	width: 50%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s
}
.modal a
{
	color: black;
	text-decoration: none;
}
.modal a:hover
{
	color:#371043;
}
@-webkit-keyframes animatetop
{
	from {top:-300px; opacity:0} 
	to {top:0; opacity:1}
}
@keyframes animatetop
{
	from {top:-300px; opacity:0}
	to {top:0; opacity:1}
}
.close
{
	border-radius: 2px;
	width: 20px;
	height: 20px;
	color: #C0BEC0;
	float: right;
	font-size: 28px;
	font-weight: bold;
}
.close:hover,
.close:focus
{
	color: black;
	text-decoration: none;
	cursor: pointer;
}
.modal table
{
	background-color: #E8E7E8;
}
.modal th
{
	background-color: #501662; 
	color: white;
	padding: 5px;
}
.modal td
{
	text-align: center;
}

.text-block
{
	margin: auto;
	margin-top: 50px;
	padding: 10px;
	width: 500px;
	border: solid 5px #3D3C3D;
	border-radius: 15px;
	background-color: #F0E4F4;
}
div.text-block
{
	width: auto;
	margin: 50px;
}
h2
{
	margin: 0;
}
hr
{
	border: solid 1px black;
	background-attachment: black;
	height: 0;
}
input[type="text"],
input[type="password"]
{
	outline: none;
	border: solid 1px grey;
}
input[type="text"]:focus,
input[type="password"]:focus,
{
	border: solid 1px black;
}