/* style elements */
body {
    background-color:lightgray
}

a.btn {
	color: #FFF;
	background-color: #699DB6;
	border-radius: 5px;
	border: 1px solid rgba(0,0,0,0.3);
	border-bottom-width: 3px;
	border-color: rgba(0,0,0,0.3);
	text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

a.btn:hover {
    background-color: #4F87A2;
    border-color: rgba(0,0,0,0.5);
}

a.btn:active {
    background-color: #3C677B;
    border-color: rgba(0,0,0,0.9);
}

/* menu elements */

.main-window {
  display:none;
}

.menu-button {
    position:relative;
    left: 30%;
    width: 40%;
    padding: 10px;
    margin: 10px;
    text-align: center;
    display: block;
}

.grid-button {
    position:relative;
    left: 0%;
    width: 15%;
    height: 15%;
    padding: 0;
    margin: 4%;
    text-align: center;
    display: inline-block;
}

.list-menu {
    position: absolute;
    width: 100%;
    top: 10%;
}

.config-menu {
    background-color:darkgray;
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    display: none;
}

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    opacity:0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
/* Style*/
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    background: #fff;
    background: -moz-linear-gradient(#fff, #999);
    background: -webkit-linear-gradient(#fff, #999);
    background: -o-linear-gradient(#fff, #999);
}
.show {
    opacity:1;
    pointer-events: auto;
}

.close {
    background: #606061;
    color: #FFFFFF;
    line-height: 25px;
    position: absolute;
    right: -12px;
    text-align: center;
    top: -10px;
    width: 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 1px 1px 3px #000;
}
.close:hover {
    background: #00d9ff;
}

.popup {
    background-color:darkgray;
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    display: block;
    z-index: 10;
}

.title {
    position:relative;
    height: 5%;
    display: block;
}

#level-menu {
    top: 5%;
    left: 5%;
    bottom: 5%;
    right: 5%;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

/* Game area elements */
#game-area {
  position: absolute;
  left:     50%;
  top:      50%;
}

#game-element {
  width: 100%;
  height: 100%;
}

#stats-panel {
  position: absolute;
  width: 100%;
  height: 8%;
  bottom: 0;
  opacity: 0.8;
}

.box {
  border-image:url(html-images/buttonLong_brown.png) 15 15 repeat;
  background-color: #97714A;
  border-width:20px;
}

#dialogue-close {
  position: absolute;
  bottom: -35px;
  width: 30px;
  height: 30px;
}

#dialogue {
  position:absolute;
  bottom: 5%;
  left: 20%;
  width: 60%;
  color: white;
  visibility: hidden;
  font-size: 2em;
  text-align: center
}

#pause-button {
  position:absolute;
  top: 25px;
  right: 25px;
  z-index: 50;
  display: none;
}

#analog_control_base {
  position:absolute;
  top:50%;
  left:50%;
  width:50px;
  visibility: hidden;
}

#analog_control {
  position:absolute;
  width:15px;
  top:17px;
  left:17px;
}
