html , body
{
    background: PeachPuff  ;
    height:100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: 'Slackey'; 
}
.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
  background-color: PeachPuff ;
  font-size: 0.8em;
}

#credits {
 
    text-align: center;
    border: 5px solid blue;
    border-radius: 25px;
    background: Aqua;
    padding: 20px; 
    width: 250px;
    height: 10px;  

}
#crwon {

    text-align: center;
    border: 5px solid blue;
    border-radius: 25px;
    background: gold;
    padding: 20px; 
    width: 250px;
    height: 10px;  

}
#inbet {

    text-align: center;
    border-radius: 5px;
    background: lime;
    padding: 5px; 
    width: 10px;
    height:10px;    
}

#crbet {

    text-align: center;
    border: 5px solid red;
    border-radius: 25px;
    background: pink;
    padding: 20px; 
    width: 50px;
    height: 10px;    
}

#drbet {

    text-align: center;
    border-radius: 5px;
    background: lime;
    padding: 5px; 
    width: 10px;
    height: 10px;    
}
img {
    display: block;
    top: 80%;
    outline-style: ridge;
    outline-color: red;
    outline-width: 10px;
    margin-left: auto;
    margin-right: auto;
}
#line2 {
    position: absolute;
    font-size: 1.0rem;
    text-align: center;
    top: 50%;
    right: 0;
    width: 10%;
    transition: width 2s;
    height: 6%;
    border: 3px solid DarkRed;
    background-color: gray;
}
#line1 {
    position: absolute;
    font-size: 1.0rem;
    text-align: center;
    top:60%;
    right: 0;
    width: 10%;
    transition: width 2s;
     height: 6%;
    border: 3px solid DarkRed;
    background-color: LawnGreen;
}
#line3 {
    position: absolute;
    font-size: 1.0rem;
    text-align: center;
    top: 70%;
    right: 0;
    width: 10%;
    transition: width 2s;
    height: 6%;;
    border: 3px solid DarkRed;
    background-color: gray;
}
#line4 {
    position: absolute;
    font-size: 1.0rem;
    text-align: center;
    top: 40%;
    right: 0;
    width: 10%;
    transition: width 2s;
    height: 6%;
    border: 3px solid DarkRed;
    background-color: gray;
}
#line5 {
    position: absolute;
    font-size: 1.0rem;
    text-align: center;
    top: 80%;
    right: 0;
    width: 10%;
    transition: width 2s;
    height: 6%;
    border: 3px solid DarkRed;
    background-color: gray;
}
#toptst {
    position: absolute;
    top: 90%;
    left: 0;
    visibility: hidden;
    width: 45%;
    height: 9%;
    border: 3px solid DarkRed;
    background-color: gray;
}
#bottst {
    position: absolute;
    top: 90%;
    right: 0;
    visibility: hidden;
    width: 45%;
    height: 9%;
    border: 3px solid DarkRed;
    background-color: gray;
}
#viewport
{
    background: red; /* For browsers that do not support gradients */
    background: radial-gradient(coral, CornflowerBlue);
 
    overflow:hidden;
    width: 100%;
    height: 85%;
    display:block;
}

#viewport.mobile
{
    position:absolute;

    top:80px;
    left:0px;

/* old values
    top:0px;
    left:0px;
*/

}
#viewport.tablet
{
    position:absolute;
    top:0px;
    left:0px;
}
#viewport.desktop
{
    position:fixed;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
}
#container
/*     width: 210px; */
{
    position:absolute;
    width: 320px;
    height: 440px;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -160px;
}

#container #header
{
    text-align: center;
}


#container #buttons
{
    margin-top:3px;
}

#container #buttons #play 
{
    font-family: 'Slackey'; 
    position:absolute;
    bottom:10px;
    left:30px;
    right:30px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    border-radius:10px;
    background-size:auto 62px;
}

#container #reels
{
    display:block;
    position:relative;
    height: 180px;
    overflow: hidden;
    text-align: center;
    background:#000;
    border: 10px solid;
   

    border:ridge 13px #14e367;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright:5px;
    -moz-border-radius-bottomleft:5px;
    -moz-border-radius-bottomright:5px;
    -webkit-border-top-left-radius:3px;
    -webkit-border-top-right-radius:5px;
    -webkit-border-bottom-left-radius:5px;
    -webkit-border-bottom-right-radius:5px;
    border-top-left-radius:3px;
    border-top-right-radius:5px;
    border-bottom-left-radius:5px;
    border-bottom-right-radius:5px;


}
#container #reels canvas
{
    width: 87px;
    height: 300px;
    position: relative;
    background: white;
    border: 2px solid gold;
}


#container #overlay #winline 
{	
    width: 100%;
    height: 5px;
    background: red;	
    position: relative;
    top: 50%;
}
#reels #results
{
    display: none;
    background: white;
    border: 3px solid gold;
    height: 120px;
    width: 250px;
    left: 20px;
    top: 15px;
    position: absolute;
    font-size: x-large;
}

#results #score {
    margin: 5px;
}

#results #score img {
    vertical-align: middle;
}


.button
{
    position:absolute;

    display:block;
    text-align: center;
    color: #fff;
    box-shadow: inset rgba(255,255,255,0.15) 0px 1px 0px;
    border: 1px solid rgba(0,0,0,0.15);
    background: lightblue; /* For browsers that do not support gradients */
    background: radial-gradient(lightblue, LawnGreen);
    background-position: 0px -1px;
    text-shadow:#000 0px 0px 1px;
    text-decoration: none;
}
.button.button-default
{
    background: lightblue; /* For browsers that do not support gradients */
    background: radial-gradient(lightblue, LawnGreen);
}
.button.button-default:hover
{
    background: red; /* For browsers that do not support gradients */
    background: linear-gradient(red, yellow);
    cursor:pointer;
}
.button.button-default:active
{
    background-image:-moz-linear-gradient(#ffb133,#b3671a);
    background-image:-webkit-gradient(linear, left top, left bottom, from(#ffb133), to(#b3671a));
}

@media only screen and (orientation:landscape) and (max-width: 490px) {
  body {
      height: 100vw;
      transform: 100vw;
      transform: rotate(90deg);
   }
}

@media screen and (max-width: 490px) {
    div {
        font-size: 0.7rem;
    }



   #credits {
        font-size: 10px;
      width: 200px;
    }
#crwon {
        font-size: 10px;
     width: 200px;
}
#crbet {
        width: 20px;
    background: LightCoral;
        font-size: 10px;
    padding: 15px; 
    }
   #line1 {
        font-size: 11px;
        top: 60%;
    }
   #line2 {
        font-size: 11px;
       top:45%;
    }
   #line3 {
        font-size: 11px;
       top: 75%;
    }
   #line4 {
        font-size: 11px;
        top: 35%;
    }
   #line5 {
        font-size: 11px;
       top: 85%;
    }
   .button {
        top: 75%;

    }
   #container {
      width: 190px;
 /*     margin-left: -135px;
      margin-top: -100px; */

   margin-left: -135px;
      margin-top: -155px

    }
   #container #reels canvas {
      width: 44px;
    }
   img {
      width: 220px;
    }
}

@media screen and (min-width: 491px) and (max-width: 899px) { 
    div {
        font-size: 0.8rem;
    }
  #credits {
        font-size: 14px;
      width: 200px;
    height: 8px;  
    }
#crwon {
        font-size: 14px;
    height: 8px; 
}
#crbet {
          width: 30px;
        font-size: 14px;
    height: 8px; 
        padding: 15px; 
}
   .button {
        top: 78%;
    }
   #container {
      width: 255px;
      margin-left: -165px;
      margin-top: -150px;
    }
   #container #reels canvas {
      width: 67px;
    }
   img {
      width: 300px;
    }
}
@media screen and (min-width: 900px)  { 
   img {
      width: 550px;
    }
}