/* modified from http://www.free-css.com/free-css-templates/page38/trinity-institute 
There is a lot of unnecessary css left here */


/*Color scheme: 550000-001514-293132-6b6d76-f1dede
                red    black  dark   grey   light*/
/*Color scheme: 550000-886f68-f5edf0-424c55-d1ccdc-315659
                red    beige  white  grey   light  green*/

:root {
  --bg-color: #f2f7ff;/*#f5edf0;*/
  --hl-color: #550000;
  --bg-dark-color: #364652;/*696d7d;*/
  --complement-color: #886f68;
  --otsikko-color: #000000;
}


body{ max-width: 70em; margin:0 auto; padding:0;  background: var(--bg-color); font-style:normal; font-variant:normal; font-weight:normal; font-size:10pt; font-family:Verdana, arial, helvetica, sans-serif;}

a { color: var(--complement-color);	 background: inherit; text-decoration:none;}
a:hover { color: var(--hl-color); 	/*border-bottom: 1px dashed var(--hl-color);*/ background:inherit; text-decoration: none;	}
a:active { background:inherit;	color: #990000; text-decoration: none; font-weight:bold;}



h1{
	background: inherit;
  color: var(--hl-color);
  margin: 30px 0 0 32px;
  padding:0 0 2px 0px;
  font: 18pt georgia,'Trebuchet MS', Verdana, Arial,Helvetica, sans-serif;
}


h2 {
  background: inherit;
  color: var(--hl-color);
  margin: 30px 0 0 32px;
  padding:0 0 2px 0px;
  font: 16pt georgia,'Trebuchet MS', Verdana, Arial,Helvetica, sans-serif;
}

h3 {
  background: inherit;
  color: var(--otsikko-color);
  margin: 30px 0 0 32px;
  padding:0 0 2px 0;
  font: 13pt verdana, sans-serif;
  font-weight: bold;
}
h4 {
  background: inherit;
  color: var(--otsikko-color);
  margin: 30px 0 12px 32px;
  padding:0 0 0px 0px;
  font: 11pt verdana, sans-serif;
  font-weight: bold;
}
h5{
  background: inherit;
  margin: 0px 0 24px 34px;
  color: var(--otsikko-color);
  font-weight: bold;
  /*font-style: italic;*/
  font: 11pt Verdana, Arial,Helvetica, sans-serif;
  font-weight: bold;
}

.hide{display:none;}

#top{float:left; clear:both; width: 100%;  color:#7E94C9; background:inherit;}

#top a{
 text-decoration:none;
 padding:0;
 margin:0;
 color:var(--bg-color);
 background:inherit;
}

#top a:hover{
 color:var(--hl-color);
 background: inherit;
}

#container{
 float:left;
 width:100%;
 margin:20px auto 20px auto;
 padding: 0;
 background:#fff;
 color:#000;
 line-height:1.2em;
}

img{
    width:100%;
    max-width:160px;
}

/* -------------- Topmenu -------------- */
  

#topmenu{
 text-align:center;
 width:100%;
 background: var(--bg-dark-color);
 color: var(--bg-dark-color);
 margin:0;
 padding: 30px 0 30px 0;
 border-bottom: solid 1px var(--bg-dark-color);
}

#topmenu ul{
 padding:0;
 margin:0;
 list-style-type: none;
}

#topmenu li{
 padding:0;
 margin:0;
 display:inline;
 list-style-type: none;
}

#topmenu a, #topmenu a:visited{
 margin:0 0 0 0px;
 text-align:center;
 text-decoration:none;
 padding: 8px 18px 8px 18px;
 color:var(--bg-color);
 /*border-left:1px solid #555358;*/
 background:var(--bg-dark-color);
}

#indexpage #topmenu .indexmenu, #researchpage #topmenu .researchmenu, #teachingpage #topmenu .teachingmenu {
  font-weight: bold;
  font-size:14pt;
}

#topmenu a:hover{
 color:var(--hl-color);
 background:var(--bg-color);
 border-bottom: 0px;
}

#topmenu a.last{/*border-right:1px solid #555358;*/}



/* -------------- Mainbox -------------- */
  

#mainbox, #mapbox {
 float:left;
 width:65%;
 color: #000;
 background: #fff;
 margin: 0;
 padding: 0 0 36px;
 font: 100% Verdana, Arial, Helvetica, sans-serif; border-right: 1px dashed #f1dede; /*#F5DBBD;*/
}

#mainbox p, #mapbox p{ padding: 2px 28px 6px 34px;  margin: 0; line-height:1.6em;}

#mainbox ul{
 list-style:none;
 padding: 0;
 margin: 4px 0 0 0;
}

#mainbox li{
  background:#fff;
  color: #000;
  /*padding: 0;*/
  list-style:square;
  list-style-position:outside;
  line-height:1.6em;
  padding: 2px 28px 6px 0px; 
  margin: 2px 0 0 52px;
}


.halfbox{ float:left; width:270px; margin: 16px 0 0 12px; }
.halfboxtitle{ background: inherit; color: #313131;	margin: 18px 0 8px 24px;	padding:0;
 font:normal 146% georgia, "Trebuchet MS", "Lucida Sans Unicode", Verdana, Arial,Helvetica,sans-serif; }

.halfbox ul {
 list-style-type: none;
 margin: 0;
 padding: 0;
}

.halfbox li {
 list-style-type: none;
 background:#fff url(images/bullet.gif) no-repeat 0 6px;
 color: #A75644;
 margin: 0 0 6px 32px;
}

.halfbox  a{  padding-left : 0.9em; }


.publication{
 /*background:var(--hl-color);*/
 margin: 100px 0 6px 32px;
}

/* -------------- Right side -------------- */
  


#mainright{
  float:left;
  width: 300px;
  height: 100%;
  text-align:center;
  margin-top: 0px;
  padding: 0 0 0 12px;
}

#menunuright{ float:left; text-align:left; width: 98%; padding:7px; margin:0; }

.title{
 color: var(--otsikko-color) /* Grey address in the left.. yeah great naming */
 background: #fff;

 padding: 0;
 font: 9pt verdana, Arial, Helvetica, sans-serif;
}

.vaaleateksti{
color: var(--complement-color);
}

.contact {
  /*background: var(--bg-color);*/
}
th{
padding: 0 10px 0 0;
}

#menunuright h1{
  margin: 30px 0 5px 0;
}
#menunuright ul{
  list-style:none;
  padding: 0;
   margin: 10px 0 0 0;
}

#menunuright li{
  color: #797979;
  list-style:none;
  padding: 0;  background: #fff url(images/bullet.gif) no-repeat 0px 6px;
  margin: 4px 0 8px 15px;
}


#menunuright a{
 margin: 4px 0 8px 10px;
 text-decoration:none;
 padding:0;
 border-bottom:0; background:#fff;  color: #000000;	
}

#menunuright a:hover{ border-bottom: 1px dashed #A75644; background:#fff; color: #883225; }


/* -------------- Footer -------------- */
  
#footer{
  margin-top: 10px;
  margin:0;
  clear:both;
  width:100%;
  text-align:center;
  color: var(--bg-dark-color);
  padding: 10px 1px 10px 0px;
  background:var(--bg-dark-color);
  border-top: solid 1px var(--bg-dark-color); border-bottom: solid 1px var(--bg-dark-color);
}

#footer p{	margin: 0;	padding:0;}

