@import "reset.css";
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900&display=swap");
.light {
  --color: #313131;
  --bg-color: #f1f4fa;
  --minesweeper-color: rgba(206, 210, 217, 0.8);
  --controls-color: rgb(183, 186, 191);
  --cell-color: #ffffff;
  --cell-shadow-color: 0px 1px 0px rgba(0, 0, 0, 0.3);
}

.dark {
  --color: #ffffff;
  --bg-color:#727272;
  --minesweeper-color: #313131;
  --controls-color: #171616;
  --cell-color: #5d5d5d;
  --cell-shadow-color: 0px 1px 0px rgba(255, 255, 255, 0.3);
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--color);
  background-color: var(--bg-color);
}
body.hidden {
  overflow: hidden;
}

.container {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.minesweeper {
  margin-top: 60px;
  padding: 30px 20px;
  background-color: var(--minesweeper-color);
  border-radius: 8px;
}
@media (max-width: 600px) {
  .minesweeper {
    margin-top: 20px;
    padding: 20px 10px;
  }
}
@media (max-width: 400px) {
  .minesweeper {
    padding: 10px 5px;
  }
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.head img {
  cursor: pointer;
  transition: all 0.3s ease;
}
.head img:hover {
  transform: scale(1.2);
}
.head__title {
  font-size: 50px;
  margin: 0 30px;
}
@media (max-width: 1200px) {
  .head__title {
    font-size: calc(3vw + 12px);
  }
}

.values {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 400px) {
  .values {
    padding: 10px 10px;
  }
}
.values__item {
  display: flex;
  align-items: center;
}
.values__item span {
  font-weight: 700;
  font-size: 30px;
  margin-right: 5px;
}
@media (max-width: 600px) {
  .values__item span {
    font-size: 24px;
    margin-right: 2px;
  }
}
@media (max-width: 400px) {
  .values__item span {
    font-size: 18px;
  }
}
.values__item img {
  width: 25px;
}
@media (max-width: 400px) {
  .values__item img {
    font-size: 20px;
  }
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 0 20px;
}
@media (max-width: 400px) {
  .controls {
    margin-top: 10px;
  }
}
.controls button {
  padding: 8px;
  border-radius: 8px;
  background: var(--controls-color);
  transition: all 0.2s ease;
}
.controls button:active {
  transform: scale(0.9);
}
.controls button:hover {
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.controls-menu img, .controls-question img {
  width: 30px;
}

.addition {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: var(--controls-color);
}
@media (max-width: 600px) {
  .addition {
    flex-direction: column;
    margin: 20px 20px 0;
  }
}
.addition.show {
  display: flex;
}
.addition-level {
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  .addition-level {
    flex-direction: row;
    align-items: center;
  }
}
.addition-level span {
  font-weight: 700;
}
.addition-level select {
  margin-top: 5px;
  padding-left: 5px;
  width: 80px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .addition-level select {
    margin-top: 0;
    margin-left: 10px;
  }
}
.addition-count {
  display: flex;
  flex-direction: column;
}
@media (max-width: 600px) {
  .addition-count {
    margin-top: 10px;
  }
}
.addition-count span {
  font-weight: 700;
}
.addition-count__wrapp {
  margin-top: 5px;
  display: flex;
  align-items: center;
}
.addition-count input {
  margin-right: 5px;
  padding: 0 10px;
  width: 80px;
  height: 30px;
  border-radius: 8px;
  font-weight: 600;
}
.addition-count button {
  padding: 6px 10px;
  font-weight: 600;
  background: #FFFFFF;
  border-radius: 9px;
}
.addition__result {
  padding: 8px 12px;
  font-weight: 600;
  background: #FFFFFF;
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);
  border-radius: 9px;
}
@media (max-width: 600px) {
  .addition__result {
    margin-top: 15px;
  }
}

.field {
  margin-top: 30px;
  display: grid;
  width: 60vmin;
  max-width: 600px;
  height: 60vmin;
  max-height: 600px;
}
.field.easy {
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
}
.field.medium {
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
}
.field.hard {
  grid-template-columns: repeat(25, 1fr);
  grid-template-rows: repeat(25, 1fr);
}
@media (max-width: 400px) {
  .field {
    width: 90vmin;
    height: 90vmin;
  }
}

@media (max-width: 600px) {
  .field.hard {
    width: 80vmin;
    height: 80vmin;
  }
}
@media (max-width: 400px) {
  .field.hard {
    width: 90vmin;
    height: 90vmin;
  }
}
.field.hard .cell span {
  font-size: 8px;
}

.cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  border-radius: 3px;
  background: var(--cell-color);
  box-shadow: var(--cell-shadow-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
@media (max-width: 400px) {
  .cell {
    margin: 1px;
  }
}
.cell.clicked {
  font-weight: 900;
  background: none;
  box-shadow: none;
  cursor: default;
}
.cell.clicked:hover {
  box-shadow: none;
}
.cell.one {
  color: green;
}
.cell.two {
  color: #4e4ef0;
}
.cell.three {
  color: red;
}
.cell.four {
  color: rgb(255, 0, 221);
}
.cell.five {
  color: rgb(111, 0, 255);
}
.cell.six {
  color: rgb(255, 255, 0);
}
.cell.seven {
  color: rgb(0, 195, 255);
}
.cell.eight {
  color: rgb(0, 255, 115);
}
.cell.bombed {
  background: #f90000;
}
.cell:hover {
  box-shadow: inset 0 0 0 1px var(--controls-color);
  opacity: 0.8;
  filter: alpha(opacity=80);
}
.cell span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 600px) {
  .cell span {
    font-size: 10px;
  }
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 41, 41, 0.6);
  padding: 0 20px;
}
.popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-animation: popup-fade 0.5s ease forwards;
  animation: popup-fade 0.5s ease forwards;
}
.popup__content {
  display: flex;
  flex-direction: column;
  width: 300px;
  height: auto;
  max-height: 500px;
  padding: 12px;
  background: var(--controls-color);
  border-radius: 9px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.popup__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: none;
}
.popup__close span {
  padding: 4px 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color);
  border: 1px solid grey;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.popup__close:hover span {
  transform: scale(1.1);
}

.info {
  margin-top: 15px;
}
.info-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-flag p {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}
.info-field {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-field__cell {
  display: flex;
}
.info-field__cell div {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.info-field__cell div:nth-child(1) {
  color: green;
}
.info-field__cell div:nth-child(2) {
  color: blue;
}
.info-field__cell div:nth-child(3) {
  color: red;
}
.info-field p {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}
.info-cat {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-cat img {
  padding: 8px;
  border: 1px solid rgb(183, 186, 191);
  border-radius: 8px;
}
.info-cat p {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

.bomp-popup img {
  width: 100%;
}
.bomp-popup p {
  color: var(--color);
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
  font-weight: 700;
}

.win-popup img {
  width: 100%;
}
.win-popup p {
  color: var(--color);
  text-align: center;
  font-size: 17px;
  margin: 20px 0;
  font-weight: 700;
}

.result-popup {
  overflow: auto;
}
.result-popup__empty img {
  width: 100%;
}
.result-popup__empty h3 {
  color: var(--color);
  text-align: center;
  font-size: 18px;
  margin: 20px 0;
  font-weight: 700;
}
.result-popup__list li {
  margin: 8px 0;
  padding: 10px 10px;
  border-radius: 8px;
  background: var(--bg-color);
}
.result-popup__list li h3 {
  font-weight: 800;
  margin-bottom: 5px;
}
.result-popup__list li h3.Lose {
  color: red;
}
.result-popup__list li h3.Win {
  color: green;
}
.result-popup__list li h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 5px;
}
.result-popup__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@-webkit-keyframes backdrop-fade {
  from {
    background: transparent;
  }
  to {
    background: rgba(41, 41, 41, 0.6);
  }
}

@keyframes backdrop-fade {
  from {
    background: transparent;
  }
  to {
    background: rgba(41, 41, 41, 0.6);
  }
}
@-webkit-keyframes popup-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popup-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}/*# sourceMappingURL=style.css.map */