/* --------------------------------------
CSS styles for www.casparreist.ch
June 2014
(c) caspar reist
----------------------------------------*/


/* -------------------------------------*/
/* -------- PAGE WIDE STUFF ------------*/
/* -------------------------------------*/

/* GENERAL DESIGN ----------------------*/
* {
margin: 0;
padding: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}



body {
	height : 90%;
	background: #6d5f50;
}


::selection, ::-moz-selection {
	background-color:#373737;
}

/* MOBILE VIEWPORT -------------------- */
@media screen and (max-width: 640px) {
	 @viewport { width: 300px; } 
}


/* SCROLLBAR ----------------------------*/
html {
	overflow-y: scroll;
}
html::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
}

html::-webkit-scrollbar {
	width: 6px;
	background-color: #F5F5F5;
}

html::-webkit-scrollbar-thumb {
	background-color: #000000;
}

.inner {
	margin: 0 auto;
	max-width: 940px;
}

/* -------------------------------------*/
/* HEADER and FOOTER  ------------------*/
/* -------------------------------------*/


header, footer, section { 
	display: block;
}

header#mainheader {
	background: rgba(33, 33, 33, 1);
	width: 100%; 
	position: fixed;
	left: 0;
	top: 0;	
	border-top:1px solid #666;
	color: #CCC;	
}

footer {
	background: rgba(33, 33, 33, 0.2);
	font-family: 'Forum', sans-serif;
	color: #CCC;
	text-align: center;
	width: 100%; 	
	left: 0;
	bottom: 0;
	border-bottom:1px solid #666;
	border-top:1px solid #666;
	padding : 0.3em 0;
	min-height: 1em;
	box-shadow : 0px 0px 100px #645850;
}
footer img { 
	padding: 0 0 0px;
	max-height:50px;
	margin:auto;
	display:block;
}

/* -------------------------------------*/
/* NAVIGATION MENU  --------------------*/
/* -------------------------------------*/
 nav {
 	max-width: 940px;
 	margin: 0 auto;
	top : 0;
	
} 
.menu li {
	float: left;
	position: relative;
	list-style-type: none;
}

.menu li a {
	display: block;
	font-size: 1.2em;
	line-height: 20px;
	padding : 0px 1em 0px 0px;
	
	vertical-align: middle;
	text-decoration: none;
	font-family: 'Forum', sans-serif;
	color : #CCC;
	-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
}

.menu li a:hover {
	color: #fff;
}

/* -------------------------------------*/
/* CONTENT RELATED ---------------------*/
/* -------------------------------------*/
section#content {
font-family: 'Droid Sans', sans-serif;
font-size: 1em;
color: #cccccc;

margin:4em  auto;

overflow:hidden;

border-top-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-width: 1px;
}

section#loader {
	min-height: 75%;
}

/* ARTICLES ----------------------------*/

article  {
	padding : 0em;
}

article img {
	max-height: 50%;
	max-width: 100%;
}

article img.large{
	max-height: 50%;
	max-width: 40%;
}

article p {
	margin-left: 0em;
	margin-bottom : 1em;
}

article img {
	margin-bottom: 2em;
}

article h1 {
	font-size: 2.5em;
}

article a {
	color : #cccccc;
	text-decoration: none;
	background-image: url('../images/link.png');
	background-repeat: no-repeat;
	padding-left: 30px;  /* width of the image plus a little extra padding */
	display: block;  /* may not need this, but I've found I do */	
	-webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    -ms-transition: 0.5s;
    transition: 0.5s;
}

article a:hover {
color: #fff;
	box-shadow : 0px 0px 100px #000;
}

/* SECTION TITLE ------------------------*/
.sectiontitle {
	position: fixed;
	font-size: 10em;
	margin: 0 auto;
	opacity: 0.1;
	z-index: -1;
}


/* -------------------------------------*/
/* HELPER CLASSES  ---------------------*/
/* -------------------------------------*/
.fieldInError {
	box-shadow : 0px 0px 100px #991111;
}

.hidden {
	 display : none;
}

.footnote {
	color : rgba(164, 149, 134, 1);
}


.float_left {
	float:left;
	margin : 0em 1em 5em 0em;
}
.float_right {
	float:right;
	margin : 0em 0em 0em 1em;
}

.clearing {
	clear: both; 
}

.icon {
	max-height: 25;
	opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
}

.imgabs {
	position:absolute;
	max-height: 75%;
		
	margin-left: auto;
	margin-right: auto;
	margin-top : auto;
	margin-bottom: auto;

	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.imgabsleft {
	position:absolute;
	max-height: 50%;		
	margin-left: 10%;
	margin-right: auto;
	left: 0;
	right: 0;
}

.centered {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
	left: 0;
	right: 0;
}

img.imgfade {
  position:absolute;
  left:0;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 2s ease-in-out;
}

.imgcenter {
	position:fixed;
    margin-left: auto;
    margin-right: auto
}

.imgfade {
    opacity: 0.1;
    filter: alpha(opacity=10); /* For IE8 and earlier */
}

.imgfade:hover {
    opacity: 1.0;
    filter: alpha(opacity=100); /* For IE8 and earlier */
}


/* For fancy stuff with z-index */
.zp5 	{z-index:5;}
.zp4 	{z-index:4;}
.zp3 	{z-index:3;}
.zp2 	{z-index:2;}
.zp1 	{z-index:1;}
.z0 	{z-index:0;}
.zm1 	{z-index:-1;}
.zm2 	{z-index:-2;}



.spacer {
	margin-bottom: 4em;
}



/* For the Ajax "operation in progress" */
.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .2 ) 
                url('../images/ajaxload.gif') 
                50% 50% 
                no-repeat;
}

body.loading {
    overflow: hidden;   
}

body.loading .modal {
    display: block;
}


/* - END OF CSS ------------------------------------*/