#container{
	border: 2px solid black;
	background-size: cover;
	width: 900px;
	height: 450px;
	margin: auto;
	margin-top: 50px;
	position: relative;	
	overflow: hidden;
}
img#title {
    position: absolute;
    z-index: 10;
    width: 600px;
    left: 140px;
    margin-top: -30px;
    transform: rotate(4deg);
}
img#peasant {
    position: absolute;
    z-index: 10;/*
    -webkit-animation: shift_height_reverse 6s linear infinite;
    animation: shift_height_reverse 6s linear infinite;*/
}
img#trogdor {
    position: absolute;
    z-index: 10;
    width: 250px;
    top: 55px;
    right: 30px;/*
    -webkit-animation: shift_height 5s linear infinite;
    animation: shift_height 5s linear infinite;*/
}
img#peasant {
    position: absolute;
    z-index: 10;
    top: 190px;
    left: 52px;
    width: 63px;
}
.menu {
    position: absolute;
    background-color: rgba(255,255,255,0.55);
    border: 3px solid transparent;
    left: 330px;
    text-align: center;
    padding: 4px 15px 4px 10px;
    font-size: 25px;
    width: 165px;
    font-family: 'Eagle Lake';
    border-radius: 5px;
}
.menu:hover {
    cursor: pointer;
    border: 3px solid black;
}
#intro{
	top: 215px;
}
#new_game{
	top: 300px;
}

#background-scroll {
    width: 100%;
    height: inherit;
    background: url(images/town_map_scrolling.png) repeat-y;
    -webkit-animation: backgroundScroll 50s linear infinite;
    animation: backgroundScroll 50s linear infinite;
    z-index: 0;
    position: absolute;
    filter: opacity(65%);
}

/*Safari compatibility*/
@-webkit-keyframes @keyframes backgroundScroll {
  0% {background-position: 0 0;}
  50% {background-position: -900px 0;}
  100% {background-position: 0 0;}
}

@keyframes backgroundScroll {
  0% {background-position: 0 0;}
  50% {background-position: -900px 0;}
  100% {background-position: 0 0;}
}
@keyframes shift_height {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  50% {
    -ms-transform: rotate(-7deg);
    -moz-transform: rotate(-7deg);
    -webkit-transform: rotate(-7deg);
    -o-transform: rotate(-7deg);
    transform: rotate(-7deg);
  }
  100% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@keyframes shift_height_reverse {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  33% {
    -ms-transform: rotate(7deg);
    -moz-transform: rotate(7deg);
    -webkit-transform: rotate(7deg);
    -o-transform: rotate(7deg);
    transform: rotate(7deg);
  }
  66% {
    -ms-transform: rotate(-7deg);
    -moz-transform: rotate(-7deg);
    -webkit-transform: rotate(-7deg);
    -o-transform: rotate(-7deg);
    transform: rotate(-7deg);
  }
  100% {
    -ms-transform: rotate(3.5deg);
    -moz-transform: rotate(3.5deg);
    -webkit-transform: rotate(3.5deg);
    -o-transform: rotate(3.5deg);
    transform: rotate(3.5deg);
  }
}

