@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(http://fonts.googleapis.com/css?family=Oswald);

html {
  box-sizing: border-box;
}

body,
html {
	padding: 0;
	margin: 0;
}

*, 
*:before, 
*:after {
  box-sizing: inherit;
}

.clear:before,
.clear:after {
    content: " ";
    display: table;
}

.clear:after {
    clear: both;
}

/* Taustakuva */
body {
    font-family: "Open sans", Arial, sans-serif;
	color: #4c4c4c;
	line-height: 25px;
	background: url("../img/tropiikki.jpg") bottom center fixed no-repeat #f6f6f6;
	background: url("../img/suomi.jpg") bottom center fixed no-repeat #f6f6f6;
	
	background-size: cover;
}

/* Otsikon väri ja fontti */
h1,
h2,
h3 {
	color: #0095DB;
	font-family: Oswald, arial, sans-serif;
	font-weight: normal;
}

h1 {
	margin: 0;
	padding: 1em;
	padding-top: 0;
}

h2 {
	margin-top: 3em;
}

h3 {
	font-size: 16px;
}

a {
	text-decoration: none;
	color: #7FC25D;
}

ul {
	margin-top: 0;
}

#header {
	min-height: 100px;
	text-align: center;
	background: #fff;
	margin-bottom: 2em;
	opacity: 0.9;
}

#ylaosa {
	margin: 0 auto;
	width: 1200px;
}

#lainanhakuform {
	width: 800px;
	padding: 3em;
	margin: 0 auto;
	margin-bottom: 2em;
	background: #fff;
	border: 1px solid #dadada;
	padding: 2em 1em;
	border-radius: 8px;
	display: inline-block;
}

#lainanhakuformi {
	padding: 0 1em;
}

#sivupalkki {
	display: inline-block;
	width: 360px;
	background: #fff;
	border: 1px solid #dadada;
	vertical-align: top;
	border-radius: 8px;
	margin-left: 30px;
	margin-bottom: 2em;
	padding: 1em;
	font-size: 12px;
}

#content {
	width: 100%;
	background: #fff;	
	padding: 2em 0;
	overflow: hidden;
}

#content-wrap {
	width: 1200px;
	margin: 0 auto;
}

#nav {
	background: #fff;
	width: 100%;
	display: block;
	padding-top: 1em;
    margin: 0 auto;
    width: 1200px;	
}

#nav ul li{
	display: inline-block;
	font-family: Oswald, arial, sans-serif;
	text-transform: uppercase;
	margin-right: 1em;
	float: right;
}

/* Värilliset korostetut tekstit */
.hilight {
	color: #0095DB;
	text-transform: uppercase;
}

.hilight-bold {
	color: #0095DB;
	line-height: 2;
}

.valinta,
.valinta-otsikko {
	width: 100%;
	display: inline-block;
	position: relative;
}

.box-80,
.box-60,
.box-40,
.box-20 {
	display: inline-block;
	float: left;
	padding-right: 1em;
}

.box-80 {
	width: 80%;
}

.box-60 {
	width: 60%;
}

.box-40 {
	width: 40%;
}

.box-20 {
	width: 20%;
}

.kentat {
	width: 20%;
	display: inline-block;
	float: left;
	margin-right: 0;
}

.kentat.box-20 {
	text-align: right;
}

.valinta {
	margin-bottom: 3em;
}

.valinta-otsikko {
	text-align: center;
}

.valinta-otsikko .summa1, 
.valinta-otsikko .aika1 {
	position: absolute;
	left: 0;
}

.valinta-otsikko .summa2, 
.valinta-otsikko .aika2 {
	position: absolute;
	right: 0;
}

#lainanhakuform input {
    border: 1px solid #ccc;
    border-radius: 3px;
	padding: 9px;
}

.lainanhaku-kentta {    
	font-size: 20px;
    text-align: right;
    width: 80px;
	padding: 3px 6px;
}


.lomake .form-input {
	display: inline-block;
	width: 32%;
	text-align: left;
	line-height: 36px;
}

.lomake .form-input input {
	width: 100%;
}

.lomake .form-input label {
	padding-left: 2px;
}

.lainanhakuformi-painike {
	background: #7FC25D;
	padding: 10px 20px;
	color: #fff;
	font-family: Oswald, arial, sans-serif;
	margin: 1em 0;
	font-weight: normal;
	border: none;
	text-align:center;
}

.lainanhakuformi-painike:hover {
	background: #77B257;
	cursor: pointer;
}

.vippi-hae {
	text-transform: uppercase;
	font-size: 20px;
	border-radius: 8px;
	display: block;
	border: 2px solid #7FC25D;
	margin: 0 auto;
	letter-spacing: 0.05em;
	margin-top: 2em;
text-align:center;
}

/* Slider */

.output {
    font-size: 20px;
    border: 0;
    width: 80%;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 3px 6px;
    text-align: right;
}

.raja {
	display: none;
}

.ui-slider-horizontal .ui-slider-handle {
	margin-left: 0;
}

#dropdown-lainasumma {
	display: none;
}

@media (max-width: 1200px) {
	#ylaosa,
	#content-wrap,
	#nav {
		width: 800px;
	}	
	
	#lainanhakuform {
		width: 500px;
	}
	
	#sivupalkki {
		width: 260px;
	}
	
	.mobile-box-100 {
		width: 100%;
	}

.mobile-box-100 .valinta {
	margin-bottom: 1em;
}	
	
	.mobile-box-70 {
		width: 70%;
	}	
	.mobile-box-30 {
		width: 30%;
	}	
}

	
@media (max-width: 800px) {
	#ylaosa,
	#content-wrap,
	#nav{
		width: 96%;
	}
	
	.lomake .form-input {
		width: 90%;
	}
	
	#sivupalkki,
	#lainanhakuform {
		width: 100%
	}
	
	#sivupalkki {
		margin-left: 0;
	}
	
	#dropdown-lainasumma {
		display: block;
	}
	
	#sliders {
		display: none;
	}	
	
}

#dropdown-lainasumma select {
	margin-bottom: 1em;
    border: 1px solid #159EDF;
	color: #159EDF;
    border-radius: 4px;
    padding: 5px;
	font-family: Oswald;
	font-size: 14px;
	background: transparent;
}

/* Jquery slider */

.ui-state-default, 
.ui-widget-content .ui-state-default, 
.ui-widget-header .ui-state-default {
    border: none;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: #0096DD;  
}

.ui-widget-content {
    background: #ddd;
    border-radius: 10px;
    border: none;
    height: 5px;
    margin: 1em 0;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -0.7em;
}

.slider-group label {
    color: #11b0ce;
    text-transform: uppercase;
}

/* Lainataulukko */

.listaa-lainat-taulukko {
	width: 100%;
}

.listaa-lainat-taulukko a{
	font-family: oswald, arial, sans-serif;
	padding: 6px;
	line-height: 30px;
}

.listaa-lainat-taulukko td {
	text-align: center;
}
.listaa-lainat-taulukko td:first-child {
	text-align: left;
}

.listaa-lainat-taulukko tr:nth-child(odd) {
	background: #e1e1e1;
}
.listaa-lainat-taulukko tr:nth-child(even) {
	background: #f4f4f4;
}

div.footer {
background: #333;
color:#fff;
text-align:center;
font-size:0.9em;
}

.btn {
  background: #36752D;
  background-image: -webkit-linear-gradient(top, #36752D, #285621);
  background-image: -moz-linear-gradient(top, #36752D, #285621);
  background-image: -ms-linear-gradient(top, #36752D, #285621);
  background-image: -o-linear-gradient(top, #36752D, #285621);
  background-image: linear-gradient(to bottom, #36752D, #285621);
  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  border-radius: 5px;
  font-family: Arial;
  color: #ffffff;
  font-size: 20px;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
}

.btn:hover {
  background: #2dc716;
  background-image: -webkit-linear-gradient(top, #2dc716, #25e60c);
  background-image: -moz-linear-gradient(top, #2dc716, #25e60c);
  background-image: -ms-linear-gradient(top, #2dc716, #25e60c);
  background-image: -o-linear-gradient(top, #2dc716, #25e60c);
  background-image: linear-gradient(to bottom, #2dc716, #25e60c);
  text-decoration: none;
}


.datagrid table { 
	border-collapse: collapse; 
	text-align: left; 
	width: 100%; 
} 

.datagrid {
	font: normal 14px/150% Arial, Helvetica, sans-serif; 
	background: #fff; 
	overflow: hidden; 
	border: 1px solid #36752D; 
	-webkit-border-radius: 3px; 
	-moz-border-radius: 3px; 
	border-radius: 3px; 
}

.datagrid table td, .datagrid table th { 
	padding: 3px 10px; 
	text-align:center;
}

.datagrid table thead th {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #36752D), color-stop(1, #275420) );
	background:-moz-linear-gradient( center top, #36752D 5%, #275420 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#36752D', endColorstr='#275420');
	background-color:#36752D; 
	color:#FFFFFF; 
	font-size: 17px; 
	font-weight: bold; 
	border-left: 1px solid #36752D; 
} 

.datagrid table thead th:first-child { 
	border: none; 
}

.datagrid table tbody td { 
	color: #275420; 
	border-left: 1px solid #C6FFC2;
	font-size: 14px;
	border-bottom: 1px solid #E1EEF4;
	font-weight: normal; 
}

.datagrid table tbody .alt td { 
	background: #DFFFDE; 
	color: #275420; 
}

.datagrid table tbody td:first-child { 
	border-left: none; 
}

.datagrid table tbody tr:last-child td { 
	border-bottom: none; 
}
	


@media (max-width: 1000px) {
	table.data th:nth-child(5), table.data td:nth-child(5) {
	display:none;
}

}

@media (max-width: 500px) {
	table.data th:nth-child(3), table.data th:nth-child(4), table.data td:nth-child(3), table.data td:nth-child(4) {
	display:none;
}

.btn {
  	font-size: 16px;
  	padding: 8px 16px 8px 16px;
}

}

@media (max-width: 500px) {

table.listaa-lainat-taulukko th:nth-child(5), table.listaa-lainat-taulukko th:nth-child(6), table.listaa-lainat-taulukko th:nth-child(7), table.listaa-lainat-taulukko td:nth-child(5), table.listaa-lainat-taulukko td:nth-child(6), table.listaa-lainat-taulukko td:nth-child(7) {
	display:none;

}