body {
  overflow: hidden;
  margin: 0;
  font-family: 'Press Start 2P', cursive;
}

#preload {
  display: none;
}

.nightTime {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
}

#modalWrapper{
  display: none;
  width: 100vw;
  height: 100vh;
}

#contentModal {
  color: white;
  text-shadow: 3px 3px black;
  padding: 1%;
  line-height: 1.2;
  position: fixed;
  top:50%;
  transform: translate(0, -50%);
  right: 15%;
  width: 40%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 4px solid white;
  border-radius: 5px;
  box-shadow: 3px 3px 3px black;
  transition: all 0.5s ease;
  max-height: 80%;
  overflow-y: auto;
}

#contentModal img {
  width: 100%;
}

#contentModal #githubIcon{
  margin-left: 3px;
  width: 8%;
  display: inline;
  margin-bottom: -5px;
}

#contentModal a,
#contentModal a:link,
#contentModal a:visited,
#contentModal a:hover,
#contentModal a:active {
  color: white;
}

#contentModal i{
  margin-left: 15px;
  position: absolute;
}

#contentModal i:hover {
  cursor: pointer;
}

#exitModal {
  position: absolute;
  top: 15px;
  font-size: 23px;
  right: 15px;
  cursor: pointer;
}

#titleScroll {
  font-size: 40px;
  color: white;
  position: fixed;
  width: 100%;
  top: 55px;
  left: 100%;
  margin: auto;
  font-style: italic;
  text-shadow: 3px 3px black;
}

#charSelect {
  position: relative;
}

#heroSelectText {
  visibility: visible;
  margin: auto;
  margin-top: 5%;
  text-align: center;
  color: white;
  text-shadow: 3px 3px black;
  animation: blinkingText 1s step-start 0s infinite ;
}

@keyframes blinkingText {

  50% {
    opacity: 0;
  }
}

#heroSelection {
  display: flex;
  margin-top: 2%;
}

#selected {
  position: absolute;
  color: white;
  text-align: center;
  text-shadow: 3px 3px black;
  width: 30%;
  margin: auto;
  padding: 1%;
  border: 4px solid white;
  border-radius: 5px;
  box-shadow: 3px 3px 3px black;
  background-color: rgba(0, 0, 0, 0.6);
  visibility: hidden;
}

@supports (-ms-ime-align: auto) {
  #selected {
    margin-top: 50px;
  }
}

@-moz-document url-prefix(){
  #selected {
    margin-top: 50px;
  }
}

.Knight {
  left: 0;
}

.IceWizard {
  left: 50%;
  transform: translateX(-50%);
}

.Archer {
  right: 0;
}

#disclaimer{
  color: white;
  position: fixed;
  width: 100%;
  bottom: 15px;
  left: 100%;
  margin: auto;
  font-style: italic;
  text-shadow: 1px 1px black;
}

.flyAwayText {
  animation: flyAwayText 15s linear;
}

@keyframes flyAwayText {
  from {left: 100%;}
  to {left: -110%;}
}

.heroes {
  background-color: rgba(255, 255, 255, 0.6);
  width: 20%;
  margin: auto;
  border: 4px solid white;
  border-radius: 5px;
  box-shadow: 3px 3px 3px black;
  transition: all 0.5s ease;
}

.heroes:hover {
  transform: scale(1.2,1.2);
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6);
}

#container {
  width: 100vw;
  height: 100vh;
  background-image: url("../background/PNG/All/Hills_Sky.png");
}

#bg {
  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;

  /* Set up proportionate scaling */
  width: 100%;
  height: auto;

  /* Set up positioning */
  position: fixed;
  top: 0;
  left: 0;
  background-image: url("../background/PNG/All/Hills_4.png"), url("../background/PNG/All/Hills_3.png"), url("../background/PNG/All/Hills_2.png"), url("../background/PNG/All/Hills_1.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
}

#bgClouds{
  position: fixed;
  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;

  /* Set up proportionate scaling */
  width: 100%;
  height: auto;
  background-image: url("../background/PNG/All/Hills_Clouds.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  top: 0;
  left: 0;
}

#player {
  position: absolute;
  left: 25%;
  bottom: 1%;
  width: 15%;
  z-index: 10;
}

@keyframes heroDrop {
  from {bottom: 110%;}
  to {bottom: 1%;}
}

.falling {
  animation: heroDrop 2s linear;
}

@keyframes jump {
    0%   {bottom: 1%;}
    50%  {bottom: 40%;}
    100% {bottom: 1%;}
}

.jumpz {
  animation: jump 0.8s;
}

#block {
  position: absolute;
  width: 100px;
  bottom: 48%;
  left: 110%;
  -webkit-filter: drop-shadow(2px 2px 0 #777);
  filter: drop-shadow(2px 2px 0 #777);
}

.blockNotHit {
  animation: block1 20s;
}


@keyframes block1 {
    from  {left: 110%;}
    to    {left: -10%;}
}

.boxHit {
    animation: boxHitAnimation 0.4s;
    animation-timing-function: linear;
}

@keyframes boxHitAnimation {
    0%   {bottom: 48%;}
    50%  {bottom: 75%;}
    100% {bottom: 48%;}
}

.boxOut {
  animation: boxGone 0.5s;
}

@keyframes boxGone {
    from {bottom: 48%;}
    to {bottom: 110%;}
}

.scrollingBg {
  background-position-x: 0px;
}

.bgClouds {
  background-position-x: 0px;
}

#endText {
  display: none;
  text-align: center;
  color: white;
  text-shadow: 3px 3px black;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}

#endText a,
#endText a:link,
#endText a:visited,
#endText a:hover,
#endText a:active {
  color: white;
}

.endText{
  animation: endGameAnimation 3s;
}

@keyframes endGameAnimation {
    from {left: 150%;}
    to {left: 0%;}
}

.rundAway{
  animation: endJump 500ms, rundAway 3s;
}

@keyframes rundAway {
    from {left: 25%;}
    to {left: 130%;}
}


@keyframes endJump {
    0% {bottom: 1%;}
    50% {bottom: 15%;}
    100% {bottom: 1%;}
}

/* .fgTrees {
  -webkit-filter: drop-shadow(1px 1px 0 white)
                drop-shadow(-1px -1px 0 white);
  filter: drop-shadow(1px 1px 0 white)
        drop-shadow(-1px -1px 0 white);
  position: fixed;
  bottom: 0;
  max-height: 600px;
  left: 3000px;
  z-index: 1000;
} */
