/**
 * Стиль для сайта http://www.genfunc.ru
 * [ Zelint ]
 * [ v 1.0 :: 10.01.2010 ]
 */

/* ---------------------- */
/*  Глобальные настройки  */
/* ---------------------- */
* {
	margin: 0px;
	padding: 0px;
	text-indent: 0px;
}
body { 
	background-color: #FFFFFF; 
	font-size: 16px;
	font-family: 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif;
	color: #000000; 
	line-height: 1.5em;
}

/* ----------- */
/*  Заголовки  */
/* ----------- */
h1, h2, h3, h4, h5, h6 {
	margin: 2ex 0 1ex auto;
	font-family: "Garamond", 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif;
	font-weight: bold;
}
h1 {
	/*text-transform: uppercase;*/
	margin-top: 4ex;	
	margin-bottom: 4ex;
}
h1:first-letter {
	/*text-transform: uppercase;*/
	color: red;
}
h2 {
	text-align: center;	
	text-transform: uppercase;
	letter-spacing: 2px;
} 

#sidebar h2 {
	margin-top: 2ex;	
	margin-bottom: 1ex;	
	text-align: left;
	text-transform: none;
	letter-spacing: 0px;
}

h3 {
	text-align: left;	
	font-size: 150%;
} 

#sidebar h1:first-letter {
	color: black;
}

/* ------- */
/*  Абзац  */
/* ------- */
p {
	text-indent: 1.5em;
	text-align: justify;
}
p:first-letter {
 color: red;
 /* font-weight: bold; */
}

p.prod {
	text-indent: 0em;
	text-align: justify;
}
p.prod:first-letter {
 color: black;
 /* font-weight: bold; */
}

p.otst {
	border-left: 1px dashed black;
	text-indent: 0em;
	margin-left: 2em;
	padding-left: 6px;
	margin-top: 8px;
	margin-bottom: 8px;
	font-size: 90%;
	text-align: justify;
}
p.otst:first-letter {
	color: black;	
}

#sidebar p {
	text-indent: 0em;
	text-align: left;
	margin-bottom: 1.2ex;
}

#sidebar p:first-letter {
 color: black;
}


/* -------- */
/*  Ссылки  */
/* -------- */
a {
	text-decoration: none;
	color: #FF0000;
	padding: 0 2px;
	/* border-bottom: 1px dotted red; */
}
a:hover {
	text-decoration: none;
	color: #FFFFFF;
	background: #000000;
	/* border-bottom: 0px; */
}
a.noblack:hover {
	text-decoration: none;
	color: #FFFFFF;
	background: #FFFFFF;
	/* border-bottom: 0px; */
}

/* ----------------- */
/*  Ссылка "Наверх"  */
/* ----------------- */
.naverh {
	text-align: center;
	margin: 1ex auto 2ex auto;
}


/* ---------------------------- */
/*  Главная секция (весь сайт)  */
/* ---------------------------- */
#wrap {
	width: 1024px;
	margin: 0px auto;
}

/* ------------- */
/*  Шапка сайта  */
/* ------------- */
#head {
	text-align: center;
	margin: 8px auto 20px auto;
}
#head h1 {	
	margin: 12px 0px 0px 0px;	
	font-family: "Garamond", 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif;
	letter-spacing: 8px;	
}
#head h1:first-letter {
	/*text-transform: uppercase;*/
	color: black;
}
#head h2 {	
	margin: 0px 0px 0px 0px;	
	font-family: "Garamond", 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif;
	letter-spacing: 0px;	
	font-size: 12px;
}
/* ----------------- */
/*  Заголовок сайта  */
/* ----------------- */
#title {
	float: left;
	width: 50%;
	line-height: 32px;	
	margin-top: 10px;
}
#head h1:first-letter:hover {
	/*text-transform: uppercase;*/
	color: white;
}
#title a {	
	color: black;
}
#title a:hover {	
	color: black;
	background-color: white;
}
/* ------------------------------------------------ */
/*  Украшение - Треугольник Паскаля (чётные строки) */
/* ------------------------------------------------ */
#binom {
	float: left;
	/* background-color: #FFFFFF; */
	font-size: 10px;
	font-family: 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif;
	color: #000000; 
	text-align: center;
	width: 50%;
	line-height: 11px;
	font-weight: bold;
	margin-right: 0px;
	margin-top: 10px;
	margin-bottom: 0px;
	letter-spacing: 1px;
	/* margin-bottom: -16px; */
}
#binom span.red {
	color: #FF0000;	
}

/* -------- */
/*  Списки  */
/* -------- */
ul, ol {
	margin: 1ex auto 1ex 0;
}
li {
  margin-left: 4.5em;
}

#sidebar ul, ol  {
	margin: 1ex auto 1ex 0;
}
#sidebar li {
  margin-left: 1.2em;
}

/* ---------------------------------------------- */
/*  Главная часть страницы - основное содержание  */
/* ---------------------------------------------- */
#page {
	float: left;
	width: 70%;
	padding-right: 0ex;
}

/* ---------------- */
/*  Боковая панель  */
/* ---------------- */
#sidebar {
	float: right;
	width: 25%;
}

/* -------- */
/*  Подвал  */
/* -------- */
#footer {
 	margin: 16px auto 16px auto;
 	font-family: 'Lucida Sans Unicode', 'Trebuchet MS', 'Segoe UI', sans-serif;
	font-size: 80%;
	color: #808080;
	line-height: 20px;
}
#footer p {
	text-align: center;
}
#footer p:first-letter {
 color: #808080;
 font-weight: normal;
}

/* ------------------------------------- */
/*  Часть сайта между шапкой и подвалом  */
/* ------------------------------------- */
#content {
	width: 1000px;
	margin: 0px auto 0px auto;
}

/* --------------------- */
/*  Линии - разделители  */
/* --------------------- */
hr.BigLine {
	width: 100%;
	height: 4px;
	background-color: #000000;
	margin: 6px auto 4px auto;
	border: 0;
}
hr.SmallLine {
	width: 100%;
	height: 2px;
	background-color: #000000;
	margin: 0px auto 0px auto;
	border: 0;
}
hr.LongDiv {
	width: 100%;
	height: 2px;
	background-color: #000000;
	margin: 20px auto 20px auto;
	border: 0;
}

/* ------ */
/*  Меню  */
/* ------ */
#menu {
	text-align: center;
	margin: -20px auto -16px auto;
	display: table;
	font-weight: bold;
	color: #FF0000;	
}
#menu_in {
	display: table-cell;	
}
#menu ul {
	padding: 0;
	margin: 0;
	float: left;
}
#menu li {	
	padding: 0;
	margin: 0;
	float: left;
	list-style:none;
}
#menu li a {
	color: #FF0000;
	display: block;
	font-size: 100%;
	margin-left: 40px;
	margin-right: 40px;
	text-decoration:none;
	padding: 4px 16px;
	width: 100px;	
}
#menu li a:hover {
	color:#FFFFFF;
	background: #000000;
	text-decoration:none;	
}

/* ------------------------ */
/*  Математические формулы  */
/* ------------------------ */
div.math {
	margin: 8px auto;
}
span.math {
	font-family: 'Trebuchet MS', 'Segoe UI', 'Lucida Sans Unicode', sans-serif; 
	font-style: italic;
	letter-spacing: 2px;
	/* font-weight: bold; */
}

/* ----------------------------- */
/*  Завершение плавающих секций  */
/* ----------------------------- */
.clear { clear: both; }

