﻿/* Global =================================================================== */

html, body{
    width: 100%;
    height: 100%;
}

body {
    background:
    url(../images/bg_bot.png) bottom center fixed repeat-x,
    url(../images/bg.jpg) top left;
    margin:0;
    padding:0;
    overflow-x: hidden;
}

/* Wrapper ================================================================== */


#layout{
    width: 1000px;
    min-height: 100vh;
    margin: 0 auto;    
    position: relative;
    background:
    url(../images/bl.jpg) left repeat-y,
    url(../images/br.jpg) right repeat-y,
    url(../images/fon.jpg);
}
/*
//Синие кирпичи на ТЗЛ
#layout{
    width: 1000px;
    margin: 0 auto;    
    position: relative;
    background:
    url(../images/bl.jpg) left repeat-y,
    url(../images/br.jpg) right repeat-y,
    url(../images/fon.jpg);
}
*/


/* Header =================================================================== */

#layout header{
	display: block;
	width: 100%;
    height: 380px;
    margin-bottom: 15px;
	position: relative;
}
/*
---------- Новогодние флаги
#layout .header_flag_left {
	left: -50px;
	background: url(../images/f2.png) center no-repeat;
	transform: scale(-1, 1);
}

#layout .header_flag_right {
	right: -50px;
	background: url(../images/f2.png) no-repeat;
}
*/


#layout .header_flag_left {
	left: -50px;
	background: url(../images/flag.png) center no-repeat;
                transform: scale(-1, 1);
}

#layout .header_flag_right {
	right: -50px;
	background: url(../images/flag.png) center no-repeat;
}


/*
#layout .header_flag_left {
	left: -50px;
	background: url(../images/flag.png) center no-repeat;
	transform: scale(-1, 1);
}

#layout .header_flag_right {
	right: -50px;
	background: url(../images/flag.png) no-repeat;
}
*/

#layout .header_flag_left, .header_flag_right {
	position: absolute;
	z-index: 20;
	width: 230px;
    height: 483px;
}
/* Меню "Школа" ======================================================== */

header .menu {
	position: absolute;
	z-index: 15;
	bottom: 0;
    margin:auto;
	left: 0;
	right: 0;
	width: 77%;
	height: 80px;
	background: url(../images/menu_fon.jpg) center no-repeat;
    box-shadow: 0 2px 40px #000;
}

header .menu ul {
	display: table;
	margin: 0 auto;
}

header .menu ul li {
	display: table-cell;
}
header .menu ul li a {
	margin-left: 10px;
	line-height: 75px;
	font-family: potter;
	font-size: 31px;
	color: #ffd4b5;
	text-decoration: none;
}
header .menu ul li a span {
	text-shadow: black 1px 3px 5px;
}
header .menu ul li ul li a span {
	text-shadow: none;
}
header .menu ul li a:after {
	content: url(../images/r.png);
}

header .menu ul li:last-child  a:after {
	content: none;
}

header .menu > li.active > a { color:#F5CF53; }
header .menu > li.active > a:hover { color:#F5CF53; }
header .menu > li.active > ul a:hover { color:#EEE; }

header .menu ul li a,
header .menu li.active ul li a {
    text-shadow: none;
    text-decoration: none;
    padding-right: 10px;
}

header .menu li ul li.active a{ font-weight: bold; }
header .menu li ul li.active a:hover { color:#F5CF53; }

header .menu li ul .closed:before {
	content: '';
    display: inline-block;
    float: left;
    margin-top: 4px;
    cursor: help;
    width:16px;
    height:16px;
    background:url("../images/icons/eye.png") no-repeat;
}

header .menu li:hover {
    position: relative;
    z-index: 599;
    cursor: default;
}

header .menu li ul {
    visibility: hidden;
    position: absolute;
    top: 99%;
    left: -15px;
    z-index: 598;
	width: auto;
	white-space: nowrap;
	display: inline-block;
	margin-top: -15px;
	padding: 8px 0 15px 0;
    background:
    url("../images/menu_bg_bot.jpg") bottom left repeat-x,
    url("../images/menu_bg_top.jpg") top left repeat-x,
    url("../images/menu_bg.jpg");
    box-shadow: 1px 1px 5px black;
}

header .menu li ul li {
    float: none;
    display: list-item;
    color: #FFF;
    list-style: none;
    background: none;
    -webkit-transition: background 0.5s ease;
    -moz-transition: background 0.5s ease;
    -o-transition: background 0.5s ease;
    transition: background 0.5s ease;
}
header .menu li ul li a::after {
	content: none;
}

header .menu li ul li:last-child {
    border-bottom: none;
}

header .menu li ul li a {
    display: block;
    height: 25px;
    line-height: 25px !important;
	color: #22150b;
	font: 13px "Helvetica Neue";
}

header .menu li ul li:hover {
	background: #855f40;
	background: rgba(133, 95, 64, 0.7);
}
header .menu li ul li:hover a {
	color: black !important;
}

header .menu li ul ul {
    top: 0px;
    left: 90%;
}

header .menu li:hover > ul {
    visibility: visible;
}

header .menu li ul:after {
	content: ''; 
}

header .menu li ul li:last-child,
header .menu li ul li:last-child a {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

header .menu li ul li:first-child,
header .menu li ul li:first-child a {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

header .menu > .folder a {
    padding-right: 8px;
}


/* ====================== Меню авторизации ====================== */

header .avtor {

	position: absolute;
	z-index: 15;
	bottom: 0;
    margin:auto;
	left: 0;
	right: 0;
	width: 77%;
	height: 80px;
	background: url(../images/menu_fon.jpg) center no-repeat;
    box-shadow: 0 2px 40px #000;
}

header .avtor ul {
	display: table;
	margin: 0 auto;
}

header .avtor ul li {
	display: table-cell;
}
header .avtor ul li a {
	margin-left: 10px;
	line-height: 75px;
	font-family: potter;
	font-size: 31px;
	color: #ffd4b5;
	text-decoration: none;
	text-shadow: 1px 2px 5px #000;
}

header .avtor ul li a:after {
	content: url(../images/r.png);
}

header .avtor ul li:last-child  a:after {
	content: none;
}

header .avtor > li.active > a { color:#F5CF53; }
header .avtor > li.active > a:hover { color:#F5CF53; }
header .avtor > li.active > ul a:hover { color:#EEE; }


@font-face {
    font-family: ruka; 
    src: url(../fonts/ruka.ttf); 
   }
@font-face {
    font-family: mel; 
    src: url(../fonts/mel.ttf); 
   }
@font-face {
    font-family: potter;
    src: url(../fonts/potter.ttf);
   }
@font-face {
    font-family: konkord;
    src: url(../fonts/konkord_retro.ttf);
   }
@font-face {
    font-family: scriptorama.ttf;
    src: url(../fonts/Scriptorama.ttf);
   }


/* Основная шапка ======================================================== */

header .widget_head, .widget_head img {
	display: block;
	position: absolute;
	margin: auto;
	left: 0;
	right: 0;
	z-index: 5;
}


/* Header Navigation ======================================================== */


/* Main Navigation =========================================================== */

nav {
    height:50px;
    background: #34495e;
    padding: 0;
    margin-bottom: 10px;
    font-size:12px;
}

nav .menu,
nav .menu li,
nav .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .menu {
    position: relative; z-index: 5; float: left;
    height: 50px;
    line-height: 50px;
}

nav .menu .item{
    background-image:none !important;
}

nav .menu > li {
    float: left;
}

nav .menu > li:first-child {
    background:none;
}

nav .menu > li > a {
    display: block;
    padding: 0 15px;
    color:#FFF;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

nav .menu > li > a:hover {
    background: #27ae60 !important;
}

nav .menu > li.active > a { background: #2980b9 !important; }
nav .menu > li.active > a:hover {  }
nav .menu > li.active > ul a:hover { color:#000; }

nav .menu ul li a,
nav .menu li.active ul li a {
    color: #000;
    text-shadow: none;
    text-decoration: none;
    padding: 0 10px;
}

nav .menu li ul li.active > a{ color:#2980B9; }
nav .menu li ul li.active > a:hover { color:#2980B9; }

nav .menu ul li:hover > a { background-color: #DAE9FA; }

nav .menu li:hover {
    position: relative;
    z-index: 599;
    cursor: default;
}

nav .menu ul {
    visibility: hidden;
    position: absolute;
    top: 98%;
    left: 0;
    z-index: 598;
    width: 100%;
    box-shadow: 0 1px 1px #000;
}

nav .menu ul li {
    float: none;
    border-bottom: solid 1px #DAE9FA;
    background-color: #f9f9f9;
    color: #000;
}

nav .menu ul li:last-child {
    border-bottom: none;
}

nav .menu ul li a {
    display: block;
    height:30px;
    line-height:30px;
    overflow: hidden;
}

nav .menu ul ul {
    top: 0px;
    left: 99%;
}

nav .menu li:hover > ul {
    visibility: visible;
}

nav .menu ul { width: 200px; margin-top: 1px; }

nav .menu ul li:last-child,
nav .menu ul li:last-child a {
}

nav .menu ul li:first-child,
nav .menu ul li:first-child a {
}

nav .menu > .folder > a {
    padding-right: 8px;
}

nav .menu > .folder > a > .wrap {
    padding-right: 20px;
    background: url("../images/nav-arrow-down-white.png") no-repeat right center !important;
}

nav .menu ul *.folder > a {
    padding-right: 15px;
    background-image: url("../images/nav-arrow-right.png") !important;
    background-position: 100% 50%;
    background-repeat: no-repeat;
}

nav select { display: none; }

/* Body ===================================================================== */

#body{
	width: 98%;
	overflow: hidden;
	margin: 0 auto;
}

/* Breadcrumbs ============================================================== */

#breadcrumbs { 
	padding-left: 130px;
}

#breadcrumbs ul, #breadcrumbs li { margin:0; padding:0; list-style: none; }

#breadcrumbs ul{
    overflow: hidden;
}

#breadcrumbs ul li {
    height:32px; 
    line-height:32px; 
    float:right;
    font-size:11px;
    color: #f1cea4;
}

#breadcrumbs ul li a {
    color:#f1cea4;
}

#breadcrumbs ul li a:hover {
    color:#ffc074;
    text-decoration: none;
}

#breadcrumbs ul li.sep {
    margin:0 10px;
    width: 4px;
    background: url("../images/nav-arrow-left-light.png") no-repeat left center;
}

#breadcrumbs ul li.home {
    width: 16px;
}

#breadcrumbs ul li.home a {
    display:block;
    width:16px;
    height:32px;
    background: url("../images/nav-home.png") no-repeat left center;
}

/* Section ================================================================== */

#body section{
    float:left;
    width:710px;
    padding: 0 5px 10px 5px;
}

#body section article {
    padding: 0 5px 20px 5px;
    margin-bottom: 10px;
}

#body section h1{
	font-size: 55px;
	letter-spacing: 5px;
	text-align: center;
	line-height: 55px;
    margin-bottom: 17px;
    color:#ffc074;
    font-family: konkord;
}

#body section h1:before {
	content: url(../images/h1_l.png);
	padding-right: 10px;
}

#body section h1:after {
	content: url(../images/h1_r.png);
	padding-left: 6px;
}

#body section .parent_title{
	text-align: center;
	width: 100%;
	
}
#body section .parent_title a {
	width: 100%;
	letter-spacing: 2px;
	font-size: 12px;
	text-decoration: none !important;
	border: 1px dashed #ff993b;
	border-radius: 5px;
	display: inline-block;
	padding: 5px;
}

/* Sidebar ================================================================== */

#body aside{
    float:right;
    width:240px;
    margin-bottom: 10px;
}

#body aside .widget:first-child {
    margin-bottom: 10px;
    padding: 99px 7px 6px 7px;
    background: url(../images/user_info_t.png) /* новогодняя шняга url(../images/b.png)*/ top left no-repeat,
    url(../images/user_info_b.png) bottom left no-repeat;
    overflow: hidden;
}

/* Sidebar Navigation ======================================================= */

#body aside .menu_user{
	display: block;
	margin: 5px 0 0 0;
} 

#body aside .menu_user li { 
	margin:0; 
	padding:0; 
	display: block;
}

#body aside .menu_user ul{
}

#body aside .menu_user ,
#body aside .menu_user li ul {
    padding:0;
}

#body aside .menu_user li ul {
    visibility: hidden;
    position:absolute;
    left: auto;
    right: 91%;
    width:220px;
    box-shadow: 0 1px 2px #666;
    z-index: 999;
}

#body aside .menu_user li {
}

#body aside .menu_user li:hover,
#body aside .menu_user li.active {
    position: relative;
    z-index: 2;
    cursor: default;
    text-decoration: underline;
}

/*#body aside .menu_user li:hover > a,
#body aside .menu_user li.active > a { color:#FFF; }*/

#body aside .menu_user li:first-child {
}

#body aside .menu_user li:last-child {
    border-bottom: none;
}

#body aside .menu_user li:hover > ul {
    visibility: hidden;
}

#body aside .menu_user li.active:hover {
}

aside .menu_user .item{
    background: url("../images/icons/item.png") no-repeat 10px center;
}

#body aside .menu_user li.active .item {
}

#body aside .menu_user span{
	line-height: 20px;
	font-size: 13px;
    letter-spacing: 1px;
}

#body aside .menu_user a,
#body aside .menu_user span.item {
    overflow: hidden;
    display:block;
    color:#f1cea4;
    text-decoration: none;
    padding-left:36px;
}

#body aside .menu_user .counter{
    padding: 0px 7px;
    background: #d36200;
    border-radius: 100px;
    font-size: 11px;
    color: white;
    height: 20px;
    width: 20px;
}

#body aside .menu_user li:hover .counter{
    text-decoration: underline;
}


/* Sidebar Navigation ======================================================= */

#body aside .menu, #body aside .menu li { margin:0; padding:0; list-style: none; }

#body aside .menu ul{
    border-bottom: none;
}

#body aside .menu ,
#body aside .menu li ul {
    padding:0;
}

#body aside .menu{
}

#body aside .menu li ul {
    visibility: hidden;
    position:absolute;
    top:-1px;
    left: auto;
    right: 91%;
    width:220px;
    box-shadow: 0 1px 2px #666;
    z-index: 999;
}

#body aside .menu li:hover,
#body aside .menu li.active {
    position: relative;
    z-index: 2;
    cursor: default;
    text-decoration: underline;
}

/*#body aside .menu li:hover > a,
#body aside .menu li.active > a { color:#FFF; }*/

#body aside .menu li:first-child {
}

#body aside .menu li:last-child {
    border-bottom: none;
}

#body aside .menu li:hover > ul {
    visibility: visible;
}

#body aside .menu li.active:hover {
}

aside .menu .item{
    background: url("../images/r_s.png") no-repeat 10px center;
}

#body aside .menu li.hover a {
}

#body aside .menu a,
#body aside .menu span.item {
    overflow: hidden;
    display:block;
    color:#f1cea4;
    text-decoration: none;
    padding:4px 10px;
    padding-left:36px;
}

#body aside .menu .counter{
    float:right;
    padding: 0px 7px;
    background: #376499;
    border-radius: 50px;
    font-size: 11px;
    color: white;
}

#body aside .menu li:hover .counter{
    background: ;
}

/* Footer =================================================================== */

#layout footer{
    height: 60px;
    padding: 0 15px;
    clear:both;
    font-size:12px;
}

#layout footer ul, #layout footer li {
    margin: 0; padding: 0; list-style: none;
}

#layout footer ul {
    display: block;
    text-align: center;
    margin-top: 30px;
}

#layout footer ul li {
	display: inline;
    margin-right: 15px;
    width: 40%;
    color: #ffc074;
    letter-spacing: 1px;
    background: center top url("../images/f_r.png") no-repeat;
    padding-top: 20px;
}

#layout footer ul li:last-child { margin:0; }


/* Footer SQL Debug ======================================================== */

#sql_debug{
    display:none;
}

#sql_queries .query{
    padding:10px;
    margin:10px;
    background:#FFF;
    border:solid 1px #DDD;
}

#sql_queries .query .src{
    font-size:12px;
    color:#999;
    margin-bottom:4px;
}
#sql_queries .query_time {
    color: #999;
    font-size: 12px;
    margin: 4px 0 0;
}
#sql_queries .red_query {
    color: #c0392b;
}
#sql_queries .green_query {
    color: #27ae60;
}

/* Footer Navigation ======================================================== */

#layout footer #nav {
    float:right;
    margin-right: 0;
}

/* Site offline notice ====================================================== */

#site_off_notice{
    position: fixed;
    left:15px; top:15px;
    padding:5px 10px;
    padding-left:28px;
    background: url("../images/icons/error.png") no-repeat 8px center #FFF;
    border:solid 1px red;
    color:red;
}
/* Ошибки ============================================================ */
.error {
	font-size: 12px;
	letter-spacing: 1px;
	line-height: 60px;
	height: 60px;
}
.error p {
	float: left;
	text-align: center;
	line-height: 60px;
	margin: 0;
}
.error:before {
	content: url("../images/errors/error.png");
	float: left;
	margin-right: 10px;
}
