/* -------------------------------------------
---------------RESET
------------------------------------------- */

/* http://meyerweb.com/eric/tools/css/reset/  */
/* v2.0 | 20110126 */
/* License: none (public domain) */


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}



/* -------------------------------------------
---------------GENERAL
------------------------------------------- */


* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* = 10px */
}

body {
  font-family: sans-serif;
  font-size: 1.6rem; /* = 11px for all by default */
}


/* -------------------------------------------
---------------MAIN
------------------------------------------- */

.game {
  position: relative;
  display: flex;
  width: 800px;
  height: 550px;
  margin: 0 auto;
  padding: 10px;
}

.game.theme-ligth {
  background-color: rgb(239, 255, 236);
  border: 5px solid rgb(179, 179, 179);
}

.game.theme-dark {
  background-color: green;
  border: 5px solid rgb(0, 0, 0);
}

.game .alert {
  display: none;
  z-index: 1;
  text-align: center;
  position: absolute;
  width: 250px;
  height: 100px;
  top: calc(50% - 100px / 2);
  left: calc(50% - 150px / 2 - 250px / 2);
  font-size: 5rem;
  text-transform: uppercase;

  background-color: #b6b4b4;
}

.grid {
  width: 520px;
  height: 520px;
}

.mem-card {
  float: left;

  border-radius: 10px;

  overflow: hidden;
  cursor: pointer;
}

.mem-card.selected {
  background-color: white;
  border: 1px solid #c0c0c0;
  pointer-events: none;
}

.mem-card.selected .mem-img {
  display: block;
}

.mem-card.theme-ligth {
  background-color: lemonchiffon;
  border: 1px solid red;
}

.mem-card.theme-dark {
  background-color: antiquewhite;
  border: 1px solid grey;
}


.mem-img {
  display: none;
  height: 100%;
  padding: 2%;

  border-radius: 5%;
}

.empty {
  opacity: 0;
  cursor: default;
  pointer-events: none
}

.side {
  display: flex;
  flex-direction: column;
  width: calc(100% - 520px);
  padding-left: 20px;
}

.side > * {
  padding-bottom: 20px;
}

.side div:last-of-type {
  padding-bottom: 0px;
}

.timer {
  font-size: 3rem;
}

.leaderboard {
  display: flex;
  flex-direction: column;
}

.leaderboard-tabs {
  padding-bottom: 10px;
}

.leaderboard-tabs a {
  background-color: red;
  cursor: pointer;
  border: 1px solid black;
}

.leaderboard-tabs a:hover {
  background-color: green;
}

.leaderboard-results {
  overflow-y: scroll;
}

.leaderboard-results-table {
  width: 100%;
}

table, th, td {
  border: 1px solid black;
}

th {
  text-align: left;
}

table tr:nth-child(even) {
  background-color: #eee;
}
table tr:nth-child(odd) {
 background-color:#fff;
}
table th {
  background-color: black;
  color: white;
}
.table-name {
  max-width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}