/*Описание стилей элементов веб страниц*/

/************************************************************************
Общие элементы стиля
************************************************************************/

/* Стиль списка разделов*/

#list1 { background-color: #eee;}
#list1 ul { list-style:none; text-align:center; border-top:1px solid #eee; border-bottom:1px solid #eee; padding:10px 0; }
#list1 ul li { display:inline; text-transform:uppercase; padding:0 23px; letter-spacing:10px; }
#list1 ul li a { text-decoration:none; color:#000; }
#list1 ul li a:hover { text-decoration:underline; }

/* создание стиля заголовков*/

h1.header{
    text-align: center;
    border: solid 2px;
    background-color: #e5e5e5;
}


/************************************************************************
описание стилей для страницы со списком форумов
************************************************************************/

table.forums{
    margin: auto;
}

#forums{}
#forums img{
    height: 85px; border: solid 3px black
}

/************************************************************************
описание стиля блока ссылок на сайты.
************************************************************************/

#company_img {text-align: center}
#company_img img {height: 100px; border: solid 3px black}


/***********************************************************************
Описание стилей главной страницы
************************************************************************/

/* Описание стиля заголовков разделов*/


.rectangle-list ol {
    counter-reset: li; /* Устанавливает идентификатор */
    list-style: none; /* Удаляем стандартную нумерацию */
    font: 15px 'trebuchet MS', 'lucida sans';
    padding: 0;
    margin-bottom: 4em;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    margin: 12px;
}

.rectangle-list ol ol {
    margin: 0 0 0 2em; /* Отступ для вложенных списков */
}

.rectangle-list ol li ol li a{

    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    *padding: .4em;
    margin: .5em 0 .5em 2.5em;
    background: #ddd;
    color: #444;
    text-decoration: none;
    transition: all .3s ease-out;
}

.rectangle-list ol li a{

    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    *padding: .4em;
    margin: .5em 0 .5em 2.5em;
    background-color: lightblue;
    color: #444;
    text-decoration: none;
    transition: all .3s ease-out;
}

.rectangle-list a:hover{
    background: #eee;
}

.rectangle-list a:before{
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -2.5em;
    top: 50%;
    margin-top: -1em;
    background: #6ed7e6;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align: center;
    font-weight: bold;
}

.rectangle-list a:after{
    position: absolute;
    content: '';
    border: .5em solid transparent;
    left: -1em;
    top: 50%;
    margin-top: -.5em;
    transition: all .3s ease-out;
}

.rectangle-list a:hover:after{
    left: -.5em;
    border-left-color: #fa8072;
}

.rectangle-list ol li ol li p{
    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    *padding: .4em;
    margin: .5em 0 .5em 2.5em;
    background: #ddd;
    color: #444;
    text-decoration: none;
    transition: all .3s ease-out;
}

.rectangle-list ol li p{
    position: relative;
    display: block;
    padding: .4em .4em .4em .8em;
    *padding: .4em;
    margin: .5em 0 .5em 2.5em;
    background-color: #b4e6d3;
    color: #444;
    text-decoration: none;
    transition: all .3s ease-out;
}

.rectangle-list p:hover{
    background: #eee;
}

.rectangle-list p:before{
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -2.5em;
    top: 50%;
    margin-top: -1em;
    background: #6ed7e6;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align: center;
    font-weight: bold;
}

.rectangle-list p:after{
    position: absolute;
    content: '';
    border: .5em solid transparent;
    left: -1em;
    top: 50%;
    margin-top: -.5em;
    transition: all .3s ease-out;
}

.rectangle-list p:hover:after{
    left: -.5em;
    border-left-color: #fa8072;
}


/************************************************************************
Описание стиля для заголовков статей
************************************************************************/

.headline3{
    position: relative;
    margin-left: -22px; /* 15px padding + 7px border ribbon shadow*/
    margin-right: -22px;
    padding: 15px;
    background: #e5e5e5;
    background: -moz-linear-gradient(#f5f5f5, #e5e5e5);
    background: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e5e5e5));
    background: -webkit-linear-gradient(#f5f5f5, #e5e5e5);
    background: -o-linear-gradient(#f5f5f5, #e5e5e5);
    background: -ms-linear-gradient(#f5f5f5, #e5e5e5);
    background: linear-gradient(#f5f5f5, #e5e5e5);
    -webkit-box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
    -moz-box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
    box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
    text-shadow: 0 1px 0 #fff;
}


.headline3:before, .headline3:after{
    position: absolute;
    left: 0;
    bottom: -6px;
    content:'';
    border-top: 6px solid #555;
    border-left: 6px solid transparent;
}

.headline3:before{
    border-top: 6px solid #555;
    border-right: 6px solid transparent;
    border-left: none;
    left: auto;
    right: 0;
    bottom: -6px;
}

/************************************************************************
Описание стиля для Оглавления электронного учебника
************************************************************************/

.block2 ol{
    font-size: 18px;
}

.block2 ol li{
    cursor: pointer;
}

.block2 ol li ol { list-style-image: url("Pictures_For_Styles/lines.png"); padding:5px 0 5px 18px; font-size:15px; }

.block2 ol li ol li { height:15px; margin-left:10px; }

.block2 a{
    text-decoration: none;
}