body {
    width: 100%;
    height: 100%;
    position: absolute;
    background: #000000;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#container{
    background-color: rgba(#669933,0.5);
    flex: 1;
}

#startButton{
    position: absolute;
    text-align: center;
	display: inline-block;
	margin:5px;
    font-weight: bold;
    padding: 10px 0 10px 10px ;
    background-color: lightgray;
    text-shadow: -1px -1px black, 1px 1px white;
    color: gray;
    -webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	-o-border-radius: 7px;
	border-radius: 7px;
    box-shadow: 0 .2em gray; 
    cursor: pointer;
    font-size: 30px;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -70%);
    width:25%;
    height:10%;
    flex:100;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
}

#instructions{
  position: absolute;
    text-align: center;
	display: inline-block;
	margin:5px;
    font-weight: bold;
    padding: 10px 0 10px 10px ;
    background-color: lightgray;
    text-shadow: -1px -1px black, 1px 1px white;
    color: gray;
    -webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	-o-border-radius: 7px;
	border-radius: 7px;
    box-shadow: 0 .2em gray; 
    cursor: pointer;
    font-size: 30px;
    top: 97%;
    left: 50%;
    transform: translate(-50%, -97%);
    width:15%;
    height:10%;
    flex:100;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
}

#demontitle{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-family: 'Open Sans', sans-serif;
    font-size: 50px;
    line-height: 2;
    color: #150c0c;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:40%;
    height:30%;
    padding-top: 10%;
    padding-bottom: 20%;
    flex:150;
}

h1{
    text-shadow: 
                1px 1px 0 grey, 
                1px 2px 0 grey, 
                1px 3px 0 grey, 
                1px 4px 0 grey,
                1px 5px 0 grey, 
                1px 6px 0 grey, 
                1px 7px 0 grey, 
                1px 8px 0 grey,
    5px 13px 15px black;
    animation: jumpscare 3s;
    animation-delay: 0s;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
    flex:150;
}

#ctrl{
  animation: none;
}

#controls
{
  position: absolute;
  visibility:hidden;
  width: 16.67%;
  height:50%;
  font-size: 30px;
  line-gap-override: 20px;
  background-color: #555;
  color: #fff;
  border-radius: 6px;
  padding: 8px 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow:2px 4px 2px #300000,
                /* 4px 8px 2px #400000, */
                2px 8px 2px #500000,
                /* 4px 16px 2px #600000, */
                2px 12px 2px #700000,
                /* 4px 24px 2px #800000, */
                2px 16px 2px #900000,
                /* 4px 32px 2px #A00000, */
                2px 20px 2px #B00000;
  flex: 200;
}

#about
{
  text-align: center;
  position: absolute;
  visibility:hidden;
  width: 30%;
  height: 60%;
  font-size: 30px;
  line-gap-override: 10px;
  background-color: #989393c1;
  color: #fff;
  border-radius: 6px;
  padding: 8px 3px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow:2px 4px 2px #300000,
                /* 4px 8px 2px #400000, */
                2px 8px 2px #500000,
                /* 4px 16px 2px #600000, */
                2px 12px 2px #700000,
                /* 4px 24px 2px #800000, */
                2px 16px 2px #900000,
                /* 4px 32px 2px #A00000, */
                2px 20px 2px #B00000;
  flex: 200;
}




#backButton{
    position: absolute;
    text-align: center;
    display: inline-block;
    margin:5px;
    font-weight: bold;
    padding: 10px 10px 10px 10px ;
    background-color: lightgray;
    text-shadow: -1px -1px black, 1px 1px white;
    color: gray;
    -webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	-o-border-radius: 7px;
	border-radius: 7px;
    box-shadow: 0 .2em gray; 
    cursor: pointer;
    top: 5%;
    left: 85%;
    transform: translate(-50%, -50%);
    width:20%;
    height:10%;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
    flex: 201;
}

#winner{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: #FF0000;
    visibility: hidden;
}

#restartButton{
    position: absolute;
    text-align: center;
  display: absolute;
  margin:5px;
    font-weight: bold;
    padding: 10px 0 10px 10px ;
    background-color: lightgray;
    text-shadow: -1px -1px black, 1px 1px white;
    color: gray;
    -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  -o-border-radius: 7px;
  border-radius: 7px;
    box-shadow: 0 .2em gray; 
    cursor: pointer;
    font-size: 30px;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -90%);
    width:25%;
    height:10%;
    flex:100;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
    
}

#credits{
  position: absolute;
    text-align: center;
	display: inline-block;
	margin:5px;
    font-weight: bold;
    padding: 10px 0 10px 10px ;
    background-color: lightgray;
    text-shadow: -1px -1px black, 1px 1px white;
    color: gray;
    -webkit-border-radius: 7px;
	-moz-border-radius: 7px;
	-o-border-radius: 7px;
	border-radius: 7px;
    box-shadow: 0 .2em gray; 
    cursor: pointer;
    font-size: 30px;
    top: 97%;
    left: 97%;
    transform: translate(-97%, -97%);
    width:13%;
    height:9%;
    flex:100;
    transition: text-shadow 0.5s ease-in-out;
    transition: color 0.5s ease-in-out;
}
/* mario title animation */
@keyframes jumpscare {
  0% {
    font-size: 0px;
    transform: translate3d(0, 0, 0);
  }
  50%{
    font-size: 0px;
    transform: translate3d(0, 0, 0);
  }
  55% {
    transform: translate3d(0, 20px, 0);
  }
  60% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, 40px, 0);
  }
  80% {
    transform: translate3d(0, -45px, 0);
  }
  90% {
    transform: translate3d(0, 60px, 0);
    font-size: 200px;

  }
}



@keyframes fadeout{
  0%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}

@keyframes fadein{
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
#win
{
  transition: none;
  color: linear-gradient(#14ffe9 , #ffeb3b , #ff00e0);
  animation: rotate 1.5s linear infinite;
}
@keyframes rotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
h1:hover{
    color: #e81f1f;
    text-shadow:4px 4px 1px #300000,
                4px 6px 1px #400000,
                4px 8px 1px #500000,
                4px 10px 1px #600000,
                4px 12px 1px #700000,
                4px 14px 1px #800000,
                4px 16px 1px #900000,
                4px 18px 1px #A00000,
                4px 20px 1px #B00000,
                4px 22px 1px #C00000,
                4px 24px 1px #D00000,
                4px 26px 1px #E00000,
                4px 28px 1px #F00000,
                4px 30px 1px #FA0000,
                4px 32px 1px #FB0000,
                4px 34px 1px #FC0000,
                4px 36px 1px #FD0000,
                4px 38px 1px #FE0000,
                4px 40px 2px #FF0000;
}

#startButton:hover, #restartButton:hover{
    background-color: #020000;
    color: #c13030;
    text-shadow:2px 4px 2px #300000,
                /* 4px 8px 2px #400000, */
                2px 8px 2px #500000,
                /* 4px 16px 2px #600000, */
                2px 12px 2px #700000,
                /* 4px 24px 2px #800000, */
                2px 16px 2px #900000,
                /* 4px 32px 2px #A00000, */
                2px 20px 2px #B00000,
                /* 4px 40px 2px #C00000, */
                2px 24px 2px #D00000,
                /* 4px 48px 2px #E00000, */
                2px 28px 2px #F00000,
                /* 4px 56px 2px #FA0000, */
                2px 32px 2px #FB0000,
                /* 4px 64px 2px #FC0000, */
                2px 36px 2px #FD0000,
                /* 4px 72px 2px #FE0000, */
                2px 40px 2px #FF0000;
       
    box-shadow: 4px 4px 1px #300000,
                4px 6px 1px #400000,
                4px 8px 1px #500000,
                4px 10px 1px #600000,
                4px 12px 1px #700000,
                4px 14px 1px #800000,
                4px 16px 1px #900000;

}

#backButton:hover{
    background-color: #020000;
    color: #c13030;

}

#instructions:hover, #credits:hover{
  background-color: #020000;
    color: #c13030;
    text-shadow:2px 4px 2px #300000,
                /* 4px 8px 2px #400000, */
                2px 8px 2px #500000,
                /* 4px 16px 2px #600000, */
                2px 12px 2px #700000,
                /* 4px 24px 2px #800000, */
                2px 16px 2px #900000,
                /* 4px 32px 2px #A00000, */
                2px 20px 2px #B00000;
      box-shadow: 4px 4px 1px #300000,
                4px 6px 1px #400000,
                4px 8px 1px #500000,
                4px 10px 1px #600000,
                4px 12px 1px #700000,
                4px 14px 1px #800000,
                4px 16px 1px #900000;
}
