.container {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 82px;
}

@font-face {
  font-family: "RobotoMono";
  src: local("RobotoMono-Regular"), url("../fonts/RobotoMono-Regular.woff2") format("woff2"), url("../fonts/RobotoMono-Regular.woff") format("woff");
  font-weight: 400;
  font-size: normal;
  font-display: swap;
}
@font-face {
  font-family: "RobotoMono";
  src: local("RobotoMono-SemiBold"), url("../fonts/RobotoMono-SemiBold.woff2") format("woff2"), url("../fonts/RobotoMono-SemiBold.woff") format("woff");
  font-size: 600;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
}

body {
  text-transform: uppercase;
  background: white;
  font-size: 14px;
  font-family: RobotoMono;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: center;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

button {
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  outline: none;
}

.main {
  position: relative;
}

.btn {
  padding: 10px 15px;
  border-radius: 5px;
  font-family: RobotoMono;
  font-weight: 400;
  background-color: #adabac;
  box-shadow: 3px 4px 1px 1px rgba(0, 0, 255, 0.2);
  transition: background-color 0.3s ease-in;
}
.btn:hover {
  background-color: #727272;
}

.disabled {
  pointer-events: none;
}

.disabled-opacity {
  pointer-events: none;
  opacity: 0.7;
}

.level-active {
  background-color: black;
  pointer-events: none;
  color: white;
}

@media (max-width: 768px) {
  body {
    overflow: hidden;
  }
}
.header__title {
  font-size: 45px;
  padding: 20px 0;
  padding-right: 250px;
  display: flex;
  justify-content: center;
}

.nonograms__container {
  display: flex;
  justify-content: center;
  column-gap: 20px;
}
.nonograms__content {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}
.nonograms__field {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  min-width: 489px;
  min-height: 489px;
  border-top: 3px solid black;
  border-left: 3px solid black;
  box-shadow: 11px 9px 2px 1px rgba(0, 0, 255, 0.2);
}
.nonograms__wrapper {
  display: flex;
  flex-direction: column;
  flex-basis: 70%;
}
.nonograms__wrapper-left {
  display: flex;
  flex-direction: column;
  flex-basis: 30%;
}
.nonograms__victory {
  position: absolute;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  padding: 20px;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #2a2a2a;
  background-image: url("../images/win.png");
  background-size: contain;
  opacity: 0.9;
}
.nonograms__victory-text {
  width: 100%;
  text-align: center;
  color: white;
}
.nonograms__block {
  flex-basis: 30%;
}
.nonograms__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.nonograms__list-top {
  align-self: flex-end;
  flex-basis: 30%;
  width: 100%;
}
.nonograms__list-left {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-basis: 70%;
}
.nonograms__list-field {
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  flex-basis: 70%;
}
.nonograms__left-clues {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  border-bottom: 1px solid black;
  column-gap: 5px;
  padding-right: 5px;
}
.nonograms__left-clues:first-child {
  border-top: 3px solid black;
}
.nonograms__left-clues:nth-child(5n+5) {
  border-bottom: 3px solid black;
}
.nonograms__top-clues {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 5px;
}
.nonograms__top-clues:not(:last-child) {
  border-right: 1px solid black;
}
.nonograms__top-clues:first-child {
  border-left: 3px solid black;
}
.nonograms__top-clues:nth-child(5n+5) {
  border-right: 3px solid black;
}
.nonograms__row {
  display: flex;
  flex: 1;
}
.nonograms__row:not(:last-child) {
  border-bottom: 1px solid black;
}
.nonograms__row:first-child {
  border-top: 3px solid black;
}
.nonograms__row:nth-child(5n+5) {
  border-bottom: 3px solid black;
}
.nonograms__cell {
  flex: 1;
}
.nonograms__cell:not(:last-child) {
  border-right: 1px solid black;
}
.nonograms__cell:first-child {
  border-left: 3px solid black;
}
.nonograms__cell:nth-child(5n) {
  border-right: 3px solid black;
}
.nonograms__menu {
  display: flex;
  flex-direction: column;
  max-width: 220px;
  width: 100%;
  align-items: center;
  row-gap: 20px;
  height: 100%;
  padding: 10px;
  border: 1px solid black;
  background-color: white;
  box-shadow: 11px 9px 2px 1px rgba(0, 0, 255, 0.2);
}
.nonograms__menu-wrapper {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
.nonograms__btn-random {
  width: 100%;
}
.nonograms__btn-score {
  width: 100%;
}
.nonograms__timer {
  font-size: 36px;
}
.nonograms__wrapper-swicth {
  display: flex;
  column-gap: 50px;
}

.bottom-btns {
  display: flex;
  justify-content: space-around;
}

.difficulty {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.difficulty__btn {
  padding: 10px 15px;
}
.difficulty__select {
  border: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  width: 100%;
  outline: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: RobotoMono;
  font-weight: 400;
  background-color: #adabac;
  box-shadow: 3px 4px 1px 1px rgba(0, 0, 255, 0.2);
}

.overlay {
  content: "";
  display: flex;
  align-items: center;
  z-index: 10;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(140, 149, 179, 0.8);
  padding: 0 8px;
}

.modal {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
  position: relative;
  max-width: 400px;
  width: 100%;
  background-color: rgb(127, 139, 222);
  min-height: 200px;
  border: 1px solid black;
  padding: 15px;
}
.modal__header {
  font-size: 20px;
}
.modal__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  row-gap: 10px;
  background-color: #ccccff;
  width: 100%;
  min-height: 155px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.modal__item {
  display: flex;
  column-gap: 40px;
  min-width: 60px;
  padding-left: 10px;
}
.modal__item-block {
  min-width: 80px;
}
.modal__btn-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background-color: transparent;
}
.modal__btn-close::before, .modal__btn-close::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: black;
  left: 0;
}
.modal__btn-close::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.modal__btn-close::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.theme {
  width: 40px;
  height: 40px;
  background-color: transparent;
}
.theme__moon {
  display: none;
}

.sound {
  width: 40px;
  height: 40px;
  background-color: transparent;
}
.sound__mute {
  display: none;
}

@media (max-width: 992px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .nonograms__menu {
    position: fixed;
    justify-content: center;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
  }
  .nonograms .open {
    transform: translateX(0);
  }
  .nonograms__timer {
    position: absolute;
    top: 52px;
    left: -115px;
  }
}
.burger {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  left: -50px;
  top: 15px;
  width: 40px;
  height: 30px;
  background-color: transparent;
}
.burger__line {
  width: 40px;
  height: 2px;
  background-color: black;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
}
.active {
  background-color: black;
}

.cross {
  font-size: 18px;
  color: rgb(130, 130, 192);
}