/*
  Common stylesheet reset for cross-browser consistency
*/

/* 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;
}

/*
  My Code
*/

body {
  top: 0;
  left: 0;
  background-color: slategrey;
}
div.container1 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
  align-items: center;

  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  padding: 10px;
  background-color: #F57921;
  box-sizing: border-box;
}

.content {
  width: 60vh;
  margin: 5px 5px;
  box-sizing: border-box;
}

/* LOGO */

.container2 {
  display: inherit;
  height: 15vh;
}
img.logo{
  margin: 0 auto;
  min-height: 12%;
}

/* GAMEBOARD */

.container3 {
  height: 60vh;

  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;

  box-sizing: border-box;
  margin-bottom: 15px;
  background-color: #398BD4;
  border: 5px solid #FFCA08;
}
.grid-cell {
  width: 15%;
  height: 15%;
  /* TODO: Style precisely */
  max-height: 14.5%;
  max-width: 14.5%;
  margin: 2%;

  display: inherit;
  justify-content: center;
  align-items: center;

  font: 20px bolder arial;
  cursor: pointer;
  border-radius: 5px;
  background-color: #FFFFFF;

  -webkit-box-shadow: -5px 5px 5px 0 rgba(79,79,143,1);
  -moz-box-shadow: -5px 5px 5px 0 rgba(79,79,143,1);
  box-shadow: -5px 5px 5px 0 rgba(79,79,143,1);
}
.grid-cell.active {
  background-color: #ACCEEC;
}

/* SCOREBOARD */

.container4 {
  display: flex;
  flex-wrap: wrap;

  position: relative;
  height: 25vh;
  align-items: flex-start;
}
.current .scoreboard {
  position: absolute;
  left: 0;
}
.current {
  max-height: 20%;
  width: 70%;
}
.static {
  font: bold 18px arial verdana;
}
.submit {
  position: absolute;
  right: 0;
  background-color: ghostwhite;
  outline: none;
  border: none;
  max-height: 20%;
  width: auto;
  border-radius: 4px;
  font-size: 15px;
}
div.container5 {
  height: 80%;
  width: 100%;
  margin: 15px 0;
  overflow-y: auto;
}
table, th, td, tr {
  text-align: left;
  vertical-align: middle;
  padding: 5px 12px;
  border: 5px solid #FFCA08;
  background-color: #FFFFFF;
  border-collapse: collapse;
  white-space: nowrap;
}
table {
  min-width: 40%;
  max-width: 100%;
  max-height: 100%;
  margin-top: 3px;
}
th, tr.total {
  font-weight: bold;
}
tr.total th {
  background-color: #ACCEEC;
}

@media all and (min-width: 420px) {

  div.container1 {
    width: 40vw;
    min-width: 65vh;
  }

}