.splashscreen-directive {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding-top: calc(var(--navbar-top-height) + env(safe-area-inset-top, 0));
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: calc(var(--navbar-bottom-height) + env(safe-area-inset-bottom, 0));
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999998;
  opacity: 1;
  user-select: none;
}

.splashscreen-directive.fade-in {
  animation: fadeIn 420ms ease;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.splashscreen-directive.fade-out {
  animation: fadeOut 1s ease;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.splashscreen-directive .splashscreen-media-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.splashscreen-directive .splashscreen-media-content .splashscreen-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.splashscreen-directive .splashscreen-media-content .splashscreen-media-wrapper video {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* visibility: hidden; */
  transition: opacity 420ms ease;
  opacity: 0;
}

.splashscreen-directive .splashscreen-media-content .splashscreen-media-wrapper video.is-visible {
  /* visibility: visible; */
  opacity: 1;
}

.splashscreen-directive .splashscreen-title-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  max-width: var(--max-content-width);
  position: absolute;
  bottom: env(safe-area-inset-bottom, 0);
}

.splashscreen-directive.fade-out .splashscreen-title-content {
  display: none;
}

.splashscreen-directive .splashscreen-title-content h1 {
  opacity: 0;
  animation: fadeIn 1s ease 1s;
  animation-fill-mode: forwards; 
  color: #FFF;
  text-align: center;
}

.splashscreen-directive .splashscreen-title-content h2 {
  opacity: 0;
  animation: fadeIn 1s ease 2s;
  animation-fill-mode: forwards;  
  color: #FFF;
  text-align: center;
}

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

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