html {
  position: relative;
  height: 100%;
}

body {
  position: relative;
  min-height: 100%;
}

#content {
  padding-bottom: 3.5em; /* Must be the same as height in footer*/
}

#footer {
  width: 100%;
  height: 3.5em;
  position: absolute;
  bottom: 0;
  left: 0;
}

#header h1 {
  word-spacing: 0.3em;
}

#navbar {
  font-weight: bold;
  text-align: center;
  background-color:rgba(0,0,0,.8);
}

#navbar ul {
  height: auto;
  padding: 0px;
  margin: 0px;
}

#navbar li {
  display: inline-block;
  position: relative;
}

#navbar a {
  color:rgba(255,255,255,.8);
  text-decoration: none;
  display: inline-block;
  padding: 1em 1em;
}

#navbar a:hover {
  color:rgba(255,255,255,1.0);
  text-decoration: underline;
}

#navbar li:hover {
  background-color:rgba(100,100,100,.8);
}

.pmvm3dscr a {
  width: 19%;
}

.sidebarblock > .content > .title {
  text-align: left;
}

@media print {
  #navbar { display: none; }
  #footer { display: none; }
}


table.layout,
table.layout tr th,
table.layout tr td {
    border: none;
}

table.layout tr th,
table.layout tr td {
    padding-top: 0;
    padding-bottom: 0;
}

table.layout tr th:first-child,
table.layout tr td:first-child {
    padding-left: 0;
}

table.layout tr th:last-child,
table.layout tr td:last-child {
    padding-right: 0;
}



/* This is for mobile navbar-menu */
.navbar-m {
  display: none;
  position: relative;
  z-index: 1;
  background-color: rgba(51,51,51,1);
}

.menu-m_btn {
  position: relative;
  height: 50px;
  width: 50px;
  border: none;
  background: transparent;
}

.menu-m_btn-elem {
  display: block;
  position: absolute;
  top: 50%;
  left: 25%;
  height: 4px;
  width: 50%;
  margin-top: -2px;
  background: #808080;
  -webkit-transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
  transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
}

.menu-m_btn-elem:after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  margin-top: 6px;
  background: #808080;
  -webkit-transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
  transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
}

.menu-m_btn-elem:before {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  margin-top: -10px;
  background: #808080;
  -webkit-transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
  transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
}

.menu-m_btn-elem--active {
  background: transparent;
}

.menu-m_btn-elem--active::before {
  -webkit-transform: translateY(200%) rotate(45deg);
  transform: translateY(200%) rotate(45deg);
}
.menu-m_btn-elem--active::after {
  -webkit-transform: translateY(-200%) rotate(-45deg);
  transform: translateY(-200%) rotate(-45deg);
}

/* 1050px is for my current menu items in ru (it is longer than en). This can change if I add/change menu item names. */
@media screen and (max-width: 1050px) {
  .navbar-m {
    display: block;
  }

  .navbar {
    z-index: -1;
    margin-top: -460px;
    -webkit-transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.36, 0.63);
  }

  #navbar ul li {
    display: block;
  }

  #navbar ul li a {
    width: 100%;
  }
}

.navbar--active {
  margin-top: 0;
}

.hided {
  display: none;
}
