html {
  font-family: "aileron";
  font-weight: 700;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html,
body {
  /* height: 100%; */
  min-height: 100% !important;
}

header {
  top: 0;
  /* height: calc(6.5vw + 1px); */
  position: sticky;
  background-color: white;
  border-bottom: 1px solid #ffdede;
  z-index: 10;
}

.beastlogo {
  position: absolute;
  z-index: 1;
  background-color: #ff0000;
  padding: 0.25vw 0.5vw;
  width: auto;
  height: 2.5vw;
  object-fit: cover;
}

.marquee3k {
  width: 100%;
  overflow: hidden;
  letter-spacing: 0.1vw;
}

header .marquee3k {
  border-bottom: 1px solid #ffdede;
}

.marquee3k h1 {
  line-height: 3vw;
  width: max-content;
  font-size: 2.5vw;
  padding: 0;
  padding-right: 7px;
}

.marquee3k h1 a {
  text-transform: uppercase;
  transition: filter 0.3s;
}

.marqueelogo {
  margin-bottom: -0.4vw;
  height: 2.5vw;
}

.marquee3k svg {
  margin: auto;
  width: 6vw;
  height: 1.5vw;
}

.menu {
  width: 100vw;
}

.menu,
.sub-menu {
  display: flex;
  justify-content: space-evenly;
  height: 2.5vw;
}

.sub-menu .second-child {
  display: block !important;
  width: auto;
  background-color: #000;
  border-bottom: transparent;
  position: relative;
  padding: 0;
}

.menu-item:hover {
  background-color: #000;
}

.menu-item:hover > a {
  color: #fff;
}

.sub-menu > li:hover > a {
  color: #000;
  background-color: #fff;
}

.sub-menu {
  width: 80vw;
  padding-right: 10vw;
  padding-left: 10vw;
  display: none;
  position: absolute;
  left: 0;
  border-top: 1px solid #ffdede;
  border-bottom: 1px solid #ffdede;
  background-color: #ff0000;
  z-index: 1;
}

.menu > li,
.sub-menu > li {
  text-transform: uppercase;
  /* float: left; */
  text-align: center;
  font-size: 1vw;
  line-height: 2.5vw;
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
}
.sub-menu > li {
  font-size: 1vw;
  width: fit-content;
  margin: auto;
}
.second-child > li {
  background-color: #000;
  width: 100%;
}

.menu > li > a,
.sub-menu > li > a {
  /* line-height: 2.5vw;
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  height: -webkit-fill-available;
  height: -moz-available;
  height: fill-available; */
  display: block;
}
/* .menu > li > a {
    padding-left: 3vw;
    padding-right: 3vw;
  } */
ul .wpml-ls-menu-item a {
  justify-content: center;
}
.sub-menu > li > a {
  padding-left: 1vw;
  padding-right: 1vw;
  color: #fff;
  font-weight: 600;
  font-size: 0.8vw;
}

.sub-menu > li > a:active {
  background-color: transparent;
}

.has-children-closest {
  background-color: #000 !important;
  color: #fff !important;
}

.menu-item-has-children > a {
  cursor: pointer;
}

.icon {
  display: none;
}

.wpml-ls-slot-3,
.wpml-ls-slot-3 a,
.wpml-ls-slot-3 a:visited {
  background-color: #000000 !important;
  color: #ffffff !important;
}

main {
  min-height: calc(100vh - 8.5vw - 2px);
}

#pgrid {
  background-size: 0;
  height: 100%;
  overflow: auto;
}

#grid {
  background-size: calc(100vw / 3) calc(56.25vw / 3);
  background-image: linear-gradient(to right, #ffdede 1px, transparent 1px),
    linear-gradient(to bottom, #ffdede 1px, transparent 1px);
  /* height: 100%; */
  overflow: scroll;
  /* margin-top: calc(6.5vw + 1px); */
  margin-top: -1px;
}

/* SCREENSAVER */

#screensaver {
  z-index: 10;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  /* background-color: rgb(255, 0, 0); */
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  animation: scale 30s infinite step-end;
}

#screensaver-image {
  max-width: 100%;
  max-height: 100%;
  animation: none;
  animation: opacity-glitch 30s infinite;
  filter: invert(14%) sepia(83%) saturate(7213%) hue-rotate(359deg)
    brightness(100%) contrast(120%);
}

@keyframes opacity-glitch {
  0% {
    opacity: 1;
  }
  2% {
    opacity: 0.2;
    transition: opacity 0.1s ease-in;
  }
  5% {
    opacity: 0.9;
    transition: none;
  }
  7% {
    opacity: 0.4;
    transition: opacity 0.2s ease-out;
  }
  11% {
    opacity: 1;
    transition: none;
  }
  14% {
    opacity: 0;
  }
  19% {
    opacity: 0.7;
    transition: opacity 0.1s ease-in;
  }
  22% {
    opacity: 0.3;
  }
  27% {
    opacity: 1;
  }
  29% {
    opacity: 0.1;
    transition: none;
  }
  35% {
    opacity: 0.6;
    transition: opacity 0.3s ease-in;
  }
  38% {
    opacity: 1;
    transition: none;
  }
  41% {
    opacity: 0.25;
    transition: none;
  }
  47% {
    opacity: 0.95;
    transition: opacity 0.2s ease-in;
  }
  53% {
    opacity: 0.1;
    transition: none;
  }
  57% {
    opacity: 1;
    transition: opacity 0.3s ease-out;
  }
  61% {
    opacity: 0.6;
    transition: none;
  }
  68% {
    opacity: 1;
    transition: opacity 0.2s ease-in;
  }
  71% {
    opacity: 0.3;
  }
  75% {
    opacity: 0.75;
  }
  79% {
    opacity: 0;
    transition: none;
  }
  84% {
    opacity: 1;
    transition: opacity 0.1s ease-in;
  }
  89% {
    opacity: 0.4;
  }
  93% {
    opacity: 1;
    transition: opacity 0.2s ease-out;
  }
  97% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
  }
}
@keyframes scale {
  0% {
    opacity: 1;
  }
  5% {
    scale: 1.1;
  }
  8% {
    scale: 1;
  }
  19% {
    scale: 1.02;
  }
  21% {
    scale: 1;
  }
  35% {
    scale: 1.05;
  }
  38% {
    scale: 1;
  }
  75% {
    scale: 1.91;
  }
  77% {
    scale: 1;
  }
  100% {
    scale: 1;
  }
}

#screensaver.visible #screensaver-image {
  transform: translateX(0); /* Image slides in to its natural position */
}

@keyframes slow-rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

h1 {
  font-size: 3vw;
  align-content: center;
  text-transform: uppercase;
  width: calc(194vw / 3);
  padding: 3vw;
}

h2 {
  font-size: 2.2vw;
  color: #ffffff;
  background-color: #000000;
  align-content: center;
  padding: 1vw;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  width: calc(194vw / 3);
}

h3 {
  font-weight: 700;
  font-size: 2vw;
  padding: 3vw;
  padding-top: 0;
  text-transform: uppercase;
  line-height: 1.22em;
}

h4 {
  /* font-family: "AkrobatBold", sans-serif; */
  font-weight: 700;
  text-transform: uppercase;
}

p {
  font-weight: 400;
}

p,
h4 {
  font-size: 1vw;
  padding-bottom: 2vw;
  padding-left: 3vw;
  padding-right: 3vw;
  line-height: 1.5;
  max-width: calc(100vw / 3 - 6vw);
  /* -webkit-column-break-inside: avoid; */
}

strong {
  font-weight: 600;
  line-height: normal;
}

article {
  width: calc(200vw / 3);
  left: 0;
}

footer {
  width: 100vw;
  float: left;
  border-top: 1px solid #dddddd;
  position: absolute;
}

::-webkit-scrollbar {
  display: none;
}

.post p,
.post h4,
#post p,
#post h4 {
  font-size: 1.5vw;
  padding-bottom: 2vw;
  padding-left: 6vw;
  padding-right: 6vw;
  max-width: calc(200vw / 3 - 12vw);
}

.post h3,
#post h3 {
  padding: 6vw;
  padding-top: 0;
}

#cookie-notice,
.cky-banner-bottom,
.cky-classic-bottom {
  background-color: none;
  width: calc(100% - 20px) !important;
  min-width: auto !important;
  margin: auto;
  left: 10px !important;
  bottom: 10px !important;
}

.cky-consent-container .cky-consent-bar {
  border-radius: 14px;
  border: none;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.7) !important;
}

.cky-consent-bar p,
.cky-modal p {
  max-width: none;
  padding: 0;
}

.cookies {
  color: #fff !important;
  outline: 1px solid #fff;
  padding: 0 5px 2px;
  line-height: normal;
}

.cky-btn-revisit-wrapper {
  display: none !important;
}

.post-password-form {
  padding-top: 8vw;
}

/* filters */
.post-filter,
.event-filter {
  width: 100%;
  display: flex;
  column-gap: 3vw;
  height: calc(56.25vw / 3);
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.post-filter > *,
.event-filter > * {
  display: inline-block;
  padding: 5px;
  line-height: 100%;
  font-size: 1vw;
  font-weight: 600;
  color: #000;
  box-shadow: 0px 0px 2px #ddd;
  border: 1px solid #c4c4c4;
}

/*=========================MOBILE======================*/

@media screen and (max-width: 700px) {
  html {
    height: 100%;
  }
  body {
    height: auto;
  }
  .body-open {
    height: 100%;
  }
  #grid {
    background-size: 0;
  }

  #mobgrid {
    position: relative;
    background-size: 66vw 20.875vw;
    background-image: linear-gradient(to right, #e7e7e7 1px, transparent 1px),
      linear-gradient(to bottom, #e7e7e7 1px, transparent 1px);
    height: 100%;
    overflow: auto;
    width: 100vw;
  }

  #pgrid {
    background-size: calc(50vw) calc(28.125vw);
    background-image: linear-gradient(to right, #e7e7e7 1px, transparent 1px),
      linear-gradient(to bottom, #e7e7e7 1px, transparent 1px);
    display: block;
    overflow: hidden;
    /*    transform: translate(0px, -1px);*/
  }

  header {
    height: auto;
    border-bottom: none;
  }

  .marquee3k__copy a {
    font-size: 6vw;
    -webkit-text-stroke: 0.25vw;
    letter-spacing: 0.3vw;
    line-height: 8vw;
  }

  .marquee3k h1 {
    padding: 0;
  }

  .marquee3k h1 a {
    padding-left: 7px;
  }

  .marqueelogo {
    height: 5.5vw;
    margin-bottom: -0.8vw;
  }

  header > div {
    height: auto;
    padding-left: 0;
    width: 100vw !important;
  }

  .marquee3k svg {
    margin: 0;
    width: 16vw;
    height: 4vw;
  }

  .icon {
    display: block;
    border-bottom: 1px solid #dddddd;
    height: 8vw;
    position: relative;
  }

  header nav a:hover {
    filter: none !important;
  }

  .mob-menu,
  .close-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 4vw;
    padding-left: 2vw;
  }

  .close-menu {
    display: none;
  }

  .beastlogo {
    display: none;
  }

  .header-open {
    height: calc(100% - 8vw - 1px);
  }

  .nav-open {
    height: calc(100% - 8vw - 1px);
  }

  #menu {
    display: none;
    height: calc(100% - 8vw);
    background-color: #000;
  }

  .menu-header-container {
    top: 50%;
    position: relative;
    transform: translateY(-50%);
  }

  .menu {
    display: block;
    height: auto;
  }

  .menu > li,
  .menu > li > a {
    font-size: 4vw;
    line-height: 7vw;
    position: relative;
    height: auto;
  }

  .sub-menu {
    /* -ms-transform: translateY(-50%);
    transform: translateY(-50%); */
    position: relative;
    display: none;
    border: none;
    height: auto;
    width: auto;
  }

  .sub-menu .second-child {
    background-color: transparent;

  }

  .sub-menu > li > a {
    font-size: 3vw;
    line-height: 7vw;
  }

  .sub-menu > .second-child > a {
    font-weight: 300;
    font-size: 2vw;
  }

  .menu > li > a,
  .sub-menu > li > a {
    color: #fff;
  }

  a:active {
    background-color: #fff;
  }

  a:hover {
    filter: none;
    cursor: pointer !important;
  }
  h1 {
    font-size: 6vw;
    padding: 11vw;
    width: 84vw;
  }

  h2 {
    font-size: 4.6vw;
    line-height: 6vw;
    padding: 3vw;
    width: 94vw;
  }

  h3,
  .post h3,
  #post h3 {
    /* font-size: 4.2vw; retirei por causa do h3 no about us  */
    font-size: 6vw;
    padding: 8vw;
  }

  .Films > #post > article > h3,
  .Filmes > #post > article > h3 {
    padding-top: 8vw;
  }

  p,
  h4,
  .post p,
  .post h4,
  #post p,
  #post h4 {
    font-size: 4vw;
    width: 84vw !important;
    margin: auto;
    padding-bottom: 4vw;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  .cky-footer-wrapper,
  .cky-preference-header {
    width: calc(100% - 20px) !important;
  }
  .cky-footer-wrapper {
    bottom: 10px !important;
  }
  .cky-preference {
    max-height: calc(100vh - 20px) !important;
  }

  /* filters */

  .post-filter,
  .event-filter {
    height: auto;
    flex-wrap: wrap;
    padding: 20px 0;
    row-gap: 3vw;
    width: 84vw;
    margin: auto;
  }
  #film-filter,
  .event-filter {
    height: calc(41.75vw - 40px);
  }
  .post-filter > *,
  .event-filter > * {
    font-size: 3vw;
  }
  .post-filter input,
  .event-filter input {
    width: 100%;
  }
}
