@media ( max-width : 629px) {
	body {
		width: 629px;
	}
	.top-picks li {
		width: 100%;
	}
	.jumbo-search {
		padding: 45px;
	}
	.jumbo-search form {
	   width: 90% !important;
	}
	.jumbo-search, .stripe {
	   width: 629px !important;
	}
	#metadata-navbar {
		display: none;
	}
	.help {
		top: 105px !important;
	}
	.nav-tabs li a .lbl {
       display: none;
    }
    
    .btn-group.pull-right { float: none !important; }
}

@media ( min-width : 630px) {
	.top-picks li {
		width: 45%;
	}
	.jumbo-search {
		padding: 45px 90px;
	}
	.jumbo-search form {
       width: 85% !important;
    }
	#metadata-navbar {
		display: none;
	}
	.nav-tabs li a .lbl {
       display: none;
    }
}

@media ( min-width : 768px) {
	.top-picks li {
		width: 28%;
	}
	.nav-tabs li a {
		display: block;
	}
	.nav-tabs li a .lbl {
	   display: none;
	}
	.jumbo-search form {
       width: 67% !important;
    }
	#metadata-navbar {
		display: block;
	}
}

@media ( min-width : 992px) {
	.top-picks li {
		width: 21%;
	}
	.nav-tabs li a .lbl {
       display: inline;
    }
    .jumbo-search form {
       width: 50% !important;
    }
}

@media ( min-width : 1200px) {
	.container {
		width: 970px;
	}
}

body, h1, h2, h3, h4, h5, h6, .leaflet-container {
	font-family: "Source Sans Pro", Arial, sans-serif !important;
}

h2, h3, h4, h5, h6 {
	color: #444;
}
.alert-warning h2, h3, h4, h5, h6 {
	color: #c09853;
}

.btn {
	text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px
		rgba(0, 0, 0, .075);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px
		rgba(0, 0, 0, .075);
}
.btn-default {
	text-shadow: 0 1px 0 #fff;
	background-image: -webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);
	background-image: -o-linear-gradient(top,#fff 0,#e0e0e0 100%);
	background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));
	background-image: linear-gradient(to bottom,#fff 0,#e0e0e0 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
	background-repeat: repeat-x;
	border-color: #dbdbdb;
	border-color: #ccc;
}
body {
	font-size: 1.4em;
	color: #303030;
	border-top: 3px solid #faa61a;
	margin: 0;
	padding: 0;
	padding-top: 25px;
}

.breadcrumb>.active, .breadcrumb>li+li::before {
	color: #606060;
}

.btn-default {
	color: #303030;
}

.btn.btn-success {
	background: #FAA61A;
	border-color: #FAA61A;
}

header {
	padding: 15px 0;
	color: #555;
}

header h1 {
	margin: 0;
	font-weight: 700;
	font-size: 48px;
}

header a {
  color: inherit;
}

header a:hover {
  text-decoration: none;
  color: inherit;
}

header.metadata {
  padding: 0;
}

header.metadata h1 {
  font-size: 33px;
}

header.metadata .tagline {
  font-size: 10px;
}


header img {
	margin-right: 15px;
}

.caret.caret-right {
	border-bottom: 4px solid transparent;
	border-top: 4px solid transparent;
	border-left: 4px solid;
}

.frontpage h2 {
	text-align: center;
	font-size: 30px;
}

nav ul, footer ul, .top-picks ul {
	list-style-type: none;
	padding: 0;
}

.main-nav {
	margin-bottom: 0;
}

.main-nav ul {
	margin: 0;
}

.main-nav li {
	display: inline-block;
	font-size: 16px;
	text-transform: uppercase;
	margin: 0 16px;
}

.main-nav li a {
	display: block;
	color: #606060;
	padding-bottom: 8px;
	border-bottom: 3px solid #fff;
}

.main-nav li.active a {
	border-color: #faa61a;
}

.main-nav a:hover {
	text-decoration: none;
	border-color: #faa61a;
	color: #606060;
}

.side-nav {
	padding-top: 15px;
}

.side-nav ul ul {
	padding-left: 15px;
}

.side-nav li {
	margin: 5px 0;
}

.side-nav a {
	display: block;
	color: #303030;
	font-size: 16px;
	padding-left: 5px;
	border-left: 3px solid #fff;
}

.side-nav .active>a {
	border-color: #faa61a;
}

.nav-result {
	position: absolute;
	top: 4px;
	margin-left: -15px;
}

.nav-tabs>li>a {
	color: #606060;
	background: rgba(255, 255, 255, 0.6);
}
.nav-tabs>li.back>a {
	background: #faa61a;
	color: #fff;
	border-bottom: 1px solid #fff;
}


.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus
	{
	color: #333;
	background: #fff;
}

.nav.nav-tabs>li>a:hover {
	background: #fff;
	border-color: #fff;
	color: #333;
}

.nav-tabs>li.back>a:hover {
    background: #faa61a;
    border-color: #faa61a;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.sub-tabs.nav-tabs>li.active>a, .sub-tabs.nav-tabs>li.active>a:hover,
	.sub-tabs.nav-tabs>li.active>a:focus, .sub-tabs.nav-tabs>.active a {
	border: 0;
}

.nav .caret {
	border-bottom-color: #606060;
	border-top-color: #606060;
}

.sub-tabs {
	background: #f2f2f2;
	border: 1px solid #ddd;
	border-top: 0;
}

.breadcrumb {
	background: transparent;
}

.container[role=navigation] {
	padding-top: 15px;
	margin-top: 150px;
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 2px 2px 0 0;
}

.main {
	position: relative;
	z-index: 1;
}
.f.container {
	background: #fff;
	border: 15px solid #fff;
	border-top-width: 30px;
	border-bottom: 0;
	border-radius: 2px 2px 0 0;
}
.result-container {
	margin-top: 30px;
}


.main.padded {
	margin-top: 130px;
	padding-top: 15px;
}

.stripe {
	background: url('../images/sotkanet-sininen.jpg') repeat-x top center;
	position: absolute;
	height: 300px;
	width: 100%;
	z-index: 1;
}

.stripe .container {
	position: relative;
}

.stripe h1 {
	text-align: center;
	color: #fff;
	margin-top: 45px;
	font-weight: 600;
	font-size: 40px;
}

.help {
	position: absolute;
	top: 65px;
	right: 0px;
	font-size: 14px;
	line-height: 22px;
}

.help a {
	background: #faa61a;
	padding: 5px 10px;
	color: #fff;
	text-transform: uppercase;
	border-radius: 2px 2px 2px 2px;
}

.jumbo-search {
	text-align: center;
	background: #0006a6 url('../images/sotkanet-sininen.jpg') no-repeat top center;
	color: #fff;
}

.jumbo-search label {
	font-size: 16px;
	font-weight: 200;
}

.jumbo-search form {
	width: 50%;
	margin: 0 auto;
}

.jumbo-search .btn {
	background: #faa61a;
	border-color: #faa61a;
	font-weight: bolder;
	color: #000;
	text-transform: uppercase;
	font-size: 18px;
	padding: 3px 12px;
}

.jumbo-search .form-control {
	line-height: 1.33;
	padding: 10px;
	padding-right: 42px;
	height: 46px;
	font-size: 16px;
}

.input {
	position: relative;
}

.input .glyphicon {
	position: absolute;
	top: 2px;
	right: 15px;
	font-size: 18px;
	color: #5f5f5f;
	padding: 12px 0;
}

:disabled + label {
  color: lightgrey;
  cursor: not-allowed;
}

.jumbo-search h2 {
	color: #fff;
	margin-top: 0;
	font-size: 40px;
	font-weight: 600;
	margin-bottom: 30px;
}

.top-picks li {
	display: block;
	float: left;
	text-align: center;
	margin: 15px;
}

.top-picks img {
	display: block;
	margin: 0 auto;
}

.top-picks a {
	color: #303030;
	font-size: 16px;
	display: block;
	height: 180px;
}

.top-picks h2, .guide h2 {
	text-transform: uppercase;
}

.guide {
	background: #f7f7f7;
	padding: 15px;
	margin: 15px 0;
	text-align: center;
}

.guide hr {
	border-color: #FAA61A;
	width: 25%;
}

.guide .step {
	margin-top: 30px;
}

.guide h3 {
	font-size: 14pt;
	font-weight: 600;
}

.news {
	margin: 15px 0;
}

.news h2 {
	font-size: 14pt;
	font-weight: 600;
	text-align: left;
}

.margin-top-small {
	margin-top: 15px;
}

article header {
	padding: 0;
	margin-bottom: 15px;
	position: relative;
}

.news article h3 {
	font-size: 1em;
	margin-left: 80px;
}

.news article time {
	position: absolute;
	left: 0;
	top: -2px;
}

footer .row {
	padding: 15px 0;
}

footer ul ul {
	padding-left: 1em;
}

.mega, .mega a, .mega a:visited {
	color: #B2B2B2;
}

footer h2 {
	color: #f2f2f2;
	font-size: 14pt;
	text-align: left;
}

footer>.mega {
	background: #424242;
	color: #B2B2B2;
}

footer .license {
	font-size: 11pt;
	padding: 15px 0;
}

footer .license ul {
	list-style-type: none;
}

footer .license li {
	display: inline-block;
}

footer .license li a, footer .license li a:visited {
	display: block;
	color: #606060;
	padding: 10px 15px;
	border-right: 1px solid #606060;
}

footer .license li a.last {
	border: 0;
}

.languages {
	position: absolute;
	top: -5px;
	width: 100%;
}

.languages .container {
	text-align: right;
	margin: 0 auto;
}

.languages ul {
	padding: 0;
}

.languages li {
	display: inline-block;
}

.languages li a {
	display: block;
	margin: 0 15px;
	padding-top: 8px;
	color: #606060;
}

.languages a:hover {
	text-decoration: none;
}

.languages li.active a:before, .languages li a:hover:before {
	content: "";
	display: block;
	margin: 0 auto;
	width: 0;
	border: 5px solid #faa61a;
	border-color: #faa61a transparent transparent transparent;
	padding-top: 0px;
}

.languages li a:before {
	content: "";
	display: block;
	margin: 0 auto;
	width: 0;
	border: 5px solid #fff;
	border-color: #fff transparent transparent transparent;
	padding-top: 0px;
}

/* --- Search ---*/
#search-form .content {
	position: relative;
}

#search-form h2 span {
	background: url(../images/pallo.png) no-repeat top center;
	display: none;
	padding: 16px 18px;
	color: #fff
}

#search-form h2 {
	font-size: 14pt;
	font-weight: 600;
	text-align: left;
	margin-top: 15px;
}

#search-form #indicators h2 {
	margin-top: 0;
}

#search-form .deselect-all {
	margin-bottom: 15px;
}

.expandable-target .btn {
	margin-top: 15px;
}
.expandable-target .loaded, .expandable-target span ul {
	margin-bottom: 15px;
}

#search-form .input {
	margin-bottom: -15px;
}
#search-form .input input {
	height: 46px;
}

.selected {
	margin-top: 15px;
}

.selected .empty {
	text-align: center;
	font-size: 40px;
	font-weight: 600;
	color: #ccc;
	padding: 45px 0px;
}

.search-dialog {
	position: absolute;
	top: 68px;
	z-index: 10;
	width: 100%;
	background: #fff;
	height: 336px;
	overflow-y: scroll;
	padding: 15px;
	border: 1px solid #dcdcdc;
	border-radius: 0 0 2px 2px;
}
#regions .search-dialog {
	top: 46px;
}

#regions span.checkbox.region {
  margin-left: 24px;
}
#regions span.checkbox + ul {
  margin-left: 44px;
}

.listing {
	overflow-y: auto;
	min-height: 320px;
	margin-top: 15px;
}

.listing .checkbox {
	margin: 0 15px;
}

.municipality-toggle {
	margin-left: -30px;
	margin-right: 20px;
}

.expandable-toggle {
	cursor: pointer;
	text-decoration: none;
	color: #303030;
}

#search-form ul {
	list-style-type: none;
	padding: 0;
}

#search-form ul ul {
	padding-left: 15px;
}

#search-form ul.dropdown-menu {
	padding: 15px;
}

#search-form ul.dropdown-menu>span {
	max-width: 100px;
}

#search-form #query-type .radio {
	min-height: 0 !important;
}

.sub-tabs .dropdown-menu>li {
	padding: 3px 10px;
}

.sub-tabs .dropdown-menu>li>input {
	margin-right: 5px;
}

.btn-secondary {
	background: transparent;
	background-image: none;
	filter: none;
	text-shadow: none;
	box-shadow: none;
	border: 0;
	text-decoration: underline;
}

#save-search, #regions, .emphasized-section {
	background: #f7f7f7;
	margin-top: 15px;
	padding-bottom: 15px;
	margin-top: 15px
}

#other ul {
	padding-left: 18px;
}

.sidebar h2 {
	font-size: 1em;
	text-align: left;
}

.sidebar a {
	color: #303030;
	padding: 0;
	border-radius: 0 0 0 0;
}

.sidebar .nav.nav-pills>li.active a {
	color: #303030;
	border-bottom: 1px solid #faa61a;
	background: none;
}

.table thead>tr>th,.table thead:first-child tr:first-child th {
	border-bottom-width: 1px;
	border-top: 1px solid #ddd;
}
.table-condensed  th {
	max-width: 15em;
	border: 1px solid #ddd;
	background: #f7f7f7;
}

.table-condensed .year th,
.table-condensed td {
    text-align: right;
}

thead.nowrap th {
	white-space: nowrap;
}
/* set min-heights to prevent flickering when changing img */
#chart-container .title, #map-container .title {
	min-height: 56px;
}

#chart-container #legend {
	min-height: 32px;
}

#chart .img-container {
	min-height: 480px;
}

#chart .img-loading {
	text-align: center;
	line-height: 512px;
}

#map .img-loading {
	text-align: center;
	line-height: 400px;
}

.img {
	position: relative;
	width: 630px;
	margin: 0 auto;
}

.img .btn-group {
	position: absolute;
	top: -30px;
}

.img .btn-group-left {
	left: 0;
}

.img .btn-group-right {
	right: 0;
}

#legend-titles li {
	position: relative;
	list-style-type: none;
	margin: 6px 0;
}

#legend-titles span {
	position: absolute;
	display: block;
	float: left;
	width: 24px;
	height: 24px;
	margin-right: 1em;
	border-radius: 4px 4px 4px 4px;
	border: 1px solid #606060;
}

#legend-titles span.lbl {
	position: relative;
	margin-left: 32px;
	width: auto;
	height: auto;
	border: 0;
}

ul.listing, ul.bare {
	list-style-type: none;
	padding-left: 1px;
}

.marker {
	color: #303030;
}

.legend i {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 4px 4px 4px 4px;
	border: 1px solid #606060;
}

.colored .c1 {
	background: #edf8e9;
}

.colored .c2 {
	background: #bae4b3;
}

.colored .c3 {
	background: #74c476;
}

.colored .c4 {
	background: #31a354;
	color: #fff;
}

.colored .c5 {
	background: #006d2c;
	color: #fff;
}

abs {
	display: none;
}

.abs val {
	display: none;
}

.abs abs {
	display: block;
}

.permalink {
	padding-top: 12px;
	padding-bottom: 12px;
	min-height: 60px;
	line-height: 35px;
}

.permalink a, .permalink span {
	vertical-align: middle;
}

.dropdown-menu {
	text-align: left;
	color: #303030;
}

.action {
	padding-top: 15px;
}

.source-table td, .source-table th{
	width: 50px;
}
.source-table .underlined {
	background: #e7e7e7;
}

.indicator-list.selected, .region-list.selected {
    max-height: 300px;	
    overflow: scroll;
}
/* Indikaattoreiden tila */
.kesken {
	color: #DD2288;
	font-style: italic;
}
.puolivalmis {
	color: #DD77BB;
	font-style: italic;
}

ul#saved-searches { list-style-type: none; }

@media print {
  /* override Bootstrap rule to keeps printouts cleaner */
  a[href]::after {
    content: none;
  }
}
