html, body {
    margin: 0;
    padding: 0;
    background:#000;
}

#content {
    right: 0;
    overflow-y: scroll;
    position: absolute;
    top: 20vh;
    bottom: 0;
    left: -10em;
}

#header {
    height: 25vh;
}

#sidebar {
    bottom: 0;
    overflow: hidden;
    position: absolute;
    left: 2vw;
    top: 25vh;
    width: 10em;
}

#sidebar ul {
  padding:2em;
  font-size: 2vh;
  list-style-type: none;
}

#sidebar ul li {
  color: white;
  margin: 1em 0;
}
  

h1 {
  color: yellow;
  font-family: 'Caprasimo';
  font-size: 3.5vw;
  letter-spacing: .05em;
  position:absolute;
  top:2vh;
  left:33%;
}


#wrapper{
    position: relative;
}

.content{
    position: relative;
    z-index: 100;
}

.background{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -100;
}

:root {
  --twinkle-duration: 4s;
}

.stars-wrapper {
  position: absolute;
  top:0;
  left:0;
  pointer-events: none;
  width: 100vw;
  height: 30vh;
  background: linear-gradient(#3b2f4a, #1f1f3a, #0c101b, #000);
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-animation: twinkle var(--twinkle-duration) ease-in-out infinite;
          animation: twinkle var(--twinkle-duration) ease-in-out infinite;
}
.stars:nth-child(2) {
  -webkit-animation-delay: calc(var(--twinkle-duration) * -0.33);
          animation-delay: calc(var(--twinkle-duration) * -0.33);
}
.stars:nth-child(3) {
  -webkit-animation-delay: calc(var(--twinkle-duration) * -0.66);
          animation-delay: calc(var(--twinkle-duration) * -0.66);
}
@-webkit-keyframes twinkle {
  25% {
    opacity: 0;
  }
}
@keyframes twinkle {
  25% {
    opacity: 0;
  }
}

.star {
  fill: white;
}
.star:nth-child(3n) {
  opacity: 0.8;
}
.star:nth-child(7n) {
  opacity: 0.6;
}
.star:nth-child(13n) {
  opacity: 0.4;
}
.star:nth-child(19n) {
  opacity: 0.2;
}

.comet {
  transform-origin: center center;
  -webkit-animation: comet 10s linear infinite;
          animation: comet 10s linear infinite;
}
@-webkit-keyframes comet {
  0%, 40% {
    transform: translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  60%, 100% {
    transform: translateX(-100vmax);
    opacity: 0;
  }
}
@keyframes comet {
  0%, 40% {
    transform: translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  60%, 100% {
    transform: translateX(-100vmax);
    opacity: 0;
  }
}

.comet-b {
  -webkit-animation-delay: -3.3s;
          animation-delay: -3.3s;
}

.comet-c {
  -webkit-animation-delay: -5s;
          animation-delay: -5s;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
}

.block {
  width: 840px;
  margin: 10% auto;
  overflow: hidden;
}

.box {
  position: relative;
  height: 130px;
  line-height: 150px;
  overflow: hidden;
}

.box__bottom, .box__top, .box__left, .box__right {
  position: absolute;
  width: inherit;
  height: inherit;
  text-align: center;
  line-height: inherit;
  transition: transform 0.4s ease;
}
.box__bottom:before, .box__top:before, .box__left:before, .box__right:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
}
.box__bottom:hover, .box__top:hover, .box__left:hover, .box__right:hover {
  transform: translateX(0);
  z-index: 1;
}
.box__bottom:hover:before, .box__top:hover:before, .box__left:hover:before, .box__right:hover:before {
  width: 100%;
  height: 100%;
  transform: none;
}

.box__right {
  background: rgba(0, 0, 0, 0.43);
  transform: translateX(100%);
}
.box__right:before {
  right: 100%;
  bottom: 0;
  transform-origin: 100% 100%;
}
.box__right:hover ~ .box__center {
  transform: translateX(-100%);
}

.box__left {
  background: rgba(0, 0, 0, 0.43);
  transform: translateX(-100%);
}
.box__left:before {
  left: 100%;
  transform-origin: 0 0;
}
.box__left:hover ~ .box__center {
  transform: translateX(100%);
}

.box__top {
  background: rgba(0, 0, 0, 0.43);
  transform: translateY(-100%);
}
.box__top:before {
  top: 100%;
  right: 0;
  transform-origin: 100% 0;
}
.box__top:hover ~ .box__center {
  transform: translateY(100%);
}

.box__bottom {
  background: rgba(0, 0, 0, 0.43);
  transform: translateY(100%);
}
.box__bottom:before {
  bottom: 100%;
  left: 0;
  transform-origin: 0 100%;
}
.box__bottom:hover ~ .box__center {
  transform: translateY(-100%);
}

.film-container {
  width: 100%;
  float: left;
  position: relative;
}
.film-container .row {
  height: 445px;
  position: relative;
}
.film-container .row .single-film {
  width: 280px;
  height: auto;
  float: left;
  padding: 0px 15px;
  position: absolute;
  z-index: 4;
}
.film-container .row .single-film:nth-child(1) {
  top: 0%;
  left: 0%;
  transition: all ease 0.8s;
}
.film-container .row .single-film:nth-child(2) {
  top: 0%;
  left: 33%;
  transition: all ease 0.8s;
}
.film-container .row .single-film:nth-child(3) {
  top: 0%;
  left: 66%;
  transition: all ease 0.8s;
}
.film-container .row .single-film:nth-child(4) {
  top: 55%;
  left: 0%;
  transition: all ease 0.8s;
}
.film-container .row .single-film:nth-child(5) {
  top: 55%;
  left: 33%;
  transition: all ease 0.8s;
}
.film-container .row .single-film:nth-child(6) {
  top: 55%;
  left: 66%;
  transition: all ease 0.8s;
}
.film-container .row .single-film .play-video {
  transition: all ease 0.8s;
  opacity: 0;
}
.film-container .row .single-film .play-video video {
  width: 100%;
  height: 100%;
  transition: all ease 0.8s;
}
.film-container .row .single-film .box-pay-icon {
  display: block;
  opacity: 1;
  z-index: 9;
}
.film-container .row .single-film .video-tag-close {
  transition: all ease 0.5s;
  position: absolute;
  top: 0px;
  right: 9px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  background: #16161d;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 36px;
}
.film-container .row .single-film .box {
  width: 100%;
  transition: all ease 0.8s;
}
.film-container .row .single-film .box .play-movie-icon {
  color: #fff;
  font-size: 45px;
  line-height: 0;
  font-weight: bold;
}
.film-container .row .single-film .film-information {
  width: 100%;
  float: left;
  margin-top: 6%;
  transition: all ease 0.8s;
}
.film-container .row .single-film .film-information p {
  width: 100%;
  float: left;
  color: #fff;
  font-size: 13px;
  margin: 0;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.film-container .row .single-film.single-film-animate {
  transition: all ease 0.8s;
  bottom: 33%;
  right: 33%;
}
.film-container .row .single-film.single-film-animate .film-information {
  opacity: 0;
  transition: all ease 0.8s;
}
.film-container .row .single-film.single-film-animate .box-pay-icon {
  transition: all ease 0.8s;
  display: none !important;
}
.film-container .row .single-film.single-film-active {
  z-index: 6;
}
.film-container .row .single-film.video-min {
  transition: all ease 0.8s;
  display: block;
  opacity: 1;
}
.film-container .row .single-film.video-min video {
  margin: 0 auto !important;
  height: 0% !important;
  width: 0% !important;
  margin-left: 40% !important;
  margin-top: 20% !important;
  overflow: hidden !important;
}
.film-container .row .single-film.single-film-in {
  z-index: 6;
  transition: all ease 0.8s;
  right: 0 !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  width: 100% !important;
}
.film-container .row .single-film.single-film-in .box {
  height: 100% !important;
  transition: all ease 0.8s;
  width: 100% !important;
  overflow: visible;
}
.film-container .row .single-film.single-film-in .play-video {
  transition: all ease 0.8s;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0 auto;
  text-align: center;
  opacity: 1 !important;
}
.film-container .row .single-film.single-film-in .play-video video {
  transition: all ease 0.8s;
  width: 100%;
  height: 100%;
}
.film-container .row .single-film.single-film-in:hover .video-tag-close {
  transition: all ease 0.8s;
  opacity: 1;
}

/**
 * Grid styles
 */
.video-grid.front-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}

ul.video-list {
  display: flexbox;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

li.video {
  flex-grow: 1;
  position: relative;
  ooverflow: hidden;
	width: 33.333333333%;
	width: -webkit-calc(100% / 3);
	width: calc(100% / 3);
  border: solid 0.2em transparent;
  
  & a {
    outline: none;
  }
      
  &:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    transition: background-color .15s;
  }
  
  & figure {
    display: block;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    & img {
      display: block;
      max-width: 100%;
      height: auto;
      opacity: 0;
      transform: scale(0.5);
      transition: all .20s;
    }

    & figcaption {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: rgba(0,0,0,0.6);
      color: #fff;
      font-size: 1.4rem;
      font-weight: 600;
      padding: 1rem;
      transform: translateY(0);
      opacity: 1;
      transition: all .20s;
    }
  }
  
  &:hover {
    & figure {
      & img {
        opacity: 1;
        transform: scale(1);
      }
      
      & figcaption {
        opacity: 0;
        transform: translateY(50%);
      }
    }
  }
  
  &:hover:before {
    background-color: rgba(0,0,0,0.3);
  }
}

@media screen and (max-width: 800px) {
	li.video {
		width: 50%;
		width: -webkit-calc(100% / 2);
		width: calc(100% / 2);
	}
}

@media screen and (max-width: 640px) {
	li.video {
		width: 100%;
	}
}

/**
 * Pen styles
 */
html { box-sizing: border-box; height: 100%; overflow-y: scroll; font-size: 62.5%; }
*, *:before, *:after { box-sizing: inherit;
}

body {
	background: #000;
	color: #444;
	font-family: 'Open Sans', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	font-size: 1.8rem;
	line-height: 1.2;
}

main {
  padding: 2rem 0;
}

article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}