.dotcom {
  position: absolute;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  animation: dotcom 0.2s steps(4, start) forwards;
  z-index: 50;
}
.bigdotcom {
  z-index: 60 !important;
}
.fade-out {
  animation: fadeOut 0.2s steps(4, start) forwards !important;
}

@keyframes dotcom {
  0% { transform: scale(0.6) rotate(var(--tilt)); }
  75% { transform: scale(1.2) rotate(var(--tilt)); }
  100% { transform: scale(1) rotate(var(--tilt)); }
}

#home {
  padding-top: 2rem;
}

#home_container {
  border-radius: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-size: 100%;
  background-repeat: no-repeat;
}

#home.day #home_container {
  background-image: url('/assets/home/bg_day.png');
  background-color: #2FBF00;
}

#home.dawn #home_container {
  background-image: url('/assets/home/bg_dawn.png');
  background-color: #269D00;
}

#home.sunset #home_container {
  background-image: url('/assets/home/bg_sunset.png');
  background-color: #1D7800;
}

#home.night #home_container {
  background-image: url('/assets/home/bg_night.png');
  background-color: #1B3798;
}

#home_clouds {
  position: absolute;
  top: 2%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 1;
  background-repeat: repeat-x;
  background-position: 0 0;
  animation: clouds 300s steps(3600) infinite;
  opacity: 0.9;
}

#home.day #home_clouds {
  background-image: url("/assets/home/clouds_day.png")
}

#home.dawn #home_clouds {
  background-image: url('/assets/home/clouds_dawn.png');
}

#home.sunset #home_clouds {
  background-image: url('/assets/home/clouds_sunset.png');
}

@keyframes clouds {
  0% { background-position-x: -750px; }
  100% { background-position-x: 1350px; }
}

.special-guest, .guest-talkin {
  position: absolute;
  left: -100%;
  top: 0%;
  max-width: 40%;
  height: auto;
  z-index: 20;
  transform-origin: bottom center;
  pointer-events: none;
  user-select: none;
}

.leanin {
  animation: leanIn 0.5s steps(6);
  animation-fill-mode: forwards;
}

@keyframes leanIn {
  0% { left: -40%; transform: rotate(0deg); }
  100% { left: -35%; transform: rotate(35deg); }
}

.leanin.has-voice {
  cursor: pointer;
  pointer-events: all;
}

.leanout:not(.logo) {
  animation: leanOut 0.5s steps(6);
  animation-fill-mode: forwards;
}

@keyframes leanOut {
  0% { left: -35%; transform: rotate(35deg); }
  100% { left: -40%; transform: rotate(0deg); }
}

#homsar.leanin {
  animation: leanInHorizontal 0.5s steps(6);
  animation-fill-mode: forwards;
}

@keyframes leanInHorizontal {
  0% { top: -35%; left: -50%; transform: rotate(90deg); }
  100% { top: -35%; left: -38%; transform: rotate(90deg); }
}

#homsar.leanout {
  animation: leanOutHorizontal 0.5s steps(6);
  animation-fill-mode: forwards;
}

@keyframes leanOutHorizontal {
  0% { top: -35%; left: -38%; transform: rotate(90deg); }
  100% { top: -35%; left: -50%; transform: rotate(90deg); }
}

#home h1 {
  font-size: 48px;
  color: white;
  text-align: center;
  position: absolute;
  top: 40px;
  width: 100%;
  z-index: 20;
}

#home h1 .logo {
  max-width: 100%;
  height: auto;
  padding: 0 2rem;
  cursor: pointer;
}

#home .logo-red {
  display: none;
}

#home.day .logo-white {
  display: none;
}

#home.day .logo-red {
  display: inline-block;
}

#home.sunset #home_clouds {
  background-image: url('/assets/home/clouds_sunset.png');
}

#home.night #home_clouds {
  background: none;
}

#home_body {
  position: relative;
  width: calc(100% + 15px);
  padding-top: 140px;
  padding-left: 15px;
  padding-bottom: 20px;
  z-index: 10;
}

#home #characters {
  text-align: center;
}

#home #characters #main_characters {
  position: relative;
  max-width: 100%;
  padding-left: 5rem;
  padding-top: 2rem;
  user-select: none;
}

#home #characters #main_characters img {
  max-width: 100%;
}

#home #characters #main_characters .main-frame {
  z-index: 1;
}

#home #characters #main_characters .frame {
  position: absolute;
  width: calc(100% - 5rem);
  height: calc(100% - 2rem);
  right: 0;
  bottom: 0;
  object-fit: contain;
  opacity: 0.001;
  z-index: 2;
}

#home #characters #main_characters .frame.active {
  opacity: 1;
}

#home #come_on_in {
  position: absolute;
  bottom: 20%;
  left: 0;
  z-index: 10;
}

#home #come_on_in img {
  max-width: 200px;
}  

#home #come_on_in_hover {
  opacity: 0.01;
}

#home #come_on_in:hover #come_on_in_normal {
  display: none;
}

#home #come_on_in:hover #come_on_in_hover {
  opacity: 1;
}

#home #content {
  text-align: center;
}

#home #content .content-box {
  background-color: rgba(41, 41, 41, 0.5);
  width: 95%;
  height: 210px;
  border-radius: 20px;
  position: relative;
}

#home #content .content-box:not(:first-child) {
  margin-top: 25px;
}

#home #content .content-box h2 {
  position: absolute;
  width: 200px;
  height: 22px;
  left: 0;
  right: 0;
  top: -22px;
  font-size: 14px;
  color: white;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 0.25rem;
  margin: 0 auto;
  line-height: 1;
  background-color: rgba(41, 41, 41, 0.75);
  pointer-events: none;
  z-index: 10;
  animation: none;
  opacity: 0;
}

#home #content .content-box:hover h2 {
  animation: fadeIn 0.17s steps(2);
  animation-fill-mode: forwards;
  opacity: 0.9;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

#home #content .content-box .content-container {
  display: block;
  overflow-y: scroll;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#home #content .content-box .content-container::-webkit-scrollbar {
  display: none;
}

#home #content .content-slider, #home #content .slick-list, #home #content .slick-track {
  height: 100%;
  border-radius: 20px;
}

#home #content .content-slider .slick-dots {
  bottom: 6px;
}

.slick-dots li {
  margin: 0 2px !important;
}

.slick-dots li button::before {
  color: white !important;
  font-size: 16px !important;
}

.slick-dots li.slick-active button::before {
  color: white !important;
}

.slick-dotted.slick-slider {
  margin: 0 !important;
}

#home #content .content-slide {
  position: relative;
  height: 100%;
  display: block;
  border-radius: 20px;

}

.slick-slider * {
  transition-timing-function: steps(6) !important;
}

#home #content .content-slide a {
  color: white;
}

#home #content .content-slide a:hover {
  text-decoration: none;
}

#home #content .content-slide h3 {
  width: 100%;
  padding: 0 1rem;
  position: absolute;
  top: 5px;
  color: yellow;
  font-size: 18px;
  text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
  z-index: 10;
}

#home #content .content-slide p {
  width: 100%;
  position: absolute;
  bottom: 10px;
  font-size: 14px;
  text-shadow:
   -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
  z-index: 10;
}

#home #content .content-slide img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  border-radius: 20px;
}

#home #content .content-slide img.logo {
  padding: 20%;
  background: rgb(71,71,71);
  background: radial-gradient(circle, rgba(71,71,71,1) 0%, rgba(0,0,0,1) 100%);
  object-fit: contain;
  border-radius: 20px;
}

/* Breakpoints! */

@media (max-width: 1199px) {
  #home_clouds {
    background-size: 1200px;
  }
}

@media (max-width: 991px) {
  #home_clouds {
    background-size: 1000px;
  }
}

@media (max-width: 767px) {
  #home h1 {
    top: 10px;
  }
  #home_clouds {
    top: 30px;
    background-size: 800px;
  }
  #home_body {
    padding-top: 70px;
  }
  #home_container {
    padding-top: 0;
    padding-bottom: 15px;
    background-size: 100%;
    background-repeat: no-repeat;
  }
  #home #characters #main_characters {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 60%;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 20px;
  }
  #home #characters #main_characters .frame {
    width: 100%;
    height: calc(100% - 20px);
    top: 0;
  }
  #home #content .content-slide img.logo {
    padding: 30px;
  }
  #home #content .content-box {
    width: 100%;
  }
  .special-guest, .guest-talkin {
    top: 5%;
  }
  @keyframes leanInHorizontal {
    0% { top: -10%; left: -50%; transform: rotate(90deg); }
    100% { top: -10%; left: -38%; transform: rotate(90deg); }
  }
  @keyframes leanOutHorizontal {
    0% { top: -10%; left: -38%; transform: rotate(90deg); }
    100% { top: -10%; left: -50%; transform: rotate(90deg); }
  }
  #home #content .content-box h2 {
    opacity: 0.9;
    animation: none !important;
  }
  #home #come_on_in img {
    max-width: 120px;
  }
}

@media (max-width: 575px) {
  #home h1 {
    top: 5px;
  }
  #home h1 .logo {
    padding: 0 1rem;
  }
  #home_clouds {
    top: 20px;
    background-size: 600px;
  }
  #home #come_on_in {
    bottom: 2%;
  }
  #home #come_on_in img {
    max-width: 100px;
  }
}
