.tags {
  color: #7c8ba5;
  opacity: 0.25;
  font-size: 0.875em;
}

.tags a {
  color: inherit;
  transition: all 0.4s ease;
}

.tags a:hover {
  opacity: 1;
  color: #dbe2f2;
}
.post h2 {
  margin-top: 14px;
}

.post h2 a {
  color: inherit;
  background-color: rgba(58, 84, 121, 0.2);
  box-shadow: 13px 0 0 rgba(58, 84, 121, 0.2), -13px 0 0 rgba(58, 84, 121, 0.2),
    0 0 13px rgba(58, 84, 121, 0.2);
  transition: all 0.4s ease;
}

.post h2:hover a {
  color: inherit;
  background-color: rgba(58, 84, 121, 0.5);
  box-shadow: 13px 0 0 rgba(58, 84, 121, 0.5), -13px 0 0 rgba(58, 84, 121, 0.5);
}

.post p {
  margin-top: 25px;
}

.post .date {
  margin-top: 0;
  line-height: 22px;
}

.post .tags {
  margin-top: 14px;
}

.post .read-more-wrapper {
  height: 30px;
  position: relative;
  display: block;
  max-width: 160px;
  margin: 15px 0 25px;
}

.post .read-more {
  line-height: 30px;
  border: 1px solid #333;
  border-right: none;
  color: #fff;
  text-align: center;
  border-radius: 4px;
}

.post .read-more:after {
  content: '';
  position: absolute;
  margin: auto;
  top: 5px;
  right: -9px;
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}

.post .read-more:hover,
.post .read-more:hover:after {
  border-color: #fff;
}

.post hr {
  margin-top: 25px;
}
.paginate ul {
  display: flex;
  padding: 0;
  margin: 45px 0 0;
  list-style: none;
  justify-content: space-around;
}

.paginate li {
  text-align: center;
}

.paginate a {
  color: #7c8ba5;
  border-radius: 100%;
  padding: 15px 20px;
  transition: all 0.4s ease;
  user-select: none;
}

.paginate a.inactive {
  pointer-events: none;
  cursor: default;
}

.paginate li.navigation a {
  border-radius: 5px;
  padding: 15px 15px;
}

.paginate a:hover,
.paginate a.active {
  color: inherit;
  background-color: rgba(255, 255, 255, 0.1);
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
  .paginate a {
    padding: 10px 15px;
  }

  .paginate li.navigation a {
    padding: 10px 10px;
  }
}

@media only screen and (max-width: 767px) {
  .paginate a {
    padding: 8px 12px;
  }

  .paginate li.navigation a {
    padding: 8px 8px;
  }

  .paginate div {
    padding: 0;
  }
}

@media only screen and (max-width: 320px) {
  .paginate ul li:nth-last-child(2) {
    display: none;
  }
}
.post {
  position: relative;
}

@media only screen and (min-width: 768px) {
  main {
    padding-bottom: 1100px;
    /*margin-bottom: -150px;*/
    z-index: 10;
  }

  main:before {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -1000px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 1590px 925px 0;
    border-color: transparent transparent #11041f transparent;
  }

  main:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -1000px;
    width: 2000px;
    height: 1000px;
    background: url(/static/images/river.svg) no-repeat top left -29px;
    background-size: 2000px 1219px;
  }

  .post:first-child {
    padding-top: 50px;
  }

  .post {
    padding-top: 90px;
    min-height: 540px;
    display: table; /* Holds the height of children - https://stackoverflow.com/a/4579553/6717050 */
  }

  .post:nth-child(1):before {
    content: '';
    position: absolute;
    margin-top: -85px;
    left: 50%;
    width: 2000px;
    margin-left: -1000px;
    height: 649px;
    background: url(/static/images/accident.svg) no-repeat top 77px left 1143px,
      url(/static/images/eighteen_plus.svg) no-repeat top 474px left 1257px,
      url(/static/images/trees1.svg) no-repeat top left 1696px;
    background-size: 621px 506px, 52px 175px, 363px 374px;
    z-index: -100;
  }

  .post:nth-child(1):after {
    content: url(/static/images/police_siren_flip.png);
    position: absolute;
    margin-top: -85px;
    top: 408px;
    left: 50%;
    width: 142px;
    margin-left: 585px;
    height: 131px;
    z-index: -100;
    animation: police-siren 2s linear infinite;
  }

  .post:nth-child(2):before {
    content: '';
    position: absolute;
    top: -313px;
    left: 50%;
    margin-left: -1000px;
    width: 2000px;
    height: 1389px;
    background: url(/static/images/cemetery.svg) no-repeat top 305px left -43px,
      url(/static/images/overlap.svg) no-repeat top 114px left 1776px,
      url(/static/images/trees2.svg) no-repeat top 401px left 1860px,
      url(/static/images/trees3.svg) no-repeat top 384px left 1472px,
      url(/static/images/witness.svg) no-repeat top 511px left 1784px,
      url(/static/images/police_car.svg) no-repeat top 282px left 1686px,
      url(/static/images/road.png) no-repeat top left;
    background-size: 996px 771px, 168px 145px, 209px 208px, 344px 409px, 132px 125px, 226px 157px,
      2000px 1389px;
    z-index: -500;
  }

  .post:nth-child(2):after {
    content: url(/static/images/police_siren.png);
    position: absolute;
    top: -313px;
    margin-top: 260px;
    left: 50%;
    margin-left: 710px;
    width: 157px;
    height: 126px;
    z-index: -100;
    animation: police-siren 2s linear infinite 0.5s;
  }

  .post:nth-child(3):before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: 2000px;
    height: 742px;
    margin-left: -1000px;
    background: url(/static/images/trees5.svg) no-repeat top left 1549px,
      url(/static/images/trees4.svg) no-repeat top 52px left 869px,
      url(/static/images/alien.svg) no-repeat top 98px left 1233px,
      url(/static/images/victim.svg) no-repeat top 310px left 1371px,
      url(/static/images/alien_trace.svg) no-repeat top 302px left 1092px;
    background-size: 451px 498px, 126px 108px, 293px 132px, 130px 76px, 759px 440px;
    z-index: -100;
  }

  .post:nth-child(3):after {
    content: url(/static/images/alien_light.png);
    position: absolute;
    top: -50px;
    left: 50%;
    margin-top: 174px;
    margin-left: 159px;
    width: 599px;
    height: 656px;
    z-index: -100;
    animation: alien-light 3s ease-in infinite;
  }

  .post:nth-child(4):before {
    content: '';
    position: absolute;
    top: -262px;
    left: 50%;
    width: 2000px;
    height: 932px;
    margin-left: -1000px;
    background: url(/static/images/rite.svg) no-repeat top 415px left 375px,
      url(/static/images/dogs.svg) no-repeat top 641px left,
      url(/static/images/gates_to_hell.svg) no-repeat top 469px left 1524px,
      url(/static/images/trees7.svg) no-repeat top 319px left 1668px,
      url(/static/images/trees6.svg) no-repeat top left 16px;
    background-size: 486px 473px, 339px 291px, 379px 406px, 328px 456px, 714px 698px;
    z-index: -100;
  }

  .post:nth-child(5):before {
    content: '';
    position: absolute;
    top: 90px;
    left: 50%;
    width: 2000px;
    height: 1294px;
    margin-left: -1000px;
    background: url(/static/images/skull_sign.svg) no-repeat top 88px left 1205px,
      url(/static/images/camp.svg) no-repeat top 324px left 233px,
      url(/static/images/trees11.svg) no-repeat top 907px left 1474px,
      url(/static/images/trees10.svg) no-repeat top 504px left 1074px,
      url(/static/images/house.svg) no-repeat top 261px left 1195px,
      url(/static/images/trees9.svg) no-repeat top 88px left 1175px,
      url(/static/images/trees8.svg) no-repeat top left 9px;
    background-size: 42px 142px, 419px 437px, 529px 387px, 252px 429px, 864px 778px, 842px 519px,
      509px 564px;
    z-index: -100;
  }

  .post:nth-child(5):after {
    content: '';
    position: absolute;
    top: 90px;
    left: 50%;
    width: 120px;
    height: 133px;
    margin-top: 486px;
    margin-left: 554px;
    background: url(/static/images/red_light.png) no-repeat top left,
      url(/static/images/red_light.png) no-repeat top 22px left 50px;
    background-size: 70px 111px, 70px 111px;
    z-index: -100;
    animation: room-light 2s ease infinite;
  }
}

@media only screen and (max-width: 767px) {
  main {
    min-height: 0;
    transition: all 0.5s ease;
  }

  main:after {
    content: '';
    display: block;
    width: 110%;
    padding-top: 130%;
    margin-bottom: -25%;
    margin-left: -15px;
    background: url(/static/images/river.svg) no-repeat right 70% top 50%,
      url(/static/images/water.svg) no-repeat right 0 bottom 80%,
      url(/static/images/depth.svg) no-repeat right 0 bottom 0;
    background-size: 300%, 100%, 100%;
  }

  .popup main {
    opacity: 0.3;
  }

  .post div.col-xs-12 {
    float: none; /* For preventing .row ignoring col-xs-12 height */
    z-index: 10;
  }

  .post:nth-child(1):before {
    content: '';
    display: block;
    margin-top: -5%;
    margin-left: 2.5%;
    width: 95%;
    padding-top: 80%;
    margin-bottom: -5%;
    background: url(/static/images/accident.svg) no-repeat,
      url(/static/images/eighteen_plus.svg) no-repeat top 10% right 10%;
    background-size: 95%, 8.333333333333333%;
    z-index: -100;
  }

  .post:nth-child(1):after {
    content: '';
    position: absolute;
    margin-left: 67%;
    top: 0;
    margin-top: 41%;
    width: 23%;
    padding-top: 17.5%;
    background: url(/static/images/police_siren_flip.png) no-repeat top left;
    background-size: 100%;
    animation: police-siren 2s ease-in infinite;
  }

  .post:nth-child(2):before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 120%;
    margin: -12.5% 0 -30%;
    background: url(/static/images/cemetery.svg) no-repeat top left 30%;
    background-size: 150%;
    z-index: -100;
  }

  .post:nth-child(3):before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 150%;
    margin-bottom: -75%;
    background: url(/static/images/alien.svg) no-repeat 35% 0,
      url(/static/images/victim.svg) no-repeat 60% 30%,
      url(/static/images/alien_trace.svg) no-repeat 15% 60%;
    background-size: 58.6666666666667%, 26%, 151.666666666666667%;
    z-index: -100;
  }

  .post:nth-child(3):after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    margin-top: 15%;
    width: 100%;
    padding-top: 150%;
    background: url(/static/images/alien_light.png) no-repeat;
    background-size: 119.6666666666667%;
    animation: alien-light 3s ease-in infinite;
    z-index: -100;
  }

  .post:nth-child(4):before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 76.666666666666667%;
    background: url(/static/images/rite.svg) no-repeat right 135% top 0,
      url(/static/images/gates_to_hell.svg) no-repeat left 160% bottom 0;
    background-size: 75%, 63.333333333333333%;
    z-index: -100;
  }

  .post:nth-child(5):before {
    content: '';
    display: block;
    width: 100%;
    margin: -13% 0 -5%;
    padding-top: 105%;
    background: url(/static/images/house.svg) no-repeat right 300% top 0;
    background-size: 114%;
    z-index: -100;
  }

  .post:nth-child(5):after {
    content: '';
    position: absolute;
    top: 0;
    right: 4%;
    margin-top: 30%;
    width: 20%;
    padding-top: 20%;
    background: url(/static/images/red_light.png) no-repeat top left,
      url(/static/images/red_light.png) no-repeat top 50% left 56%;
    background-size: 44%, 44%;
    animation: room-light 3s ease infinite;
  }
}

@keyframes police-siren {
  0% {
    transform: rotate(0deg) scaleX(1) skewX(0);
    opacity: 1;
  }
  25% {
    transform: rotate(30deg) scaleX(0.75) skewX(15deg);
    opacity: 0.75;
  }
  50% {
    transform: rotate(0deg) scaleX(1.5) skewX(30deg);
    opacity: 0.5;
  }
  75% {
    transform: rotate(-30deg) scaleX(0.75) skewX(15deg);
    opacity: 0.75;
  }
  100% {
    transform: rotate(0deg) scaleX(1) skewX(0);
    opacity: 1;
  }
}

@keyframes alien-light {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

@keyframes room-light {
  0% {
    transform: scaleY(1) skewX(0);
    opacity: 1;
  }
  25% {
    transform: scaleY(0.75) skewX(10deg);
  }
  50% {
    transform: scaleY(1.5) skewX(20deg);
    opacity: 0.25;
  }
  75% {
    transform: scaleY(0.75) skewX(10deg);
  }
  100% {
    transform: scaleY(1) skewX(0);
    opacity: 1;
  }
}
