﻿/* newt-web.css: Main CSS for Newt-Web */

/* Newt-Web: A Newtonian Telescope CAD Program
				
Copyright (C) 2011 Kenneth H. Slater
				
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License 
Version 2 as published by the Free Software Foundation.
				
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
				
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */


/* Common Items */
* { font-family: Arial, Helvetica, sans-serif; }

a { cursor: pointer; text-decoration: none;}
a:link, a:visited { color: blue;    }
a:active, a:hover { color: #006699; }

a.help { /* Circled ? Help icon */
	display: inline-block;
	line-height: normal;
	padding: 0px 5px 1px 5px;
	border: 1px gray solid;
	border-radius:      10px;
	-webkit-box-shadow: 2px 2px 5px #909090;
	box-shadow:         2px 2px 5px #909090;
	text-align: center;
	font-size: small;
	font-weight: bold;
	font-style: normal;
	background-color: #FFFF99;
	vertical-align:middle;
}

h2:first-child {
	margin-top: 10px;
}

h2 {
	margin-top: 1em;
	margin-bottom: 0px;
}
h2 + p {
	margin-top: 6px;
}

/* Overall Layout */
body {
	background-color: white;
	padding: 0px;
	margin: 0px;
}

div#page { /* Holds all content */
	margin: 0px;
	padding: 0px;
}

/* Header Row */
header {
	width: 750px;
	margin: 10px auto;
	padding: 5px 8px;
	background-color: #F0F0F0;
	border: 1px gray solid;
	border-radius:      10px;
	-webkit-box-shadow: #909090 3px 3px 3px;
	box-shadow:         #909090 3px 3px 3px;
}
table#header_tbl {
	color: gray;
	border-collapse:collapse;
}
header h1 {
	margin: 0px;
	padding-bottom: 5px;
	font-size: 36pt;
	font-weight: bold;
	color: navy;
	filter: dropshadow(color=#B0B0B0,offX=3,offY=3);
	text-shadow: #909090 3px 3px 3px;
	line-height: 30pt;
}
td#hdr_title_label, td#hdr_notes_label {
	vertical-align: top;
}

td#hdr_title {
	font-weight: bold;
	color:black;
}
td#hdr_notes {
	color:black;
}
td#hdr_prime, td#hdr_fl {
	min-width: 100px;
	padding: 0px 0px 0px 5px;
	color:black;
	text-align: center;
	vertical-align: top;
}
header p.help-ver {
	margin: 5px 0px 0px 0px;
}
header span.help-ver-data {
	color: navy;
	font-weight: bold;
}

div#status-box {
	float: right;
	width:280px;
	height:80px;
	background-color:#E0E0FF;
	border: 1px gray solid;
	border-radius:     10px;
	-webkit-box-shadow: inset 3px 3px 3px #909090;
	box-shadow:         inset 3px 3px 3px #909090;
	padding: 3px;
	font-size: smaller;
}
div#status-box table#stat_tbl {
	border-collapse: collapse;
	margin: auto;
}
div#status-box table#stat_tbl td {
	padding: 2px;
}
div#status-box table#stat_tbl td.stat_r {
	text-align: center;
}

/* Tabs */
nav#tab-row {
	width: 750px;
	margin: 0px auto;
	padding: 0px;
	border-bottom: 1px black solid;
	text-align: center;
	z-index: 100;
}
ul.tab {
	position: relative;
	margin: 0px;
	padding: 0px;
	height: 21px;
	z-index: 100;
}
li.tab, span.tab {
	vertical-align: top;
	display: inline-block;
	min-width: 4em;
	height: 20px;
	margin: 0px;
	padding: 0px 3px;
	border-left:  1px black solid;
	border-top:   1px black solid;
	border-right: 1px black solid;
	border-radius:      5px 5px 0px 0px;
	border-bottom: 1px black solid;
	background:#EBE2C7;
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='white', endColorstr=#E6DBB8) );
 	background-image: -webkit-gradient( linear,left top, left bottom, color-stop(0.46, rgb(230,219,184)), color-stop(0.0, rgb(255,255,255)) );
 	background-image: -moz-linear-gradient( center bottom, rgb(230,219,184) 46%, rgb(255,255,255) 90% );
	font-weight: bold;
	line-height: normal;
}
li.tab a, span.tab a {
	text-decoration: none;
	color: #404040;
	display:inline-block;
	width: 100%;
	text-align:center;
}
li.tab a:hover, span.tab a:hover {
	background: #FFFF99;
}
li.tab-selected {
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='white', endColorstr='white' );	
	background: white;
	border-bottom-color: white;
}
li.tab-selected a {
	color: black;
}
li.tab-selected a:hover {
	background-color: white;
}

/* The Panes */
div#pane-row { /* Holds all the panes */
	position: relative;
	background-color: white;
	top: -1px;
	left: 0px; 
}

div.display-pane { /*  Special pane for the drawing */
	position: absolute;
	width: 100%;
	visibility: hidden;
}
div.text-pane { /* all other panes */
	width: 750px;
	margin: 0px auto 10px auto;
	padding: 0px 10px;
	border: 1px gray solid;
	border-radius: 10px;
	-webkit-box-shadow: #909090 3px 3px 3px;
	box-shadow:         #909090 3px 3px 3px;
}

div.text-pane h6 {
	font-size: 14pt;
	font-weight: bold;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 6px;
}
div.text-pane p {
	font-size: smaller;
	text-align: justify;
	margin-top: 6px;
	margin-bottom: 6px;	
}
div.text-pane p.note {
	font-style: italic;
	font-size: smaller;
	text-align: center;
	margin-top: 6px;
	margin-bottom: 6px;
}
div.text-pane p.footnote, div#display_Performance p.footnote {
	font-style: italic;
	font-size: small;
	text-align: justify;
	color: #666666;
}
/* File Pane */
div#modstatus {
	width: 400px;
	margin: 5px auto 0px auto;
	border: 1px gray solid;
	-webkit-border-radius: 10px;
	border-radius:         10px;
	-webkit-box-shadow: inset 3px 3px 3px #909090;
	box-shadow:         inset 3px 3px 3px #909090;
	padding: 0px 10px;
}
div#modstatus p {	
	text-align: center;
}
output#modified {
	color: navy;
	font-weight: bold;
}

table#ls_tbl {
	border-collapse:collapse;
}
table#ls_tbl td {
	vertical-align: top;
}
div#ls_list {
	border: 1px black solid;
	width: 400px;
	height: 300px;
	margin-right: 10px;
	overflow: scroll;
	padding: 5px;
}
div#ls_list p.lswarn {
	color: red;
	font-style: italic;
	font-size: medium;
}

table#dtbl {
	border-collapse:collapse;
	width: 100%;
}
table#dtbl tr:nth-child(even) {
	background-color: #F0F0F0;
}
table#dtbl tr#note {
	background-color: white;
}
table#dtbl th {
	font-weight: bold;
	text-align: left;
	text-decoration: underline;
}
table#dtbl th#c0 {
	width: .5em;
}
table#dtbl th#c1 {
	width: 14em;
}
table#dtbl td {
	font-weight: normal;
	text-align: left;
	font-size: small;
	vertical-align: top;
	padding: 2px 5px 0px 0px;
}
table#dtbl td#dsel {
	vertical-align: top;
	padding: 0px;
}

output#save_count, output#selected, output#save_name {
	color: navy;
	font-weight: bold;
}

div.center_button { 
	text-align: center;
}

table#load_samp {
	margin: auto;
	width: 100%;
}
table#load_samp td {
	text-align: center;
}

table#opensave { 
	width: 100%;
	margin-bottom: 5px;
}
table#opensave td { 
	vertical-align: top;
}
table#opensave td#osr { border-left: 1px black solid; }
table#opensave td h6 { margin-top: 0px; }
table#opensave td { text-align: center }
form#save-form p  { text-align: center }
table#opensave td button { margin-top: 5px; }
table#opensave td input#file-name { text-align: right }

input#file_sel {
	text-align: right;
}

/* Specifications Pane */
form#SpecForm {
	width: 625px;
	margin: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}
p#spec_hdr {
	font-size: smaller;
	font-style: italic;
	margin-top: 6px;
}

form#SpecForm fieldset {
	margin-bottom: 8px;
	border: 1px gray solid;
	border-radius: 10px;
	-webkit-border-radius: 10px;
}

form#SpecForm legend {
	font-weight: bold;
	background-color: #FFFFCC;
	border: 1px gray solid;
	padding: 0px 10px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
}
fieldset#telescope {
	background-color: #E0E0FF;
}
fieldset.background {
	background-color: #F0F0F0;
}
fieldset.background input {
	text-align: right;
	width: 5em;	
	border-radius: 5px;
	-webkit-border-radius: 5px;
}
fieldset#project input {
	text-align: left;
	width: 18em;
}
table.spec_tbl {
	width: 100%;
	border-collapse: collapse;
}
td.c1 {
	width: 220px;
}
td.spec_comment {
	font-style: italic;
	font-size: smaller;
	padding-left: .4em;
}

td#td_diag_range {
	text-align: right;
}
output#diag_range {
	font-size: small;
	font-style: italic;
}
table.spec_tbl tr#spec_dma td {
	padding-bottom: 5px;
}
td#diag_hdr {
	border-top: 1px gray solid;
	padding-top: 3px;
	text-align: center;
	font-size: small;
	font-weight: bold;
}
td#spec_100, td#spec_obs { 
	text-align: right;
	font-size: small;
	color: navy;
	margin-right: 10px;
}
td.spec_obs_note {
		font-size: small;
		font-style: italic;
		padding-left: 5px;
}
table.spec_tbl tr.diag {
	background-color: #E8E8E8;
	border-left:  1px gray solid;
	border-right: 1px gray solid;
}
table.spec_tbl tr.diag:last-child {
	border-bottom: 1px gray solid;
}
table.spec_tbl tr.diag:last-child td {
	padding-bottom: 3px;
}

/* Eyepiece Pane */
table#eye_tbl {
	margin: 10px auto 20px auto;
	border: 1px gray solid;
	border-collapse: collapse;
	background-color: #F0F0F0;
	text-align: right;
}
table#eye_tbl th {
	border: 1px gray solid;
	vertical-align: bottom;
	padding: 1px 5px;
	background-color: #E0E0FF;
	text-align: center;	
	font-size: smaller;
}
table#eye_tbl td {
	border: 1px gray solid;
	padding: 2px 10px;
}

table#eye_tbl tr:nth-child(odd) {
	background-color: #E8E8E8;		
}

table#eye_tbl input {
	text-align: right;
	width: 4em;
	border-radius: 5px;
	-webkit-border-radius: 5px;
}

/* Ray Trace Pane */
div#draw-controls {
	padding: 5px;
	font-size: small;
	text-align: center;
}

span#raytrace_spacer { 
	display: inline-block;
	width: 100px; }

ul.draw-list {
	display: inline-block;
	margin: 0px;
	padding: 0px;
}
ul.draw-list li {
	display: inline-block;
	margin: 0px 5px;
	list-style: none;
}
canvas#scope-canvas {
	border: 1px Background solid;
	-webkit-border-radius: 10px;
	border-radius:         10px;
	-webkit-box-shadow: #909090 3px 3px 3px;
	box-shadow:         #909090 3px 3px 3px;
	background-color: white;
	width: 98%;
	height:100px;
	margin: 0px 1%;
}

/* Performance Pane */
div#display_Performance p {
	font-size: medium;
}

div#display_Performance span {
	color: navy;
	font-weight: bold;
}

/* Dimensions Pane */
table#dim_pane {
	width: 100%;
}
table#dim_pane td {
	width: 50%;
	vertical-align: top;
}
table#dim_tbl, table#baf_tbl {
	border-collapse: collapse;
	border: 1px gray solid;
	background-color: #E0E0FF;
	font-size: smaller;
	margin: 5px auto 20px auto;
}

table#dim_tbl tr:nth-child(odd) {
	background-color: #D8D8FF;
}

table#baf_tbl {
	text-align:center;
}
table#baf_tbl tr:nth-child(odd) {
	background-color: #D8D8FF;
}
table#dim_tbl td, table#baf_tbl td, table#baf_tbl th {
	padding: 2px 5px;
	width: auto;
}
table#baf_tbl td.baf_hdr {
	border-top: 1px gray solid;
	color: navy;
}

#dim_units { text-align: center; } 
#dim_pridia, #dim_fl, #dim_fr, #dim_tid, #dim_tth, #dim_fh, #dim_fid, #dim_fet, #dim_fct,
#dim_dma, #dim_dof, #dim_100, #dim_075, #dim_fad, #dim_m2f, #dim_f2f, #dim_f2b, #dim_tl {
	text-align: right;	
}

/* About Pane */
div#display_About {
	visibility: visible;
}

h6#Abt_Ver {
	margin-bottom: 0px;
}
p.Abt_Ctr {
	text-align: center !important;
	margin-top: 6px !important;
	line-height: 140% !important;
}

p#about_sum {
	font-size: 14pt;
	font-weight: bold;
	margin: 20px 10px;
	padding: 10px 20px 15px 15px;
	border: 2px gray solid;
	border-radius: 10px;
	-webkit-box-shadow: inset -5px -5px 5px #909090;
	box-shadow:         inset -5px -5px 5px #909090;
	background: #EEEEFF;
}

div#display_About p.get_started {
	font-size: large;
}
div#display_About span.get_started {
	font-size: large;
	line-height: 1.6em;
	margin-left: 1.5em;
}

span.abt_spacer3 {
	display: inline-block;
	width: 3em;
}

p#abt-window {
	display: inline-block;
	float: right;
	margin-top: 0px;
}

table#sources {
	width: 90%;
	margin: 0px auto 10px auto;
	border-collapse:collapse;
}
table#sources td {
	vertical-align:top;
	padding: 3px;
}
table#sources ul { margin: 0px; }
table#sources li { padding-bottom: 4px;}

/* Help Pane */
div#display_Help p {
	font-size: large;
}

div.link_btn {
	text-align: center;
}
div.link_btn button {
	margin: 5px;
	width: 200px;
	height: 30px;
	valign: middle;
}
a.link_btn  { /* The Link Button for Topics */
	display: inline-block;
	border: 1px gray solid;
	border-radius: 10px;
	background: #E0E0FF;
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='white', endColorstr=#E0E0FF) );
	background-image: -webkit-gradient( linear,left top, left bottom, color-stop(0.46, #E0E0FF), color-stop(0.0, white));
 	background-image: -moz-linear-gradient( center bottom, #E0E0FF 46%, white 90% );
 	background-image: gradient( linear,left top, left bottom, color-stop(0.46, #E0E0FF), color-stop(0.0, white));
	vertical-align: middle;
	margin: 5px;
	min-width: 180px;
	height: 1.5em;
	text-align: center;
	padding: .4em 1em 0em 1em;
	-webkit-box-shadow: #909090 3px 3px 3px;
	box-shadow:         #909090 3px 3px 3px;
}

/* Help Pages */
div.help-page h2 {
	text-align: center;
}
div.help-page h3 {
	margin-bottom: 0px;
	font-size: x-large;
}
div.help-page h4 {
	margin-bottom: 0px;
	font-size: large;
}
div.help-page h5 {
	margin-bottom: 0px;
	font-size: medium;
}
div.help-page p {
	font-size: medium;
	margin: .6em 0em;	
}
div.help-page p.byline {
	text-align: center;
	font-style: italic;
}
h4 + p.def {
	display: block;
	font-style: italic;
	width: 90%;
	margin: 7px auto;
	text-indent: 20px;
	padding: 2px 10px;
	border: 1px gray solid;
	background-color: #EEE;
	border-radius: 10px;
	-webkit-box-shadow: #909090 3px 3px 3px;
	box-shadow:         #909090 3px 3px 3px;

}
