#toons {
  padding-top: 2rem;
}

#toons_container {
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-color: #5B8EC5;
}

#toons.loading #toons_container {
  padding-top: 72%;
}

#toons.loading #toons_container .row {
  display: none;
}

#toons #loader {
  display: none;
}

#toons.loading #loader {
  position: absolute;
  display: block;
  top: 40%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  color: white;
}

#tv {
  max-width: calc(100% + 25px);
  height: auto;
  margin-top: 20px;
  margin-left: -25px;
  position: relative;
  z-index: 10;
}

#tv_container {
  position: relative;
}

#preview {
  position: absolute;
  top: 6.25%;
  left: 6.5%;
  right: 11%;
  bottom: 44%;
  background-image: url('/assets/toons/gifs/static.gif');
  z-index: 5;
}

#preview.prepping img {
  opacity: 0.01;
}

#preview img {
  max-width: 100%;
  height: auto;
}

#remote {
  background-image: url('/assets/toons/remote.png');
  position: absolute;
  top: 60%;
  bottom: 0;
  right: -28%;
  width: 536px;
  height: auto;
  z-index: 20;
  overflow: visible;
}

#remote #remote_buttons {
  transform: skew(20deg);
  padding-top: 4%;
  padding-left: 16%;
  padding-right: 15%;
  height: 100%;
  align-content: baseline;
  justify-content: center;
}

#remote .remote-button {
  margin-bottom: 0.5rem;
  max-width: 110px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#remote .remote-button a:hover {
  text-decoration: none;
}

#remote .remote-button a:hover .remote-button-button {
  filter: brightness(150%);
}

#remote .remote-button a:active, #remote .remote-button a:focus {
  outline: 0;
  border: none;
  -moz-outline-style: none;
}

#remote .remote-button-title {
  display: block;
  user-select: none;
  pointer-events: none;
  color: white;
  font-weight: normal;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

#remote .remote-button-button {
  transform: skew(-20deg);
  max-width: 100%;
  height: auto;
}

#remote .remote-button a:hover .remote-button-button {
  filter: brightness(175%);
}

#remote .remote-button a:active .remote-button-button {
  filter: brightness(75%);
}

#guide_container {
  position: relative;
  overflow: visible;
}

#guide_background {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  padding-right: 20px;
  user-select: none;
}

#guide_content {
  position: absolute;
  top: 5%;
  bottom: 10%;
  left: 17%;
  right: 12%;
  transform: rotate(-2deg);
}

#toons_header {
  display: inline-block;
  font-family: ubuntu, sans-serif;
  font-size: 20px;
  color: white;
  text-transform: uppercase;
  background: black;
  font-weight: bold;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 30px;
  margin-bottom: 0;
}

#toons_list {
  border-top: 3px solid black;
  list-style: none;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 0;
  margin-top: -1px;
  margin-bottom: 1rem;
  height: 80%;
}

#toons_list:not(.showing-new) .toon-category {
  display: none;
}

#toons_list li {
  margin-top: 1rem;
  position: relative;
}

#toons_list li .toon-guide-icon {
  border: 1px solid black;
  border-radius: 5px;
  font-size: 12px;
  font-weight: normal;
  padding: 0 1px;
  pointer-events: none;
  user-select: none;
  display: inline-block;
  min-width: 26px;
  text-align: center;
}

#toons_list li .toon-guide-icon.dark {
  color: #F5F5F5;
  background: black;
}

#toons_list li button {
  text-align: left;
  cursor: pointer;
  color: black;
  background: none;
  border: none;
  padding: 0;
  font-weight: bold;
  max-width: calc(100% - 90px);
}

#toons_list li .toon-buttons {
  width: 75px;
  padding-left: 15px;
  display: inline-block;
  user-select: none;
  position: absolute;
  top: 0;
}

.toon-icon {
  height: 18px;
  width: auto;
  user-select: none;
}

#toons_list .toon-description {
  color: black;
  line-height: 1.2;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  padding: 5px 15px;
  margin: 0.5rem 0 1rem;
}

#toons_list .toon-description.collapsing {
  -webkit-transition: none;
  transition: none;
  display: none;
}

#toons_list .toon-description p {
  margin-bottom: 0;
}

#toons_list .toon-description .toon-time {
  text-align: right;
  display: block;
  width: 100%;
  font-style: italic;
  margin-bottom: 5px;
}

#toons_infobox {
  opacity: 0.5;
  line-height: 1.2;
}

#toons_infobox .toon-info:last-child {
  padding-left: 0.5rem;
}

#toons_infobox .toon-icon-box {
  padding-top: 0.5rem;
  padding-right: 0.5rem;
}

.lazyload, .lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
}

.guide-cover {
  position: absolute;
  right: -100%;
  top: 0;
  max-width: 90%;
  height: auto;
  cursor: pointer;
  user-select: none;
}

.guide-cover.show {
  right: 0;
  left: 0;
  margin: 0 auto;
}

#guide_coverzone {
  position: absolute;
  top: 5%;
  bottom: 20%;
  left: 2%;
  width: 10%;
  cursor: pointer;
}

#joy {
  position: absolute;
  bottom: 0%;
  left: 11%;
  height: 20%;
  width: 7%;
  cursor: pointer;
  z-index: 20;
}

/* Breakpoints! */

@media (max-width: 1199px) {
  #guide_content {
    top: 5.5%;
  }
  #toons_list {
    height: 75%;
  }
  #remote .remote-button {
    max-width: 110px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 991px) {
  #guide_content {
    top: 7%;
  }
  #toons_list {
    height: 70%;
  }
  #toons_infobox {
    font-size: 11px;
  }
  #toons_infobox .toon-icon {
    height: 14px;
  }
  #toons_infobox .toon-icon-box {
    padding-right: 2px;
  }
  #remote {
    width: 402px;
    background-size: 402px;
  }
  #remote .remote-button {
    max-width: 90px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 0;
  }
  #preview {
    top: 6.75%;
    left: 4%;
    right: 10%;
    bottom: 44%;
  }
}

@media (max-width: 767px) {
  #remote {
    right: 0;
    background-size: 404px;
  }
  #remote #remote_buttons {
    padding-left: 20%;
    padding-right: 12%;
  }
  #remote .remote-button {
    max-width: 90px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575px) {
  #remote {
    top: auto;
    bottom: 0;
    width: 268px;
    background-size: 268px;
    height: 160px;
  }
  #remote .remote-button {
    max-width: 60px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }
}
