* {
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}
body {
  background: #333 url('bg.png');
  color: #eee;
  text-align: center;
}
h1 {
  font-size: 24px;
  margin: 50px auto;
  font-weight: bold;
}
div.flags {
  margin: 0 auto 20px auto;
}
img.flag {
  width: 24px;  
  height: 20px;
  border: 1px solid #d1d3d4;
  vertical-align: middle;
  margin: 0 5px;
}
table {
  overflow: hidden;
  margin: 20px auto 50px auto;
}
th, td {
  padding: 2px 5px;
  border: 1px solid #999;
  position: relative;
  outline: 0;
  vertical-align: middle;
  text-align: center;
}
th { background: #000 }
tr.crossout td {
  background-image: linear-gradient(135deg, #333 25%, transparent 25%, transparent 50%, #333 50%, #333 75%, transparent 75%, transparent 100%);
  background-size: 32px 32px;
}
tr.crossout:hover td {
  background-image: none;
}
table tbody td:hover, table tbody th:hover {
  background: #000;
}
body:not(.nohover) tbody tr:hover {
  background-color: rgba(100, 100, 100, 0.6);
}
td:hover::after,
thead th:not(:empty):hover::after,
td:focus::after,
thead th:not(:empty):focus::after {
  content: '';
  height: 50000px;
  left: 0;
  position: absolute;
  top: -5000px;
  width: 100%;
  z-index: -1;
}
td:hover::after,
th:hover::after,
td:focus::after,
th:focus::after {
  background-color: rgba(100, 100, 100, 0.6);;
}
td:focus::before,
tbody th:focus::before {
  background-color: rgba(100, 100, 100, 0.6);
  content: '';  
  height: 100%;
  top: 0;
  left: -5000px;
  position: absolute;  
  width: 10000px;
  z-index: -1;
}
textarea {
  border: none;
  outline: none;
  width: 100px;
  height: 30px;
  resize: none;
  background: transparent;
  color: #eee;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
}
textarea::selection {
  background: #f60!important;
}
textarea::-moz-selection {
  background: #f60!important;
}
tbody tr td:first-child textarea {
  font-size: 24px;
}
@media screen and (max-width: 600px) {
  table, thead, tbody, th, td, tr { display: block }
  table { width: 85% }
  thead tr { 
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    border: 1px solid #ccc;
    padding: 10px 2px;
    background-color: #333;
  }
  td {
    border: none;
    position: relative;
    background-image: none!important;
    background-color: #333;
  }
  td:before { 
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%; 
    padding-right: 10px; 
    white-space: nowrap;
  }
}