/*

 Meieraha Maksukalkulaator
 Reearch, calculator formulas and HTML adaption by Paul Tammet & Rene Lasseron
 Production concept, interaction design, visual design, markup & coding by Tanel Kärp
 Project management and communications by Hille Hinsberg
 Roughly based on HTML5 boilerplate by Nicolas Gallagher, Paul Irish, Mathias Bynens, Divya Manian, Cãtãlin Mariş, and Hans Christian Reinl.
 
 Stylesheet Table of Contents:
 	01 Typography
 	02 Layout
 	03 Effects and Fixes
 	04 jQuery Tooltips & Slider
 	05 Images

 Requries:
	http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold

 */


/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com (adapted for Meieraha) */
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{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}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:none}table{border-collapse:collapse;border-spacing:0}

/* 01 Typography */
body {
	font-family: 'Droid Sans',  Verdana,  Geneva,  sans-serif;
	font-size: 13px;
	background-color: #f2f2f2;
	line-height: 1;
	color: #333;
	text-align: center;
}

input {
	color: #333;
}

h1 {
	padding: 4px 10px 3px 5px;
	height: 38px;
	width: 112px;
}

h1 img {
	height: 38px;
	width: 112px;
}

h2 {
	font-size: 55px;
	text-align: center;
	margin: 90px 0 20px;
}

h3, .opendetail {
	font-size: 34px;
	margin-left: -1px;
}

	.quicktitle {
		padding-top: 40px;
		margin: 0 -100px;
	}

h4 {
	font-weight: bold;
	margin-bottom: 0.5em;
}

a {
	text-decoration: none;
}
a:link, a:visited {
	color: #4d4d4d;
}
a:hover, a:active {
	color: black;
}

b {
	font-weight: bold;
}

.stealth {
	border: 1px solid #f2f2f2;
	background: transparent;
}

.stealth:hover {
	border: 1px solid #444;
}

.largeinput {
	font-size: 55px;
	width: 4em;
	letter-spacing: -0.1em;
	margin: 20px 0 10px;
	text-align: center;
}

.largetext {
	font-size: 55px;
	letter-spacing: -0.1em;
}


/* 02 Layout */

nav {
	line-height: 45px;
	position: fixed;
	top: 10px;
	left: 10px;
	text-align: left;
	z-index: 99;
}

nav li {
	background: rgb(255, 255, 255);
	background: rgba(255, 255, 255, 0.9);
}

nav a {
	display: block;
	padding: 0 15px;
}

nav a:hover {
	background-color: rgb(153, 51, 255);
	color: #fff;
}


	.mainmenu > li {
		float: left;
		margin-right: 1px;
	}

	.submenu {
		display: none;
	}

	.submenu > li {
		margin-top: 1px;
	}

	.navicon {
		padding-top: 15px;
		font-size: 13px;
		height: 30px;
	}

		.navicon span {
			display: block;
			width: 1.5em;
			height: .25em;
			line-height: 0;
			border-top: .75em double #333;
			border-bottom: .25em solid #333;
		}

		.navicon:hover span {
			border-color: #fff;
		}

	.current {
		background-color: rgb(249, 249, 249);
		background-color: rgba(249, 249, 249, 0.9);
	}

	.current a:hover {
		cursor: default;
		color: #333;
		background-color: rgb(249, 249, 249);
		background-color: rgba(249, 249, 249, 0.9);
	}


section {
	margin: 0 auto;
}

.warning {
	text-align: left;
	background: #ff0000;
	color: #fff;
	font-size: 21px;
	line-height: 1.3;
	padding: 70px 20%;
	z-index: 99;
}

	.warning a {
		color: #fff;
		text-decoration: underline;
	}

.utility {
	position: fixed;
	right: 20px;
	top: 26px;
	color: #999;
	width: 160px;
	font-size: 13px;
}

.utility a {
	color: #999;
}
	.openintro {
		cursor: pointer;
		display: block;
		float: right;
		margin-top: -6px;
		font-size: 21px;
		line-height: 1.1em;
		text-align: center;
		width: 1.1em;
		border: 1px solid #999;
		border-radius: 1em;
	}

	.quickshare {
		margin-left: 0.7em;
		cursor: pointer;
	}

	.quickshare:after {
		content: "";
		display: inline-block;
		height: 5px;
		width: 13px;
		margin-left: 0.3em;
	}

	.quickshare:hover {
		color: #9933ff;
	}


.introcontainer {
	text-align: left;
	line-height: 1.4;
	margin: 0 0 10px;
	border:	1px solid #ddd;
	box-shadow: inset 1px 4px 9px -6px rgba(0, 0, 0, 0.3), inset 1px -4px 9px -6px rgba(0, 0, 0, 0.3);
	position: relative;
	max-height: 600px;
	overflow: hidden;
	-webkit-transition: max-height 0.3s ease;
	transition: max-height 0.3s ease;
}

	.introtext {
		width: 900px;
		margin: 30px auto 20px;
	}

	.introtext a {
		text-decoration: underline;
	}

	.introtext div {
		float: left;
		width: 46%;
		margin: 0 2%;
	}

		.introtext p {
			margin-bottom: 0.5em;
		}

		.closex {
			position: absolute;
			right: 30px;
			top: 30px;
			cursor: pointer;
			float: none;
			font-size: 55px;
			line-height: 0.5;
			color: #64C864;
		}

		.closex:hover, .openintro:hover, .utility a:hover {
			color: #9933ff;
			border-color: #9933ff;
		}

.userinput {
	display: inline-block;
	background: #fff;
	margin-top: 4px;
	border: 1px solid #ddd;
}

	.quickinput {
		width: 340px;
		background: #fff;
		margin: 0 auto;
		padding: 0 220px 0;
		overflow: hidden;
		max-height: 600px;
		-webkit-transition: max-height 0.3s ease, width 0.3s ease;
		transition: max-height 0.3s ease, width 0.3s ease;
	}

		.opendetail {
			width: 224px;
			line-height: 2em;
			margin: 19px auto 0;
			padding-top: 1px;
			color: #64C864;
			cursor: pointer;
			position: relative;
		}

		.opendetail:hover {
			color: #9933ff;
		}

		.opendetail:after {
			content: "";
			display: block;
			margin: -11px auto 12px;
			height: 7px;
			width: 28px;
		}

	.detailinput {
		width: 860px;
		background: #fff;
		padding: 0 40px 0;
		text-align: left;
		overflow: hidden;
		max-height: 600px;
		-webkit-transition: max-height 0.3s ease, width 0.3s ease;
		transition: max-height 0.3s ease, width 0.3s ease;
	}

		.closedetail {
			width: 224px;
			margin: 0 auto 20px;
			color: #64C864;
			line-height: 2.4;
			cursor: pointer;
			text-align: center;
		}

		.closedetail:hover {
			color: #9933ff;
		}

		.closedetail:before {
			content: "";
			display: block;
			height: 7px;
			width: 28px;
			margin: 10px auto -5px;
		}

		.revenue, .expenditure {
			width: 47%;
			float: left;
			margin: 0 3% 40px 0;
		}

			.inputrow > div {
				float: left;
				width: 33%;
				margin-top: 18px;
				z-index: 1;
			}

			.inputrow input {
				width: 3.2em;
				text-align: right;
				padding: 5px;
				margin-top: -7px;
			}

			.sliders {
				margin-top: 4px;
				width: 80%;
			}

	.tip {
		border: 1px solid #64C864;
		cursor: help;
		float: right;
		display: block;
		font-size: 11px;
		color: #64C864;
		height: 15px;
		line-height: 15px;
		margin-top: -2px;
		width: 15px;
		border-radius: 20px;
		text-align: center;
	}

	.templateselector {
		margin: 10px 0 0;
	}

		.selectedtemplate {
			cursor: pointer;
			color: #9933ff;
		}

		.selectedtemplate:after {
			content: "";
			display: inline-block;
			height: 5px;
			width: 13px;
			margin-left: 0.3em;
		}

		.selectedtemplate:hover {
			color: #64C864;
		}

		.dropmenu {
			display: none;
			text-align: left;
			width: 200px;
			position: absolute;
			left: 50%;
			margin-left: -100px;
			margin-top: 20px;
			color: #333;
		}

		.dropmenu ul {
		    background: #fff;
		    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
		    position: relative;
		    z-index: 10;
		}

		.utility .dropmenu {
			width: 90px;
			margin-left: -25px;
		}

		.dropmenu a {
			display: block;
		}

			.dropmenu ul li {
				text-transform: capitalize;
				cursor: pointer;
				padding: 10px;
				z-index: 12;
				position: relative;
			}

			.dropmenu ul li:hover {
				color: #9933ff;
				z-index: 13;
			}
		             
		.dropmenu:before, .dropmenu:after {
		    content: '';       
		    width: 20px;
		    height: 20px;
		    background: #fff;
		    -webkit-transform: rotate(45deg);
		    -moz-transform: rotate(45deg);
		    -o-transform: rotate(45deg);
		    -ms-transform: rotate(45deg);
		    transform: rotate(45deg);
		    position: absolute;
		    top: -8px;
		    left: 50%;
		    margin-left: -10px;
		    z-index: 11;
		    border-radius: 2px;
		}
		             
		.dropmenu:after {
		    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
		    z-index: 9;
		}



.fields {
	width: 940px;
	padding: 42px 0 39px;
}

	.field {
		float: left;
		width: 104px;
		text-align: center;
		text-transform: capitalize;
	}

		.icon {
			width: 80px;
			height: 90px;
			margin: 15px auto 13px;
		}

		.fieldvalue {
			letter-spacing: -0.1em;
			font-size: 34px;
		}

.taxrate {
	width: 940px;
	border-top: 1px solid #ddd;
	position: relative;
}
	
	.chart {
		width: 760px;
		margin: 0 auto;
		overflow: hidden;
	}

	.chart svg {
		margin-top: -145px;
	}

	.insidedonut {
		position: absolute;
		top: 165px;
		left: 50%;
		margin-left: -100px;
		width: 200px;
	}

		.taxburden {
			margin: 10px 0;
		}

	.woutsocial {
		margin-top: 1em;
		border-top: 1px solid #ddd;
		padding-top: 1em;
		color: #999;
	}	


footer {
	font-size: 21px;
	margin-bottom: 1em;
}	

footer a {
	text-decoration: underline;
}	

	.socialshare {
		font-size: 13px;
		width: 460px;
		margin: 2em auto 1em;
	}

	.socialshare > a {
		display: block;
		float: left;
		height: 120px;
		width: 115px;
		text-decoration: none;
	} 

	.socialicon {
		height: 70px;
		width: 70px;
		margin: 0 auto 15px;
	} 

	.sponsors {
		margin-top: 4em;
	}

		.sponsors a {
			text-decoration: none;
			margin: 0 20px;
		}


/* Effects and Fixes */

.closed {
	max-height: 0;
	overflow: hidden;
	border: 0;
	-webkit-transition: max-height 0.3s ease, width 0.3s ease;
	transition: max-height 0.3s ease, width 0.3s ease;
}

.detailinput.closed {
	width: 700px;
}


.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

.clearfix {
	*zoom: 1;
}   

.kern {
	letter-spacing: -0.15em;
}

/* 04 jQuery UI Tooltips */

.ui-tooltip {
	padding: 8px;
	position: absolute;
	z-index: 9999;
	max-width: 300px;
	box-shadow: 0 0 3px #aaa;
	background: #64C864;
	color: #fff;
	line-height: 1.4;
}

.donut-tip {
	width: 170px;
	height: 170px;
	border-radius: 200px;
	line-height: 1.4;
	padding: 72px;
	box-shadow: none;
	background: #64C864;
	color: #fff;
}

body .ui-tooltip, .arrow:after {
	border-width: 2px;
}

.arrow {
	width: 70px;
	height: 16px;
	overflow: hidden;
	position: absolute;
	left: 50%;
	margin-left: -35px;
	bottom: -16px;
}
.arrow.top {
	top: -16px;
	bottom: auto;
}
.arrow.left {
	left: 20%;
}
.arrow:after {
	content: "";
	position: absolute;
	left: 20px;
	top: -20px;
	width: 25px;
	height: 25px;
	box-shadow: 6px 5px 9px -9px black;
	background: #64C864;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
}
.arrow.top:after {
	  bottom: -20px;
	  top: auto;
}

/*!
 * jQuery UI Slider 1.10.3
 * http://jqueryui.com
 *
 * Copyright 2013 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Slider#theming
 */
.ui-slider {
	position: relative;
	text-align: left;
}
.ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 20px;
	height: 20px;
	background: #fff;
	cursor: ew-resize;
	border: 1px solid #444;
	border-radius: 15px;
	margin-top: -5px;
}
.ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	font-size: .7em;
	display: block;
	border: 0;
	background-position: 0 0;
}

/* For IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
	filter: inherit;
}

.ui-slider-horizontal {
	height: .4em;
	border: 1px solid #ccc;
}

.inputrow .ui-slider-horizontal {
	height: .2em;
	border: 1px solid #ccc;
}

.ui-slider-horizontal .ui-slider-handle {
	top: -.3em;
	margin-left: -.6em;
}
.ui-slider-horizontal .ui-slider-range {
	top: 0;
	height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
	left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
	right: 0;
}

.ui-slider-vertical {
	width: .8em;
	height: 100px;
}
.ui-slider-vertical .ui-slider-handle {
	left: -.3em;
	margin-left: 0;
	margin-bottom: -.6em;
}
.ui-slider-vertical .ui-slider-range {
	left: 0;
	width: 100%;
}
.ui-slider-vertical .ui-slider-range-min {
	bottom: 0;
}
.ui-slider-vertical .ui-slider-range-max {
	top: 0;
}

/* 05 Images */

/* Sprite for regular 72dpi displays */
.icon, .opendetail:after, .closedetail:before, .selectedtemplate:after, .socialicon, .quickshare:after {
	background: transparent url(../img/meieraha_gfx.png) no-repeat;
}
/* Sprite for high-resolution displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
	.icon, .opendetail:after, .closedetail:after, .selectedtemplate:after, .socialicon, .quickshare:after {
		background-image: url(../img/meieraha_gfx@2x.png);
		background-size: 720px 160px;
	}
}

.icon_valitsussektor {
	background-position: 0 0;
}
.icon_riigikaitse {
	background-position: -80px 0;
}
.icon_sisekaitse {
	background-position: -160px 0;
}
.icon_majandus {
	background-position: -240px 0;
}
.icon_keskkonnakaitse	{
	background-position: -320px 0;
}
.icon_haridus {
	background-position: -400px 0;
}
.icon_kultuur {
	background-position: -480px 0;
}
.icon_tervishoid {
	background-position: -560px 0;
}
.icon_sotsiaalkaitse {
	background-position: -640px 0;
}

.opendetail:after {
	background-position: 0 -97px;
}

	.opendetail:hover:after {
		background-position: 0 -104px;
	}

.selectedtemplate:after {
	background-position: -88px -104px;
}

	.selectedtemplate:hover:after {
		background-position: -88px -97px;
	}

.closedetail:before {
	background-position: -60px -97px;
}

	.closedetail:hover:before {
		background-position: -60px -104px;
	}

.quickshare:after {
	background-position: -88px -111px;
}

	.quickshare:hover:after {
		background-position: -88px -104px;
	}	

.twitter {
	background-position: -100px -90px;
}

.facebook {
	background-position: -170px -90px;
}

.linkedin {
	background-position: -240px -90px;
}

.googleplus {
	background-position: -310px -90px;
}	
