
@property --bg_rotation {
  syntax: '<number>'; /* <- defined as type number for the transition to work */
  initial-value: 0;
  inherits: false;
}

#splash{
  position: fixed;
  inset:0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #e0292c;
  background-image: linear-gradient(calc(1deg * var( --bg_rotation)), #e0292c, #f9bb39);
  animation: animatedBg 15s linear infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color:white;
  z-index: 9999;

}

#splash video{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;


}

#splash video.loaded{
  animation: fadeIn 1s ease-in-out forwards;
}

#splash .logos{
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  margin-top: 20vh;
  animation: slideIn 2s linear forwards infinite;
  filter: brightness(0) saturate(100%) invert(58%) sepia(99%) saturate(5%) hue-rotate(15deg) brightness(106%) contrast(91%);
}
#splash .logos>*{
  max-height: 3em;
}
@keyframes slideIn {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-34%);
  }

}

#splash .annaLogo, #splash .vabw{
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(2rem);
  animation: showMainLogo .5s ease-in-out forwards;
  animation-delay:.2s;
}
#splash .vabw{
  animation-delay: .5s;
}
@keyframes showMainLogo {
  to {
    opacity: 1;
    transform: translateY(0px);
  }

}
#splash .annaLogo img, #splash .vabw img{
  max-width: 20rem;
  width: 65%;
  margin-bottom: 1rem;

}
#splash .vabw img{
  max-width: 18rem;
  width: 60%;

}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#splash.hidden{
  opacity:0;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}
@keyframes animatedBg {
  0%{--bg_rotation:20;}
  100%{--bg_rotation:380;}
}