/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, /*em,*/ img, ins, kbd, q, s, samp,
small, strike, /*strong,*/ sub, sup, tt, var, /*
b, u, i,*/ center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


:root {
    --white: #eeeeee;
    --light: #999999;
    --medium: #444444;
    --dark: #333333;
    --darker: #282828;
    --black: #111111;
    --yellow: #fabd2f;
    --darkYellow: #d79921;
    --green: #b8bb26;
}


*{
    font-family: 'Ubuntu Mono', monospace;
    box-sizing: border-box;
    color: var(--yellow)
}

body {
    overflow: hidden;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
}

main {
    
    overflow: auto;
    position: absolute;
    width: 800px;
    max-width: 80%;
    /* min-height: 240px; */
    max-height: 80%;
    background-color: var(--dark);
    padding: 10px;
    border: 1px outset var(--darker);
    border-radius: 1px;
    box-shadow: 5px 5px 5px 2px rgb(0, 0, 0, .9);
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    justify-content: space-around;
}
#playbutton{
    font-size: 24px;
    position: absolute;
    bottom: 2.5%;
    left: 2.5%;    
    filter: sepia(60%);
}


#imgBox{
    flex-basis: 50%;
}

#textBox{
    align-self: center;
    text-align: left;
    padding: 50px;
}
#textBox h2{
    font-size: 2em;
    text-align: center;
}

#buttonBox{
    text-align: center;
}

p{
    color: var(--yellow);
}
button{
    margin: 5px;
    background: var(--medium);
    color: var(--yellow);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
    min-width: 44px;
}
button:hover{
    background: radial-gradient( var(--medium) 67%, var(--dark));
}

img{
    height:200px;
    width:200px;
}

.craiyon{
    object-fit: cover; 
    object-position: 0 -38px;
    outline: inset 2px;
    outline-offset: -2px;
}
.clear{
    outline: inset 2px;
    outline-offset: -2px;
}
.shift{
    outline: inset 2px;
    outline-offset: -2px;
    filter: grayscale(.8);
}

.neutral{
    filter: brightness(50%) sepia(100%) contrast(200%);
}
.glad{
    filter:  brightness(50%) sepia(100%) contrast(200%) hue-rotate(90deg);
}
.mad{
    filter:  brightness(33%) sepia(100%) contrast(200%) hue-rotate(300deg);
}
.angry{
    transform: scale(125%);
    
}


@media only screen and (min-width: 600px) {
.stars{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    animation: animateBg 50s linear infinite;
}
/* star bodies */
span{ 
    position: absolute;
    top: 50%;
    left: 50%;
    /* width: 4px; */
    /* height: 4px; */
    background: var(--white);
    border-radius: 50%;
    /* box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1)  ; */
    animation:  animate 3s linear infinite;
    
    right: 0;
}
/* star tails */
span::before{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, var(--white), transparent);
}

@keyframes animate {
    0%
    {
        transform: translateX(0);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: translateX(-1500px);
        opacity: 0;
    }
}

span:nth-child(1){
    top: 16vh;
    left:initial;
    animation-delay: 1s;
    animation-duration: 8s;
}

span:nth-child(2){
    top: 32vh;
    left:initial;
    animation-delay:5s;
    animation-duration: 9.6s;
}

span:nth-child(3){
    top: 48vh;
    left:initial;
    animation-delay: 3s ;
    animation-duration: 9.3s;
}

span:nth-child(4){
    top: 64vh;
    left:initial;
    animation-delay:4s;
    animation-duration: 9s;
}

span:nth-child(5){
    top: 80vh;
    left:initial;
    animation-delay: 2s;
    animation-duration: 8s;
}
}
@media only screen and (max-width: 600px) {
    
    #textBox {
        padding: 5px;
    }
    #imgBox{
        flex-basis: 1;
        
        padding-top: 10%;
    }
    #playbutton{
        font-size: 32px;
    }
    
    body{
        margin-top: 0;
        display: block;
    }
    main{
        max-width: 100%;
        width: 100%; 
        height: calc(100vh - env(safe-area-inset-bottom));
        padding: 10px;
        box-shadow: none;
    }
    button{
        padding: 10px;
    }
}

body.wpex-is-mobile-device .wpb_animate_when_almost_visible {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-animation: none;
    -moz-animation: none;
    -o-animation: none;
    animation: none;
}

/* CSS Mentions */
/* Star animation modified from https://codesandbox.io/s/w96ut */
