ul,
li {
  list-style: none;
  text-align: center;
}

* {
  padding: 0;
  margin: 0;
  border: 0;
}

body {
  background-color: #fff;
  width: 100vw;
  max-height: 100vh;
}

.start {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 10px auto;
  font-size: 25px;
  cursor: pointer;
}
.start * {
  padding: 10px;
}

.rule,
.results,
.mesage {
  position: fixed;
  z-index: 5;
  display: flex;
  max-width: 100vw;
  max-width: 500px;
  min-width: 300px;
  max-height: 100vh;
  min-height: 300px;
  background-color: #ffffff;
  top: 0;
  font-size: 20px;
  border: #3b3737 solid 2px;
}

.mesage p {
  margin: auto auto;
  font-size: 40px;
}

.start.hiden {
  display: none;
}

.timer-window {
  height: 20px;
  padding-top: 10px;
  width: 90px;
  margin: 0 auto;
}

.plate {
  position: relative;
  margin: 0 auto;
  width: min-content;
  max-width: 100vw;
  max-height: 83vh;
  display: flex;
  flex-direction: column;
}

.line {
  display: flex;
  position: relative;
}

.square-wrap {
  width: 30px;
  margin: 3px;
  position: relative;
}

.square {
  width: 100%;
  padding-bottom: 100%;
  text-align: center;
  background-color: rgb(120, 150, 185);
  border: 1px solid rgb(120, 150, 185);
  display: flex;
  justify-content: center;
}
.square p {
  display: block;
  width: 100%;
  font-size: 1.7cqmax;
  position: absolute;
  top: 0;
  left: 0;
}

.counter {
  display: flex;
  justify-content: space-between;
  width: 290px;
  margin: 0 auto;
}

.checked {
  background-color: rgb(233, 81, 54);
}

.open {
  background-color: white;
}

._1 {
  color: blue;
}

._2 {
  color: green;
}

._3 {
  color: red;
}

._4 {
  color: rgb(1, 1, 68);
}

.restart {
  margin: 5px auto;
  height: 30px;
  width: 150px;
  background-color: rgb(235, 80, 80);
  border-radius: 20px;
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 28px;
}

.off {
  text-decoration: line-through;
}

.dark {
  background-color: #3b3737;
  color: #fff;
}
.dark .rule,
.dark .results {
  background-color: #3b3737;
  border: #c9c9c9 solid 2px;
}
.dark .open {
  background-color: #3b3737;
}
.dark .mesage {
  background-color: #3b3737;
  border: #c9c9c9 solid 2px;
}
.dark .mesage p {
  color: #fff;
}