/**
 * Kabanoff.ru project
 * Main stylesheet file
 */
 
/* Sticky footer */
html, body {
	height: 100%;
}
body {
  margin: 0 10px;
}
#body {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 10px -85px; 
}
#frozer {
	height: 85px; 
}
#footer {
  height: 85px;
  margin: 0 10px;
}
#frozer {
  clear: both;
}

/* Common layout and decorations */
* {
  margin: 0;
  padding: 0;
}
a img {
  border: 0;
}
a, a:visited {
  color: #00CCFF;
}

body {
  background-color: #141414;
  font-size: 80%;
  font-family: 'Verdana', 'Arial', sans-serif;
}

p.error {
	padding: 3px 10px;
	margin: 16px 0;
	background: #F00;
	font-weight: bold;
	color: #FFF;
}

/* Footer */
#footer {
  position: relative;
}
#footer * {
  color: #EFEFEF;
}

#counter {
  position: absolute;
  width: 88px;
  height: 31px;
  text-align: right;
  top: 1px;
  right: 1px;
}

#footer_left {
  margin-right: 270px;
}
#footer_left.internal { 
  padding-left: 145px;
  background: url('/img/small-logo.jpg') 0 50% no-repeat;
}
#footer_left .creator {
  margin: 1em 0 0;
}
#footer_left .creator a {
  text-decoration: none;
}

#footer_right {
  position: absolute;
  width: 250px;
  top: 0px;
  right: 10px;
}

#footer_right dl {
  width: 250px;
  overflow: hidden;
}
#footer_right dl dt {
  float: left;
  width: 60px;
}
#footer_right dl dd {
  margin-left: 66px;
}
#footer_right #owner_name {
  text-align: right;
  margin: 1em 58px 0;
}

/* Index page layout */
img#index_header {
  display: block;
  margin: 20px auto 0;
}

#counters {
  position: absolute;
  width: 130px;
  height: 75px;
  left: 0;
  top: 0;
  background-color: #FF0;
}

/* Main menu */
#main_menu {
  padding: 8px 0;
  list-style: none;
  text-align: center;
}

#main_menu li {
  display: inline;
  margin: 0 16px;
}
#main_menu li a {
  font-weight: bold;
  color: #F5AA55;
  text-decoration: none;
  height: 1.1em;
  padding: 0 5px;
  border: 2px solid #141414;
}
#main_menu li a:hover, #main_menu li a.current {
  border-color: #F5AA55;
}
#main_menu li a.current {
  background-color: #F5AA55;
  color: #000;
}

/* Page content */
#page_content {
  padding: 16px;
}
#page_content p {
  margin: 0.25em 0 0.5em;
}
#page_content p, #page_content td, #page_content th, #page_content h1 {
  color: #EFEFEF;
}

#page_content ul, #page_content ol {
  margin: 0 16px;
}

#page_content img {
  color: #141414;
}

/* E-mail protection */
#eaddr.a1 {
  width: 144px;
  background: url('/img/a1.png') -4px -1px no-repeat;
}
#eaddr.a2 {
  width: 109px;
  background: url('/img/a2.png') -3px -2px no-repeat;
}

/* Photoalbum */
body.photo_view {
  margin: 10px;
}
body.photo_view h1 {
  text-align: center;
  color: #EFEFEF;
  font-size: 150%;
  font-weight: normal;
	margin: 10px;
}

#image_list {
  list-style: none;
  margin: 10px;
  overflow: hidden;
  width: 90%;
}
#image_list li {
  float: left;
  margin: 0;
  width: 130px;
  height: 130px;
}

#image_list li a {
  display: block;
  margin: 5px;
  width: 120px;
  height: 120px;
  background: 50% 50% no-repeat;
  text-decoration: none;
}

body.photo_view noscript {
	padding: 3px 10px;
	font-weight: bold;
	color: #FFF;
	background-color: #F44;
}

.nav {
  position: relative;
  width: 380px;
  height: 28px;
  margin: 30px 0 10px -180px;
  left: 50%;
}
.nav a {
  display: block;
  float: left;
  width: 100px;
  height: 28px;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  line-height: 28px;
  background: url('img/button.gif') 0 0 no-repeat;
}
.nav a, .nav a:visited {
  color: #141414;
}
.nav a:hover {
  background-position: 0 -28px;
}

/* Events */
#event_list {
  list-style: none;
  margin: 16px;
}
#event_list li {
  padding: 5px 20px;
}
#event_list span.date {
  font-style: italic;
}
#event_list .title a {
  /* font-weight: bold; */
  color: #95A3ED;
}
#event_list .title a:visited {
  color: #B07CAE;
}

.event_title {
  font-size: 150%;
  font-weight: normal;
}
.event_date {
  text-indent: 2em;
  font-style: italic;
  font-weight: bold;
}
.event_content {
  margin: 16px 0 0;
}

#event_list li.protected {
  background: url('/img/key.gif') 0 50% no-repeat;
}

/* Links */
#page_content #link_list {
  list-style: none;
  margin: 32px 16px;
}

#link_list li {
  width: 99%;
  overflow: hidden;
  margin-bottom: 16px;
}

#link_list .title {
  font-size: 125%;
  font-weight: bold;
}

#link_list li img {
  float: left;
  margin: 0 16px 16px 0;
}

#link_list li p  a {
  font-weight: bold;
}

/* Paging */
ul.pager {
  list-style: none;
  text-align: right;
}

ul.pager li {
  display: inline;
  margin: 0 8px;
  color: #EFEFEF;
}
ul.pager li.current {
  font-weight: bold;
}

/* Event password form */
form.event_code {
  width: 400px;
  position: relative;
  left: 50%;
  margin: 100px 0 0 -200px;
  padding: 20px;
  border: 2px solid #DFDFFF;
  color: #EFEFEF;
}
form.event_code label {
  display: block;
  margin: 16px 0;
}
form.event_code p.buttons {
  text-align: center;
}
form.event_code p#error {
  font-weight: bold;
  text-align: center;
  color: #F00;
}

