body.halloween {
  overflow-x: hidden;
}
body.halloween .all_docs_top_header {
  background: #f0f0f0;
  background-image: url(background_halloween.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.halloween .top_cover {
  background-color: transparent;
}

body.halloween.not-logged.scrolled .all_docs_top_header a.logo img {
  margin-top: -20px;
}

/*BATS*/
body.halloween #bat1,
body.halloween #bat2,
body.halloween #bat3 {
  height: 200px;
  background-color: blue;
  position: absolute;
  left: 0;
  top: 0;
}

/*1*/
body.halloween #bat1 {
  width: 70px;
  background: url(bat1.svg) left top no-repeat;
  left: 45px;
}
body.halloween.memberLoggedIn #bat1 {
  top: -50px;
}
body.halloween.memberLoggedOut #bat1 {
  animation: animation_bat1 7.5s infinite;
}
@keyframes animation_bat1 {
  0% {
    top: -40px;
  }
  35% {
    top: -90px;
  }
  70% {
    top: -64px;
  }
  85% {
    top: -52px;
  }
  100% {
    top: -40px;
  }
}
@media (max-width: 1180px) {
  body.halloween #bat1 {
    display: none;
  }
}

/*2*/
body.halloween #bat2 {
  width: 65px;
  background: url(bat2.svg) left top no-repeat;
  left: 145px;
}
body.halloween.memberLoggedOut #bat2 {
  animation: animation_bat2 7s infinite;
}
body.halloween.memberLoggedIn #bat2 {
  top: -30px;
}
@keyframes animation_bat2 {
  0% {
    top: -10px;
  }
  50% {
    top: -50px;
  }
  100% {
    top: -10px;
  }
}
@media (max-width: 1360px) {
  body.halloween #bat2 {
    display: none;
  }
}

/*3*/
body.halloween #bat3 {
  width: 50px;
  background: url(bat3.svg) left top no-repeat;
  left: 260px
}
body.halloween.memberLoggedOut #bat3 {
  animation: animation_bat3 8.5s infinite;
}
body.halloween.memberLoggedIn #bat3 {
  top: -20px;
}
@keyframes animation_bat3 {
  0% {
    top: -10px;
  }
  50% {
    top: -86px;
  }
  68% {
    top: -68px
  }
  100% {
    top: -10px;
  }
}
@media (max-width: 1580px) {
  body.halloween #bat3 {
    display: none;
  }
}


/*PUMPKINS*/

body.halloween #pumpkin1,
body.halloween #pumpkin2,
body.halloween #pumpkin3 {
  height: 200px;
  /*background-color: blue;*/
  position: absolute;
  left: 0;
  top: 0;
}

/*1*/
body.halloween #pumpkin1 {
  width: 76px;
  background: url(pumpkin1.svg) left top no-repeat;
  left: 5px;
}
body.halloween.memberLoggedIn #pumpkin1 {
  top: -5px;
}
body.halloween.memberLoggedOut #pumpkin1 {
  animation: animation_pumpkin1 6.5s infinite;
}
@keyframes animation_pumpkin1 {
  0% {
    top: -5px
  }
  15% {
    top: -20px
  }
  45% {
    top: 0px
  }
  75% {
    top: -12px
  }
  100% {
    top: -5px
  }
}
@media (max-width: 1090px) {
  body.halloween #pumpkin1 {
    display: none;
  }
}

/*2*/
body.halloween #pumpkin2 {
  width: 60px;
  background: url(pumpkin2.svg) left top no-repeat;
  left: 95px;
}
body.halloween.memberLoggedOut #pumpkin2 {
  animation: animation_pumpkin2 5.5s infinite;
}
body.halloween.memberLoggedIn #pumpkin2 {
  top: -25px;
}
@keyframes animation_pumpkin2 {
  0% {
    top: -15px
  }
  50% {
    top: -50px
  }
  100% {
    top: -15px
  }
}
@media (max-width: 1255px) {
  body.halloween #pumpkin2 {
    display: none;
  }
}

/*3*/
body.halloween #pumpkin3 {
  width: 76px;
  background: url(pumpkin3.svg) left top no-repeat;
  left: 195px
}
body.halloween.memberLoggedOut #pumpkin3 {
  animation: animation_pumpkin3 8.5s infinite;
}
body.halloween.memberLoggedIn #pumpkin3 {
  top: -4px;
}
@keyframes animation_pumpkin3 {
  0% {
    top: -6px
  }
  25% {
    top: -60px
  }
  50% {
    top: 0px
  }
  75% {
    top: -20px
  }
  100% {
    top: -6px
  }
}
@media (max-width: 1480px) {
  body.halloween #pumpkin3 {
    display: none;
  }
}


/*CASTLE*/
body.halloween #castle {
  height: 100px;
  width: 200px;
  background-image: url('spooky_castle.svg');
  background-position: right;
  background-repeat: no-repeat;
  position: absolute;
  right: 140px;
  top: -11px;
  transition: top 0.3s ease-in-out;
}

/*MOON*/
body.halloween #moon {
  width: 100px;
  height: 100px;
  background-image: url('moon.svg');
  position: absolute;
  right: 30px;
  top: -18px;
  transition: top 0.3s ease-in-out;
}

/*HILL*/

body.halloween #hill,
body.halloween #big_hill {
  background-repeat: no-repeat;
  position: absolute;
  right: -20px;
  top: -6px;
  transition: top 0.3s ease-in-out;
}
body.halloween #hill {
  width: 300px;
  height: 95px;
  background-image: url('hill_&_tree.svg');
}
body.halloween #big_hill {
  width: 450px;
  height: 125px;
  background-image: url('hill_left.svg');
  top: -36px;
  right: 20px;
}
body.halloween.memberLoggedIn #big_hill {
  display: none;
}


/*WITCH*/
body.halloween #witch {
  width: 50px;
  height: 50px;
  background-image: url('witch.svg');
  position: absolute;
  right: 50px;
  --nf-witch-top-start: 5px;
  --nf-witch-top-end: 20px;
}
body.halloween.memberLoggedIn #witch {
  top: 15px;
}
body.halloween #witch {
  animation: animation_witch 7s infinite;
}
@keyframes animation_witch {
  0% {
    top: var(--nf-witch-top-start);
    transform: rotate(-5deg);
  }
  15% {
    transform: rotate(10deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  45% {
    top: var(--nf-witch-top-end);
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    top: var(--nf-witch-top-start);
    transform: rotate(-5deg);
  }
}

/*RIGHT SIDE RESPONSIVITY*/
@media (max-width:1515px) {
  body.halloween #hill {
    display: none;
  }
  body.halloween #big_hill {
    background-image: url('hill_left_plain.svg');
    top: 22px;
    right: -130px;
  }
  body.halloween #castle {
    right: 0;
  }
  body.halloween #moon {
    right: 100px;
  }
  body.halloween #witch {
    right: 120px;
  }
}
@media (max-width:1355px) {
  body.halloween #castle {
    right: -50px;
  }
  body.halloween #big_hill {
    right: -180px;
  }
  body.halloween #moon {
    right: 60px;
  }
  body.halloween #witch {
    right: 85px;
  }
}
@media (max-width:1270px) {
  body.halloween #castle {
    display: none;
  }
  body.halloween #big_hill {
    display: none;
  }
  body.halloween #moon {
    right: -10px;
  }
  body.halloween #witch {
    right: 15px;
  }

}
@media (max-width:1125px) {
  body.halloween.memberLoggedIn #moon,
  body.halloween.memberLoggedIn #witch {
    display: none;
  }
  body.halloween.memberLoggedOut #moon {
    top: 0px;
  }
  body.halloween.memberLoggedOut #witch {
    animation: animation_witch_down 7s infinite;
  }

  @keyframes animation_witch_down {
    0% {
      top: 30px;
      transform: rotate(-5deg);
    }
    15% {
      transform: rotate(10deg);
    }
    30% {
      transform: rotate(-10deg);
    }
    45% {
      top: 45px;
      transform: rotate(10deg);
    }
    60% {
      transform: scale(1);
      transform: rotate(-5deg);
    }
    75% {
      transform: rotate(5deg);
    }
    100% {
      top: 30px;
      transform: rotate(-5deg);
    }
  }
}
@media (max-width:990px) {
  body.halloween #moon,
  body.halloween #witch,
  body.halloween #bat1,
  body.halloween #bat2,
  body.halloween #bat3,
  body.halloween #pumpkin1,
  body.halloween #pumpkin2,
  body.halloween #pumpkin3 {
    display: block;
  }
  body.halloween.memberLoggedIn #moon,
  body.halloween.memberLoggedOut #moon {
    right: 15px;
    top: -5px;
  }
  body.halloween.memberLoggedOut #witch {
    right: 40px;
    top: 0px;
    animation: animation_witch 7s infinite;
  }
  body.halloween.memberLoggedIn #witch {
    right: 40px;
    top: 15px;
  }
  body.halloween.memberLoggedIn #witch,
  body.halloween.memberLoggedIn #moon {
    display: block;
  }
}

/*SMALL SIZES RESPONSIVITY*/
@media (max-width:895px) {
  body.halloween #bat3 {
    display: none;
  }
}
@media (max-width:840px) {
  body.halloween #pumpkin3 {
    display: none;
  }
}
@media (max-width:730px) {
  body.halloween #bat2 {
    display: none;
  }
}
@media (max-width:615px) {
  body.halloween #pumpkin2 {
    display: none;
  }
}
@media (max-width:535px) {
  body.halloween #bat1 {
    display: none;
  }
}
@media (max-width:480px) {
  body.halloween.memberLoggedIn #moon,
  body.halloween.memberLoggedOut #moon {
    right: -12px;
  }
  body.halloween.memberLoggedIn #witch,
  body.halloween.memberLoggedOut #witch {
    right: 6px;
  }
}
@media (max-width:455px) {
  body.halloween #pumpkin1 {
    display: none;
  }
}
@media (max-width:420px) {
  body.halloween #moon,
  body.halloween #witch {
    display: none !important;
  }
}

body.halloween.not-logged.scrolled .all_docs_top_header #big_hill {
  top: -54px
}

body.halloween.not-logged.scrolled .all_docs_top_header #hill {
  top: -24px
}

body.halloween.not-logged.scrolled .all_docs_top_header #castle {
  top: -29px
}

body.halloween.not-logged.scrolled .all_docs_top_header #moon {
  top: -31px
}

body.halloween.not-logged.scrolled .all_docs_top_header #witch {
  --nf-witch-top-start: -5px;
  --nf-witch-top-end: -20px;
}
