body {
    margin: 0;
    padding: 0;
    text-align: center;

    background: #1a1e23;
    margin: 0;
  }

  #loading {
    z-index: 9999999; 
    position: absolute;
    width: 100%;
    top:0;
    left:0;
    height: 10px;
    visibility: hidden;
  }

  .loading-bar-container {
    height: 2px;
    width: 100%;
    background-color: #cfe0f0;
    position: absolute;
    overflow: hidden;
  }
  
  .loading-bar {
    height: 100%;
    width: 50%;
    background-color: rgb(68 138 255);
    position: absolute;
    left: -50%;
    animation: load 2s ease-in 0.5s infinite;
  }
  
  @keyframes load {
   0% {
    transform:translateX(0)
   }
   to {
    transform:translateX(400%)
   }
  }

  #grid {
    box-sizing: border-box;
    position: absolute;
    z-index: 9999;
    margin-left:auto;
    margin-right: auto;
    height: min(90vw, 90vh);
    width: min(90vw, 90vh);
    table-layout: fixed;
    
    bottom: calc(50% - min(90vw, 90vh)/2);
    left: calc(50% - min(90vw, 90vh)/2);

      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
  }

  #grid table {
    box-sizing: border-box;
  }

  #grid td {
    cursor: pointer;
    border: solid black 1px;
    border-radius: 10px;

    background-color: white;
    display: table-cell;

    margin: 0;
    font-size: min(18vw, 18vh);
    text-align: center;
    font-weight: bold;
    
    opacity: 0.7;
  }
  #grid td:hover {
    opacity: 0.9;
  }

  #settings-btn {
    color: yellow;
    cursor: pointer;
    font-size: 36px;
    opacity: 0.7;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

#settings-btn:hover {
    opacity: 1;
}


.mdl-dialog {
    width: 90vw;
    text-align: left;
    max-width: 600px;
}
.mdl-dialog .mdl-textfield, .mdl-dialog input[type="number"] {
    width: 100%;
}

#settings-dialog .row-spacer {
    display: block;
    height: 20px;
}


#settings-dialog::backdrop {
    background-color: black;
    opacity: 0.5;
}

#settings-dialog table {
    font-size: calc(12px + 0.5vh);
}

#settings-dialog td {
    padding-bottom: 20px;
    padding-right: 30px;
}