/* CSS HEX */
/*
--raisin-black: #241E20ff;
--papaya-whip: #F9EDD3ff;
--maximum-blue-green: #6FBDC0ff;
--light-coral-red: #FB808Aff;
--wisteria-purple:; #9c71c1;
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

body {
    font-family: Source Code Pro, monospace;
    font-weight: 900;
    background: #241E20ff;
    color: #6FBDC0ff;
}

body.dark {
    background: #241E20ff;
    color: white;
}

h1, h2 {
    text-align: center;
    font-family: Source Code Pro, monospace;
    margin: 0;
    padding: 0;
}


h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: Source Code Pro, monospace;
    font-weight: 900;
    color: #BBB;
}

.dark h2 {
    color: #666;
}

.header {
    padding-top: 1em;
    padding-bottom: 1em;
}




/* Seems necessary to make iframes work on itch.io on mobile iOS :-( */
.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.container {
    display: block;
    max-width: 80%;
    margin: 0 auto;
    padding: 10px;
    padding-top: 4em;
    padding-bottom: 4em;
    background: #241E20ff;
}

.dark .container {
    background: #241E20ff;
}

p {
    font-size: 14pt;
    color: #6FBDC0ff;
    /*line-height: 1.7em;*/
    font-weight: 900;
    font-family: Source Code Pro, monospace;
    text-shadow: 0 0 3px #6FBDC0ff;
    animation: textShadow 1.6s infinite;
}

a {
    font-weight: 900;
    color: gray;
    font-family: Source Code Pro, monospace;
    transition: color 0.6s;
    text-decoration: none;
    text-shadow: 0 0 5px gray;
    animation: textShadow 1.6s infinite;
}

.dark a {
    color: #cc8f1a;
    transition: color 0.6s;
}


a:hover {
    color: #6FBDC0ff;
    transition: color 0.1s;
    text-shadow: 0 0 5px #6FBDC0ff;
    animation: textShadow 1.6s infinite;
}

.dark a:hover {
    color: white;
}

strong {
    color: #241E20ff;
    font-weight: bold;
}

.dark strong {
    color: white;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Audio player w/ border */
audio {
    border-style: double;
    border-color: #6FBDC0ff;
    width: 80vw; 
    height: 50px;
    padding: 5px;
    display: block;
    margin: 0 auto;
    border-radius: 30px;
    border-width: 6px;
}

/* Embedded YouTube clip w/ border */
iframe {
    width: 70vw;
    height: 70vh;
    margin: 0 auto;
    display: block;
    padding: 5px;
    border-style: double;
    border-color: #6FBDC0ff;
    border-radius: 30px;
    border-width: 6px;
}

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

/* cursor animation for answers */
.container a {
    border-right: .15em solid; /* The typwriter cursor */
    animation: 
        caret .75s step-end infinite;
}

/* The typewriter cursor effect */
@keyframes caret {
  50% { border-color: transparent }
}


.container * {
    opacity: 1.0;
    transition: opacity 2.0s;
}


p.choice {
    text-align: center;
    line-height: 1em;
}


/* first choice */
:not(.choice) + .choice {
    padding-top: 1em; 
}


p.choice a {
    font-size: 14pt;
}


/* Built in class if you want to write:
     The End # CLASS: end
*/

.orange {
    color: #F9EDD3ff;
    text-shadow: 0 0 3px #F9EDD3ff;
    animation: textShadow 1.6s infinite;

}

.purple {
    color: #9c71c1;
    text-shadow: 0 0 5px #9c71c1;
    text-indent: 50px;
    animation: textShadow 1.6s infinite;
}

.pink {
    color: #FB808Aff;
    text-shadow: 0 0 5px #FB808Aff;
    animation: textShadow 1.6s infinite;
}

.red {
    color: #F08080;
    text-shadow: 0 0 5px #F08080;
    animation: textShadow 1.6s infinite;
}


.end {
    text-align: center;
    font-weight: bold;
    color: #241E20ff;
    padding-top: 20px;
    padding-bottom: 20px;
}

.dark .end {
    color: white;
}


/* 
/*
/*
/* scanlines overlay */
#overlay{
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(36, 30, 32, 0) 15%, rgba(0, 0, 0, 0.25) 10%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.03), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* moving scanlines w/ animation */
#scanlines{
    pointer-events: none;
    width: 100%;
    height: 100px;
    z-index: 8;
    background: linear-gradient(
        0deg,
        rgba(0, 5, 0, 0) 0%,
        rgba(255, 255, 255, 0.2) 10%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }
    80% {
        bottom: 100%;
    }
    100% {
        bottom: 0%;
    }
}

/* text shadow glitching animations */
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}
