* {
    font-family: 'Zilla Slab', serif;
    font-size: 1.3rem;
  }

  h1{
    font-family: 'Zilla Slab', serif;
    font-size: 6vh;
    text-align: center;
    margin: 0;
  }
  
  body {
    background:#F2F2F2;
    margin: 0;
  }
  
  .card {
    background-color: #033F73;

    background-repeat: no-repeat;
    background-size: cover;
  
    width: auto;
    height: auto;
  
    border: none;
    margin: 1px;
    transition:.25s;
    transform: rotateY(180deg);
  
    animation: fadeIn 0.5s;
    animation-fill-mode: forwards;
  }
  
  .card:hover {
    background-color: #0f2c46;
  }
  
  .card.uncovered {
    transform: rotateY(0deg);
    background-color: #0078DF;
  }

  .card.mine {
    background-image: url('../images/bomb_emoji.png');
  }

  .card.flagged {
    background-image: url('../images/flag_emoji.png');  
  }

  /*
  Each class is for one card type
  */
  .card.oneMine {
    background-image: url('../images/one_emoji.png');
  }

  .card.twoMine {
    background-image: url('../images/two_emoji.png');
  }

  .card.threeMine {
    background-image: url('../images/three_emoji.png');
  }

  .card.fourMine {
    background-image: url('../images/four_emoji.png');
  }

  .card.fiveMine {
    background-image: url('../images/five_emoji.png');
  }

  .card.sixMine {
    background-image: url('../images/six_emoji.png');
  }

  .card.sevenMine {
    background-image: url('../images/seven_emoji.png');
  }

  .card.eightMine {
    background-image: url('../images/eight_emoji.png');
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    border-radius: 10px;
    padding:5px;
    width: calc(70vh);
    max-width: 790px;
  }
  
  .grid > div::before {
    content: "";
    padding-bottom: 100%;
    display: block;
  }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100vh;
    width: 100vw;
    margin: 0px;
  }
  
  .menu {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5em;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .menuButton {
    padding: 5px 0.5em ;
    border: 0px solid gray;
    background-color: #BF0426;
    margin: 5px;
    cursor: pointer;
    border-radius: 0.5em;
    font-size:1em;
  }
  
  .menuButton:hover {
    color: white;
    background: #4b0210;
  }
  
  .gridwrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
  }
  
  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:rgb(130,184,217, 0.4);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
  
    visibility: hidden;

  }
  #overlay * {
    pointer-events: none;
  }
  
  #overlay.active {
    visibility: visible;
  }
  
  #overlayin {
    padding: 1em;
    padding-left: 4em;
    padding-right: 4em;
    background-color: rgb(191,4,38,0.9);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #033F73;
    box-shadow: 0 0 20px black;
  }
  
  #overlayin p {
    opacity: 1;
    text-align: center;
    font-size: 1em;
  }
  
  p.big {
    font-size: 2em !important;
  }
  
  p.darker {
    color: #82B8D9;
  }
  
  
  #overlay.active #overlayin {
    opacity: 1;
  }
  
  #overlayin * {
    margin: 0px;
  }

  
  .status {
    margin-top: 5px;
    text-align: center;
    color:#BF0413;
  }

  span{
    padding-right: 10px;
    padding-left: 10px;
  }
  