﻿body, html
 {margin:0px;
  padding:0px;
  background-image:url(img/Background.jpg);
  -moz-background-size: 100%;
  -webkit-background-size: 100%;      /* Эти три строчки - растягивание фона по экрану для старых браузеров, */
  -o-background-size: 100%;           /* почему-то без них в Vivaldi это не работает */
  background-size:100%;
  background-repeat:no-repeat;
  background-position:top center;
  background-attachment:scroll}

#container
 {margin:auto;
  margin-top:10px;
  margin-bottom:10px;
  width:1000px;
  padding:20px;
  height:auto; /*Высота блока #container подстраивается под объем содержимого */
  background-color:#ffffff /*Белый фон в объектах #container*/}

#header
 {margin:0px;
  padding:5px;
  height:auto;
  background-color:#f2f2f2;
  text-align:center}
#header h1
 {font-size:32px;
  font-family: "Times New Roman", sasn-serif;
  font-weight:bold;
  text-align:center;
  margin-top:10px;
  text-transform:uppercase}

#content
 {margin:0px;
  margin-top:10px;
  height:auto;
  background-color:#D7F4A8;
  text-align:justify;
  font-size:18px;
  padding:10px}
#content h1
 {margin-top:0px;
  padding:15px;
  padding-bottom:0px;
  font-size:28px;
  font-family:"Times new roman", sans-serif;
  -webkit-text-align:justify;
  -o-text-align:justify;
  -moz-text-align:justify;
  text-align:justify}
#content h3
 {margin:10px;}
#content h4
 {margin:0px;
  padding:10px;
  text-align:center;
  font-size:22px} 
#content h5
 {margin:10px;
  font-size:18px;}
#content p
 {padding:5px;
  margin: 0px;}
#content a:visited
 {color:#2700ee;}

#footer
 {padding:5px;
  margin:0px;
  margin-top:10px;
  font-size:12px;
  background-color:#CEF6F5;
  text-align:right}  

.menu
 {font-size:18px;
  font-weight:bold}
.menu a
 {padding-left:10px;
  padding-right:10px}  /* Задаю промежутки между ссылками в меню */
.menu a:link
 {text-decoration:underline;
  color:#000000}
.menu a:active
 {text-decoration:none;
  color:blue !important}
p#menu a:hover            /* id имеет более высоки приоритет, использую его, чтобы цвет посещенной ссылки не перебивал цвет ссылки при наведении */
 {text-decoration:none;
  color:#ff0000}
.menu a:visited
 {text-decoration:underline;
  color:#000000}
.menu span.active, .menu a.active
 {font-size:18px;
  font-weight:bold;
  padding:10px;
  background-color:#D7F4A8;
  border-width:1px;
  border-color:#000000;
  border-style:solid} /*f6dede D7F4A8*/

#submenu
 {margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 0px;}
#submenu a:visited
 {color:#2700ee;}
#submenu span.active
 {text-decoration: none;
  font-weight: bold;
  color: #2700ee;}

.formal
 {border-width: 2px;
  border-color: #848484;
  border-style: solid}
td.cab_stat
 {vertical-align: top;
  width: 207px;
  font-size: 20px;
  text-decoration: underline;
  font-weight: bold;}
td.cab_din
 {text-align: justify;
  width: 185px;
  font-size: 20px;
  font-style: italic;
  padding-left: 15px;
  padding-right: 0px;}
td.part_stat
 {vertical-align: top;
  width: 140px;
  font-size: 16px;
  text-decoration: underline;
  font-weight: bold;}
td.part_din
 {text-align: justify;
  width: 175px;
  font-size: 16px;
  font-style: italic;
  padding-left: 10px;
  padding-right: 0px;}
.spacing
 {border-top: 2px solid #848484;
  border-bottom: 2px solid #848484;}
.cabinet a
 {border-width: 2px;
  border-color: #848484;
  border-style: solid;
  font-size: 20px;
  text-decoration: none;
  font-style: oblique;
  font-variant: small-caps;
  color: #000000 !important;
  font-weight: bold;
  padding: 7px;}
.cabinet a:hover
 {/*color: blue !important;*/
  background-color: #BDBDBD;}
.cabinet a:active
 {background-color: #848484;
  color: #DF0101 !important;}
#thesis
 {background-color: #ffffff;}

.picture
 {height:350px}

td
 {padding:5px;
  text-align:left}

#Timer
 {font-size:20px;
  color:#6E9CFD;
  margin-bottom:30px}
.days, .hr, .min, .sec
 {font-size: 30px;
  color: black}

table.work
 {text-decoration:underline;
  font-size:16px;
  font-family:"Calibri"}
table.work td
 {height:300px;
  width:150px;
  text-align:center;
  vertical-align:bottom}
img.worker
 {height:250px;
  width:250px}

table.materials td
 {height:25ps;
  width:200px;
  text-align:center}

.history a:visited
 {color:#123CAE}