html {
	height: 100%
}

@font-face {
  font-family: 'Moussefont';
  src: url('AdineKirnberg-Alternate.eot');	/*IE*/
  src: url('AdineKirnberg-Alternate.ttf');
}

A:link {
    COLOR: #664200;
	TEXT-DECORATION: none
}
A:visited {
    COLOR: #664200;
	TEXT-DECORATION: none
}
A:hover {
	COLOR: #664200;
	TEXT-DECORATION: underline
}
a:active{
	color:#000000;
	text-decoration: underline
}

p {
  /*font-family: 'Lucida Sans', 'Arial';*/
  font-family: 'Palatino Linotype', 'Book Antiqua', 'Palatino', 'serif';
  font-size: 14pt;
  position: relative;
}
img {
	border:0;
	}

img.center {   
	display: block;  
	margin-left: auto;  
	margin-right: auto;
	max-width: 95%;
	max-height: 95%;
}

img.landscape {
	position: relative;
	display: block;  
	margin-left: auto;  
	margin-right: auto;
	margin-top: 10px;
	max-width: 90%;
	max-height: 80%;
}

img.portrait {
	position: relative;
	display: block;  
	margin-left: auto;  
	margin-right: auto;
	margin-top: 10px;
	max-height: 80%;
	max-width: 90%;
}

span.titletext{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

span{
	font-family: 'Palatino Linotype', 'Book Antiqua', 'Palatino', 'serif';
	font-size: 12pt;
	text-align: center;
}

span.pictCaption{
	font-family: 'Palatino Linotype', 'Book Antiqua', 'Palatino', 'serif';
	font-size: 14pt;
	text-align: center;
	position: relative;
}

div#pictMenuBar a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: #664200;
    background-image: url(../commons/ButtonBgnd.png);
	background-repeat: repeat-x;
	background-size: contain;
}

body{
  padding: 0;
  margin: 0;
  margin: 0 0 0 0;
  background-image: url(../commons/bbackground.jpg);
  background-repeat:repeat;
  background-attachment:fixed;
  height: 100%;
 }
 
 div#mainContainer{
	position: fixed;
	height:100%;
	width: 100%;
	display: table;
}

div#headDiv{
	background-image: url(../commons/hbackground.jpg);
	background-repeat:repeat;
	background-attachment:fixed;
	color:black;
	top:0;
	left:0;
	width:100%;
	clear: both;
	height:0px;
	z-index: 4;
	display: none;
}

div#pictAndMenu{
	position: absolute;
	float: left;
	clear: both;
	width: 100%;
	/*max-height: 100%;*/
	top: 0;
	bottom: 0;
}

div#pictAndCaption{
	position: absolute;
	float: left;
	text-align: center;
	display: block;
	top: 0;
	bottom: 5px;
	/*max-height: 100%;*/
	width: 85%;
}

div#pictMenuBar{
	position: relative;
	float:	right;
	display: block;
	width: 15%;
	margin-top: 20px;
	height: 100%;
	padding-right: 10px;
}

div#pictMenu{
	position: absolute;
	width: 100%;
	height: 100%;
}
/*
div.pictMenuLink{
	background-image: url(../commons/ButtonBgnd.png);
	background-repeat: repeat-x;
	background-size: contain;
}*/

div#prevBtn{

}

div#homeBtn{
	
}

div#nextBtn{
	
}

div#foot{
	display: none;
	clear: both;
	font-family: 'Futura', 'Lucida Sans', 'Arial';
	background:#d6cdc0;
	color:black;
	width:100%;
	min-height:0.8em;
	bottom: 0;
	font-size:70%;
	text-align: center;  
	vertical-align: bottom;
	z-index: 0;
	position: fixed;
}
	

/* shows the header and footer on large screens where this might be accepatble*/
@media all and (min-height: 480px) and (orientation: landscape){
	div#headDiv{
		height: 100px;
		display: block;
	}
	div#pictAndMenu{
		position: absolute;
		top: 110px;
		bottom: 25px;
		height: 75%;
	}
	img.landscape{
		margin-top: 20px;
	}
	
	img.portrait{
		margin-top: 20px;
	}
	
	div#foot{
		height: 20px;
		display: block;
		vertical-align: bottom;
	}
	div#pictMenuBar a {
		font-size: 18pt;
		border-top: 10px;
		border-bottom: 10px;
	}
}

/* Portrait layout for smartphones and similars */
@media all and (orientation: portrait){
	div#pictAndMenu{
		bottom: 0;
	}
	div#pictAndCaption{
		clear: both;
		width: 100%;
		bottom: 30px;
		max-height: 90%;
	}
	div#pictMenuBar{
		position: absolute;
		bottom: 0;
		/*padding-bottom: 35px;*/
		float:	left;
		clear: both;
		display: block;
		width: 100%;
		margin-top: 5px;
		height: 30px;
		background-image: url(../commons/ButtonBgnd.png);
		background-repeat: repeat-x;
		background-size: contain;
	}
	
	div#pictMenuBar a {
        float: left;
        width: 28%;
        margin: 0 0 0 0;
        padding: 5px;
		
        margin-bottom: 0;
    }

    div.pictMenuLink:first-child a {
        margin-left: 0;
    }

    div.pictMenuLink:last-child a {
        margin-right: 0;
    }
	
	div#foot{
		display: none;
	}
}

@media all and (max-height: 600px){
	div#pictAndCaption{
		overflow: auto;
	}
	::-webkit-scrollbar { 
		display: none; 
	}
}

