/* главная*/

table.main{
 width:100%; 
}
table.main td.a{
 width:100%; 
 vertical-align:center;
 
}
/* Здесь будет реклама. Прижата к правому краю.*/

table.main td.b{
 width:0px;
 min-width:0px; 
 vertical-align:top;
}

/* Заставка для яндекса*/

#screenSaver{
  width:100%;
  height:100%;
  position:absolute; 
  top:0px;
  left:0px;
  z-index:1000;
  object-fit: fill; 
}
/* Правила игры.*/

div.rules{
 width:100%;
 max-width:500px;
 margin:100px auto;
 display:block;
 color:#444;
 background-color:#fff;
 padding:20px;
 box-sizing: border-box;
}
div.rules div{
  text-align:right;
  margin:30px 0px 0px 0px;
}

div.rules h2{
 line-height:110%;
 font-size:22px;
}
div.rules p{
  padding:0px;
  margin:8px 0px;
}
/* Подвал.*/

div.footer{
   text-align:center;
   padding-top:150px;
   color:#fff;
}

div.footer  a {
    color:#fff;
    margin: 5px;
    text-decoration: none;
    display: inline-block;
}

div.footer a:hover {
     color:#fff;
	 margin: 5px;
}
/* меню*/

#menu{
  display:none;
  position:absolute;
  top:45px;
  right:2px;
  background-color:#fff;
  padding:20px 15px;
  text-align:center;
  z-index:70;
  min-width:240px;
} 
#menu  a {
    color: black;
    padding: 10px 12px;
    display: block;
    text-align:left;
    cursor:pointer;
	text-decoration: none;
}

#menu  a:hover {
     background-color: #808080;
     color:#fff;
     cursor:pointer;
	 text-decoration: none;
}
#menu a img{
  margin:0px;
  padding:0px 0px 0px 15px;
  width:15px;
  height:15px;
  border:0px solid black;
}
/* меню выбор количества картинок*/

#menuNumberBalls{
  display:none;
  position:absolute;
  top:50px;
  background-color:#fff;
  padding:20px 15px;
  text-align:center;
  z-index:60;
  display:none;
} 
#menuNumberBalls  a{
    color: black;
    padding: 10px 12px;
    display: block;
    text-align:center;
    cursor:pointer;
	text-decoration: none;
}

#menuNumberBalls  a:hover {
     background-color: #808080;
     color:#fff;
     cursor:pointer;
	 text-decoration: none;
}
#menuNumberBalls a img{
  margin:0px;
  padding:0px 0px 0px 15px;
  width:15px;
  height:15px;
  border:0px solid black;
}
#menuNumberBalls button{
  margin:20px 10px 0px 10px; 
}
#menuNumberBalls div{
  margin-bottom:10px;
}
/* Над полем  для игры */

#newGame{
 width:100px;
 min-width:100px;
}
#newGame a{
 color:#444;
 padding:6px 10px;
 border-radius:5px; 
 border:2px solid #808080;
 cursor:pointer;
 text-decoration: none;
 
}
#newGame  a:hover {
     background-color: #808080;
     color:#fff;
	 text-decoration: none;
}


#tdRecord{
  text-align:center;
  font-size:14px;
 
}
#result{
  width:60px;
  text-align:center;
  font-size:14px;
 
}

#options{
  width:40px;
  text-align:right;
  position: relative;
}
#options img{
  cursor:pointer;
  width:30px;
  height:30px;
  opacity: 0.6;
  
}



/* Поле для игры */

table.game-and-title {
 margin:0 auto;
}

table.game-and-title h1{
 color:#FFFFFF;
 margin:0px;
 padding:0px;
 line-height:40px;
 font-size:24px;
}

table.tbgame{
  border:8px solid #FFFFFF; 
  background-color:#FFFFFF;
}
#game{
   display: block;
   cursor:pointer;
   touch-action: none;
}


/* общие*/

body{
   margin:0px;
   padding:0px;
   font-size:14px;
   font-family:arial,Times New Roman,Helvetica,sans-serif; 
   line-height: 19px;
   background-image:url('../images/bg.png');
 
}
table{
  border-collapse: collapse; 
  border-spacing: 0;        
  padding: 0;              
  margin: 0;  
}
td{
  text-align:left;
  vertical-align:center; 
  padding: 0;             
  margin: 0;              
  border: none; 
}
img{
  border: none;
  outline: none;
}
a{
    text-decoration: underline;
    color:#fff;
} 
a:visited{ 
    text-decoration: underline;
    color:#fff;
} 
a:hover {
    text-decoration: underline;
    color:#fff;
}
img.offImg{
   width:100px;
   height:100px;
   visibility:hidden;
   position: absolute;
    left: 0px; 
    top: 0px;
}

@media screen and (max-width:359px) {
#tdRecord{
  display:none;
}}
@media screen and (max-height:460px) {
#tdRecord{
  display:none;
}

#a1,#menu  span#a2,#menu  span#a3{
  display:none;
}}

@media screen and (max-width:800px) {
table.main td.b{
  width:0px;
  
}}
