/*default version*/
@font-face {
	font-family: 'Fabrica';
	src: 
		url('../fonts/Fabrica/Fabrica.otf') 
		format('opentype');
}

/*@font-face {
	font-family: 'Amaranth';
	src: 
		url('../fonts/Amaranth/Amaranth-Bold.ttf') 
		format('opentype');
	font-weight: bold;
}*/

body {
	color: #FFF;
	background: #062E3D;
	font-family: Avenir, Helvetica, Calibri;
}

header.top {
	font-family: Fabrica;
	min-height: 100vh;
	margin-top: 50px;
}

/*header.top .header-content {
	padding: 7% 0 0 2%;
	width: 85vw;
}*/

header.top h1 {
	font-size: 3.5em;
	color: #fff;
	margin: 0;
	font-weight: bold;
}

header.top h2 {
	margin: 0;
	font-size: 3.5em;
}

header.top p {
	font-family: Avenir, Helvetica, Calibri;
	font-size: 1.3em;
	display: block;
	margin-top: 4%;
	margin-bottom: 4%;
}

header.top p a {
	border-bottom: solid 1px #39AD67;
	text-decoration: none;
	color: #fff;
	transition: 0.25s;
}

header.top nav a {
    display: block;
    text-decoration: none;
    color: #000;
}

header.top img {
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: 0.5s;
}

header.top img:hover {
	filter: invert(50%);
	-webkit-filter: hue-rotate(50deg);
}

header.top nav h3 {
	margin: 0;
	padding: 15px 5px;
	background: #39AD67;
	transition: 0.5s;
}

header.top nav h3:hover {
	color: #4D4D4D;
}

header.top nav h3.nav-hover {
	color: #4D4D4D;
}

aside.local-nav {
	background: #1a1e21;
	opacity: 0.8;
	display: inline-block;
	color: #fff;
	position: fixed;
	left: 0;
	top: 50vh;
	transform: translate(-100%, -50%);
	padding-left: 1%;
	font-style: italic;
	transition: 0.5s;
}

aside.local-nav.reveal {
	transform: translate(0, -50%);
}

aside.local-nav a {
	text-decoration: none;
	color: #fff;
}

aside.local-nav ul {
	list-style: none;
	padding: 10% 10% 10% 0;
	margin: 0;
	display: inline-block;
}

aside.local-nav ul li a {
	transition: 0.25s;
}

aside.local-nav ul li:not(:last-of-type) {
	margin-bottom: 40%;
}

aside.local-nav ul li:first-child a {
	color: #39AD67;
}

aside.local-nav ul li a:hover {
	color: #3C6778;
}

aside.local-nav ul li:last-child {
	background: #E2DDDB;
	padding: 10%;
	color: #39464D;
	cursor: pointer;
	transition: 0.25s;
}

aside.local-nav ul li:last-child:hover {
	background: #3C6778;
	color: #fff;
}

section.page {
	width: 100vw;
	min-height: 100vh;
	background: #000 !important;
}

.page nav {
	height: 50px;
    line-height: 50px;
    padding-left: 15px;
    background: #062E3D;
}

.page nav ul {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page nav li {
	display: inline-block;
	margin-right: 15px;
}

.page nav a {
	color: #fff;
	transition: 0.25s;
}

.page nav a:hover {
	text-decoration: none;
	color: #4D4D4D;
}

section.page:nth-of-type(odd){
	background: #062E3D;
}

section.page:nth-of-type(even){
	background: #39464D;
}

svg {
	background-color: #000;
	width: 100%;
	height: 75vh;
	display: table;
	margin: auto;
	padding-top: 1%;
	border: none !important;
}

section.page:nth-of-type(odd) svg {
	border: solid 1px #39464D;
}

section.page:nth-of-type(even) svg {
	border: solid 1px #1A1E21;
}

.page header {
	width: 85vw;
	margin: auto;
}

.page header h1 {
	display: inline-block;
	font-size: 2.5em;
	font-family: Fabrica;
	margin-top: 0;
	margin-bottom: 2%;
	margin-right: 1%;
	padding-top: 2%;
}

.page header img {
	width: 4%;
	height: auto;
	transform: translateY(20%);
}

#main {
	/*background-color: #000;*/
	/*width: 100vw;*/
}

/***** Glossary *****/

aside.glossary {
	position: fixed;
	right: 0;
	top: 0;
	width: 25%;
	height: 100%;
	background: #fff;
	overflow: scroll;
	color: #000;
	padding: 2%;
	z-index: 1;
	transform: translateX(100%);
	transition: 0.5s;
}

aside.glossary.show {
	transform: translateX(0);
}

aside.glossary div#terms {
	padding-bottom: 5%;
}

aside.glossary > div > h1 {
	font-size: 1.2em;
}

#tog-glossary {
	position: absolute;
	right: 0;
	z-index: 100;
	background: #000;
    margin-right: 0;
    padding-right: 15px;
    padding-left: 15px;
    opacity: 0.8;
}
/***** Options Menus *****/

#main div.options {
	display: table;
	width: 100%;
	text-align: left;
	margin: auto;
/*	margin-bottom: 1%;*/
	border-bottom: solid 1px #4D4D4D;
	background: #000;
	font-size: 0.9em;
}

#main .options h1 {
	font-size: 2em;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    padding-left: 5px;
}

#main .options img {
	height: 2em;
}

#main div.options > div {
	display: inline-block;
	padding: 1%;
    margin: 0;
}

#main div.options > div p {
	margin: 0;
}

#query, #search {
	color: #000;
}

#search {
	height: 100%;
	vertical-align: middle;
}

#main div.options ul {
	list-style: none;
	padding: 0;
	margin-right: 2%;
	margin-bottom: 0;
	display: block;
}

#main div.options ul li {
	display: inline-block;
	cursor: pointer;
	padding-right: 1%;
	transition: 0.25s;
}

#main div.options li.selected {
	color: gold;
}

#main div.options li:hover {
	color: #3C6778;
}

.options div > p {
	color: #B3B3B3;
	font-size: 0.8em;
}

.options div > p#habitable {
	font-size: 1em;
	cursor: pointer;
}

#habitable.selected {
	color: gold;
}
/****************************/

/***** Popup window *****/

svg.popup {
	background: #222428;
	border: solid 1px #34373D;
	position: fixed;
	width: 700px;
	height: 450px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

svg.popup text.popupTitle {
	font-size: 1.8em;
}

svg.popup text.popupSubTitle {
	font-size: 0.9em;
	opacity: 0.4;
}

svg.popup text.#mainField {
	font-size: 1em;
}

svg.popup text.starField {
	font-size: 0.8em;
}

svg.popup text.restField {
	font-size: 0.7em;
}

svg.popup .popupClose {
	cursor: pointer;
}

svg.popup .popupPause {
	cursor: pointer;
	font-size: 1em;
	font-weight: bolder;
}

svg.popup .orbitViz .ring {
	fill: none;
    stroke: #fff;
    stroke-width: 1px;
    stroke-opacity: .15;
}

svg.popup .orbitViz .orbLabel {
	font-size: 0.7em;
	width: 100%;
	opacity: 0.3;
}
/********************************/

/***** planets.html and planets.js *****/

#planets .ui-tooltip {
	background: #fff;
	width: 210px;
	font-size: 0.8em;
	color: #000;
	padding: 1%;
}

.ui-helper-hidden-accessible {
	display: none;
}

svg#planetChart .even {
	fill: #1A1A1A;
}

/*#planetChart .even:hover, .odd:hover {
	fill: #212121;
}*/

/*svg#planetChart .node {
	fill: blue;
	stroke: blue; 
}*/


@media screen and (max-width: 700px){
	#planets svg.popup {
		width: 500px;
		height: 321px;
	}
} 

@media screen and (max-width: 500px){
	#planets svg.popup {
		width: 320px;
		height: 206px;
	}
} 


/***** stars.html and stars.js *****/

/*#stars .options ul li {
	margin-right: 3%;
}*/

#stars .options > div:first-child {
	margin-right: 5%;
}

#stars .options ul li#O { border-bottom: solid 2px #115DD6; }
#stars .options ul li#B { border-bottom: solid 2px #6691D6; }
#stars .options ul li#A { border-bottom: solid 2px #fff; }
#stars .options ul li#F { border-bottom: solid 2px #FFF47C; }
#stars .options ul li#G { border-bottom: solid 2px #FFEB00; }
#stars .options ul li#K { border-bottom: solid 2px #FF7200; }
#stars .options ul li#M { border-bottom: solid 2px #FF1300; }
#stars .options ul li#other { border-bottom: solid 2px #E70083; }
#stars .options ul li#null { border-bottom: solid 2px #737373; }

#starMap .tick text {
	font: 12px sans-serif;
	fill: #fff;
	opacity: 0.2;
}

#starMap .label {
	fill: #fff;
	font-size: 0.8em;
	margin-left: 20px;
	opacity: 0.2;
}

#starMap .x.axis path, #starMap .x.axis line, #starMap .y.axis path, #starMap .y.axis line {
	fill: none;
	stroke: #9C9C9C;
	opacity: 0.2;
	shape-rendering: crispEdges;
	/*margin-left: 20px;*/
}

#starMap path.constLine {
	fill: none;
	stroke: #53FF45;
	opacity: 0.08;
}

#starMap .constLabel {
	font-size: 0.7em;
	opacity: 0.25;
}

#starMap .constLabel:hover {
	opacity: 1;
}

#starMap .point {
}


/***** habitables.html and habitables.js *****/

.options .select {
	display: block;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    background: #fff url("http://www.scottgood.com/jsg/blog.nsf/images/arrowdown.gif") no-repeat 100% 50%;
}

.select select {
	color: #000;
    padding: 5px 18px 5px 5px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.select select:focus {
    outline: none;
}

#habitables .options ul {
	margin-left: 2%;
}

#habitables .options ul li#mesoplanet { border-bottom: solid 2px #39AD67; }
#habitables .options ul li#psychroplanet { border-bottom: solid 2px #3C6778; }
#habitables .options ul li#hypopsychroplanet { border-bottom: solid 2px #E2DDDB; }

#distChart .hab-node:hover {
	stroke: #fff;
	stroke-width: 4;
}

#distChart .link {
	stroke: #FFF;
	stroke-width: 0.5;
}

#distChart .marker {
	stroke: #FFF;
	stroke-width: 1;
	fill:none;
}

#distChart .axis text {
	font: 10px sans-serif;
	opacity: 1;
}

#distChart .axis path,.axis line {
	fill: none;
	stroke: #9C9C9C;
	shape-rendering: crispEdges;
	margin-left: 20px;
}

#distChart .bar {
	fill: #9C9C9C;
	width: 0.7px;
}

#distChart .label {
	fill: #fff;
	line-height: 1.5;
}

#distChart .label:hover {
	font-weight: bolder;
	text-decoration: underline;
}

.d3-tip {
	background-color: #292929;
	padding: 5px;
	position: absolute;
}

.d3-tip span:before {
  	position: absolute;
  	content: "";
	width: 0; 
	height: 0; 
	border-bottom: 10px solid transparent;  /* left arrow slant */
	border-top: 10px solid transparent; /* right arrow slant */
	border-right: 10px solid #292929; /* bottom, add background color here */
	font-size: 0;
	line-height: 0;
	transform: translateX(-130%);
}

footer {
    color: #fff  !important;
    width: 100%;
    position: relative;
    z-index: 2;
    background: #000;
    margin-top: 15px;
}

footer ul, nav ul {
    margin: 0;
    padding: 0 0 0 2%;
}

footer li {
    display: inline-block;
    vertical-align: middle;
    line-height: 5vh;
    margin-right: 15px;
}

footer a {
	color: #fff;
}