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

.game {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.game h1 {
  font-size: 40px;
  font-weight: 600;
}
h2 {
  text-align: center;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
}

.boxes {
  width: 320px;
  height: 320px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  /* border-radius: 50%; */
  padding: 10px;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: center;
}
.box:focus,
.box:active {
  outline: none !important;
  box-shadow: none !important;
}

.box:hover {
  opacity: 0.8;
}
.purple {
  background-color: #9b59b6;
  border-top-left-radius: 100%;
}
.orange {
  background-color: #e67e22;
  border-bottom-left-radius: 100%;
}
.teal {
  background-color: #1abc9c;
  border-top-right-radius: 100%;
}
.pink {
  background-color: #e91e63;
  border-bottom-right-radius: 100%;
}
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.resetBtn,
.toggleBtn {
  width: 150px;
  height: 50px;
  background-color: #000;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.resetBtn:hover,
.toggleBtn:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}
.toggle {
  background-color: #000;
  color: #fff;
}
.flash {
  background-color: #fff;
  border: 3px solid #000;
}
