html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}


.wrapper {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

main.wrapper {
  flex: 1;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #14181c;
  color: #abc;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  overflow-x: hidden;
}

body.bg-gradient {
  background: #14181c url(/img/gradient.png) 0 -1px repeat-x
}

a {
  color: inherit;
  text-decoration: none;
}
a.more { color: #678; }
a:hover { color: #40bcf4; }

nav {
  position: relative;
  z-index: 10;
}

nav:hover:after {
  opacity: 0.75;
}

nav:after {
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  opacity: 0.25;
  transition: opacity 0.25s ease-in;
  background-image: linear-gradient(180deg,#14181c 0,#14181cf1 16.56%,#14181ccc 30.85%,#14181c9b 43.77%,#14181c64 56.23%,#14181c33 69.15%,#14181c0e 83.44%,#14181c00);
}

nav ul {
  position: relative;
  z-index: 2;
  width: 950px;
  margin: 0 auto;
  padding: 20px 0;
  list-style-type: none;
  display: flex;
  justify-content: space-between;
}

nav li {
  color: white;
}

nav li svg {
  width: 16px;
  vertical-align: middle;
}

nav .brand a {
  text-transform: uppercase;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
}

body.page-show nav .brand a {
  display: inline-block;
  width: 230px;
  text-align: center;
}

nav li:hover, nav .brand a:hover {
  color: #40bcf4;
}

nav details.search summary {
  list-style: none;
  cursor: pointer;
}

nav details.search summary::-webkit-details-marker {
  display:none;
}

nav details[open].search aside {
  position: absolute;
  top: 50px;
  left: 5%;
  width: 90%;
  background: #1d242a;
  padding: 10px;
  z-index: 5;
}

nav .search input {
  background: transparent;
  color: white;
  width: calc(100% - 20px);
  margin: 0 10px;
  padding: 5px;
  border: 2px solid #abc;
}

nav .search input::-webkit-input-placeholder {
  color: lightgray;
}

nav .search input::-webkit-search-cancel-button {
  display: none;
}

nav .search-results {
  display: block;
  list-style-type: none;
  padding: 5px 10px 0;
}

nav .search-results li a {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
}

nav .search-results li:hover,
nav .search-results li.selected {
  background: #383e4a;
  color: #40bcf4;
}

nav .search-results span:first-of-type {
  font-weight: bold;
  min-width: 180px;
  display: inline-block;
}

.jump {
  position: fixed;
  display: block;
  top: 20px;
  width: 30px;
  height: 30px;
  z-index: 0;
  text-align: center;
  margin-left: calc(950px - 30px);
  color: #abc;
  border-radius: 50%;
  border: 1px solid #456;
  padding-top: 3px;
}

footer {
  width: 950px;
  height: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin: 1rem auto;
  border-top: 1px solid #456;
}

footer a { text-decoration: underline; }

[data-tooltip] {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

[data-tooltip]:before,
[data-tooltip]:after {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}


[data-tooltip]:before {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  margin-left: -70px;
  padding: 7px;
  width: 140px;
  border-radius: 4px;
  background-color: #456;
  color: white;
  content: attr(data-tooltip);
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  font-size: 0.8rem;

  
}

[data-tooltip]:after {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  margin-left: -5px;
  border-top: 5px solid #456;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: '';
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  visibility: visible;
  opacity: 1;
}

.row .show-tile {
  margin-left: 10px;
  margin-top: 10px;
}

.row .show-tile, .row .show-tile img, .row .show-tile span {
  width: 150px;
  height: 225px;
}

.show-tile[data-tooltip]:before,
.show-tile[data-tooltip]:after {
  transition: opacity 0.1s ease-in-out;
  transition-delay: 0.6s;
}

.show-tile {
  display: block;
  border-radius: 4px;
  position: relative;
}

.show-tile, .show-tile img, .show-tile span {
  width: 230px;
  height: 345px;
}

.show-tile:hover .overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid #00e054;
  transition: border-width 0.1s linear;
  border-radius: 4px;
}

.show-tile img, .show-tile span {
  border-radius: 4px;
  border: 1px solid #456;
}

.show-tile span {
  padding: 30% 10px 0;
  text-align: center;
  display: block;
}

.spoiler {
  position: relative;
}

.spoiler .spoiler-content {
  filter: blur(12px);
  transition: filter 0.2s ease;
  margin-bottom: 2rem;
}

.spoiler:hover .spoiler-content {
  filter: blur(0);
  transition: filter 0.7s cubic-bezier(.6,-0.28,.74,.05)
}

.spoiler:hover .spoiler-warning {
  opacity: 0;
}

.spoiler-warning {
  transition: opacity 0.5s ease;
  padding-top: 20px;
  content: 'SPOILERS!';
  text-align: center;
  color: white;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
  position: absolute;
  bottom: calc(50% - 1rem);
  left: 0;
  right: 0;
}

@media screen and (max-width: 900px) {

  nav ul {
    width: 90%;
  }

  nav details[open].search aside {
    left: 0;
    right: 0;
    width: auto;
  }

  [data-tooltip]:after {
    left: 10%;
  }

  [data-tooltip]:before {
    width: auto;
  }

  footer {
    width: 95%;
    flex-direction: column;
  }

}