/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* now our own styles */

html,body { height: 100%; } 

body{ background: linear-gradient(rgb(22, 54, 79) 60%, rgb(74, 177, 222) 90%); font-family: Raleway, Arial, Helvetica, sans-serif; height: 100%; margin: 0; padding: 0}

#main { 
	min-height: 100vh; display: grid;
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(rgb(22, 54, 79) 60%, rgb(74, 177, 222) 90%);
}

#head { position: relative; background: linear-gradient(rgb(0, 47, 114) 9%, rgb(74, 177, 222) 100%); border-bottom: solid 1px white; font-family: "Bree Serif", serif; color:white; }

#head .wrapper { max-width: 1200px; margin:0 auto; }

#head h1 { margin: 10px 0; }

h1, h1 a { font-size: 32px; color: white; text-decoration:none; }

#head a { color:white; text-decoration:none; }

h1 img, li img { display: inline-block; vertical-align: middle; margin-right: 20px; }

li img { margin-right: 8px }

h1 { float:left; }

#head ul { float: right; margin: 20px 0; }

#head li { display: inline-block; margin-left: 30px; }

#body { 
	min-height:400px; padding: 60px 0 40px 0; }
	
#footer { clear: both; text-align: center; color:white; }

.fusion-hills-opacity-candy { height: 30px; }

.fusion-hills-opacity-candy path:first-child { opacity: .12; }
.fusion-hills-opacity-candy path:nth-child(2) { opacity: .18; }
.fusion-hills-opacity-candy path:nth-child(3) { opacity: .24; }
.fusion-hills-opacity-candy path:nth-child(4) { opacity: .3; }

.colophon { background-color: #0d264a; font-size: 20px; line-height: 25px; padding: 15px 0; margin-top: -3px; }


/* menu */

#menu { padding: 20px 0; text-align: center; border-radius: 10px; max-width: 1000px; }

#menu li { display: inline-block; vertical-align: top; width: 125px; height: auto; margin: 1% 6px; text-align: center; font-size: 12px; }

#menu li:hover, #menu .ui-tabs-active { background: #D5F2FF; border-radius: 5px; box-shadow: 0px 0px 5px 2px #80A3B3; }

#menu .ui-tabs-active { outline: none; box-shadow: none; background: #E5F7FF; }

#menu .img { display: block; margin-bottom: 10%; } 

#menu .title { display: block; padding-bottom: 10%; line-height: 18px; }

#menu .ui-tabs-active .title { }

#menu li img { display: block; margin-bottom: 5px; width: 70%; margin: 0 auto; }

#menu li a { color: #096983; display: block; padding-top: 20px; font-size: 18px; text-decoration: none;  outline: none; font-family:  'Bree Serif', serif; }

#menu .ui-tabs-active a { color: black; }

#menu .empty { display: none; }
	
#content { clear: both; max-width: 1150px; margin: 0 auto; text-align: center; }

/* menu v2 */
#menu-wrapper { position: relative; z-index: 99999; cursor: pointer; margin: 40px 0 30px 0; }

#menu-wrapper h2 { position: relative; font-family: 'Bree Serif', serif; font-size: 24px; text-align: left; background: white url(../img/arrows.png) center right no-repeat; background-size: 25px auto; background-position-x: 95%; padding: 10px 0 10px 55px; width: 340px; margin: 0 auto; z-index: 999999; position: relative; box-shadow: 0 2px 3px 1px rgba(0,0,0,0.5); border-radius: 10px; }

.open #menu-wrapper h2 { border-radius: 10px 10px 0 0; }

#menu-wrapper h2 img { position: absolute; left: -20px; top: -20px }

.open #menu-wrapper h2 { box-shadow: none; }

#menu { position: absolute; background: white; left: 50%; margin: 0 0 0 -500px; box-shadow: 0 2px 3px 1px rgba(0,0,0,0.5); z-index: 1; }

/* submenu */

#submenu { text-align: center; }

#submenu li { display: inline-block; margin: 0 10px; }

/* help button */

#help-bt { position: absolute; bottom: -50px; right: 50%; margin-right: -540px; height: 30px; /*z-index: 9999;*/ background: #ffae00; padding: 10px 20px; /*box-shadow: 0px 0px 6px 1px rgba(0,0,0,0.4);*/ }

/* tabs */


.tab { display: flex; flex-direction: row; clear: both; max-width: 1200px; margin: 0 auto 20px auto; padding: 0;
	background: #C7EDFD; border-radius: 20px;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.8); 
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.8);
}

.open .tab { opacity: 0.5; }

.tab.active { display: block; color: red; }

.tab h2 { font-family: "Bree Serif", serif; font-size: 32px; color: black; margin-bottom: 20px; padding-bottom: 10px; vertical-align:middle; }	

.tab h2 img { vertical-align:middle; margin-right:10px; }

.form-wrapper { padding: 20px; }

#empty h2 { font-size: 40px; }
	
/* forms */

.form-wrap { width: 760px; padding:20px 0; }

form { max-width: 700px; margin: 0 auto; /*background: url(../img/grid.png) center center no-repeat; background-size: cover;*/ }

.illustration { float: left; width: 240px; height: 400px; }  

.letter {background: #0f4755; border-radius: 40px; width: 30px; height: 30px; line-height: 30px; font-size: 18px; font-weight: bolder; color: white; position: absolute; text-align: center; z-index: 9999; }

.inputs { width: 360px; float: left; margin-bottom: 10px; }

.field { margin-bottom: 20px; padding-left: 50px; clear: both }

.field.half { width: auto; padding-top: 10px; padding-right: 20px; float: left; clear: none; }

.field.half input { width: 60px; }

.field .letter { margin: 10px 0 0 -40px; }

.corners { text-align: left; }

.corners label { display: inline-block; width: 49%; }

.units label { margin-bottom: 10px; }

.units div, .units input, .units div label { float: left; }

.units div label { margin-right: 10px; }

.units { margin-bottom: 10px; } 

label { display: block; text-align: left; margin-bottom: 5px; }

input[type="text"], input[type="number"], select, textarea { display: block; background: white; border-radius: 10px; border: none; height: 40px; line-height: 30px; font-size: 16px; padding: 0 10px; margin-bottom:10px; width:215px; }

textarea { height:80px; width: 215px; font-family: Raleway, Arial, Helvetica, sans-serif; }

select { width: 200px; }
		
input[type="submit"], #reload, button { display: block; clear: both; background: #000000; font-size: 22px; color: white; border: none; width: 300px; height: 50px; line-height: 22px; margin: 30px auto 30px auto; font-family: 'Bree Serif', serif; border-radius: 6px; }

#reload { text-decoration: none; width: 150px; line-height: 50px; background: #ccc; color: black;  }

input:disabled { opacity: 0.5; }

form p { font-size: 20px; margin-bottom:20px; }

input[type="file"] { font-size: 18px; text-align: center; display:block; width:300px; margin:0 auto; }

.image-wrap { background:#9fdaf3; padding:20px 20px 0 20px; max-width: 400px; margin: 0 auto 20px auto; border-radius: 20px; }

.wide { max-width: none; margin: 0 30px 20px 30px; }

.your-image { font-size:20px; font-weight: bolder; margin-bottom:15px; }

.dontwant { font-size:18px; }

input.eaninput { background: #efefef; margin:0 auto; height: 40px; }

.column-cont { display: flex; justify-content: center; }

.column { margin: 0 20px; }

.column label { text-align:center; margin-bottom:5px; }

.column label span {display: block; margin-bottom:5px; }

/* calculator */

#calculator { width: 66%; padding-top: 20px; }

.label-b { font-size:20px; font-weight: bolder; display:block; text-align:center; }

.input-wrap { padding: 5px 0 30px; font-size: 30px; font-weight: bolder; }

input[type="text"] { background-color: #003556; color: white; display: inline-block; width:50px; text-align:center; font-size:20px; font-weight: bolder; margin: 0 5px; }

input[type="radio"] { margin-bottom: 20px; width: 20px; height:20px; }

#folds { margin: 0 auto 0 auto; }

/* help window */

#help-box { display: none; z-index: 99999; position:absolute; }

#help{ position: fixed; top: 20px; bottom: 20px; width: 800px; left: 50%; margin: 0 0 0 -400px; padding: 10px; background-color: white; }

.help-inner { position: absolute; top: 8px; bottom: 8px; left: 8px; right: 8px; padding: 30px;
	background: url(../img/corner-tl.png) left top no-repeat, url(../img/corner-tr.png) right top no-repeat, 
				url(../img/corner-bl.png) left bottom no-repeat, url(../img/corner-br.png) right bottom no-repeat;
	background-size: 87px 80px, 87px 80px, 87px 80px, 87px 80px; }
	
.help-cont { overflow-y: auto; position: absolute; top: 100px; left: 30px; right: 30px; bottom: 30px; padding-right: 10px; }

.close { position: absolute; right: -6px; top: -6px; background: black; border-radius: 100px; border: none; color: white; font-size: 20px; width: 40px; height: 40px; font-family: 'Bree Serif', serif; font-size: 40px; z-index: 99999; }

.close img { display:block; margin: 2px 0 0 4px; }

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
}

#help h2 { font-size: 32px; color: black; margin-bottom: 40px; padding-bottom: 10px; font-family: 'Bree Serif', serif; text-align: center; border-bottom: dotted #666 2px; }

.toggle { float: right; color: #666; font-size: 12px; }

#help h3 { border-bottom: solid 1px #999; font-size: 22px; padding-bottom: 5px; margin-bottom: 20px; clear: both; }

.module { margin-bottom: 40px; }

.module p { margin-bottom: 20px; font-weight: 300; font-family: sans-serif; }

#forms { width: 66%; padding: 20px 0; }

#sidebar {
	width: 33%;
	padding: 20px;
}

#sidebar-inner { min-width: 320px; margin-left: 100px; display: inline-block; }
	
#sidebar h2 { text-align:center; }

#starting { font-size:20px; margin-bottom: 20px; }

#folded { background-color: #003556; margin: 0 40px; border-radius: 10px; color:white; font-size: 24px; text-align: center; display:none; }

#folded span { font-weight: bolder; }
/* sidebar */
#sidebar h3 { font-size: 20px; color: black; margin: 0 20px 20px 20px; padding-bottom: 10px; font-family: 'Bree Serif', serif; text-align: center; border-bottom: solid #000 1px; }

#sidebar ul { padding: 0 20px 0 40px; }

#sidebar li { margin-bottom: 10px; line-height: 22px; font-weight: normal; list-style-type: square; }

#sidebar p { line-height: 22px; margin-bottom:0 }

#sidebar b { font-weight:bold; }

#back { text-align: center; color: white; font-size: 20px; font-size: 20px; text-decoration: none; display: block; width: 100%; }

#intro { background:#9fdaf3; border-radius: 10px; padding: 20px 0 20px 0; }

#intro p { padding: 10px 20px 10px 20px; font-style: italic; }

#intro img { width: 200px; display: block; margin: -90px auto 0 auto; }

#diagram { margin-top: 130px; margin-bottom: 40px; }

#sidebar #submenu { padding: 0 0 0 20px; }

#submenu li { display: inline-block; margin: 0 7px; }

.hidden { display: none; }

/*** error box ***/
/*** error box ***/
/*** error box ***/

#error { position: fixed; z-index: 10000; background: rgba(0,0,0,0.5); top: 0; bottom: 0; left: 0; right: 0; }

#error-box { position: absolute; background: white; width: 300px; left: 50%; top: 50%; margin: -100px 0 0 -200px; text-align: center; padding: 50px; }

#error-box a { position: absolute; top: 10px; right: 10px; }

#error-txt { font-size: 18px; line-height: 24px; }


@media (max-width: 1200px) {

	#main .wrapper { padding: 0 20px; max-width:none; }

	#head { height: 68px; }

	#head li img { display:none; }

	#head ul { margin-top: 25px; }

	h1 { font-size: 28px; }

	h1 img { vertical-align: top; }

	h1 span { display: inline-block; margin-top: 8px; }

	#submenu { width: auto; float: right; margin: -80px 0 0 0; }

	#content { margin: 0 auto; }

	#empty { margin: 100px auto 100px auto; }

	#help-bt { right: 20px; margin:0; }

	#menu { left: 0; right: 0; margin:0 30px; width: auto; max-width: none; }

	.tab { display: block; margin: 0 50px 20px 50px; }

	.form-wrap { margin: 0 auto; }

	.articles { margin: 0 auto; border: none; }

}
	
@media (max-width: 864px) {

h1 img { float:left; }

h1 span { display:block; margin: -5px 0 0 0; }
	
#sidebar { height: auto; padding: 15px 0; }

#sidebar h1 br, #sidebar h1 img, #sidebar h1 span { display: block; }

#sidebar h1 span { float: right; width: auto; margin: -30px 20px 0 0; }

#sidebar h1 img { float: left; margin: 15px 0 0 20px;  }

#back { float: none; margin: 0; padding: 0; font-size: 14px; }

#menu li { width: 13%; margin: 0 10px; }

#menu .title, #menu li a, #menu .ui-tabs-active a, #menu .ui-tabs-active .title { background: none; }

#submenu { clear: right; margin: -15px 10px 0 0; }

#submenu img { height: 55px; width: auto; }
	
#menu-wrapper { width: auto; }

#help { left: 0; right: 0; margin: 0; width: auto; }

.help-inner { padding: 20px; }

.tab { margin: 0 0 20px 0; }

}

@media (max-width: 720px) {

h1 { float:none; }

h1 img { float: left; }

h1 span { float: right; margin-top: 0px; }

#head { height: auto; }

#help-bt { right:0; }
	
#sidebar h1 img { float: none; width: 150px; margin: 0 auto; }	

#sidebar h1 span { float: none; width: auto; margin: 20px 0; line-height:normal; }

#submenu { float: none; margin: 25px 0 0 0; }

.form-wrap { width:100%; }

.diagram, .letter { display: none; }

form { max-width: 300px; margin: 0 auto; padding-left: 20px; }

.field { padding-left: 35px; }
		
#menu { margin: 0 0 0 -250px; left: 50%; right: auto; text-align: center; width: 500px; padding: 10px 0 20px 0;  }
	
#menu .ui-tabs-active { background: none; }	

#menu li { display: block; text-align: center; width: auto; clear: both; }

#menu li a { padding: 7px 0; }

#menu .img { display: none; float: left; width: 60px; margin-bottom: 0; margin-right: 10px }

#menu .title { line-height: normal; padding: 0; }

#menu br { display: none; }
	
}

@media (max-width: 600px) {

	h1 { display: flex; flex-direction: column; justify-content: center; align-items: center; }

	h1 img { float:none; margin: 0 0 10px 0; }

	h1 span { float: none; display: block; text-align: center; }

	#head ul { float:none; text-align: left; }

	#head li { margin: 0 20px; }

	#help-bt { bottom: -10px; }

}


