div.active {
  background-color: red;
  color: white;
  padding: 16px 32px;
  opacity: 1;
  transition: 0.3s;
}

* {
  box-sizing: border-box;
}

.game {
  padding: 20px;
  max-width: 1400px;
  display: flex;
}

.wrap {
  display: flex;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.grid>* {
  box-shadow: inset 0 0 0 1px #fff;
  border: solid black 1px;
  height: 30vh;
  width: 30vh;
  background-color: lightgray;

}

.side-bar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.side-bar>* {
  padding: 45px;
  height: 30vh;
  align-self: center;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
