:root {
    --darkest: #000;
    --darker: #111;
    --dark: #333;
    --light: #777;
    --lighter: #ccc;
    --lightest: #fff;
    --bg: #282c34;
    --accent: #61dafb;
    --rgb-white: 255,255,255;
    --rgb-black: 0,0,0;
    --rgba_dark: rgba(0,0,0,0.6);
    --rgba_darker: rgba(0,0,0,0.8);
    --rgba_light: rgba(255,255,255,0.4);
    --transparent: transparent;
}

.roundedImg {
    border-radius: 15px;
}

body {
    background: var(--darkest);
    color: var(--light);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#root, #instructions {
    font-family: 'Jura', sans-serif;
    overflow: hidden;
}

#instructions {
    color: var(--darkest);
    max-width: 100%;
    background: var(--rgba_light);
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    padding-left: 6%;
}
        

/* BACKGROUND */ 
#pixel_overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -900; 
    background: url("https://designer-k.com/images/pixelatedScreen2.png") repeat scroll left top;
    background-repeat: repeat;
    opacity: 1;
}

#bg_vid {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 150%; 
    min-height: 150%;
    z-index: -999;
    -moz-transform: scale(-1, -1);
    -o-transform: scale(-1, -1);
    -webkit-transform: scale(-1, -1);
    transform: scale(-1, -1);    
} 

#colour_wrapper:before {
    content:"";
    position: absolute;
    top:0;
    right:0;
    left:0;
    bottom:0;
    z-index:-800;
    background: linear-gradient(45deg, /*#ffec00*/ rgba(255, 236, 0, 0.4), /*#ff00de*/rgba(255, 0, 222, 0.4), /*#00ffff*/rgba(0, 255, 255, 0.4));
}

#inputBox {
    align-items: center; /* vertical */
    border-width: /*medium*/ 0;
    border-color: var(--dark);
    border-style: solid;
    color: var(--lighter);
    background: var(--rgba_darker);
    width: 140px;
    height: 28px;
    float: left;
    border-right-width: 0;
    outline:0;
    padding-left: 5px;
}

#inputBox::placeholder {
    color: var(--dark);
}

.invalidShake {
        animation: shake 1s linear;
}

@keyframes shake {
  from,
  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }
  20%,
  40%,
  60%,
  80% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }
}

.submitButton {
    align-items: center; /* vertical */
    border-width: /*medium*/ 0;
    border-color: var(--dark);
    border-style: solid;
    color: var(--lighter);
    background: var(--rgba_dark);
    width: 145px;
    height: 30px;
    float: left;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    outline:0;
}

button:hover, .favButton:hover {
    background: var(--rgba_light);
    color: var(--lightest);
    animation: pulseGlow 1s ease-in-out infinite alternate; 
}

.favButton {
    align-items: center; /* vertical */
    border-width: /*medium*/ 0;
    border-color: var(--dark);
    border-style: solid;
    color: var(--lighter);
    background: var(--rgba_dark);
    height: 30px;
    float: left;
    cursor: pointer;
    outline:0;
    padding-bottom: 5px;
    font-size: 1em;
}

.level {
display: flex;
    align-items: center; 
    border-radius: 15px;
    border-width: 0;
    border-color: var(--dark);
    border-style: solid;
    color: var(--lighter);
    background: var(--rgba_dark);
    width: 145px;
    height: 30px;
    float: left;
    margin: 2px;
}

.level:hover {
    color: var(--lightest);
    background-color: var(--rgba_darker);
    animation: pulseGlow 1s ease-in-out infinite alternate; 
}

.imgbox {
    float: left;
    width: 24px;
    display: block;
    margin-left: 5px;
}

.level img {
    float: left;
}

.level p, .level caption {
    margin-left: 5px;
    float: left;   
}

.xp {
    font-size: 0.75em;
}

.name {
    font-size: 2em;
    color: var(--lightest); 
    animation: pulseGlow 1s ease-in-out infinite alternate; 
}

.hidden {
    opacity: 0;
}


@keyframes pulseGlow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff, 0 0 70px #fff, 0 0 80px #fff, 0 0 100px #fff, 0 0 150px #fff;
  }
  to {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff, 0 0 35px #fff, 0 0 40px #fff, 0 0 50px #fff, 0 0 75px #fff;
  }
}

#savedFlash {
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute; 
    top: 0; 
    left: 0;
    animation: fadeout 5s;
    pointer-events: none;
    opacity: 0;
}

@keyframes fadeout {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.statsBox {
  
    border-radius: 15px;
    border-width: medium;
    border-color: var(--dark);
    border-style: solid;
    color: var(--lighter);
    background: var(--darker);
}

* {
    user-select: none; 
}

img {
    pointer-events: none;
}

#searchBox {
    margin-top: 15%;
    background: var(--transparent);
    display: inline-block;
    border-radius: 15px 15px 15px 15px;
    padding: 1em;
    white-space:nowrap;
    min-width: 320px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em;
    width: 50%;
}

section {
    background: var(--transparent);
    border-radius: 15px 15px 15px 15px;
    padding: 1em;
    white-space:nowrap;
    color: var(--darkest);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.savedText {
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: var(--lightest);
    animation: fadeout 7s;
    pointer-events: none;
    opacity: 0;
    font-size: 10em;
    COLOR: #FFF;
}

.savedTextText {
      margin: 0;
  position: absolute;
  top: 40%;
  left: 40%;
  transform: translate(-50%, -50%);    
    animation: pulseGlow 3s ease-in-out infinite alternate; 
}

.fadeIn {
    animation: fadein 5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}