:root {
  --fg-default:#C5C6C7;
  --bg-default:#0B0C10;

  --header-font: ;
  --fg-header:#ffffff;
  --bg-header:linear-gradient(to top, #1d2675 0%,#2a3698 100%);

  --cell-font: "impact, sans-serif";
  --fg-cell:#d49f4b;
  --bg-cell:linear-gradient(to top, #1d2675 0%,#2a3698 100%);
}

* {
  padding:0;
  margin:0;
  word-wrap: break-word;
}

html {
  color-scheme: light dark;
  background: var(--bg-default);
  height:95vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.22;
  height:100vh;
  white-space: nowrap;
  background: var(--bg-default);
}

h1 {
  color:var(--fg-default);
  text-align:center;
}

#file {
  width:100%;
  height:100%;
  display:none;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(to right, var(--fg-default) 8px, transparent 8px) 0 0,
    linear-gradient(to right, var(--fg-default) 8px, transparent 8px) 0 100%,
    linear-gradient(to left, var(--fg-default) 8px, transparent 8px) 100% 0,
    linear-gradient(to left, var(--fg-default) 8px, transparent 8px) 100% 100%,
    linear-gradient(to bottom, var(--fg-default) 8px, transparent 8px) 0 0,
    linear-gradient(to bottom, var(--fg-default) 8px, transparent 8px) 100% 0,
    linear-gradient(to top, var(--fg-default) 8px, transparent 8px) 0 100%,
    linear-gradient(to top, var(--fg-default) 8px, transparent 8px) 100% 100%;

  background-repeat: no-repeat;
  background-size: 20px 20px;
}
#file input[type=file]{
  height:100%;
  width:100%;
  position:absolute;
  top:0;
  left:0;
  opacity:0;
  cursor:pointer;
}

#game {
  display: none;
  width: 100%;
  height: 100%;
  text-align:center;
  table-layout: fixed;
}

#game th {
  font-family: var(--header-font);
  font-size: 2vw;
  color: var(--fg-header);
  background: var(--bg-header);
  white-space: pre-line;
  height:0;
}

#game td {
  font-family: var(--cell-font);
  font-size: 3.5vw;
  color: var(--fg-cell);
  background: var(--bg-cell);
  white-space: pre-line;
}

.value {
  text-shadow: 5px 5px black;
  font-weight:bold;
}
td:not(.selected):hover {
  cursor:pointer;
}
.question,
.answer {
  display: none;
  color: var(--fg-header);
}

td.selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 99.9vw;
  height: 100%;
  z-index:100;
}

td.selected .value {
  width: 100%;
}
td.selected .question {
  margin: 10% 0 0 0;
  display: block;
}

td.revealed:not(.selected) .value{
  font-style:italic;
  opacity: 5%;
}
td.selected.revealed .answer {
  display: block;
  margin: 5% 0 0 0;
  padding: 5% 0 0 0;
  border-top:1px solid var(--fg-header);
}

#scores {
  z-index: 200;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

#scores div {
  margin: 5px;
  padding: 5px;
  color: #000000;
  background: #fff;
  display: inline-block;
}

#scores div input {
  padding: 5px;
  text-align: center;
  font-size: 20px;
}

#scores div input[type=text] {
  width: 80px;
}
#scores div input[type=button] {
  width: 30px;
}
