table {
    font: 11px tahoma;
    color: #826C55;
}

/*** tetris 168,308 ***/

div.tavolo {
    position: relative;
    width: 372px;
    height: 522px;
    border: 1px solid #BAA68E;
    background-color: #ffffff;
    margin: auto;
    margin-top: 20px;
    @media only screen and (max-height: 500px) {
      width: 300px;
      height: 350px;
    }
}

div.tasti {
   position: absolute;
   top: 440px;
   width: 100%;
   height: 82px;
   background-color: #dcdcdc;
}

/*** left ***/

div.tavolo .left {
    /*background-color: #F5EDE3;*/
    background-color: #dcdcdc;
    position: absolute;
    width: 130px;
    height: 442px;
    left: 240px;  /*0px;*/
    top: 0px;
    @media only screen and (max-height: 500px) {
      height: 260px;
      left: 168px;
    }
}

div.tavolo .left h1 {
    font-size: 11px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
div.tavolo .left h1 a {
    color: #3366CC;
    text-decoration: none;
}
div.tavolo .left h1 a:hover {
    color: #FF6600;
    text-decoration: none;
}

/* menu */

div.tavolo .left .menu {
    text-align: center;
}

div.tavolo .left input {
    font: 10px tahoma;
    color: #333333;
    text-transform: uppercase;
    background-color: #EAE0D1;
}
div.tavolo .left .menu input {
    width: 90px;
}

/* keyboard */

/*
div.tavolo .left .keyboard {
    position: absolute;
    top: 163px;
    left: 32px;
    width: 85px;
    height: 55px;
    overflow: visible;
    display: none;
}
div.tavolo .left .keyboard input {
    font: 11px tahoma;
    width: 25px;
    height: 25px;
    padding-bottom: 2px;
    text-transform: none;
}
* html div.tavolo .left .keyboard input {
    padding-left: 1px;
}
div.tavolo .left .keyboard .up {
    position: absolute;
    left: 30px;
    top: 0px;
    width: 30px;
    height: 30px;
}
div.tavolo .left .keyboard .up input {
    font: 15px tahoma;
    padding-top: 3px;
}
div.tavolo .left .keyboard .down {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 30px;
    height: 30px;
}
div.tavolo .left .keyboard .down input {
    font: 14px tahoma;
}
div.tavolo .left .keyboard .left {
    position: absolute;
    left: 0px;
    top: 30px;
    width: 30px;
    height: 30px;
}
div.tavolo .left .keyboard .right {
    position: absolute;
    left: 60px;
    top: 30px;
    width: 30px;
    height: 30px;
}
*/

/* game over */

#tetris-gameover {
    position: absolute;
    width: 100%;
    top: 196px;
    text-align: center;
    font-weight: bold;
    display: none;
}

/* next puzzle */
#tetris-nextpuzzle {
    position: absolute;
    top: 195px;
    left: 35%;
    background-color: #ffffff;
    overflow: visible;
    display: none;
}


/*
div.risultato {
   display: inline-block;
   position: absolute;
   margin-top: 200px;
   margin-left: 10px;
}
p.risultato {
   display: inline-block;
   position: absolute;
   margin-top: 190px;
   margin-left: 1rem;
   width: 23rem;
}
*/

div.risultato {
   display: inline-block;
   position: absolute;
   margin-left: 5px;
   width: 121px;
   margin-top: 130px;
   font-family: verdana, arial;
   font-size: 16px;
   color: #000000;
}

p.risultato {
   display: inline-block;
   position: relative;
   margin-top: 10px;
   padding-top: 5px;
   padding-bottom: 5px;;
   width: 100%;
   text-align: center;
   background-color: lightcyan;
   border-radius: 20px;
}

p.livello {
   margin-top: 0px;
}

span.risultato {
   /*text-align: right;/
   /*padding-right: 2px;*/
   font-weight: bold;
}

/* stats */

div.tavolo .left .stats {
    position: absolute;
    left: 35px;
    bottom: 10px;
}
div.tavolo .stats td { padding-bottom: 1px; }


/*** area ***/

div.tetris-area {
    background-color: #FFFFFF;
    position: absolute;
    width: 240px;
    height: 440px;
    left: 0px;  /*131px;*/
    top: 1px;
    overflow: hidden;
    @media only screen and (max-height: 500px) {
      width: 168px;  /* 12 quadratini di 14px ciascuno */
      height: 308px;  /* 22 quadratini di 14px ciascuno */
    }
}

div.tavolo .block0,
div.tavolo .block1,
div.tavolo .block2,
div.tavolo .block3,
div.tavolo .block4,
div.tavolo .block5,
div.tavolo .block6 {
    position: absolute;
    width: 19px;
    height: 19px;
    border: 0.5px solid #ffffff;
    /* with margin 0.5px there were problems with offsetLeft and offsetTop */
    @media only screen and (max-height: 500px) {
      width: 13px;
      height: 13px;
    }
}
div.tavolo .block0,
div.tavolo .block1 {
    background-color: #6699FF;
}
div.tavolo .block2,
div.tavolo .block3 {
    background-color: #FF6600;
}
div.tavolo .block4 {
    background-color: #FFAC1C;
}
div.tavolo .block5 {
    background-color: #BAA68E;
}
div.tavolo .block6 {
    background-color: #FF0000;
}

/*** window ***/

div.tavolo .window {
    background-color: #ffffff; /* #EFE8DE;*/
    position: absolute;
    width: 100%;
    height: 440px;
    /*left: 131px;*/
    /*top: 1px;*/
    z-index: 5;
    display: none;
    /*
    @media only screen and (max-height: 500px) {
      width: 168px;
      height: 308px;
    }
    */
}
div.tavolo .window .top {
    position: relative;
    background-color: #EAE0D1;
    color: #666666;
    font: 10px tahoma;
    letter-spacing: +1px;
    height: 20px;
    line-height: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #ffffff;
    text-indent: 10px;
}
div.tavolo .window .top .close {
    position: absolute;
    background-color: #EAE0D1;
    font: 11px verdana;
    font-weight: bold;
    right: 0px;
    top: 0px;
    height: 20px;
    line-height: 19px;
    text-indent: 7px;
    width: 21px;
    border-left: 1px solid #ffffff;
    cursor: pointer;
}
div.tavolo .window .top .close:hover {
    background-color: #EFE8DE;
}
div.tavolo .window .content {
    font-size: 12px;
    font-family: verdana, arial;
    margin: 10px;
}
div.tavolo .window .content table {
    font: 10px tahoma;
}

button.gvTasti {
   margin-top: 10px;
   padding-left: 10px;
   padding-right: 10px;
   padding-top: 5px;
   padding-bottom: 5px;
   border-radius: 30%;
   border-width: 1px;
   border-style: solid;
   border-color: #777777;
   outline: none;
   font-size: 3rem;
   font-weight: bold;
   cursor: pointer;
   background-color: #f5f5f5;
}

button.gvLeft {
   margin-left: 10px;
}

button.gvDown {
   margin-left: 20px;
}

button.gvDownDown {
   margin-left: 10px;
}

button.gvRotate {
   margin-left: 20px;
}

button.gvRight {
   margin-left: 10px;
}

button.gvMenu {
   margin-top: 10px;
   padding-left: 10px;
   padding-right: 10px;
   padding-top: 5px;
   padding-bottom: 5px;
   border-radius: 10px;
   border-width: 1px;
   border-style: solid;
   border-color: #777777;
   outline: none;
   font-size: 1.6rem;
   font-weight: normal;
   cursor: pointer;
   background-color: #f5f5f5;
}

button.Rivedi {
   padding-top: 0px;
   padding-bottom: 0px;
   padding-left: 0px;
   padding-right: 0px;
   border-radius: 0px;
   outline: none;
   border: none;
   width: 10rem;
   text-align: left;
   background-color: aliceblue;
   color: #0000ff;
   position: absolute;
   font-family: Verdana, Arial;
   font-size: 1.6rem;
   font-weight: bold;
   font-style: normal;
   margin-left: 30px;
   margin-top: 0rem;
   cursor: pointer;
   display: none;
   visibility: hidden;
}