

/*
Original design: andreas07 (v2.1 - Sep 11, 2012) - A free xhtml/css website template by Andreas Viklund.
For more information, see http://andreasviklund.com/templates/andreas07/
*/

/* Main tags */
body {margin:0; padding:0; color:#303030; background:#fafafa url(img/bodybg.gif) top left repeat-y;  font:76% Verdana,Tahoma,sans-serif;}
ul {margin:5px 0 16px 5px; padding:0;}
li {margin:0 0 8px 15px; padding:0; }
img {margin: 0 15px 15px 0; padding:1px; background:#ffffff; border:1px solid #d0d0d0;}
a {color:blue; font-weight:bold; text-decoration:none;}
a:hover {color:#505050; text-decoration:underline;}
a.active {text-decoration:underline;}
a img {border-color:#d85d5d;}
a img:hover {background:#d85d5d; border-color:#d85d5d;}

/* Wrap */
#wrap {width: 990px;}

/* Left sidebar */
#leftside {width:220px; background:#e0e0e0 url(img/sidebarbg.gif) top right repeat-y; text-align:right; float:left;}
#leftside h1 {margin:20px 18px 0 5px; color:blue; font-size:1.6em; letter-spacing:-2px; text-align:right;}
#leftside h2, #leftside h3 {margin:0 20px 18px 5px; color:black; font-size:1.1em; font-weight:normal; letter-spacing:-1px; text-align:right;}
#leftside h3 {margin:20px 18px 4px 5px; color:blue;}
#leftside p {margin:0 20px 18px 5px; color:#606060; font-size:0.8em;}
#leftside a {color:#808080}
#leftside a img:hover {background:none; border-color:transparent;}
/* Navigation menu */
#menu a {display:block; width:202px; padding:5px 18px 5px 0; color:blue; background:#e0e0e0 url(img/sidebarbg.gif) top right repeat-y; font-size:1.6em; font-weight:normal; text-decoration:none; letter-spacing:-1px;}
#menu a:hover {color:#303030; background:#f0f0f0 url(img/sidebarbg.gif) top right repeat-y;}
#menu a.active {padding:5px 18px 5px 0; background:#fafafa; border-top:2px solid #c0c0c0; border-bottom:2px solid #c0c0c0;}
#menu a.active:hover {color:#505050; background:#fafafa;}

/* Right sidebar */
#extras {width:200px; float:right; color:#666;}
#extras h2, #extras h3 {margin:10px 0 12px 0; color:blue; font-size:1.6em; font-weight:400; letter-spacing:-1px; text-align:center; border-bottom:2px solid #b0b0b0;}
#extras p {line-height:1.4em; margin: 0 0 15px 0;}

/* Content area */
#content {width:520px; margin:0 0 0 240px; padding:10px 0; background:#fafafa;}
#content p {margin:0 0 16px 0; line-height:1.5em;}
#content h1 {margin:0; color:blue; font-size:3.6em; letter-spacing:-4px; text-align:center;}
#content h2 {margin:0; color:blue; font-weight:normal; font-size:2em; letter-spacing:-2px; text-align:center;}
#content h3 {margin:20px 0 10px 0; color:blue; font-weight:normal; font-size: 2em; letter-spacing:-2px;}
#content h4{text-align:center; font-size:1.3em; font-weight:normal; letter-spacing:-1px;  text-align:center; }

/* increase font size for tablets */

@media screen and (max-device-width: 980px) { 
	 body{ font-size:100%;} 
	#content h4{font-size:1.3em;  }
}

 /* responsive  2 columns */

@media screen and  (max-device-width: 767px){ 

/* preparation remove overlap of elements */ 

#content {margin:0 0 0 0; padding:10px 18px 10px 20px; float: left ;}
body { background:#e0e0e0; }	
#leftside { background:#e0e0e0 ; }
#menu a { background:#e0e0e0;}	
a img:hover {background:#d85d5d; border-color:#d85d5d;}

/* preparation replace px with em */ 
	
#content h1 {font-size:3.6em; letter-spacing:-.08em; }
#content h2 {font-size:2em; letter-spacing:-.1em; }
#content h3 {font-size: 2em; letter-spacing:-.1em;}

/* flex using percentages*/

#menu a {font-size:1.3em;}
#menu a:hover { background:#f0f0f0; }	
#menu a.active {border-top:0 ; border-bottom:0 ;}
#content 	{padding:10px 3.8% 10px 3.8%; }
#wrap {	width: 100%;}
#leftside {width:25.02%;}
#menu a {width:91.81818%; padding:5px 8.91089%  5px 0;}   
#content {width:66.22%;}
#menu a.active {padding:5px 8.91089% 5px 0; }
img {margin: 0 6.0% 6% 0;}
img { max-width: 90%; } 
#leftside h1 {margin: 9.0909% 8.18181% 0 2.271725%; }
#leftside h2, #leftside h3 {margin:0 9.0909% 8.18181% 2.271725%; } 


#content h1 {font-size:2.25em;  }
#content h2 {font-size:1.5em;  }
#content h3 {font-size:1.5em;  }

}
 /* responsive  1 column */

@media screen and (max-device-width: 720px) {

#leftside {width: 93%;}
#menu a {width: 100%; padding:0 0  5px 0; }
#menu a:hover  {padding:5px 8.91089% 5px 0;}
#content {width: 93%; }

#content p {line-height:1.2em;}
#leftside h1 {margin: 2.271725% 0 0 2.271725%; }
#leftside h1 {font-size:2.5em;}
#leftside h2, #leftside h3 {margin:0 0 2.271725% 2.271725%; }
img {margin: 0 0 2% 0;}
img { max-width: 100%; } 
}


