div.splash
{
   width: 100%;
   height: 100%;
   background: var(--html-background-color-dark);
   font-family: serif;

   opacity: 1;
   transition: opacity 0.5s ease;
   overflow: hidden;
   /*
   background: 
      url("../../../interface/images/clouds-double.png"),
      linear-gradient(
      180deg,
      deepskyblue,
      hsl(200, 25%, 11%) 33%,
      hsl(200, 25%, 15%));

    background-size: 508%;
    background-repeat: no-repeat;
    background-position: -8em -5em;
   */
   
   position: relative;
}
div.splash.fade-out
{
   opacity: 0;
}
div.splash img
{
   /*
   min-width: 100%;
   min-height: 100.1%;
   max-height: 100.1%;

   max-width: 180%;
   max-height: 130%;
   */
   xmax-width: calc(100% - (2 * var(--gap)));
   xmax-height: calc(100% - (2 * var(--gap)));
}
div.splash video
{
   max-width: calc(100% - (2 * var(--gap)));
   max-height: calc(100% - (2 * var(--gap)));
   clip-path: inset(0 0 40px 0);
}

div.splash img.animation
{
   top: -4em;
}

div.splash div.animation
{
   position: relative;
   top: 46% !important
}
div.splash div.animation img {
   display: block;
   width: 100%;
   max-width: 450px;
}
div.splash div.animation img.reflection {
   transform: translate(-50%, 41%) scaleY(-1);
   opacity: 0.35;
   mask-image: linear-gradient(
      to top,
      black,
      transparent 50%
   );
   -webkit-mask-image: linear-gradient(
      to top,
      black,
      transparent 50%
   );
}

div.splash img.rainbow
{
   position: absolute;
   top: 10% !important;
   opacity: 0.5;
   width: 100%;
   height: 18%;
   left: 70% !important;
}

div.splash img.dove
{
   position: absolute;
   top: 10% !important;
   max-width: 25%;
   max-height: 10%;
}
div.splash img.jesus,
div.splash img.pharisee
{
   position: absolute;
   bottom: 15%;
   max-width: 40%;
   max-height: 50%;
   
   -webkit-box-reflect: below 0px 
      linear-gradient(
         to bottom, 
         transparent 60%, 
         rgba(0, 0, 0, 0.35)
      );
}
div.splash img.jesus
{
   --scale: 1.15;

   left: 0;
   xanimation: rotate3 3s ease-in-out infinite;
   xanimation: rotate4 3s ease-in-out infinite;

   animation: jesusSlideIn 1.5s ease-out both;
}
div.splash img.pharisee
{
   --scale: 1.5;

   right: 0;
   xanimation: rotate3 3s ease-in-out infinite;
   xanimation-delay: -1.5s;
   xanimation: rotate4 3s ease-in-out infinite;

   animation: phariseeSlideIn 1.5s ease-out 0.5s both;
}

@keyframes jesusSlideIn {
   from {
      transform: translateX(-50%);
      opacity: 0;
   }

   to {
      transform: translateX(0);
      opacity: 1;
   }
}

@keyframes phariseeSlideIn {
   from {
      transform: translateX(50%);
      opacity: 0;
   }

   to {
      transform: translateX(0);
      opacity: 1;
   }
}

@keyframes rotate3 {
  0%   { rotate: -2deg; }
  50%  { rotate: 2deg; scale: 1.15; translate: 10px;}
  100% { rotate: -2deg; }
}

@keyframes rotate4 {
  0%   { transform: rotateY(30deg); rotate: -2deg; }
  50%  { transform: rotateY(-30deg); rotate: 2deg; scale: var(--scale); translate: 10px; }
  100% { transform: rotateY(30deg); rotate: -2deg; }
}

div.splash img.flare.overlay
{
   mix-blend-mode: hard-light;
}
div.splash img.flare
{
   --size: 300%;

   max-width: var(--size);
   max-height: var(--size);
   width: var(--size);
}
div.splash > span.the-bible
{
   color: #F8EE99;
   color: hsla(0, 0%, 0%, 0.65);
   font-size: 5em;
   font-weight: bold;
   padding-bottom: 0.5em;
   filter: drop-shadow(2px 4px 6px black);

   animation: animate-fadeIn 2s ease-in-out;
   transform-origin: center;
}

@keyframes animate-fadeIn
{
   0%
   {
      opacity: 0;
      transform: translate(-50%, -50%) scale(10);
   }
   90%
   {
      transform: translate(-50%, -50%) scale(0.9);
   }
   100%
   {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
   }
}
div.splash > span.the-bible > span
{
   font-size: 0.5em;
   margin-top: -0.5em;
}
body:not(.refresh-button) div.splash > span.refresh-button,
body:not(.refresh-button) div.splash > div.app-version,
body.refresh-button div.splash > div.instructions
{
   display: none;
}
div.splash > span.refresh-button
{
   --size: 70px;
   --radius-1: calc(var(--size) * 0.5);
   --radius-2: calc(var(--radius-1) * 0.5);

   color: white;
   font-size: 2em;
   /*
   padding: 0.5em;
   border: 1px solid white;
   border-radius: var(--radius-2) var(--radius-1) var(--radius-2) var(--radius-2);
   background: hsla(0, 0%, 0%, 0.5);
   */
   xopacity: 0.5;
}
div.splash > span.refresh-button.clicked
{
   xanimation: animate-refresh-button 0.5s ease-in-out;
}
@keyframes animate-refresh-button
{
   0%
   {
      opacity: 0.5;
   }
   50%
   {
      opacity: 1;
   }
   100%
   {
      opacity: 0.5;
   }
}
div.splash > span.refresh-button > img
{
   width: 2.5em;
}
div.splash > span.refresh-button
{
   -webkit-box-reflect: below -10px 
      linear-gradient(
         to bottom, 
         transparent 10%, 
         rgba(0, 0, 0, 0.25)
      );
}
div.splash > span.refresh-button.clicked > img
{
   animation: animation-spin 1s linear infinite;
}

@keyframes animation-spin {
   from {
      transform: rotate(0deg);
   }
   to {
      transform: rotate(360deg);
   }
}

div.splash > span.refresh-button:not(.clicked) > img
{
   animation: animation-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes animation-pulse {
   from {
      transform: scale(1);
   }
   to {
      transform: scale(1.1);
   }
}

@media (orientation: portrait)
{
   div.splash:not(.quote-disabled) img,
   div.splash:not(.quote-disabled) > span.the-bible
   {
      xtop: 60%;

      xmargin-top: -5em;
   }
   div.splash:not(.quote-disabled) > span.the-bible
   {
      xmargin-top: -1em;
   }
   div.splash.quote-disabled > quote
   {
      display: none;
   }
   div.splash > span.refresh-button
   {
      top: 85% !important;
   }
}
@media (orientation: landscape)
{
   div.splash > quote
   {
      xdisplay: none;
   }
   div.splash > span.refresh-button
   {
      top: 50% !important;
      left: 85% !important;
   }
}
div.splash > quote
{
   animation: animate-fadeIn 5s;
}
div.splash > quote > p
{
   opacity: 0.5;
   color: white;
   font-size: 2em;
   text-align: center;
   line-height: 1.7em;
   margin-block-start: 0;
   margin-block-end: 0;
   opacity: 1;
   padding: 1em 0.3em;
}
div.splash > quote > p:last-child
{
   position: absolute;
   xxxbottom: 2em;
   width: calc(100% - 2em);
   font-size: 3em;
   margin: 0 1em 1em 1em;
   padding: 0;
   
   top: 3em;
}
div.splash > quote > p > span.u
{
   border-bottom: var(--underline);
}
div.splash > quote > p > span.n
{
   opacity: 1;
   font-family: sans-serif;
   font-size: 1em;
   background: hsl(var(--hue-yellow), var(--saturation-yellow), var(--lightness-yellow));
   color: white;
   border: 1px solid white;
   border-radius: 1.5em 1em 1em 1em;
   padding: 0.15em 0.25em;
}
div.splash > quote > p > span.n.red
{
   background: hsl(var(--hue-red), var(--saturation-red), var(--lightness-red));
}
div.splash > quote > p > span.n.orange
{
   background: hsl(var(--hue-orange), var(--saturation-orange), var(--lightness-orange));
}
div.splash > quote > p > span.n.yellow
{
   background: hsl(var(--hue-yellow), var(--saturation-yellow), var(--lightness-yellow));
}
div.splash > quote > p > span.n.green
{
   background: hsl(var(--hue-green), var(--saturation-green), var(--lightness-green));
}
div.splash > quote > p > span.n.blue
{
   background: hsl(var(--hue-blue), var(--saturation-blue), var(--lightness-blue));
}

div.app-version, div.instructions
{
   color: white;
   top: unset !important;
   font-size: 1.5em;
   bottom: 2% !important;
   letter-spacing: 0.1em;
   font-family: Arial;
   xopacity: 0.5;
   width: 100%;

   -webkit-box-reflect: below 5px 
      linear-gradient(
         to bottom, 
         transparent 10%, 
         rgba(0, 0, 0, 0.25)
      );
      
   font-family: 'Segoe UI', Tahoma, sans-serif;
   font-style: italic;
}

div.splash div.login
{
   position: absolute;
   top: 8%;
   left: 50%;
   transform: translateX(-50%);
   width: min(280px, 85%);
   z-index: 10;
}
div.splash div.login input
{
   display: block;
   box-sizing: border-box;
   width: 100%;
   margin-bottom: 10px;
   padding: 10px 12px;
   background: #202a2e;
   color: white;
   border: 1px solid #8c743e;
   border-radius: 6px;
   font-family: 'Segoe UI', Tahoma, sans-serif;
   font-size: 16px;
}