@import url('font.css');

a {
  color: inherit
}
.active-item {
  /*   background: rgba(255,255,255,0.2) */
  border-bottom: 3px solid #d6b65f
}
nav ul li:hover {
  background: rgba(255,255,255,0.3)
}
nav {
	font-family: 'Open Sans Condensed', sans-serif;
  margin: 0 auto;
  max-width: 1024px;
}
nav ul {
  color: #fff;
  list-style: none;
}
nav ul li {
  transition: background 0.25s;
  float: left;
  width: 13.28%
}
nav ul li a {
  text-decoration: none;
  font-size: larger;
  text-align: center;
  width: 100%;
  display: inline-block;
  padding: 1em 0;
}
.space-bg {
  width: 1000%;
  height: 60%;
  background-size: cover;
  background: url(../images/bg.png);
  background-position: 0% bottom;
  position: absolute;
  background-repeat: repeat;
  z-index: -1;
  /*animation-name: example;
  animation-duration: 60s;
  animation-direction:alternate;
  animation-iteration-count:infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;*/
}
@-webkit-keyframes example {
  from {
    left: -50%;
  }
  to {
    left: 0%;
  }
}
aside .close-btn {
  cursor: pointer;
  text-align: center;
  line-height: 2;
  width: 100%;
  font-size: 24px;
}
aside .close-btn:hover {
  transition: background-color 0.2s;
  background: #fff;
  color: #d6b65f;
}
.clr:after {
  content: "";
  display: block;
  clear: both;
}
.wide-container {
  margin: 0 auto;
  max-width: 1170px;
}
#logo {
  bottom: 20px;
  position: relative;
  width: 20%;
  background: ;
  padding: 6px;
  padding-top: 28px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
#logo:after {
  position: absolute;
  content: "Официальный Сайт \a Шри Свами Вишнудевананда Гири";
  left: 120%;
  top: 38%;
  width: 300px;
  white-space: pre;
}
.message-item:after {
  content: '';
  position: absolute;
  left: calc(50% - 40px);
  margin-top: 4em;
  background: url(../images/pattern.png);
  background-size: cover;
  background-position: center;
  width: 80px;
  height: 40px;
}
.message-item {
  margin-bottom: 64px;
}
.message-item .btns {
  margin-top: 12px;
}
#message {
  margin: 48px auto;
  color: #fff
}
#messages {
  margin: 48px auto;
  color: #fff;
  text-align: center;
}
#events {
  color: #fff;
  margin: 48px auto
}
.events-item div:first-child {
  float: left;
  width: 10%;
  text-align: center;
  padding: 12px;
  background: #d6b65f;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.events-item div:last-child {
  width: 80%;
  float: left;
  margin: 12px
}
.events-item div:last-child h1,
.events-item div:last-child h3 {
  margin-bottom: 12px
}

#overlay {
  position: absolute;
  width: 100%;
  height: 33.3%;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(1,31,41,0) 0%,rgba(1,31,41,1) 100%);
}

.btns {
  background: rgba(255,255,255,0.15);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  transition: background-color 0.2s;
  margin: 5px;
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
}
.btns:hover {
  background: rgba(255,255,255,0.25);
  color: #d6b65f;
}

.circle {
  border-radius: 50%;
}

#menu-switch {
  float: right;
  padding: 6px 20px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
}

aside {
  left: -480px;
  transition: left 0.25s;
  height: 100%;
  background: #011f29;
  font-size: 20px;
  color: #fff;
  position: fixed;
  top: 0;
  width: 480px;
  z-index: 10;
}

aside ul li {
  list-style: none;
  transition: color 0.1s
}

aside ul li:hover {
  color: #d6b65f;
}

aside li a {
  display: block;
  width: 100%;
  padding: 1em 0;
  text-decoration: none;
}

aside div:last-child {
  width: 100%;
  padding-bottom: 1em;
  position: absolute;
  bottom: 0;
  font-size: 16px;
  border-top: 3px solid #d6b65f
}

aside div span {
  position: absolute;
  top: -0.75em;
  background: #011f29;
  margin-left: 1.5em;
  padding: 0 0.5em;
  color: #d6b65f;
}

aside ul {
  margin-left: 4em
}

aside ul li:before {
  transition: opacity 0.2s;
  content: "";
  background-position: 50%;
  background-size: 100%;
  margin-top: 16px;
  left: 12px;
  opacity: 0;
  width: 48px;
  height: 32px;
  position: absolute;
  background-image: url(../images/select.png);
  background-repeat: no-repeat;
}

aside ul li:hover:before {
  opacity: 1;
}

.menu-links {
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  width: 45px;
  height: 45px;
  margin: 16px 0 0 16px
}

#control-panel {
  margin: 0 auto;
  color: #fff;
  /* background: linear-gradient(to bottom, rgba(1,31,41,1) 0%,rgba(0,0,0,0) 100%); */
  padding: 18px;
}

#control-panel .circle {
  float: right;
  margin-right: 12px;
  color: #fff;
  padding: 0;
  width: 34px;
  height: 34px;
  line-height: 34px
}


#control-panel .btns:hover {
  color: #d6b65f;
}

.panel-cell {
  width: 33.3%;
  float: left
}
.fl-l {
  float: left;
}
.fl-r {
  float: right;
}
@media (max-width: 1024px) {
  .space-bg {
    width: 100%;
    left: 0;
    animation-play-state: paused;
  }
  @-webkit-keyframes example {
    from {
      left: 0%;
    }
    to {
      left: 0%;
    }
  }
  #events {
    margin: 48px 10%;
  }
  #messages {
    margin: 24px 10%;
  }
  #message {
    margin: 48px 10%;
  }
}
@media (max-width: 768px) {
  #logo {
    width: 30%;
  }
  .panel-cell h1 {
    position: relative;
    top: 1.75em;
  }
  .events-item div:first-child {
    width: 100%;
  }
  #logo {
    width: 30%;
  }
  .panel-cell h1 {
    position: relative;
    top: 1.75em;
  }
  .events-item div:first-child {
    width: 100%;
  }
}
@media (max-width: 480px) {
  #logo {
    width: 40%;
  }
  #logo:after {
    content: ""
  }
}
@media (max-width: 992px) {
  nav {
    display: none
  }
}
@media (min-width: 993px) {
  #menu-switch {
    display:none;
  }
}
.divh1 {
  text-align: center;
  line-height: 48px;
  margin: 0 auto;
  white-space: nowrap;
  color: #fff;
  margin-bottom: 20px;
}
.events-item div:last-child h1,
.events-item div:last-child h3 {
  margin-bottom: 12px
}
