@charset "utf-8";

body {
	background: url(../img/bg.jpg) no-repeat top center fixed;
	background-size: cover;
	font: 100% 'Open Sans', sans-serif;
	background-color: #CCC;
	font-weight: 300;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
a {
	cursor: pointer;
}
input,
button {
	box-sizing: border-box;
	padding: 0;
	border: 0;
}
.blocker {
	background: rgba(0,0,0,0.7);
	position: absolute;
	top: 0;
	left:0;
	width: 100%;
	height: 100%;
	z-index: 1;
}
.blocker p {
	font-size: 18px;
	margin: 20px auto;
	text-align: center;
}


.legend-modal .left,
.legend-modal .right {
	box-sizing: border-box;
	width: 50%;
	padding: 1em;
}
.legend-modal .left { float: left; }
.legend-modal .right { float: right; }

.top-bar {
	position: relative;
}
.top-bar .top-bar-inner-wrapper {
	margin: 0 auto;
	position: relative;
	width:1010px;
	min-width: 800px;
	max-width: 1600px;
}
ul.horizontal-nav {
	height: 50px;
	margin: 0;
	padding: 0;
}
ul.horizontal-nav li {
	cursor: pointer;
	color: #fff;
	float: left;
	font-size: 22px;
	list-style: none;
	padding: 10px 22px;
	position: relative;
}
ul.horizontal-nav li a {
	color: #fff;
}
ul.horizontal-nav li ul {
	background: rgba(45,116,166,1);
	position: absolute;
	margin: 0;
	padding: 0;
	width: 200px;
	top: 100%;
	left: -9999px;
	z-index: 1;
}
ul.horizontal-nav li ul li {
	float: none;
	font-size: 16px;
	padding: 4px 22px;
	margin: 0;
}
ul.horizontal-nav li:hover {
	background: rgba(17,93,146,1);
}
ul.horizontal-nav li:active {
	box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);
}
ul.horizontal-nav li.current {
	background: rgba(194, 29, 128, 1);
}
ul.horizontal-nav li:hover ul {
	display: block;
	left: 0;
}

ul.horizontal-nav li.pull-right {
	float: right;
}

.goog-wrap {
	float: left;
	padding: 15px 22px;
}
.replacement {
	display: none;
}

/* Reset styles and define some general stuff */
a, a:link, a:visited, a:active {color:#000;text-decoration:none;}
h1, p , ul.column, ul.column li h2 {padding:0px;margin:0px;}
h1 {text-shadow:2px 2px 3px #666;}
sup, sub {line-height: 1em;}
sup {vertical-align: super; font-size: smaller;}

/* Actual periodic table layout goes in here */

.ads-right{
    float:left;
    width:170px;
    margin-top:40px;
}
table.periodic-table {
	table-layout: fixed;
	width: 80%;
	margin-top: 20px;
    float:left;
}
table.periodic-table tr td {overflow:hidden; min-width:50px;text-align:center;}
table.periodic-table tr td .column-title {font-weight:bold;}
table.periodic-table tr td h2 {color:#fff;font-size:20px;font-weight:400;margin:0;}
table.periodic-table tr td p {font-size:12px;}
table.periodic-table tr td a {display:block;}
table.periodic-table tr td.col-names {
	font-weight: bold;
	vertical-align: bottom;
}
table.periodic-table tr td p.element-name {
	font-weight: normal;
}

/* Color legend in title box */
ul#legend {
	display: inline-block;
	padding: 0px;
	margin: 0;
	width: 100%;
}
ul#legend li {
	list-style: none;
	margin: 0;
}
ul#legend li a {
	display: block;
	padding: 8px 20px;
}

@media (max-width: 1120px) {
	table.periodic-table {
		width: 94%;
	}
	p.element-name {
		font-size: 10px;
		display: none;
	}
}

@media (min-width: 1375px) {
	.hide-small {
		display: block;
	}
	.hide-large {
		display: none;
	}
}
@media (max-width: 1375px) {
	.hide-small {
		display: none;
	}
	.hide-large {
		display: block;
	}
}

@media (max-width: 1120px) {
	table.periodic-table {
		width: 94%;
	}
	p.element-name {
		font-size: 10px;
		display: none;
	}
}

.lanact-spacer td {
	height: 10px;
}
td.other-nonmetals, 
td.metalloids, 
td.halogens, 
td.noble-gases, 
td.alkali-metals, 
td.alkaline-earth-metals, 
td.lanthanoids, 
td.actinoids, 
td.transition-metals, 
td.post-transition-metals {
	border: 1px solid #666;	
}

/* Classes for element types */

.alkali-metals {background:rgba(126,63,152,0.7);}
.alkaline-earth-metals {background:rgba(13,100,177,0.7);}
.lanthanoids {background:rgba(62,182,232,0.7);}
.actinoids {background:rgba(7,177,139,0.7);}
.transition-metals {background:rgba(84,185,72,0.7);}
.post-transition-metals {background:rgba(255,237,0,0.7);}
.metalloids {background:rgba(251,168,25,0.7);}
.other-nonmetals {background:rgba(241,96,34,0.7);}
.halogens {background:rgba(224,29,38,0.7)}
.noble-gases {background:rgba(173,12,36,0.7);}

/* Hover classes */
.alkali-metals:hover {background:rgba(126,63,152,1);}
.alkaline-earth-metals:hover {background:rgba(13,100,177,1);}
.lanthanoids:hover {background:rgba(62,182,232,1);}
.actinoids:hover {background:rgba(7,177,139,1);}
.transition-metals:hover {background:rgba(84,185,72,1);}
.post-transition-metals:hover {background:rgba(255,237,0,1);}
.metalloids:hover {background:rgba(251,168,25,1);}
.other-nonmetals:hover {background:rgba(241,96,34,1);}
.halogens:hover {background:rgba(224,29,38,1)}
.noble-gases:hover {background:rgba(173,12,36,1);}

/* Active classes */
.alkali-metals.active {background:rgba(126,63,152,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.alkaline-earth-metals.active {background:rgba(13,100,177,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.lanthanoids.active {background:rgba(62,182,232,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.actinoids.active {background:rgba(7,177,139,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.transition-metals.active {background:rgba(84,185,72,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.post-transition-metals.active {background:rgba(255,237,0,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.metalloids.active {background:rgba(251,168,25,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.other-nonmetals.active {background:rgba(241,96,34,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.halogens.active {background:rgba(224,29,38,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}
.noble-gases.active {background:rgba(173,12,36,1); box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);}

.other-nonmetals:active,
.metalloids:active,
.halogens:active,
.noble-gases:active,
.alkali-metals:active,
.alkaline-earth-metals:active,
.lanthanoids:active,
.actinoids:active,
.transition-metals:active,
.post-transition-metals:active,
a.active {
	box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);
}

.modal-storage .modal-grid {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
}
.modal-grid-square {
	float: left;
	width: 25%;
	height: 50%;
}

.modal {
	background: #fff;
	box-shadow: 0px 0px 4px #2B2B2B;
	display: none;
	padding-bottom: 64px;
	position: absolute;
	margin: 30px;
	width: 400px;
}
.modal p {
	margin: 1em 0;
}
.modal a:active {
	box-shadow: none;
}
.modal .handle-bar {
	background: #8b99b9;
	cursor: move;
	margin: 0;
	height: 52px;
}
.modal .handle-bar h3.modal-title {
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	margin: 0;
	padding: 14px 0;
	text-align: center;
	text-shadow: 0px 0px 5px #64759d;
}
.modal .modal-close {
	background: url(../img/close-sprite.png);
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	margin: 13px;
	width: 26px;
	height: 26px;
}
.modal .modal-close:hover { background-position: 0 -26px; }

.modal .handle-bar .atom-icon {
	background: url(../img/atom.png) no-repeat;
	margin: 13px;
	position: absolute;
	top: 0;
	left: 0;
	width: 23px;
	height: 26px;
}

.modal .element-stat {
	background: #f3f5fb;
	border-top: 1px solid #C6C6C6;
	border-right: 1px solid #F3F3F3;
	border-left: 1px solid #D7D7D7;
	border-bottom: 1px solid #ECECEC;
	margin: 6px;
	overflow: hidden;
}
.modal .element-stat div {
	float: left;
	padding: 4px 8px;
}
.modal .element-stat div.super-padding {
	float: left;
	padding: 10px 8px 4px 8px;
}
.element-stat-title {
	border-right: 1px solid #CCC;
	width: 160px;
}

.legend-modal {
	width: 600px;
	height: 400px;
	position: fixed;
}

ul.table-menu {
	display: inline-block;
	margin: 0 auto;
	padding: 0;
}
ul.table-menu li {
	list-style: none;
	float: left;
	margin: 10px;
	margin-bottom: 0;
	padding: 0;
}
ul.table-menu li a {
	background: rgba(73,273,77,0.7);
	display: block;
	padding: 8px 20px;
}
ul.table-menu li a:hover {
	background: rgba(73,273,77,1);
}
ul.table-menu li a:active {
	box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);
}

.wiki-link,
.big-green-button {
	display: block;
	background: rgba(73,273,77,0.7);
	box-sizing: border-box;
	padding: 8px 0;
	margin: 1em auto;
	text-align: center;
}
.wiki-link {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 94%;
	margin: 3%;
}
.legend-modal .right .reset-table {
	width: 100%;
	margin: 0;
}
.legend-button {
	max-width: 300px;
}
.wiki-link:hover,
.big-green-button:hover {
	background: rgba(73,273,77,1);
}

.modal .wiki-link:active,
.big-green-button:active,
.modal a.reset-table:active {
	box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2);
}

.defocused-elements {
	background: none;
}
#footer{
    color:#000;
    font-size:14px;
    text-align: center;
    clear:both;
    padding-top:20px 0 10px;
	 padding:20px;
}
#ads{
   text-align: center;
    float: left;
    width: 750px;
}
#logo{
    float: left;
    width: 250px;
}

@media only screen and (max-width:1210px){
    table.periodic-table {
	   table-layout: fixed;
	   width: 80%;
    }
}

@media only screen and (max-width:1000px){
.top-bar-inner-wrapper{
    width:100% !important;    
}
#logo{
    float: none;
    text-align: center;
}
#ads{
   text-align: center;
    float: none;
    width: 100%;
}
 .ads-right{
    float:none;
    width:100%;
    margin-top:10px;
}
table.periodic-table {
	table-layout: fixed;
	width: 100%;
	margin-top: 20px;
    float:none;
}
#footer{
	padding:0px;
    margin:20px;
}

.download_button{
    float: right !important;
    margin-right: 30px !important;
    position:relative !important;
    top:0px !important;
}
}

@media only screen and (max-width:1450px){
.download_button{
    top: 120px;
    left: 80px !important;
}
}

.download_button{
    position:absolute;
    left: 30px;
    padding-top: 5px;
}
.download_button a{
   padding: 10px 10px 10px;
   background-color: #2968C5;
   color: #FFF;
   /* margin-top: 0; */
   font-size: 18px;
}
