/* 
  Содержит общие стили для всех страниц, должен подключаться в каждой странице.
*/

* {
  margin:0;
}

html {
  height: 100%;
}

body {
  height: 100%;
  margin:0;
  text-align: center;
  width: 80%;
  position: relative;
  left: 10%;
}

.wrapper {
  min-height: 100%;
  height: auto !important;
  height: 100%;
  margin: 0 auto -50px; /* нижний margin является отрицательной величиной высоты footer */
}

.footer, .push {
  height: 50px; /* .push должен быть той же высоты, что и .footer */
}

a {
  color: black;
  text-decoration:none;
}

a:link {
  color: black;
  text-decoration:none;
}

a:visited {
  color: black;
  text-decoration:none;
}

a:active {
  color: black;
  text-decoration:none;
}

a:hover {
  color:red;
  text-decoration: underline;
}

/*
  Заголовок сайта
*/
.header {
   font-family: tahoma, serif;
   font-size: 24px;   
   padding: 10px 0 20px 0;
}

/*
  Панель управления (категории, сортировка по дате, рейтингу...)
*/

.control_panel {
  font-family: tahoma, serif;
  font-size: 14px;
  text-align: left;
  padding: 10px 0px 10px 0px;
}

.current_selected {
  font-weight: bolder;
}

/*
  Добавление цитаты
*/
.add_new_quote_link  {
  font-family: tahoma, serif;
  font-size: 14px;
  padding: 0px 0px 10px 0px;  
}

/*
  Quote
*/
.quote {
  text-align: center;
  border-width: 1px;
  border-style: solid;
  border-color: gray;
  margin-top: 5px;
}

.content {
  text-align: justify;
  font-family: verdana, serif;
  font-size: 13px;
  padding: 3px;
  background: #efeff0; 
}

.quoteheader {
  text-align: left;
  background: #e4e4e6;
  font-family: tahoma, serif;
  font-size: 12px;
  font-weight: bolder;
  padding: 3px;
}

/*
  Форма для добавления новой цитаты.
*/
.fieldset {
    border:1px solid #b5c8ed;
    background-color: #eef2fa;
    padding: 3px;
}

textarea {
  text-align: justify;
  font-family: verdana, serif;
  font-size: 13px;
  width:95%;
}

label {
    width:180px;
    height:20px;
    margin-right:2px;
    padding-top:11px;
    padding-left:6px;
    float:left;
    display: block;
    font-family: tahoma, serif;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.1;
}
.add_quote_form {
    margin:0;
    padding:0;
}
#container {
    width:530px;
    margin:auto;
}
.clear {
    clear:both;
}
.div_inputfield {
    width:250px;
    float:right;
    height:24px;

    padding-top:5px;
    padding-bottom:3px;
    padding-left:5px;
}

.inputfield {
    width:60%;
    font-family: tahoma, serif;
    font-size: 13px;
}

.searchfield {
    width:150px;
    font-family: tahoma, serif;
    font-size: 13px;
}

.button_div {
 
  margin-bottom: 5px;
  margin-top: 5px;
}

.buttons {
    background: #6d96eb;
    font-size:12px; 
    padding: 6px 14px;
    border-width: 2px;
    border-style: solid;
    border-color: #fff #d8d8d0 #d8d8d0 #fff;
    font-family: tahoma, serif;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

/*
  Сообщение об ошибке.
*/
.error {
  padding: 3px;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 500px;
  color:red;
  font-family: tahoma, serif;
  font-size: 12px;
}

.error a {
  color:red;
}

.error ul {
  text-align: left;
}

.error li {
  text-align: left;
}

/*
  Информационное сообщение
*/
.info {
  padding: 3px;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 500px;
  color:#00599C;
  font-family: tahoma, serif;
  font-size: 12px;
}

.info a {
  color:#00599C;
}

/*
  Панель пейджинга.
*/
.paging_panel {
  border:1px solid #005A98;
  background-color: #005A98;
  font-family: tahoma, serif;
  font-size: 11px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: white;
}

a.paging_panel {
  color: white;
  text-decoration:none;
}

a.paging_panel:link {
  color: white;
  text-decoration:none;
}

a.paging_panel:visited {
  color: white;
  text-decoration:none;
}

a.paging_panel:active {
  color: white;
  text-decoration:none;
}

a.paging_panel:hover {
  color:white;
  text-decoration: underline;
}

.page_count {
  float:left;
}

.sorting {
  float:right;
}

.float_right {
  width:33%;
  float:left;
  text-align:right;
}

.float_center {
  width:34%;
  float:left;
  text-align: center;
}

.float_left {
  width:33%;
  float:left;
  text-align: left;
}

/*
  Счетчик
*/
.counters_area{
        width: 372px;
        height: 33px;
        margin-left: auto;
        margin-right: auto;
}

.counter_wrapper{
  width: 88px;
  height: 29px;  
  border: 0px solid black;
  font-size: 8px;
  font-family: tahoma, serif;
  font-weight: bold;
  float:left;
  margin-right: 3px;
}

.counter_wrapper_empty{
  width: 88px;
  height: 31px;  
  font-size: 8px;
  font-family: tahoma, serif;
  font-weight: bold;
  float:left;
  margin-right: 3px;
}

/*
  Отображаемых записей, всего в базе...
*/

.total_quotes {
  font-family: verdana, serif;
  font-size: 12px;
  padding-bottom: 5px;
}
