  /* Fonts: 
  - Kalam used as main text font, 
  - M PLUS Rounded used as a symbol font for suits */
  @import url('https://fonts.googleapis.com/css?family=Kalam');
  @import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c');

  * {
    font-family: 'Kalam';
  }

  body {
    height: 100vh;
    display: block;
    align-items: center;
    background: linear-gradient(to top left, #28b487, #7dd56f);
    background: linear-gradient(to top left, #CDE, #FFF);
    color: #000F55;
    font-size: 1em;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  h1 {
    font-size: 50px;
    line-height: 1.3;
    width: 100%;
    padding-top: 25px;
    margin: 0;
    text-align: center;
    font-weight: lighter;
    /*color: black;*/
  }

  h2 {
    font-size: 1.5em;
    font-weight: lighter;
    width: fit-content;
    padding: 0 1em;
    margin: 0.5em auto;
    border-bottom: #111F66 2px solid;
  }

  section {
    width: 100%;
    align-items: center;
    text-align: center;
    margin: auto;
    display: block;
  }

  table {
    border: solid #111F66 2px;
    border-collapse: collapse;
    width: auto;
    margin: auto;
    align-items: center;
    outline: none;

    /* use BORDER IMAGE value to make table look as if drawn with skethcy lines  
      https: //developer.mozilla.org/en-US/docs/Web/CSS/border-image
      */
  }

  tr,
  td,
  th {
    border: solid #111F66 1px;
    padding: 0 1em;
    width: fit-content;
    text-align: center;
  }

  td:first-child {
    text-align: left;
  }

  thead {
    font-weight: bold;
  }

  td:not(:first-child) {
    font-weight: bold;
  }

  td span.align-right {
    float: right;
    font-weight: bold;
  }

  span.suit-red,
  .modal span.suit-red {
    color: darkred !important;
    font-family: 'M PLUS rounded 1c' !important;
  }

  span.suit-black,
  .modal span.suit-black {
    color: black !important;
    font-family: 'M PLUS rounded 1c' !important;
  }

  button {
    width: 50px;
    height: 20px;
    margin: 10px;
    cursor: pointer;
  }


  /* game info */
  .game-info-field {
    width: fit-content;
    text-align: center;
    display: block;
    max-width: 100%;
    min-width: 50%;
    margin: 0 auto;
    font-size: inherit;
    border: none;
  }

  ol {
    clear: both;
    width: fit-content;
    display: inline-block;
    text-align: left;
    line-height: 2.0em;
  }

  .name-field {

    display: inline-block;
    width: fit-content;
    resize: none;
    max-lines: 1;
    height: 1.4em;
    font-size: 1em;
    border: none;
    padding: 0 1em;
    border-bottom: #111F66 1px solid;
    color: #111F66;
  }

  /* round info */

  #round-selector-section {
    display: flex;
    align-items: center;
    width: fit-content;
  }

  #round-selector-section * {
    margin: 0 0.5em;
    padding: 0;
    vertical-align: top;
  }

  .warning-color {
    text-decoration: underline wavy violet;
    background-color: #EEDDFF;
  }

  .inline-button {
    border: none;
    background: none;
    font-size: large;
    height: 100%;

  }

  .round-scores-table,
  .round-scores-table tr,
  .round-scores-table td {
    border: none;
    width: fit-content;
    padding: 0;
  }

  .round-scores-table td:nth-child(2) {
    padding: 0px 1em;
    white-space: nowrap;
  }

  /* Chrome, Safari, Edge, Opera */
  input.number-field::-webkit-outer-spin-button,
  input.number-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Firefox */
  input.number-field[type=number] {
    -moz-appearance: textfield;
  }

  .number-field {
    font-size: 1.2em;
    width: 2.5em;
    text-align: center;
    display: inline-block;
  }

  .number-field-button {
    display: inline-block;
    background: none;
    background-color: none;
    font-size: 1.1em;
    margin: 0;
    width: 1.75em;
    height: 1.75em;
  }

  table.erroneous .number-field {
    background-color: lightpink;
  }

  .modal .align-right {
    float: right;
    display: block;
  }

  select {
    display: inline-block;
    font-size: 1em;
    border: none;
    color: #111F66;
    border-bottom: #111F66 solid 1px;
    cursor: pointer;
  }

  select#game-type-dropdown {
    text-align: right;
  }

  select option:hover {
    cursor: pointer;
  }

  select option {
    background-color: white;
    color: #000F55;
  }

  select option.default {
    background-color: lightgray;
    color: gray;
  }

  /* MODALS AND VISIBILITY */

  .hidden {
    display: none;
  }

  .overlay {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 5;
  }

  .modal,
  .modal close-modal {
    margin: 0;
    padding: 0;
  }

  .modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    background-color: white;
    padding: 4rem 4rem 1rem 4rem;
    border-radius: 5px;
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
    z-index: 10;
    text-align: center;
  }

  .close-modal {
    position: absolute;
    color: #000F55;
    top: 0.5rem;
    right: 2rem;
    font-size: 4rem;
    cursor: pointer;
    border: none;
    background: none;
  }

  .ok-button {
    color: #000F55;
    background-color: none;
    display: block;
    font-size: 1.5em;
    background: none;
    border: #000F55 dotted 4px;
    width: 4em;
    height: 2em;
    margin: 1em auto;
    cursor: pointer;
  }

  .ok-button:disabled {
    color: gray;
    background-color: lightgray;
    border: darkgray;
    cursor: default;
  }

  /* Reusable classes */

  .hover-highlight:hover:not([disabled]) {
    background-color: #D1DFFE;
  }

  .modal .hover-highlight:hover:not([disabled]) {
    background-color: #DEF;
  }

  *:disabled {
    color: #AAA;
    background: none;
    border: darkgray;
    cursor: default;
  }

  option.erroneous,
  table.erroneous .number-field,
  select.erroneous {
    color: darkred;
    background-color: lightpink;
  }

  option:checked {
    text-align: center;
  }