
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color:#aaa;
}

body{
  margin:0;
  padding:0;
  color:#eee;

  background:#000;
  font-family:Verdana,Geneva,sans-serif;
  font-size:13px;
  line-height:20px;
  overflow:hidden;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
  background-color:rgba(0, 0, 0, 1)
}

canvas {
  display: block;
  vertical-align: bottom;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}

.content{
  position: relative; 
  
  width:100%; 
  height: 67vh; 
  padding:10px 10px; 
  margin:0px 0px 32px 0;
  overflow:auto; 
  font-size: 0.8em;
  text-shadow:1px 1px 1px #0f0;
-webkit-border-radius:3px; -moz-border-radius:3px; border-radius:3px;}

      .content p:nth-child(even){color:#f0f; font-family:Georgia,serif; font-size:17px; font-style:italic;}
      .content p:nth-child(3n+0){color:#bbb; font-family:Georgia,serif; font-size:17px; font-style:italic;}
      .content p:nth-child(3n+0){color:#c96; font-family:Georgia,serif; font-size:17px; font-style:italic;}

/* Page Layout */

.container{
  max-width: 80%;
  margin: 0 auto;
  padding: 0 70px;
  position: relative;
  display: grid;
  grid-template-columns: 3fr 320px;
  grid-template-areas: 
      "header header"
      "main sidebar"
      "footer footer";
  grid-gap: 5px;
}

/* Header */

header{
  grid-area: header;
  
  margin-top: 32px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 3fr 1fr;
}

header nav {
  padding: 0 20px;
  justify-self: start;
  list-style: none;
/*  This did not work well, inline-block used instead */
/*  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: end;*/
}

header nav li {
  margin-right: 15px;
  display: inline-block;
}

header button {
  justify-self: end;
  height: 32px;
  color:#fff;
  text-align:center;
  font-size:14px;
  cursor: pointer;
  text-decoration: none;
  padding:10px;
  border: 1px solid rgba(0,0,0,0.5);
  border-bottom: 3px solid rgba(0,0,0,0.5);
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), /* Exterior Shadow */
    inset 0 1px rgba(0, 0, 0, 0.3), /* Top light Line */
    inset 0 10px rgba(0, 0, 0, 0.2), /* Top Light Shadow */
    inset 0 10px 20px rgba(0, 0, 0, 0.25), /* Sides Light Shadow */
    inset 0 -15px 30px rgba(0,0,0,0.3); /* Dark Background */
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.5),
    inset 0 1px rgba(0, 0, 0, 0.3),
    inset 0 10px rgba(0, 0, 0, 0.2),
    inset 0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 -15px 30px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.5),
    inset 0 1px rgba(0, 0, 0, 0.3),
    inset 0 10px rgba(0, 0, 0, 0.2),
    inset 0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 -15px 30px rgba(0,0,0,0.3);
}

header button:hover {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -moz-opacity:0.7;
  -khtml-opacity: 0.7;
}

/* Main Section */

.main {
  grid-area: main;
}

.main h2 {
  font-size: 32px;
  margin-bottom: 55px;
}

.main p {
  margin-bottom: 50px;
}

.main img {
  width: 100%;
}

/* Sidebar */

.sidebar {
  grid-area: sidebar;
  align-items: center;
}

.sidebar hr{
  margin: 5px auto;
  padding: 0;
  height: 3px;
  left: 50%;
  right: 50%;
  
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.9)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* IE10+ */
  background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
}

.sidebar p{
  color: #0ff;  
}

.sidebar li a{
  color: #f0f;
}

.tabs {
min-height: 320px;
min-width:  300px;

height: 50%;
}
.tabs__caption {
  margin: 0;
  padding: 0;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
list-style: none;
position: relative;
}

.tabs__caption:after {
content: '';
display: table;
clear: both;
}
.tabs__caption li {
padding: 0 12px;
color: rgb(35, 73, 153);
position: relative;
font-size: 0.8em;
}
.tabs__caption li:not(.active) {
cursor: pointer;
}
.tabs__caption li:not(.active):hover {
color: rgb(82, 149, 187);
border-color: #7DCA86;
}
.tabs__caption .active {
/* background: #FFF; */
color: #cf7;
border-color: #7DCA86;
}
.tabs__caption .active:after {
content: '';
position: absolute;
/* bottom: -5px; */
left: 0;
right: 0;
height: 2px;
background: #FFF;
}
.tabs__content {
display: none;
/*border: 1px solid #7DCA86;*/
border-radius: 0 5px 5px 5px;
padding: 7px 15px;
opacity: 1;
  transition: all 0.35s;
}
.tabs__content.active {
display: block;
opacity: 1;
  transition: all 0.35s;
position: relative;
font-size: 0.8em;
}

p:first-letter { /* Первая буква абзаца */
  font-size: 1em;
  text-shadow: #ecd78a 1px 1px 0, #ecd78a -1px -1px 0, 
               red -1px 1px 0, red 1px -1px 0;
 }

@media screen and (max-width: 650px) {
.tabs__caption li {
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
}

}
/* Footer */

footer {
  grid-area: footer;
  color: #ef5350;
  text-align: center;
  padding: 20px 0;
}

footer p {
  color: rgb(14, 211, 41);
  font-size: 14px;
  padding: 10px;
}

footer a {
  width: 60px;
  padding: 2px 5px;
  margin:0;
  color: #ecd78a;
  text-align: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(230, 223, 223, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0px 0px 1px #ecd78a;
}
footer a:hover {
  text-shadow: 1px 1px 2px #ecd78a;
  color: #ecd78a;
}

footer a:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  right: 50%;
  bottom: 0;
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left bottom, right bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.9)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* IE10+ */
  background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0) 100%); /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
  height: 2px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
footer a:hover:before, footer a:focus:before, .footer a:active:before {
  left: 0;
  right: 0;
  color: #ecd78a;
}

@media (max-width: 600px) {
  .container{
      /*  Redefine the grid into a single column layout. */
      grid-template-columns: 1fr;
      grid-template-areas: 
          "header"
          "main"
          "sidebar"
          "footer";
  }
}

.side-button {
  padding: 0;
  margin: 0 7px;
  position: relative;
  display: inline-block;
  color: #777674;;
  font-weight: bold;
  text-decoration: none;
  text-shadow: rgba(255,255,255,.5) 1px 1px, rgba(100,100,100,.3) 3px 7px 3px;
  user-select: none;
  outline: none;
  background-image:
   linear-gradient(45deg, rgba(255,255,255,.0) 30%, rgba(255,255,255,.8), rgba(255,255,255,.0) 70%),
   linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 90%, rgba(255,255,255,.3)),
   linear-gradient(to right, rgba(223,190,170,1), rgba(255,255,255,.9) 45%, rgba(223,190,170,.5));
  background-repeat: no-repeat;
  background-size: 200% 100%, auto, 100% 1px, 100% 2px, 100% 1px, 100% 1px;
  background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px);
  box-shadow: rgba(0,0,0,.5) 3px 10px 10px -10px;
}
.side-button:hover {
  transition: .5s linear;
  background-position: -200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px);
  color: #aaa;
}
.side-button:active {
  top: 1px;
  color: #eee;
}

@media (max-width: 600px) {
  .container{
      /*  Redefine the grid into a single column layout. */
      grid-template-columns: 1fr;
      grid-template-areas: 
          "header"
          "main"
          "sidebar"
          "footer";
  }
}

  .user{
    position: relative;
    width: 32px;
    height: 32px;
    float: right;	
    background: url(../img/user32.png);
  }
  
  .user:hover{
    position: relative;
    width: 32px;
    height: 32px;
    float: right;	
    background: url(../img/user321.png);
  }
  
  .user:active{
    position: relative;
    width: 32px;
    height: 32px;
    float:right;	
    background: url(../img/user32.png);
  }

  .user-close {
    top:-15px;
    right: 50px;
  }
  .user-close::before, .user-close::after {
    top: 5px;
    left: 5px;
  }
 
/*---Кнопка свернуть поиск---*/
  .find {
    top:-15px;
    right: 50px;
  }
  .find::before,  .find::after {
    top: 5px;
    left: 5px;
  }

  .close {
    position: absolute;
    height: 32px;
    width: 32px;
  }
  .close::before, .close::after {
    /* close icon created in CSS */
    position: absolute;
    height: 3px;
    width: 20px;
    background-color: #f00;
    /* this fixes a bug where pseudo elements are slighty off position */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  .no-touch .close:hover {
    /*background-color: #424f5c; */
  }
  .no-touch .close:hover::before, .no-touch .close:hover::after {
    background-color: #f00;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    transition-duration: 0.3s;
  }
  .no-touch .close:hover::before {
    -webkit-transform: rotate(220deg);
    -moz-transform: rotate(220deg);
    -ms-transform: rotate(220deg);
    -o-transform: rotate(220deg);
    transform: rotate(220deg);
  }
  .no-touch .close:hover::after {
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }







  