@font-face {
  font-family: Roboto; src: url('fonts2/Open_Sans/static/OpenSans-Regular.ttf');
}
@font-face {
  font-family: Roboto; font-weight: bold; src: url('fonts2/Open_Sans/static/OpenSans-Bold.ttf');
}
@font-face {
  font-family: Roboto; font-style: italic; src: url('fonts2/Open_Sans/static/OpenSans-Italic.ttf');
}
/*@font-face {
  font-family: Roboto; font-weight: 500; src: url('fonts/Roboto-Medium.ttf');
}*/
@font-face {
  font-family: Roboto; font-weight: 300; src: url('fonts/Roboto-Light.ttf');
}
@font-face {
  font-family: 'Google Code Regular'; src: url('fonts2/Google_Sans_Code/static/GoogleSansCode-Regular.ttf');
}
@font-face {
  font-family: 'Roboto Mono'; src: url('fonts/RobotoMono.ttf');
}
/*@font-face {
  font-family: 'Google Code Italic'; font-style: italic; src: url('fonts2/Google_Sans_Code/static/GoogleSansCode-Italic.ttf');
}
@font-face {
  font-family: 'Google Code Bold'; font-weight: bold; src: url('fonts2/Google_Sans_Code/static/GoogleSansCode-Bold.ttf');
}*/
@font-face {
  font-family: 'Bitter'; src: url('fonts2/Bitter/static/Bitter-SemiBold.ttf');
}

:root {
  --font-family-base: 'Roboto', sans-serif;
  --font-family-code: 'Google Code Regular', 'Roboto Mono', monospace;
  --color-background-pascal: #004c6b;
  --color-text-body: #00193a;
  --color-background-body: #f5faff;
  --color-a: #00405b;
  --color-text-header: #e4f3ff;
  --color-background-header: #004c6b;
  --color-background-header-button: #e4f3ff;
  --color-background-mainsidebar: #f5faff;
  --color-text-sidebar-header: #e4f3ff;
  --color-background-sectionsidebar-hover: #e4f3ff;
  --color-text-sidebar-p: #00193a;
  --color-text-h1: #002c6f;
  --color-background-p-codelang: #eef0ff;
}

.material-icons.md-light { color: var(--color-background-header); }
.material-icons.md-section-sidebar { color: var(--color-a); }

/*::-webkit-scrollbar { width: 20px; }*/
::-webkit-scrollbar-track { background: var(--color-background-mainsidebar); }
::-webkit-scrollbar-thumb { background: #d2e5f4; }
::-webkit-scrollbar-thumb:hover { background: #d2e5f4; }
#main-sidebar::-webkit-scrollbar, #section-sidebar ul::-webkit-scrollbar { width: 7px; }
#section-sidebar ul::-webkit-scrollbar-track { background: var(--color-background-mainsidebar);}
#section-sidebar ul::-webkit-scrollbar-thumb { background: #d9e2ff; }
#section-sidebar ul::-webkit-scrollbar-thumb:hover { background: #d9e2ff; }

body {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.7em;
  font-family: var(--font-family-base);
  color: var(--color-text-body);
  background: var(--color-background-body);
}
a {
  color: var(--color-a);
  text-decoration: none;
}
article a {
  border-bottom: 1px dashed;
}

#header {
  text-align: center;
  position: fixed;
  transition: top 0.3s ease 0s;
  top: 0px;
  width: 100%;
  height: 48px;
  padding: 2px;
  background: var(--color-background-header);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  z-index: 3;  /* for yandex ads */
}
#header span {
  font-size: 24px;
  color: var(--color-text-header);
  font-family: 'Bitter';
}
#header #subtitle {
  display: none;
}
#header img {
  width: auto;
  height: 30px;
  padding-right: 5px;
  padding-top: 7px;
  vertical-align: -5px;
}
#button-right, #button-left {
  cursor: pointer;
  display: inline;
  margin-top: 6px;
  width: 36px;
  height: 36px;
  font-size: 32px;
  background: var(--color-background-header-button);
  border: none;
}
#button-right {
  float: right;
  margin-right: 10px;
  border-radius: 5px;
}
#button-left {
  float: left;
  margin-left: 5px;
  border-radius: 5px;
}
#button-right:hover , #button-left:hover {
    background: #c6e7ff;
}
#button-right:focus , #button-left:active {
    background: var(--color-background-header-button);
    border-style: inset;
    border-width: 1px;
}


#main-overlay, #section-overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 4; /* for yandex ads */
}

#main-sidebar {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 300px;
  padding-bottom: 35px;
  overflow: auto;
  background: #e4f3ff;
  z-index: 5; /* for yandex ads */
}

@media (min-width: 1351px) {
  #button-left, #button-right {
    display: none;
  }
  #header {
    text-align: left;
    width: 296px;
    height: 100px;
    border-radius: 0 0 10px 0;
  }
  #main-sidebar {
    display: block!important;
    padding-top: 10px;
    top: 100px;
    left: 0;
    z-index: 1;
  }
  #header img {
    width: auto;
    height: 30px;
    padding-right: 10px;
    padding-left: 30px;
    padding-top: 15px;
    padding-bottom: 10px;
    vertical-align: -15px;
  }
  #header span {
    font-size: 24px;
    color: var(--color-text-sidebar-header);
    font-family: 'Bitter';
  }
  #header #subtitle {
    display: block;
    font-size: 18px;
    padding-left: 30px;
  }
}

#section-sidebar {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0px;
  width: 300px;
  padding-bottom: 35px;
  overflow: auto;
  background: var(--color-background-body); 
  z-index: 5; /* for yandex ads */
  /*direction: rtl; */
  text-align: left;
  font-size: 0.96em;
}
#section-sidebar header {
  color: var(--color-background-pascal);
  /*background: #d9e2ff;*/
  /*background: linear-gradient(90deg,rgba(217, 226, 255, 0) 0%, rgba(217, 226, 255, 1) 100%);*/
  box-shadow: 0 -2px 3px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  /*margin-bottom: 20px;*/
  font-family: 'Bitter';
  font-size: 20px;
  padding: 0px 10px;
  border-radius: 5px;
  margin-top: 10px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1351px) {
  #section-sidebar {
    display: block!important;
    overflow: initial;
  } 
  #section-sidebar ul {
    position: fixed;
    top: 110px;
    bottom: 0px;
    /*height: calc(100vh - 200px);*/
    width: 300px;
    padding-bottom: 35px;
    overflow: auto;
  }
}
@media (min-width: 1501px) {
  #section-sidebar {
    right: 50px;
  } 
  #section-sidebar ul {
    right: 50px;
  }
}

#main-sidebar ul, #section-sidebar ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
/*#section-sidebar ul {
  margin-top: 25px;
}*/
#main-sidebar li {
  line-height: 35px;
}
#section-sidebar li {
  line-height: 25px;
}
#main-sidebar li:hover {
  background: #d2e5f4;
}
#section-sidebar li:hover {
  background: #d9e2ff;
  border-radius: 50px 10px 10px 50px;
}
#section-sidebar li:last-child {
  text-align: center;
  cursor: pointer;
  padding: 20px;
  color: #00405b;
}
#section-sidebar li:last-child:hover {
  background: #d9e2ff;
  border-radius: 10px;  
}
#main-sidebar p, #section-sidebar p {
  font-size: 1.2em;
  margin-left: 30px;
  margin-bottom: 5px;
  color: var(--color-text-sidebar-p);
  font-family: 'Bitter';
}
#section-sidebar p {
  margin-left: 10px;
}
#main-sidebar a, #section-sidebar a {
  font-size: 0.98em;
  display: block;
  padding: 7px 5px 7px 30px;
}
#section-sidebar a {
  padding-left: 20px;
}
#main-sidebar header a {
  padding: 0;
}

article {
  padding: 55px 15px 100px;
}
@media (min-width: 871px) {
  article {
    max-width: 840px;
    margin: 0 auto;
  }
}
@media (min-width: 1351px) {
  article {
    margin-left: 330px;
    margin-right: 330px;
    padding-top: 5px;
  }
}
@media (min-width: 1500px) {
  article {
    margin: 0 auto;
  }
}

h1 {
  font-family: "Bitter";
  font-size: 42px;
  line-height: 56px;
  color: var(--color-text-h1);
  border-bottom: 1px solid rgba(0,44,111,0.14);
  padding-bottom: 15px;
  /*font-family: var(--font-family-code);*/
  font-weight: normal;
}
article p, article ol, article ul, dd, dt {
  font-size: 1.05em;
  line-height: 1.6em;
  /*letter-spacing: 0.03em;*/
}
article li {
  margin-top: 1em;
  margin-bottom: 1em;
}
article li p {
  font-size: 1em;
}
.center {
  text-align: center;
}

pre {
  overflow: auto;
  /*letter-spacing: 0.03em;*/
  border-radius: 3px;
}
pre code {
  font-family: var(--font-family-code);  
}
p code, li code {
  font-family: var(--font-family-code);
  background: #ebf1f8;
  padding: 0 5px;
  margin-left: 1px;
  margin-right: 2px;
}
p code.lang, li code.lang {
  background: var(--color-background-p-codelang);
  font-weight: bold;
  font-size: 0.96em;
}
var {
  padding: 2px;
  color: var(--color-text-h1);
}
.output {
  color: #ffffff;
}
.ex {
/*  font-size: 0.98em;*/
  letter-spacing: 0.1em;
  font-weight: 300;
  font-family: var(--font-family-code);;
}


#yandex_rtb_R-A-139191-3 {
  margin-top: 40px;
  margin-bottom: 40px;
}