body {
  text-align: center;
  background-image: url(assets/new-background1.jpeg);
  background-size: fit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.grid {
  display: -ms-grid;
  display: grid;
  max-width: 700px;
  margin: 0 auto;
  height: 550px;
  border: 3px dashed blueviolet;
}

.space {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
}

.hidden {
  /* margin-bottom: 5px; */
  margin-top: 5px; 
  width: 25%;
  height: 22%;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  visibility: hidden;
}

.btn {
  margin-top: 8px;
  margin: 8px;
  border-radius: 8px;
  font-size: 16px;
  padding: 8px 8px 2px 15px;
  display: inline-block;
  text-align: center;
  color: #8c71ef;
  background-color: white;
  border: 2px solid #8c71ef;
}

h1 {
  font-size: xx-large;
  color: #8cacef;
}

h2 {
  font-size: large;
  color: #8cacef;
}

.livesCount {
  color: #e74c3c;
}

.space {
  color: white;
  font-size: large;
  font-weight: bold;
}

p {
  font-size: large;
}

#resetBtn {
  color: blueviolet !important;
  text-transform: uppercase;
  background: #ffffff;
  padding: 20px;
  border: 4px solid blueviolet !important;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease 0s;
}

.winState {
  color: white; 
  margin-bottom: 5px;
}

/* Modal Box */
#modal {
  background-color: rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  overflow: auto;
  display: none;
  background-image: url(assets/modal-background.jpeg);
  background-position: right;
}

#modal-textbox {
  background-color: white;
  height: 300px;
  width: 550px;
  border-radius: 10%;
  margin: 150px auto;
  padding: 2%;
  line-height: 120%;
}

#modal-footer {
  text-align: right;
}

.modal-buttons {
  color: blueviolet !important;
  text-transform: uppercase;
  background: #ffffff;
  padding: 20px;
  border: 4px solid blueviolet !important;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease 0s;
}

#close {
  text-decoration: none;
  color: blueviolet !important;
  text-transform: uppercase;
  background: #ffffff;
  padding: 20px;
  border: 4px solid blueviolet !important;
  border-radius: 6px;
  display: inline-block;
}

#modal-text {
  color: black;
}

#modal-header {
  color: black;
}