html
{ height: 100%;}

*
{ margin: 0;
  padding: 0;}

body
{ font: normal .80em 'trebuchet ms', arial, sans-serif;
  background: #FFF;
  color: #555;}

p
{ padding: 0 0 20px 0;
  line-height: 1.7em;}
  
punanenteksti
{ padding: 0 0 20px 0;
  line-height: 1.7em;
  color: red;}
  
valkeeteksti
{ line-height: 1.7em;
  color: white;
  font-weight: bold;}

img
{ border: 0;}

h1, h2, h3, h4, h5, h6 ,h7
{ color: #362C20;
  letter-spacing: 0em;
  padding: 0 0 5px 0;}

h1, h2, h3, h7
{ font: normal 170% 'century gothic', arial;
  margin: 0 0 15px 0;
  padding: 15px 0 5px 0;
  color: #000;}

h2
{ font-size: 160%;
  padding: 9px 0 5px 0;
  color: #009FBC;}

h1
{
font-weight: bold;}

h3
{ font-size: 140%;
  padding: 5px 0 0 0;}
  
h7
{ font-size: 180%;
  padding: 5px 0 0 0;
  font-weight: bold;
  color: #AEB002;}

h4, h6
{ color: #009FBC;
  padding: 0 0 5px 0;
  font: normal 110% arial;
  text-transform: uppercase;}

h5, h6
{ color: #888;
  font: normal 95% arial;
  letter-spacing: normal;
  padding: 0 0 15px 0;}

a, a:hover
{ outline: none;
  text-decoration: underline;
  color: #AEB002;}

a:hover
{ text-decoration: none;}

blockquote
{ margin: 20px 0; 
  padding: 10px 20px 0 20px;
  border: 1px solid #E5E5DB;
  background: #FFF;}

ul
{ margin: 2px 0 22px 17px;}

ul li
{ list-style-type: circle;
  margin: 0 0 6px 0; 
  padding: 0 0 4px 5px;
  line-height: 1.5em;}

ol
{ margin: 8px 0 22px 20px;}

ol li
{ margin: 0 0 11px 0;}

.left
{ float: left;
  width: auto;
  margin-right: 10px;}

.right
{ float: right; 
  width: auto;
  margin-left: 10px;}

.center
{ display: block;
  text-align: center;
  margin: 20px auto;}

#main, #logo, #menubar, #site_content, #footer
{ margin-left: auto; 
  margin-right: auto;}

#header
{ background: #5e8360;
  background-position: left top, right top;
  background-size: contain, contain;
  height: 172px;
  border-bottom: 5px solid #244526}
  
@media all and (max-width: 1020px) {
    #header{ 
	background: #5e8360;
	background-position: left top, right top;
	background-size: contain, contain;
	height: 172px;
	border-bottom: 5px solid #244526}
}

#banner
{ background: url('../sakke_logo_pieni.png') no-repeat, url('../STM_VEIKKAUS_pieni.png') 95% bottom no-repeat;
  background-size: 40%, 20%;
  width: 860px;
  height: 190px;
  margin-bottom: 40px;}
  
#logo
{ width: 880px;
  position: relative;
  height: 140px;
  background: transparent;}
 
@media all and (max-width: 1180px) {
    #logo{
    	width: 700px;
        font: normal 90% Tahoma,Verdana,Segoe,sans-serif;}
}
@media all and (max-width: 1020px) {
    #logo{
    	width: 700px;
        font: normal 90% Tahoma,Verdana,Segoe,sans-serif;}
}
  
#logo_kuva img
{ max-width: 100%;
  position: absolute;
  top: 10px;
  left: 55px;
  height: auto;}

@media all and (max-width: 1180px) {
    #logo_kuva img{ 
		max-width: 100%;
		position: absolute;
		top: 10px;
		left: 0px;
		height: auto;}
}  
  
@media all and (max-width: 1020px) {
    #logo_kuva img{ 
		max-width: 100%;
		position: absolute;
		top: 10px;
		left: 0px;
		height: auto;}
}

/* --logo suomenteverikerho-->*/

#logo_kuva2 img
{ max-width: 100%;
  position: absolute;
  top: 10px;
  right: 55px;
  height: auto;}

@media all and (max-width: 1180px) {
    #logo_kuva2 img{ 
		max-width: 100%;
		position: absolute;
		top: 10px;
		right: 0px;
		height: auto;}
}  
  
@media all and (max-width: 1020px) {
    #logo_kuva2 img{ 
		max-width: 100%;
		position: absolute;
		top: 10px;
		right: 0px;
		height: auto;}
}

#logo #logo_text 
{ position: absolute; 
  top: 0px;
  left: 40px;}
 
 @media all and (max-width: 1180px) {
#logo #logo_text 
{ position: absolute; 
  top: 0px;
  left: -25px;}
}

 @media all and (max-width: 1020px) {
#logo #logo_text 
{ position: absolute; 
  top: 0px;
  left: -25px;}
}

#logo h1, #logo h2, #logo h3
{ font: normal 250% Tahoma,Verdana,Segoe,sans-serif;
  border-bottom: 0;
  text-transform: none;
  margin: 0 0 0 190px;}

#logo_text h1, #logo_text h1 a, #logo_text h1 a:hover 
{ padding: 52px 0 0 0;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-decoration: none;}
  
@media all and (max-width: 1180px) {
    #logo_text h1, #logo_text h1 a, #logo_text h1 a:hover 
	{ padding: 55px 0 0 0;
	  color: #244526;
	  letter-spacing: 0.1em;
	  text-decoration: none;}
}

@media all and (max-width: 1020px) {
    #logo_text h1, #logo_text h1 a, #logo_text h1 a:hover 
	{ padding: 40px 0 0 0;
	  color: #244526;
	  letter-spacing: 0.1em;
	  text-decoration: none;}
}

#logo_text h1 a .logo_colour
{ color: #E4EC04;}

#logo_text a:hover .logo_colour
{ color: #FFF;}

#logo_text h2
{ font-size: 120%;
  padding: 4px 0 0 0;
  color: #999;}
  
#logo_text h3
{ font-size: 250%;
  font-family: 'Fredoka One';
  color: #ffffff;
  padding: 55px 0 0 0;}
  
#logo #logo_text_eng 
{ position: absolute; 
  top: 0px;
  left: -5px;}
 
 @media all and (max-width: 1180px) {
#logo #logo_text_eng 
{ font-size: 95%;
  position: absolute; 
  top: 0px;
  left: -60px;}
}

 @media all and (max-width: 1020px) {
#logo #logo_text_eng 
{ position: absolute; 
  top: 0px;
  left: -60px;}
}

#logo_text_eng h1, #logo_text_eng h1 a, #logo_text_eng h1 a:hover 
{ padding: 52px 0 0 0;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-decoration: none;}
  
@media all and (max-width: 1180px) {
    #logo_text_eng h1, #logo_text_eng h1 a, #logo_text_eng h1 a:hover 
	{ padding: 55px 0 0 0;
	  color: #244526;
	  letter-spacing: 0.1em;
	  text-decoration: none;}
}

@media all and (max-width: 1020px) {
    #logo_text_eng h1, #logo_text_eng h1 a, #logo_text_eng h1 a:hover 
	{ padding: 40px 0 0 0;
	  color: #244526;
	  letter-spacing: 0.1em;
	  text-decoration: none;}
}

#logo_text_eng h1 a .logo_colour
{ color: #E4EC04;}

#logo_text_eng a:hover .logo_colour
{ color: #FFF;}

#logo_text_eng h2
{ font-size: 120%;
  padding: 4px 0 0 0;
  color: #999;}
  
#logo_text_eng h3
{ font-size: 250%;
  font-family: 'Fredoka One';
  color: #ffffff;
  padding: 55px 0 0 0;}

#menubar
{ width: 900px;
  height: 46px;
  } 

ul#menu
{float: left; 
  margin: 0;}

ul#menu li
{ float: left;
  padding: 0 0 0 9px;
  list-style: none;
  margin: 1px 2px 0 0;
  background: transparent url(tab.png) no-repeat 0 0;}

ul#menu li a
{ font: normal 100% 'trebuchet ms', sans-serif;
  display: block; 
  float: left; 
  height: 20px;
  padding: 6px 35px 5px 28px;
  text-align: center;
  color: #FFF;
  text-decoration: none;
  background: transparent url(tab.png) no-repeat 100% 0;} 

ul#menu li.selected a
{ height: 20px;
  padding: 6px 35px 5px 28px;}

ul#menu li.selected
{ margin: 1px 2px 0 0;
  background: transparent url(tab_selected2.png) no-repeat 0 0;
  font-weight: bold;}

ul#menu li.selected a, ul#menu li.selected a:hover
{ background: transparent url(tab_selected2.png) no-repeat 100% 0;
  color: #FFF;
  font-weight: bold;}

ul#menu li a:hover
{ color: white;}

.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown {
    position: relative;
    float: left;
}

.dropdown-content {
    display: none;
	top: 32px;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 147px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content2 {
    display: none;
	top: 32px;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 188px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content2 a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown-content2 a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-content2 {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

#reunat
{ background: transparent;}

#loota
{border: 1px solid black;
padding:15px;}


#site_content
{ width: 880px;
  overflow: hidden;
  margin: 0px auto 0px auto;
  padding: 0 0 10px 0;
  background: white;} 
  
#kielivalinta
{ float: right; 
  text-align: center;
  margin: 0px 15px 0px 0px;
  background: #5e8360;}

#sidebar_container
{ margin: auto auto 30% auto;
  float: right;
  width: 226px;
  background: white;
  text-align: center;}
  
 #sidebar_containerteksti
{ margin: 13px auto 25px 20px;
  width: 250px;}
 
#sidebar_container1
{ float: right;
  width: 250px;
  margin: 8% auto auto auto;}
  
#sidebar_container2
{ float: right;
  width: 250px;}
 
#laatikko
{ border-radius: 25px;
  border: 2px solid black;
  padding: 2px; 
  width: 242px;
  height: 155px;}

#sidebar_facebook
{ float: right;
  width: 290px;
  margin: auto auto 15% auto;}

.sidebar_top
{ width: 222px;
  height: 14px;
  background: transparent url(side_top.png) no-repeat;}

.sidebar_base
{ width: 222px;
  height: 14px;
  background: url(side_base.png) no-repeat;}

.sidebar
{ float: center-right;
  width: 248px;
  padding: 0;
  margin: 0 0 16px 0;
  border:1px solid gray;
  border-radius: 8px;}

.sidebar_item
{ background: transparent;
  padding: 0 15px;
  width: 210px;}

.sidebar li a.selected
{ color: #444;} 

.sidebar ul
{ margin: 0;} 

#content
{ text-align: left;
  width: 580px;
  padding: 0 0 0 5px;
  float: left;}
  
#content ul
{ margin: 2px 0 22px 0px;}

#content ul li, .sidebar ul li
{ list-style-type: none;
  background: url(bullet.png) no-repeat;
  margin: 0 0 0 0; 
  padding: 0 0 4px 25px;
  line-height: 1.5em;}

#footer
{ width: 100%;
  font-family: 'trebuchet ms', sans-serif;
  font-size: 100%;
  height: 80px;
  padding: 28px 0 5px 0;
  text-align: center; 
  background: #5e8361;
  color: #FFF;}

#footer p
{ line-height: 1.7em;
  padding: 0 0 10px 0;}

#footer a
{ color: #FFF;
  text-decoration: none;}

#footer a:hover
{ color: #FFF;
  text-decoration: none;}

.search
{ color: #5D5D5D; 
  border: 1px solid #BBB; 
  width: 134px; 
  padding: 4px; 
  font: 100% arial, sans-serif;}

.form_settings
{ margin: 15px 0 0 0;}

.form_settings p
{ padding: 0 0 4px 0;}

.form_settings span
{ float: left; 
  width: 200px; 
  text-align: left;}
  
.form_settings input, .form_settings textarea
{ padding: 5px; 
  width: 299px; 
  font: 100% arial; 
  border: 1px solid #E5E5DB; 
  background: #FFF; 
  color: #47433F;}
  
.form_settings .submit
{ font: 100% arial; 
  border: 0; 
  width: 99px; 
  margin: 0 0 0 212px; 
  height: 33px;
  padding: 2px 0 3px 0;
  cursor: pointer; 
  background: #3B3B3B; 
  color: #FFF;}

.form_settings textarea, .form_settings select
{ font: 100% arial; 
  width: 299px;}

.form_settings select
{ width: 310px;}

.form_settings .checkbox
{ margin: 4px 0; 
  padding: 0; 
  width: 14px;
  border: 0;
  background: none;}

.separator
{ width: 100%;
  height: 0;
  border-top: 1px solid #D9D5CF;
  border-bottom: 1px solid #FFF;
  margin: 0 0 20px 0;}
  
#tabletti
{ margin: 10px 0 30px 0;}

#tabletti tr th, tabletti tr td
{ background: #3B3B3B;
  color: #FFF;
  padding: 7px 4px;
  text-align: left;}
  
#tabletti tr td
{ background: #E5E5DB;
  color: #47433F;
  border-top: 1px solid #FFF;}
  
/* YHTEISTYÖ*/  
#yhteistyo {
  border-collapse: collapse;
  width: 100%;
}

#yhteistyo td, #yhteistyo th {
  border: 1px solid #FFFF;
  padding: 10px;
}

#yhteistyo th {
  text-align: center;
  background-color: white;
  color: black;
}

#tulostaulu {
  border-collapse: collapse;
  width: 100%;
} 

#tulostaulu td, #tulostaulu th {
  border: 1px solid #ddd; 
  padding: 8px; 
} 

#tulostaulu tr:nth-child(even){background-color: #f2f2f2;} 

#tulostaulu tr:hover {background-color: #ddd;} 

#tulostaulu th { 
  padding-top: 12px;
  padding-bottom: 12px; 
  text-align: left; 
  background-color: #4CAF50;
  color: white; 
}

#toimikunta {
  border-collapse: collapse;
  width: 75%;
} 

#toimikunta td, #toimikunta th {
  border: 1px solid #ddd;
  padding: 5px; 
} 

#toimikunta th { 
  padding-top: 5px;
  padding-bottom: 5px; 
  text-align: left; 
  background-color: white;
  color: black; 
}
  
/* SLIDESHOW ------------------------------------------------------------*/

div#slideshow{
	overflow: hidden;
	position: relative;
	height: 480px;
	margin-bottom: 0px;
	width: 640px;
}

div#slideshow ul#slides{
	margin: 0 auto;
	width: 640px;
	height: 480px;
	position: absolute;
	top:20px;
	left: 5px;
}

div#slideshow ul li
{ list-style-type: circle;
  margin: 0 0 6px 0; 
  padding: 0 0 4px 0px;
  line-height: 1.5em;}

div#slideshow-arrows{
	margin: 0 auto;
	z-index: 900;
	width: 1000px;
	height: 57px;
}



div#slideshow img#prev{
	position: absolute;
	top:240px;
	left: 1px;
	z-index: 20;
}

div#slideshow img#next{
	position: absolute;
	top: 240px;
	right: 0px;
	z-index: 21;
}



div#slideshow span{
	width: 640px;
	height: 480px;
	display: block;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 10;
}

#slideshow-nav{
	display: block;
	position: absolute;
	overflow: hidden;
	bottom: 20px;
	right: 20px;
	z-index: 20;
}

#slideshow-nav a { 
	display: block;
	float: left;
	background: url(../slider/slidebutton.png) no-repeat; 
	height: 15px;
	width: 15px;
	text-indent: -9000px;
	margin-right: 5px;
}

#slideshow-nav a.activeSlide { 
	background: url(../slider/slidebutton-over.png) no-repeat; 
}


/* FADE-SLIDE ------------------------------------------------------------*/

div.fade-slide{
	overflow: hidden;
	height: 337px;
	border: 2px solid white;
}