@font-face {
  font-family: 'heavitasregular';
  src: url('../fonts/heavitas-webfont.woff2') format('woff2'),
       url('../fonts/heavitas-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.game-base {
  margin: 0; padding: 0; text-decoration: none; font-family: 'heavitasregular';
}

#overlay {
  margin: 0; padding: 0; text-decoration: none; font-family: 'heavitasregular';
  z-index: 900; position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(0,0,0,0.5);
  visibility: hidden; opacity: 0;

  transition: opacity 0.5s;
}
#overlay a {
  text-decoration: none;
}
#overlay.visible {
  opacity: 1;
  visibility: visible;
}
#overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
#bottom-bar {
  margin: 0; padding: 0; text-decoration: none; font-family: 'heavitasregular';
  position: fixed; right: 0; bottom: 0; z-index: 1000; background: #010101; padding: 3px 15px; color: #efefef;
  border-radius: 10px 0 0 0; font-size: 85%; display: none;
}

#autoplay {
  z-index: 1000;
  background: #3c3b40;
  position: absolute; display: block;
  left: 50%; top: 50%;
  width: 400px; 
  height: 360px; 
  margin: -180px 0 0 -200px;
  border-radius: 10px;
  box-shadow: 0 2px 5px 0 #000;
}
#autoplay h2 {
  text-align: center; padding: 10px 0 10px 0; background: linear-gradient(#484c53, #3a3d44);
  color: #d3dfdf; border: 1px solid #000;
  border-radius: 8px 8px 0 0; margin: 0 0 30px 0;
}
#autoplay h2 a {
  float: right; font-size: 19px; padding: 10px; overflow: hidden; font-family: Arial, Helvetica, sans-serif;
  height: 30px; width: 30px; line-height: 30px;
  position: absolute; right: 0; top: 0;
  color: #DDD;
}

#autoplay #autoplay_list.standalone {
  padding: 50px 0;
}


#autoplay #autospin_values {
  list-style: none; display: block; margin: 10px; text-align: center;

  color: #ddd; border: 1px solid #000; display: block;
  text-align: center; background: linear-gradient(#484c53, #3a3d44);
  text-shadow: 0 2px 2px #1f1f1f;
  border-radius: 12px;
}
#autoplay #autospin_values li {
  display: inline-block;
}

#autoplay #autospin_values li a {
  padding: 10px; color: #ddd; display: block;
  text-align: center; line-height: 30px; width: 30px;
  text-shadow: 0 2px 2px #1f1f1f;
}
#autoplay #autospin_values li:first-child a {
  border-radius: 8px 0 0 8px;
}
#autoplay #autospin_values li:last-child a {
  border-radius: 0 8px 8px 0;
}
#autoplay #autospin_values li a.selected {
  text-shadow: 0 0 0 0; color: #42733a; border-radius: 30px; 
  border: 1px solid #333; 
  padding: 6px; margin: 3px;
  background: radial-gradient(#51555a, #383c40);
}

#autoplay label {
  color: #DDD; font-size: 13px; text-align: center; display: block;
  text-shadow: 0 2px 2px #1f1f1f;
}

#autoplay input[type=text] {
  padding: 9px; margin: 5px; background: #333333; border: 1px solid #000;
  border-radius: 5px; font-size: 16px; color: #ccc;
  text-align: center; box-shadow: inset 0 0 3px 0px #1f1f1f;
  box-shadow: 0;
  transition: box-shadow 0.3s, color 0.3s, background 0.3s;
}
#autoplay input[type=text]:focus {
  box-shadow: inset 0 0 3px 1px #000; outline: none;
  color: #FFF; 
}

#autoplay #stop_loss {
  display: inline-block; width: 49%; padding: 20px 0 20px 0; text-align: center;
}
#autoplay #stop_win {
  display: inline-block; width: 49%; padding: 20px 0 20px 0; text-align: center;
}
#autoplay #buttons {
  display: block;
}
#autoplay #buttons {
  display: inline-block; text-align: center; margin: 0 auto;
  width: 100%;
}
#autoplay #buttons a {
  border: 1px solid #000; background: linear-gradient(#51555a, #383c40); padding: 13px 30px; margin: 10px;
  color: #dddddd; border-radius: 8px; box-shadow: 0 0px 2px 2px #333;
  display: inline-block; text-shadow: 0 1px 2px #1f1f1f;

  transition: box-shadow 0.3s;
}
#autoplay #buttons a:hover {
  box-shadow: 0 0px 2px 0px #555;
}

#autoplay #buttons a#submit_autoplay {
  padding: 13px 40px; background: linear-gradient(#4c7f44, #34612c); 
}



@media all and (orientation:portrait) {

  #autoplay {
    width: 320px;
    margin: -220px 0 0 -160px;
    height: 440px;
  }
  #autoplay #autospin_values li:first-child a {
    /*border-radius: 0;*/
  }
  #autoplay #autospin_values li:last-child a {
    /*border-radius: 0;*/
  }

}

@media all and (orientation:landscape) {

  #autoplay {
    width: 400px;
    margin: -170px 0 0 -200px;
    height: 340px;
  }
  #autoplay h2 {
    margin: 0 0 10px 0;
  }
  #autoplay #autospin_values {
    margin: 5px;
  }  
  #autoplay #stop_loss {
    padding: 10px 0 10px 0;
  }
  #autoplay #stop_win {
    padding: 10px 0 10px 0;
  }
  #autoplay #autospin_values li:first-child a {
    /*border-radius: 0;*/
  }
  #autoplay #autospin_values li:last-child a {
    /*border-radius: 0;*/
  }

}








