*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td { margin:0; padding:0 }
body {background: #cfd8dc;}
/*Меню*/
#menu {
    width: 90%;
    /*height: 90%;*/
    margin: auto;
    padding-top: 5%;
    /*margin-left: 10%;*/
    /*margin-bottom: 20%;*/
    border-color: rgb(182, 160, 10);
    border-width: 5px;
    border-radius: 18px;
    border-style: solid;
    text-align: center;
}
.container {
    position: relative;
    font-family: 'Times New Roman'; 
    color: brown;
    margin: 2em auto;
    width: 80%;
    height: 42em;     
    background-image: url(../img/fon.jpg);
    /*background: #FFD700;*/
    border-style: solid;
    border-color: rgb(182, 160, 10);
    border-width: 8px;
    border-radius: 1em;
    z-index: 1;
    text-align: center; 
}
#header {
    background: #F5DEB3;
    width: 100%;
    color: brown;
    text-align: center;
    float: right;
    border-radius: .5em .5em 0 0; 
    border-bottom: 8px solid #FFD700;
    padding: .4em 0;
}
#logo {width:  15%;float: left;}
.p1,#p2{font-weight: bold; line-height: 1.1em;}
.p1 {font-size: 170%;}
#p2 {font-size: 150%; };
#total-title {width: 85%;height: 100%;float: right;}
#total-name {font-family: 'Times New Roman'; font-size: 1.4em;font-weight: bold;
             /*white-space: nowrap;*/
             overflow: hidden;}
#total-num {font-size: 1.4em; padding-top: .6em;}

#title {
    margin: 0 auto;
    width: 90%;
    /*height: 80px;*/
    color: brown;
    text-align: center;
    /*float: top;*/
    /*padding-left: 10px;*/
    /*padding-right: 10px;*/
    font-style: italic;
    font-weight: bold;
    font-size: 1.6em;
    /*white-space: nowrap;*/
    overflow: hidden;}

/*Центральный контейнер*/
#content {
    width: 100%;
    height: auto;
    /*max-height: 40em;*/
    text-align: center;
}
.clear {clear: both;}

#footer {
    position: absolute;
    bottom: 0;
    /*float: bottom;*/
    width: 100%;
    /*margin-bottom: 0;*/
    text-align: center;
}
#contact {
    width: 60%;
    height: 50%;
    margin: auto;
    border-color: rgb(182, 160, 10);
    border-width: 4px;
    border-radius: 22px;
    border-top: 5px solid gold;
}
#navigation_l, #navigation_r, #pref{
    background-image: url(../img/char_btn_def.png);
    border-style: solid;
    border-color: #FFD700;
    border-width: 2px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;     
    cursor: pointer;
    color: brown;
    text-decoration: none;
    padding: .3em;  
    position: absolute;
    bottom: .6em;
} 
#navigation_l {left: 1em;}
#navigation_r {right: 1em;}
#pref{right: 1em;}
#navigation_l:hover{color: graytext;}
#navigation_r:hover{color: graytext;}
#pref:hover{color: graytext;}
#max_wind {
    float: right; 
    margin-top: 2px; margin-right: 2px;
    width: 30px; 
    height: 30px; 
    cursor: pointer;
    border-radius: 5px;
}
.title {
    font-family: "Times New Roman", serif; font-style: italic;
}
#contact p {
    padding-bottom: .6em;
    margin: 0;
    /*line-height: 1.2em;*/

}
.videoPl {
    width: 100%;
}
p.line, p.audio, p.video, p.full_video, p.photo, p.full-audio, p.full-pdf {
    line-height: .8;
    font-size: 22px;
    margin-bottom: 5px;
    cursor: pointer;
    white-space: nowrap; /* Запрещаем перенос строк */
    overflow: hidden; /* Обрезаем все, что не помещается в область */
    text-overflow: ellipsis; /* Добавляем многоточие */
}
.line:hover{color: orangered;}
.line-i{
    font-size: 20px;
    font-style: italic;
}
#line{
    line-height: .8;
    font-size: 22px;
    margin-bottom: 5px;
    cursor: pointer;
    white-space: nowrap; /* Запрещаем перенос строк */
    overflow: hidden; /* Обрезаем все, что не помещается в область */
    text-overflow: ellipsis; /* Добавляем многоточие */
}
#line:hover{
    color: orangered;
}
a.line {line-height: 1.3em;}
a {
    color: brown;
    text-decoration: none; 
    outline: none; /* убирать контур в Mozilla */
} 
a:hover {color: orangered;}
p.audio:hover {color: tomato;}
p.video:hover {color: tomato;}
p.full-audio:hover{color: orangered;}

p.full_video:hover{color: orangered;}
.butt {width:  18px; margin-top: 0px; cursor: pointer;}

/******* Модальное окно ********
********************************/
/* Подложка окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 300;
}
.modal-container {
    /*margin-top: 20px; */
    display: table;
    width: 48em;
    z-index: 400;
    /*height: 100%;*/
}

/* ячейка блочной таблицы */
.modal-cell {
    display: table-cell;
    padding: 0 1em;
    vertical-align: middle;/* Центрирование содержимого (ячейка таблицы) */
    text-align: center;
}

/* модальный блок */
.modal-modal {
    width: 100%;
    display: inline-block;
    padding: 10px;
    max-width: 60em;
    background: #607d8b;
    -webkit-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.22), 0px 19px 60px rgba(0, 0, 0, 0.3);
    color: #cfd8dc;
    text-align: left;
}
.modal-close {
    z-index: 9999;
    float: right;
    width: 30px;
    height: 30px;
    color: #cfd8dc;
    text-align: center;
    text-decoration: none;
    line-height: 26px;
    cursor: pointer;
}
.modal-close:after {
    display: block;
    border: 2px solid #cfd8dc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: 'X';
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform: scale(0.85);
    -moz-transform: scale(0.85);
    -ms-transform: scale(0.85);
    transform: scale(0.85);
}
/* кнопка закрытия при наведении */
.modal-close:hover:after {
    border-color: #fff;
    color: #fff;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
modal-title {
    /* //float: right;
     //width: 10em;
     background: #cfd8dc;
     border: 2px #fff solid;
     text-align: center;
     padding: 20px;
     margin-top: 30px;*/
}
.modal-content {
    margin-top: 1em;
    /*    color: #fff;*/
    /*    height: 40em;
        border: 2px #fff solid;*/
}
.pl {width: 2em;}
iframe {width: 100%; height: 50em;}
