body {
	font: 1em/150% Arial, Helvetica, sans-serif;
	background: #e0e0e0;
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet); /* Standard syntax (must be last) */
    background: linear-gradient(#e8e8f0, #f0f0ff); /* Standard syntax (must be last) */
}
a {
	text-decoration: none;
}
a:hover {
	color: #669;
	text-decoration: none;
}
h1, h2, h3, h4, p {
	margin-left: 3px;
}
h1 {
	font: bold 24px/100% Arial, Helvetica, sans-serif;
	margin-top: 10px;
	margin-left: 3px;
}
h2 {
	font: bold 16px/100% Arial, Helvetica, sans-serif;
}
h3 {
	font: bold 14px/100% Arial, Helvetica, sans-serif;
}
h4 {
	font: bold 12px/100% Arial, Helvetica, sans-serif;
	text-align: center;
}
p.header {
	font-size: 70%;
	margin-top: 0px;
	margin-bottom: 0px;
}
p.menu {
	margin-top: 5px;
	margin-left: 10px;
	margin-bottom: 2px;
}
p.elamantehtava {
	font: bold 40px/100% Arial, Helvetica, sans-serif;
	color: yellow;
	text-align: center;
}
p.keskitetty, p.keskitetty-bold, p.footer, p.sivupalkki{
	font-size: 80%;
	text-align: center;
}
p.keskitetty-bold {
	font-weight: bold;
}
p.taulu, p.esimerkki, code {
	font-family: monospace;
}
p.esimerkki {
	display: none;
}

img {
	max-width: 100%;
	height: auto;
	float: left;
	margin: 0px 0px 15px 0px;
}
img.laskin {
	float: right;
	margin: 5px 10px 2px 10px;
}
img.content-img {
	float: none;
}

figure {
	margin: 0;
}
table {
	margin-bottom: 15px;
}
th.pythagora {
	width: 30px;
}
th.otsikko-vaalea, th.otsikko-tumma {
	text-align: center;
	background: #f8f8f8;
	font-size: 200%;
	color: #888888;
}
th.otsikko-tumma {
	background: #f0f0f0;
}
td.bottom-line {
	padding: 5px;
	vertical-align: top;
}

ul {
    list-style-type: none;
    padding: 0px 2px 0px 2 px;
margin-top: 0px;
}
li {
    padding-left: 15px;
}

a:link, a:visited {
    color: blue;
}
	

/************************************************************************************
STRUCTURE
*************************************************************************************/
#pagewrap {
	background: #ffffff;
	padding: 5px;
	max-width: 920px;
	margin: 5px auto;
}
#header {
	height: 80px;
	padding-left: 5px;
	background: #ffff80;
	background: url(kuvat/mosaic-920x100.jpg);
	background-size: 920px 80px;
	background-repeat: no-repeat;
}
#insideheader {
	height: 70px;
	width: 95px;
	float: right;
	padding-right: 5px;
}
#content {
	max-width: 690px;
	float: left;
	padding-left: 0px;
}
#flip, #panel1, #panel2, #panel3 {
	padding-left: 10px;
	text-align: left;
	border: solid 1px #c3c3c3;
}
#flip {
	background-image: url("kuvat/menu-green.png");
	background-repeat: no-repeat;
	background-position: 2px 2px;
	background-color: #fafafa;
	height: 27px;
	padding-left: 32px;
	font-weight: bold;
}
#panel1, #panel2, #panel3 {
	background-color: #e5eecc;
	background-color: #fafafa;
	padding: 0px 5px 0px 5px;
	display: none;
}
#panel2, #panel3 {
	border-top: 1px solid #f8f8f8;
}
#content-img {
	width: 190px;
	float: right;
	padding-left: 0px;
	padding-right: 0px;
}
#sidebar, #sidebar2 {
	width: 190px;
	min-height: 195px;
	float: right;
	padding-left: 0px;
	padding-right: 0px;
}
#footer, #footer-kapea {
	background: #ffffd0;
	clear: both;
}

#numero {
	width: 50px;
	height: 40px;
	background: #000000;
	-moz-border-radius: 10px;
	border-radius: 10px;
	margin-top:-1em;
}

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* for 920px or less */
@media screen and (max-width: 920px) {
	
	#pagewrap {
		width: 100%;
	}
	#content {
		width: 77%;
	}
	#sidebar, #sidebar2 {
		width: 22.5%;
		min-height: 275px;
	}
	#footer-kapea {
		display: none;
	}

}

/* for 905px or less */
@media screen and (max-width: 905px) {
	
	#pagewrap {
		width: 95%;
	}
	#content {
		width: 75%;
	}
	#sidebar, #sidebar2 {
		width: 22.0%;
	}
	#footer-kapea {
		display: none;
	}

}

/* for 865px or less */
@media screen and (max-width: 865px) {
	
	#pagewrap {
		width: 95%;
	}
	#content {
		width: 74%;
	}
	#sidebar, #sidebar2 {
		width: 23.0%;
	}
	#footer-kapea {
		display: none;
	}

}

/* for 810px or less */
@media screen and (max-width: 810px) {
	
	#pagewrap {
		width: 95%;
	}
	#content {
		width: 72%;
	}
	#sidebar, #sidebar2 {
		width: 24.5%;
	}
	#footer-kapea {
		display: none;
	}

}

/* for 700px or less */
/* divit ovat peräkkäin */
@media screen and (max-width: 700px) {

	#content {
		width: auto;
		float: none;
	}
	#content-img {
		margin: auto;
		width: 95%;
	}

	#sidebar, #sidebar2 {
		width: auto;
		float: none;
		min-height: 195px;
	}

}

/* for 480px or less */
@media screen and (max-width: 480px) {

	#header {
		height: auto;
		height: 80px;
	}
	.bgimg {
		background-image: url('../images/divbg.png');
	}

	h2 {
		font-size: 14px;
	}
	#footer {
		display: none;
	}

}

/* border & guideline (you can ignore these) */
#content {
	background: #ffffff;
}
#sidebar, #sidebar2 {
	background: #fafafa;
}
#header, #content, #sidebar, sidebar2 {
	margin-bottom: 5px;
}
#pagewrap, #header, #sidebar, #sidebar2, #footer {
	border: solid 1px #ccc;
}


