* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;

  font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}

h1 {
  position: absolute;
  left: -9999px;
}

.card {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  height: 20vh;
  position: relative;
  overflow: hidden;

  font-size: 36px;
  text-decoration: none;
  color: rgba(0,0,0,.2);
  transition: color .2s ease-in-out;
}

  .card .fab {
    font-size: 100px;
  }

  /* Desktops - set borders */
  @media screen and (min-width: 1281px) {
    .card {
    }
  }

  /* Tablets - two columns */
  @media screen and (max-width: 1280px) {
    .card {
      flex-basis: 70%;
      font-size: 24px;
    }
  }

  /* Mobile - full width */
  @media screen and (max-width: 768px) {
    .card {
      flex-basis: 100%;
    }
  }

  .card .overlay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    
    text-align: center;
    background-color: black;
    color: white;

    opacity: 0;
    transition: opacity 0s ease-in-out;
  }

    @media screen and (max-width: 1280px) {
      .card .overlay {
        height: auto;
        width: auto;
        max-width: 80%;
        opacity: .8;
        border-radius: 10px;
        padding: 20px;
      }
    }

    .card .overlay .number {
      display: block;
      width: 100%;
      font-size: 72px;
      margin-bottom: 20px;
    }

      @media screen and (max-width: 1280px) {
        .card .overlay .number {
          font-size: 36px;
          font-weight: bold;
          margin-bottom: 10px;
        }
      }

  .card img {
    z-index: 1;
    opacity: .8;
    

    transition:  opacity .3s ease-in-out;
  }

  
  .card:hover .overlay {
    opacity: .8;
  }

  .card:hover {
    color: rgba(0,0,0,.7);
  }