#wraper {
    margin:0 auto;
    padding:0;
}

body {background-color: #bababa; color: #fff;}

#container {
	width: 896px;
	height: 1700px;
	background-color: #F0F0F0;
	border: 2px solid #666666;
	display: block;
	padding: 0;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}

#logo {
	float: left;
	height: 70px;
	width: 220px;
	padding-left: 20px;
}

#navmenu {
	width: 440px;
	float: right;
	margin-top: 45px;
	height: 30px;
	margin-left: 20px;
}

#ul {
	float: none;
	border: 0px solid #A5A5A5;
	text-align: left;
	text-align: left;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.75em;
}

#ul li {
	display: inline;
	padding-right: 5px;
}

#ul a:link.active, #ul a:visited.active, #ul a:hover.active
{
   border-bottom: 1px solid #A5A5A5;
   background-color: #E1E1E1;
   color: #0000FF;
   position: relative;
   padding-top: 3px;
   font-weight: normal;
   text-decoration: none;
   border-radius: .40em;
}
#ul a:link, #ul a:visited
{
   padding: 3px 4px;
   border: 1px solid #A5A5A5;
   background-color: #E1E1E1;
   color: #0000FF;
   margin-right: 0px;
   text-decoration: none;
   border-radius: .40em;
}
#ul a:hover
{
	background: #E1E1E1;
	color: #FF0000;
	font-weight: normal;
	text-decoration: none;
}

#textmenu {
	position: relative;
	border: 0px solid #F00;
	text-align: left;
	z-index: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.7em;
	text-decoration: none;
	display: block;
	margin-left: 775px;
	margin-top: 15px;
 }

a:link {color: #0000FF; text-decoration: none;}

a:active, a:visited, {color: #0000FF;}

a:hover {
	color: #FF0000;
	display: inline;
	font-weight: normal;
	text-decoration: none;
}

.slideshow {
	height: 300px;
	width: 852px;
	margin-top: 10px;
	margin-left: 20px;
}

#block {
	width: 832px;
	height: 1040px;
	padding-bottom: 15px;
	background-color: #EFEFEF;
	border-radius: .65em;
	display: block;
	padding-left: 20px;
    padding-top: 20px;
}

.block1 {
	width: 350px;
	float: left;
	margin-top: 20px;
	margin-right: 20px;
	background-color: #FFFFFF;
	height: 230px;
	border-radius: 0.65em
}
.block1 h1 {
	color: #0033CC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	font-weight: 700;
	padding-left: 20px;
	background-color: #FFFFFF;
	border-top-left-radius: 0.55em;
	border-top-right-radius: 0.55em;
}

.block1 p {
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	text-align: justify;
	padding-right: 20px;
	line-height: 130%;
	padding-left: 20px;
}

.block1 p a:link, .block1 p a:visited {
   color: #0000FF;
}

.block1 p a:hover {
	color: #FF0000;
}
.block2 {
	width: 350px;
	float: left;
	margin-top: 20px;
	margin-right: 20px;
	background-color: #FFFFFF;
	height: 280px;
	border-radius: 0.65em
}

.block2 h1 {
	color: #0033CC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	font-weight: 700;
	padding-left: 20px;
	background-color: #FFFFFF;
	border-top-left-radius: 0.55em;
	border-top-right-radius: 0.55em;
}

.block2 p {
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	text-align: justify;
	padding-right: 20px;
	line-height: 130%;
	padding-left: 20px;
}

.block2 p a:link, .block2 p a:visited {
   color: #0000FF;
}

.block2 p a:hover {
	color: #FF0000;
}
.block3 {
	width: 350px;
	float: left;
	margin-top: 20px;
	margin-right: 20px;
	background-color: #FFFFFF;
	height: 280px;
	border-radius: 0.65em
}

.block3 h1 {
	color: #0033CC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	font-weight: 700;
	padding-left: 20px;
	background-color: #FFFFFF;
	border-top-left-radius: 0.55em;
	border-top-right-radius: 0.55em;
}

.block3 p {
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	text-align: justify;
	padding-right: 20px;
	line-height: 130%;
	padding-left: 20px;
}

.block3 p a:link, .block3 p a:visited {
   color: #0000FF;
}

.block3 p a:hover {
	color: #FF0000;
}
.block4 {
	width: 350px;
	float: left;
	margin-top: 20px;
	margin-right: 20px;
	background-color: #FFFFFF;
	height: 200px;
	border-radius: 0.65em
}
.block4 h1 {
	color: #0033CC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	font-weight: 700;
	padding-left: 20px;
	background-color: #FFFFFF;
	border-top-left-radius: 0.55em;
	border-top-right-radius: 0.55em;
}

.block4 p {
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	text-align: justify;
	padding-right: 20px;
	line-height: 130%;
	padding-left: 20px;
}

.block4 p a:link, .block4 p a:visited {
   color: #0000FF;
}

.block4 p a:hover {
	color: #FF0000;
}

.gallery {
	width: 462px;
	float: left;
	height: 260px;
	margin-top: 0px;
}
.gallery a {
    display:inline-block;
    height:90px;
    position:relative;
    width:90px;
}
.gallery a img {
	border: 5px solid #fff;
	cursor: pointer;
	display: block;
	height: 100%;
	left: 3px;
	position: absolute;
    margin-top:20px;
	top: 3px;
	width: 100%;
	z-index:0;
	-moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;	
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition-property: width, height, top, bottom, left, right, z-index, border;
	-webkit-transition-duration: 0.5s;
	-moz-transition-property: width, height, top, bottom, left, right, z-index, border;
	-moz-transition-duration: 0.5s;
	-o-transition-property: width, height, top, bottom, left, right, z-index, border;
	-o-transition-duration: 0.5s;
	transition-property: width, height, top, bottom, left, right, z-index, border;
	transition-duration: 0.5s;
}

.gallery a:focus img {
  position:absolute;
  border:15px solid #fff;
  cursor:default;
  height:450%;
  width:450%;
  z-index:1;
   box-shadow:1px 1px 5px #888;
  -moz-box-shadow:1px 1px 5px #888;
  -webkit-box-shadow:1px 1px 5px #888;
  -webkit-transition-property:width, height, top, bottom, left, right, z-index, border;
  -webkit-transition-duration:0.5s;
  -moz-transition-property:width, height, top, bottom, left, right, z-index, border;
  -moz-transition-duration:0.5s;
  -o-transition-property:width, height, top, bottom, left, right, z-index, border;
  -o-transition-duration:0.5s;
  transition-property:width, height, top, bottom, left, right, z-index, border;
  transition-duration:0.5s;
}

/* custom focus rules */
.gallery a:focus:nth-child(1) img {
    left:-200px;
    top:0px; 
}
.gallery a:focus:nth-child(2) img {
    left:-250px;
    top: 0px;
}
.gallery a:focus:nth-child(3) img {
    left:-400px;
    top:0px; 
}
.gallery a:focus:nth-child(4) img {
    left:-500px;
    top:0px;
}
.gallery a:focus:nth-child(5) img {
    left:-200px;
    top:-250px;
}
.gallery a:focus:nth-child(6) img {
    left:-250px;
    top:-250px;
}
.gallery a:focus:nth-child(7) img {
    left:-400px;
	top: -250px;
}
.gallery a:focus:nth-child(8) img {
    left:-500px;
    top:-250px; 
}
.gallery a:focus:nth-child(9) img {
    left:-200px;
    top:-400px;
}
.gallery a:focus:nth-child(10) img {
    left:-250px;
    top:-400px;
}
.gallery a:focus:nth-child(11) img {
    left:-400px;
    top: -400px; 
}
.gallery a:focus:nth-child(12) img {
    left:-500px;
    top:-400px; 
 
}

/* extra close layer */
.gallery .close {
    background:transparent;
    cursor: pointer;
    display: none;
    top: 400px;
	height: 1180px;
    width: 1000px;
	bottom: 0px;
	left: 0px;
	right: 0px;
    position:absolute;
    z-index:30;
}

.gallery a:focus ~ .close {
    display: block;
}

#footer {
	height: 70px;
	width: 852px;
	margin-top: 20px;
	margin-left: 20px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.875em;
	text-align: center;
	line-height: 140%;
	color: #666666;
}
