body{ /* CSS for BODY transition when menu is set to push BODY content. */ 
	-moz-transition: left 100ms ease-in-out, right 100ms ease-in-out;
	-webkit-transition: left 100ms ease-in-out, right 100ms ease-in-out;
	transition: left 100ms ease-in-out, right 100ms ease-in-out;
}


.sidetogglemenu{ /* shared class for side toggle menus */
	border-right: 5px solid #ff573b;
	background-color: #575757;
	width: 200px; /* default menu width */
	height: 100%;
	position: absolute;
	/*top: -100%;*/
	clear: both;
	display: block;
	
	overflow-y: auto;
	box-shadow: 5px 0 5px rgba(174, 174, 174, .8);
	-moz-transition: all 100ms ease-in-out; /* change 100ms to slide in animation time */
	-webkit-transition: all 100ms ease-in-out;
	transition: all 100ms ease-in-out;
	z-index:10000000000;
}


.sidetogglemenu ul{ /* Top UL inside toggle menu */
	padding: 0;
	margin: 0;
	list-style: none;
}

.sidetogglemenu ul ul{ /* Toggle menu sub ULs style */
  border-left: 6px solid darkred;
  margin-left: 5px;
  padding-left: 2px;
  font-size: .9em;
}

.sidetogglemenu a{
	font: normal 13px Verdana;
	padding: 10px;
	display: block;
	color: #fff;
	position: relative;
	text-decoration: none;
	border-bottom: 1px solid #C0C0C0;
	font-family: 'Open Sans', sans-serif;
	font-size:12px;
}

.sidetogglemenu a img.downarrow{
	position: absolute;
	right: 5px;
	top: 15px;
}


.sidetogglemenu a:hover{
	background: #ccc;
	color: white;
}

/* #######  Additional CSS for toggle menu #togglemenu2  ####### */

#togglemenu2{
	width: 250px;
	border-width: 0;
	background: rgb(53,106,160);
	box-shadow: -5px 0 5px rgba(174, 174, 174, .8);
}

#togglemenu2 ul a{
	color: white;
	border-bottom: 1px solid #eee;
	font: bold 14px;
	text-transform: uppercase;
}

#togglemenu2 a:hover{
	background: #162a50;
	color: white;
}

/* #######  Responsive Menu related CSS  ####### */

div#smallscreentoggler{ /* CSS for small screen menus toggler, shown when device width is below specified */
	width: 1.5em;
	z-index: 10000;
	color: white;
	position: absolute;
	float: right;
	overflow: hidden;
	background: gray;
	font: normal 1.8em Arial;
	margin-bottom: 0.5em;
	text-align: center;
	box-shadow: -3px 3px 5px gray;
	cursor: pointer;
	/*border-radius: 2px;*/
	display: none;
	-moz-transition: all 200ms ease-in-out;
	-webkit-transition: all 200ms ease-in-out;
	transition: all 200ms ease-in-out;
	right:0px;
	float:right;
	margin:5px;
}

div#smallscreentoggler:hover{
	background: #eee;
	color: black;
	-moz-transition: all 200ms ease-in-out;
	-webkit-transition: all 200ms ease-in-out;
	transition: all 200ms ease-in-out;
}

.contents{
	padding-top:50px!important;	
}


@media screen and (max-width: 770px){ /* CSS when device width is 770px or less */

  div#smallscreentoggler{
		display: block; /* show small screen menus toggler */
		position:fixed;
	}

	.sidetogglemenu{ /* Set position of menus to static */
		position: fixed;
		border-width: 0;
		border-top-width: 1px;
		width: 98% !important;
		height: auto;
		box-shadow: 5px 0 5px rgba(174, 174, 174, .8) !important;
		margin-left: 5px;
		margin-bottom: 10px;
		display: none;
		z-index:10000000000;
		top:0px;
	}
	.sidetogglemenu a{
	  font-family: 'Open Sans', sans-serif;	
	}
	.head{
	  display:none;	
	}
	#headerSlideContainer{
		display:none;
	}
	
	.contents{
		padding-top:10px!important;	
	}
	
	#wrapper{
		width:70%!important;	
	}
	#home h1{
	  font-size:3.0em!important;
	  bottom:15px!important;	
	}
	
	form#write input[type="text"], input[type="email"], textarea {    
		font-size:1.5em!important;
	}

	form#write textarea {
		font-size:1.5em!important;
	}
}

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) { /* STYLES GO HERE */ 
	#wrapper{
		width:70%!important;	
		font-size:14px;
	}
	#home h1{
	  font-size:4.0em!important;
	  bottom:30px!important;	
	}
}

@media screen and (max-width: 520px){
	#wrapper{
		width:90%!important;
		font-size:14px;	
	}
	
	#home h1{
	  font-size:2.5em!important;
	  bottom:25px!important;	
	}
	
}

@media screen and (max-width: 320px){
	#home h1{
	  font-size:2.0em!important;	
	}
	.subtitle{
		font-size: 1.2em!important;
	}
	
}

@media screen and (max-width: 240px){
	#home h1{
	  font-size:1.5em!important;	
	  bottom:30px!important;
	}
	.subtitle{
		font-size: 1.2em!important;
	}
	
}