body {
  background: rgb(77,6,102);
  background: linear-gradient(181deg, rgba(77,6,102,1) 0%, rgba(74,5,94,1) 35%, rgba(0,0,0,1) 100%);
    font-family: 'Quicksand', sans-serif;
}

.farm_container{
    width: 1000px;
    height: 600px;
    max-width: 990px;
    max-height: 768px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
    overflow:hidden;
}


.backgroundImage {
    width: 100%;
    max-width: 1000px;
    max-height: 600px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: -1;
    box-shadow: 10px 10px 6px rgba(155, 152, 97, 0.3);

}

.title{
    position: absolute;
    width:40%;
    top: 5%;
    right: 0;
    left:0;
    margin: auto;
    animation:rolling 2.5s  ease;
    z-index: -1;
}

@keyframes rolling {
    0% {transform: rotate(0deg) scale(0.1, 0.1);}
    100% {transform: rotate(360deg) scale(1, 1);}
}


h1 {
  cursor: default;
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  margin: auto;
  display: block;
  text-align: center;
  z-index: -1;

}
h1 span {
  position: relative;
  top: 20px;
  display: inline-block;

  animation: fadeIn 2s ease infinite;

  font-family: 'Coiny', cursive;
  font-size: 2em;
  color: #E2B779;
  text-shadow: 0 1px 0 #7f5d38,
               0 2px 0 #7f5d38,
               0 3px 0 #7f5d38,
               0 4px 0 #7f5d38,
               0 5px 0 #7f5d38,
               0 6px 0 transparent,
               0 7px 0 transparent,
               0 8px 0 transparent,
               0 9px 0 transparent,
               0 10px 10px rgba(0, 0, 0, .4);
}
h1 span:nth-child(2) {
  -webkit-animation-delay: .1s;
}
h1 span:nth-child(3) {
  -webkit-animation-delay: .2s;
}
h1 span:nth-child(4) {
  -webkit-animation-delay: .3s;
}
h1 span:nth-child(5) {
  -webkit-animation-delay: .4s;
}
h1 span:nth-child(6) {
  -webkit-animation-delay: .5s;
}
h1 span:nth-child(7) {
  -webkit-animation-delay: .6s;
}
h1 span:nth-child(8) {
  -webkit-animation-delay: .7s;
}
h1 span:nth-child(9) {
  -webkit-animation-delay: .8s;
}

h1 span:nth-child(10) {
  -webkit-animation-delay: .9s;
}

h1 span:nth-child(11) {
  -webkit-animation-delay: 1s;
}




/* ANIMATION */

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        transform:scale(0, 0);}
    100% {
        opacity: 1;
        transform:scale(1, 1);
            }
}



.characters{
    position: absolute;
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    bottom: -60%;
    right: 0;
    left:0;
    margin: auto;
    transition: 0.5;
    animation: ShowUp 0.7s ease-out forwards;
    animation-delay: 1.5s;
    z-index: -1;
}

@keyframes ShowUp {
    0%{transform: translate(0, 0px);}
    100%{transform: translate(0, -500px);}
}


.btn {
    background-color: #7f0095;
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    color: #FFF;
    border-bottom: solid 4px #876295;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Coiny', cursive;
    text-align:center;
}


.start{
    z-index: 999;
    width: 130px;
    height: 50px;
    margin: 10px;
    font-size: 38px;
    position: absolute;
    bottom: -55%;
    right: 0;
    left: 0;
    margin: auto;
    animation: ShowUp 0.8s  forwards,
                floating 2s forwards infinite alternate;
    animation-delay: 2s;
    z-index: -1;
}

.web{
  display: block;
}

.responsive{
  display:none;
}

@keyframes floating {
    0%{opacity:0.5}
    100%{opacity:1}
}


.btn:active {
    transform: translateY(4px);
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

#story {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  display: none;
  background-color: rgba(60, 8, 100, 0.7);
  z-index: 999;
  text-align: center;
}

.story_container {
  width: 1000px;
  height: 600px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.story_container p, h2{
  color: #FFF;
}

h2 {
  font-size: 2em;
}
.story {
  font-size: 1.5em;
  padding: 1%;
  line-height: 1.5;
}

.fadein {
    animation : FadeIn 1s;
    animation-fill-mode: both;
}

#begin {
  width: 10%;
  height: 8%;
  font-size: 2em;
}

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


@media screen and (max-width:823px){

    .title{
        width:26%;
    }

    h1 span {
        font-size: 0.8em;
        top: 10%;
    }

    .characters{
        width: 27%;
        bottom: -140%;
    }


    .start {
        width: 80px;
        height: 25px;
        font-size: 1em;
        bottom: -155%;
    }

    .web{
      display: none;
    }

    .responsive{
      display: block;
    }

    h2 {
      font-size: 1em;
    }
    .story {
      font-size: 0.8em;
      padding: 1%;
      line-height: 1.5;
    }

    #begin {
      width: 10%;
      height: 8%;
      font-size: 0.8em;
    }

}

.hidden {
  display: none;
}