.grid {
  height: 400px;
  width: 400px;
  display: flex;
  flex-wrap: wrap;
  background-color: lightgray;
  padding: 10px;
}

.grid div {
  width: 40px;
  height: 40px;
  background: #c0c0c0;
  border: 2px outset #ececec;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  justify-content:center;
  align-items: center;
  font-weight: bold;
  font-size: 24px;  
}
.grid div:hover {
  background: #9e9e9e;
  border: 2px outset #ececec;
}
div.checked {
  background: #9e9e9e;
  border: 1px solid #808080;
}
div.checked:hover {
  background: #9e9e9e;
  border: 1px solid #808080;
}
.bomb {
  /* background: green!important; */
}
.bomb-1 {
  color: green;
}
.bomb-2 {
  color: yellow;
}
.bomb-3 {
  color: orange;
}
.bomb-4, .bomb-5, .bomb-6, .bomb-7, .bomb-8 {
  color: #bd2c2c;
}
div.flag {
  background: #ff572214;
}
div.flag:hover {
  background: #ff572214;
}

.info {
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  font-size: 30px;
  padding: 10px;
}
.info div {
  flex: 1;
}
#restart {
  cursor: pointer;
  text-align: center;
}
#timeLeft {
  text-align: right;
}
.over {
  color: red;
}

.info, .grid {
  margin: 0 auto;
}
p {
  text-align: center;
}

