/* сброс стилей браузера */
* {
  box-sizing: border-box; 
}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.2;
}
ol { 
	padding-left: 1.4em;
	list-style: decimal;
}
ul {
	padding-left: 1.4em;
	list-style: square;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
} 
/* Конец кода сброса стилей браузера */
/* Прибитый футер */

html, body {
  	height: 100%;
  	width: 100%;
}
.pageWrapper {
  	position: relative;
  	display: table;
  	width: 100%;
}
.contentWrapper {
 	max-width: 100%;
  	height: 100%;
  	width: 100%;
  	background-color: white;
}
.clear:after {
  	content: "";
  	display: table;
  	clear: both;
}
body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
}

/* Шапка */
header {
  	position: relative;
  	height: 440px;
  	background: url(../img/slogan.jpg) no-repeat center 120px, url(../img/back-header1.jpg) center center no-repeat, #2bad55;
  	background-size: 320px 60px, 95% 80%;
  	padding-bottom: 200px;
}
/*Навигационная панель*/
nav {
	background-color: rgb(30,30,30);
}
nav ul {
  	display: flex;
  	justify-content: center;

}
nav ul li {
	float: left;
	padding: 0;
	margin: 0;
	list-style: none;	
}
nav a {
	float: left;
  	padding: 20px;
	font-size: 15px;	
	color: #a5a5a5;
	font-weight: normal;
	text-decoration: none;
	transition: all .5s;
}
.docs {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 30px;
    height: 30px;
    display: block;
  	cursor: pointer;
  	background-color: rgb(30,30,30);
  	outline: none;
  	transition: all .2s;
}
.white_line {
    width: 100%;
    height: 4px;
    background-color: #a5a5a5;
    margin-bottom: 5px;
}
.hidden-block {
    position: absolute;
    display: none;
    right: 20px;
    top: 50px;
    z-index: 100;
    width: 200px;
    height: 60px;
    background-color: white;
    border: 1px solid gray;
    border-radius: 3px;
}
.hidden-block::before {
    content: "";
    display: block;
    position: absolute;
    top: -7px;
    right: 10px;
    background-color: white;
    border-bottom: 1px solid grey;
    border-right: 1px solid grey ;
    width: 10px;
    height: 10px;
    transform: rotate(-135deg);
}
.helpdoc {
    margin: 7px 0 0 15px;
    color: black;
    font-size: 15px;
    
}
.helpdoc a {
    text-decoration: none;
    color: #151515;
    font-size: 15px;
}
.helpdoc a:hover {
    text-decoration: underline;
}
nav li a.active, nav a:hover {
  	color: white;
}
.logo {
  position: absolute;
  top: 0;
  left: 0;
}
nav div a {
  position: absolute;
  display: block;
  width: 125px;
  height: 58px;
}
.music {
    width: 30px;
    height: 25px;
    display: block;
    background: url(../img/volume.png) no-repeat center center;
    background-size: 15px 15px;
    border-radius: 3px;
    cursor: pointer;
}
/*Блок контента*/
.main {
	margin: 30px auto;
	min-height: 100px;
	margin: 40px;
	border: 2px solid #ccc;
	border-radius: 2px; 
}
/*Подложка*/
.main h2 {
	display: block;
	position: relative;
	margin: -30px auto auto;
	width: 200px;
	font-size: 1.3em;
	font-weight: normal;
	padding: 5px 10px;
	background-color: #2bad55; 
	border-radius: 5px; 
	text-align: center;
	color: white; 
}
.main h2:after {
  	content: '';
  	position: absolute;
 	width: 0;
  	height: 0;
  	border: 10px solid;
  	border-top-color: #2bad55;
  	top: 100%;
  	left: 50%;
  	margin-left: -10px;
}
/* Список категорий */
.category-list {
  	padding: 20px;
  	font-size: 18px;
  	list-style: none;
  	text-align: center;
}
.category-list> li> a {
  	display: block;
  	padding: 10px 5px;
  	margin: 10px auto;
  	width: 570px;
  	border-radius: 5px;
  	background-color: #2bad55;
  	text-decoration: none;
  	color: white;
}
.category-list> li:hover> a {
  	text-decoration: underline;
}
/*Раскрывающийся блок*/
.hide { 
    display: none;
}
.hide + label {
    cursor: pointer;
    display: table;
}
.hide + label:hover {
  	color: #000;
  	text-decoration: underline;
}
.hide:checked + label + div {
    position: relative;
    display: block;
}
/*Стиоизация термина*/
.termin-name {
  	padding: 10px 0;
  	font-size: 18px;
  	font-weight: bold;
  	text-decoration: none;
}
.termin-definition {
  	display: none;
  	padding: 20px 10px;
  	border: 1px solid black;
  	border-radius: 3px;
  	background-color: #dfdfdf;
  	box-shadow: 2px 2px 1px 0 #d1d1d1;
}
.termin-definition:last-child {
  	margin-bottom: 20px;
}
/*Алфавитный указатель*/
.sidebar1 {
  	display: table;
  	margin: 0 auto;
  	margin-top: 20px;
}
.index {
  	text-align: center;
  	background-color: rgba(0, 125, 215, 0);
}
.index-list a {
  	padding: 0 7px; 
  	display: inline-block;
  	text-decoration: none;
  	color: white;
}
.index-list a:hover {
  	text-decoration: underline;
}
/*Блок поиска*/
.sidebar2 {
  	display: table;
  	margin: 160px auto 0 auto;
}
.search-field {
   	height: 28px;
   	width: 440px;
   	border-radius: 2px;
   	outline: none;
   	border: none;
   	padding-left: 10px;
} 
.btn {
  	width: 180px;
  	height: 45px;
}
.btn-search {
  	display: block;
  	cursor: pointer;
  	border: none;
  	margin: 30px auto; 
  	border-radius: 2px;
  	font-size: 20px;
  	color: #2bad55;
  	background-color: #fff;
  	outline: none;
  	transition: all .2s;
}
.btn-search:hover {
  	background-color: #ffffff;
  	opacity: 0.9;
}
.btn-search:active {
  	background-color: white;
}
/*Подвал*/
footer {
  	text-align: center;
	font-size: 12px;	
	padding: 10px 10px 10px 10px;
	background-color: black;
	color: rgb(204,204,204);
}
footer a {
	color: white;	
}
nav ul, footer p, .contentWrapper {
  	max-width: 1200px;
  	margin: 0 auto;  
}
/*Словарь*/
.dictionary {
  	width: 75%;
  	margin: 20px auto;
  	border: 1px solid black;
  	border-radius: 5px;
}
.dictionary td {
  	empty-cells: hide;
  	padding: 7px 5px;
  	border-left: 1px solid black; 
  	border-bottom: 1px solid black;
  	text-align: center;
}
.dictionary td a {
  	color: #222222;
  	text-decoration: none;
}
.dictionary td a:hover {
  	color: #535353;
  	text-decoration: underline;
}
/*Стили для планшетов*/
@media (min-width: 481px) and (max-width:960px) {
  nav ul 
  {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    MARGIN-LEFT: 100px;
  }
  .sidebar2 {
    width: auto;
    text-align: center;
    padding-top: 10px;
  }
  .sidebar1 {
    width: auto;
    padding: 0 20px 20px;
    margin-top: 20px;
    text-align: center; 
  }
  .index {
    width: 55%;
    margin: 0 auto;
  }
  .columnWrapper {
    width: 100%;
    padding: 0 10px;
  }
  .main {
    width: 100%;
    margin: 40px 0;
  }
}
/*Стили для мобильных устройств*/
@media (max-width:480px) {
  header {
    width: 100%;
    background-position: center 170px, center center;
    background-size: 250px 50px, 90% 90%;
  }
  header a {
    padding: 5px 0;
  }
  nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
  }
  nav ul li:last-child, .docs, button {
      display: none;
  }
  .columnWrapper, .main, .sidebar1, .sidebar2 {
    max-width: 480px;
    min-width: 355px;
    width: 100%;
  }
  .columnWrapper {
    padding: 0 10px;
    width: 100%;
    min-width: 300px;
  }
  .hide + label {
    width: 100%;
  }
  .main {
    margin: 40px 0 20px 0;
  } 
  .main li a {
    width: 100%;
    max-width: 380px;
  } 
  .sidebar1 {
    width: 200px;
    margin-top: 10px;
  }
  .sidebar2 {
    margin-top: 130px;
    text-align: center; 
  }
  .search-field {
   	height: 28px;
   	width: 240px;
   	margin: 0 auto;
  }
  .btn-search {
  	display: block;
  	width: 150px;
  	height: 40px; 
  }
  .termin-name {
    min-width: 250px;
  }
  .hidden-block {
      display: none;
  }
}
