#site { width: 60%; margin: 0 auto; border: 1px solid grey; padding: 1rem; } #site h2 { text-align: center; } .game { display: flex; flex-wrap: wrap; } .game #gamePanel { flex: 0 50%; } .game .overview { flex: 0 50%; } #gamePanel .field { display:inline-block; } #gamePanel .field.even { background-color: #aaa; } #gamePanel .field.odd { background-color: #ccc; } .field { position: relative; } .field .bobble { content: ""; position: absolute; border-radius: 50%; width: 20px; height: 20px; background-color: rgba(255,255,255,0.7); text-align:center; } .field.black.farmer { background-image: url(../img/bauer_black.png); } .field.white.farmer { background-image: url(../img/bauer_weiss.png); } .field.white.shogun { background-image: url(../img/king_weiss.png) } .field.black.shogun { background-image: url(../img/king_black.png) } .field { background-size:cover; background-repeat: no-repeat; } .field.farmer, .field.shogun { cursor:pointer; } #gamePanel .field.possibleMove { background-color: rgba(100,150,20, 0.8); } #gamePanel .field.field.possibleMove:hover { background-color: rgba(100, 170,20, 0.8); } #gamePanel .field.possibleMove.match { background-color: rgba(255, 37, 37, 0.6); } #gamePanel .field.possibleMove.match:hover { background-color: rgba(255, 0, 0, 0.6); }