@font-face {
  font-family: 'lucky';
  src: url('/fonts/luckiestguy-webfont.woff') format('woff');
}

html {
  font-size: 16px;
}

body {
  font-family: 'lucky', serif;
  background-color: #f3efdd;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.container {
  text-align: center;
}

h1 {
  margin: 40px 0;
  color: #363636;
}

.grid {
  height: 400px;
  width: 400px;
  display: flex;
  flex-wrap: wrap;
  background-color: #1d867f;
  margin: 0 auto;
}

.grid div {
  height: 38px;
  width: 38px;
  text-align: center;
  line-height: 38px;
  border: solid 1px #0b3142;
  font-weight: 100;
}

.showBombs {
  background-color: #fa9b11;
}

.checked {
  background-color: #a8ab4d;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-container {
  background-color: #fefefe;
  margin: 15% auto;
  border: 1px solid #888;
  width: 80%;
}

.modal-content {
  width: 100%;
  height: auto;
  padding-bottom: 20px;
  position: relative;
  background-color: #009688;
}

/* Buttons style and animations */
.btns {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.btn {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  margin: 0;
  padding: 1.5rem 4.5rem;
  background: #fcf9e5;
  color: #004d40;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: normal;
  border: 0;
  border-radius: 0.4rem;
  box-shadow: -1px 1px 8px rgba(0, 0, 0, 0.4);
  appearance: none;
  cursor: pointer;
  transition: background 250ms, box-shadow 250ms;
  z-index: 10;
}

.btn:hover {
  background: #fdd835;
  box-shadow: -2px 2px 16px rgba(0, 0, 0, 0.6);
}

.btn:active,
.btn:focus {
  outline: none;
}

.btn:active {
  box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.8);
}

.btn-reset {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  padding: 0.35em;
  background-color: #fdd835;
  cursor: pointer;
  margin-top: 20px;
}

.btn-reset-icon {
  width: 100%;
  height: 100%;
  fill: red;
}

/* Tooltip */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 16px;
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
  margin-top: 10px;
  margin: 10px 0 0 -60px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}
