.nonograms__clue--col, .nonograms__clue--row, .header {
  display: flex;
  justify-content: center;
  align-items: center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

ul,
li {
  -webkit-padding-start: 0;
  padding-inline-start: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

button {
  background: none;
  border: none;
}

button,
img,
a {
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

[aria-current=page] {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

object {
  pointer-events: none;
}

img {
  width: 100%;
  height: 100%;
}

html {
  font-size: 10px;
  font-style: normal;
}
html ::-webkit-scrollbar {
  width: 0;
}

#root {
  max-width: 1440px;
  margin: auto;
  min-height: 100vh;
  color: #403f3d;
  background-color: #e1d4c9;
  transition: all 0.5s;
}

#root.dark {
  color: #e1d4c9;
  background-color: rgba(64, 63, 61, 0.8);
}
#root.dark .button {
  background-color: #7fffd4;
  color: #ff7f50;
}
#root.dark .button > svg {
  filter: invert(74%) sepia(68%) saturate(3807%) hue-rotate(326deg) brightness(102%) contrast(101%);
}
#root.dark .button:hover {
  background-color: #ff7f50;
  color: #7fffd4;
}
#root.dark .button:hover > svg {
  filter: invert(97%) sepia(65%) saturate(806%) hue-rotate(70deg) brightness(103%) contrast(99%);
}

.section,
.header {
  max-width: 1360px;
  padding: 20px;
  margin: auto;
}

.button__container {
  margin-top: 3rem;
  width: 30rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 1.5rem 1rem;
}

.button {
  background-color: #ff7f50;
  color: #7fffd4;
  border-radius: 3rem;
  padding: 1.2rem 2rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  align-content: center;
  column-gap: 1rem;
}
.button > svg {
  filter: invert(97%) sepia(65%) saturate(806%) hue-rotate(70deg) brightness(103%) contrast(99%);
}
.button:hover {
  background-color: #7fffd4;
  color: #ff7f50;
}
.button:hover > svg {
  filter: invert(74%) sepia(68%) saturate(3807%) hue-rotate(326deg) brightness(102%) contrast(101%);
}

h3 {
  font-size: 2rem;
}

.select__container {
  display: flex;
  column-gap: 2rem;
  margin-bottom: 3rem;
}

.header .button__container {
  width: 20rem;
  margin: 0;
}
.header .button__container > button {
  background-color: #e1d4c9;
}
.header .button__container > button > svg {
  filter: invert(74%) sepia(68%) saturate(3807%) hue-rotate(326deg) brightness(102%) contrast(101%);
}

/* ==================== DARK ==================== */
#root.dark .header .button__container > button {
  background-color: transparent;
}
#root.dark .header .button__container > button > svg {
  filter: invert(97%) sepia(65%) saturate(806%) hue-rotate(70deg) brightness(103%) contrast(99%);
}

.nonograms {
  display: flex;
  justify-content: space-around;
  /* ==================== CLUE & LOGO ==================== */
  /* ==================== BOARD ==================== */
}
@media (max-width: 1200px) {
  .nonograms {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 1200px) {
  .nonograms__timer {
    margin-top: 2rem;
  }
}
.nonograms .wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  row-gap: 2rem;
}
.nonograms__title {
  font-size: 3rem;
  margin-right: 2rem;
}
.nonograms__wrapper {
  width: 403px;
  box-sizing: content-box;
  border: 3px solid rgba(64, 63, 61, 0.8);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.nonograms__select {
  font-size: 1.6rem;
  font-size: 1.6rem;
  background: #ff7f50;
  outline: 4px solid #7fffd4;
  border-radius: 20px;
  padding: 10px;
  border-right: 16px solid transparent;
  color: #7fffd4;
}
.nonograms__timer {
  font-size: 2rem;
}
.nonograms__logo {
  height: 20rem;
}
.nonograms__logo, .nonograms__clues.left {
  width: 20rem;
  box-sizing: content-box;
}
.nonograms__clues.top, .nonograms__board {
  width: 20rem;
  height: 20rem;
  box-sizing: content-box;
}
.nonograms__logo, .nonograms__clues.top {
  border-bottom: 3px solid rgba(64, 63, 61, 0.8);
}
.nonograms__clues.top, .nonograms__clues.left {
  display: flex;
}
.nonograms__logo, .nonograms__clues.left {
  border-right: 3px solid rgba(64, 63, 61, 0.8);
}
.nonograms__clue {
  display: flex;
  flex-direction: column-reverse;
}
.nonograms__clue--col, .nonograms__clue--row {
  box-sizing: border-box;
  width: 4rem;
  height: 4rem;
  border: 0.5px solid rgba(64, 63, 61, 0.8);
  font-size: 1.6rem;
  font-weight: bold;
}
.nonograms__clues.left {
  flex-wrap: wrap;
}
.nonograms__clues.left .nonograms__clue {
  box-sizing: border-box;
  flex-direction: row-reverse;
}
.nonograms__board {
  box-sizing: border-box;
}
.nonograms__board--row {
  height: 4rem;
}
.nonograms__board--item {
  height: 4rem;
  width: 4rem;
  box-sizing: border-box;
  border: 0.5px solid rgba(64, 63, 61, 0.8);
  height: 100%;
  background-color: #e1d4c9;
}
.nonograms__board--item.active {
  background-color: rgba(64, 63, 61, 0.8);
}
.nonograms__board--item.cross {
  position: relative;
}
.nonograms__board--item.cross span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 2.6rem;
  height: 3px;
  background-color: #403f3d;
  transition: all 0.5s;
  transform: translateX(-1.3rem);
}
.nonograms__board--item.cross span:first-child {
  transform: translateX(-1.3rem) rotate(45deg);
}
.nonograms__board--item.cross span:last-child {
  transform: translateX(-1.3rem) rotate(-45deg);
}

/* ==================== MEDIUM ==================== */
@media (max-width: 850px) {
  .nonograms.medium .nonograms__logo {
    height: 10rem;
  }
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__logo, .nonograms.medium .nonograms__clues.left {
    width: 10rem;
  }
}
.nonograms.medium .nonograms__clues.top .nonograms__clue:nth-child(5) .nonograms__clue--col {
  border-right: 3px solid rgba(64, 63, 61, 0.8);
}
.nonograms.medium .nonograms__clues.left .nonograms__clue:nth-child(5) .nonograms__clue--row {
  border-bottom: 3px solid rgba(64, 63, 61, 0.8);
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__clue--col, .nonograms.medium .nonograms__clue--row {
    width: 2rem;
    height: 2rem;
  }
}
.nonograms.medium .nonograms__wrapper {
  width: 60.3rem;
  height: 60.3rem;
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__wrapper {
    width: 30.3rem;
    height: 30.3rem;
  }
}
.nonograms.medium .nonograms__board {
  width: 40rem;
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__board {
    width: 20em;
  }
  .nonograms.medium .nonograms__board--row:nth-child(4) {
    height: 19px;
  }
  .nonograms.medium .nonograms__board--row:nth-child(5) {
    height: 21px;
  }
}
.nonograms.medium .nonograms__board--row .nonograms__board--item:nth-child(5) {
  border-right: 3px solid rgba(64, 63, 61, 0.8);
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__board--row {
    height: 2rem;
  }
}
.nonograms.medium .nonograms__board--row:nth-child(5) .nonograms__board--item {
  border-bottom: 3px solid rgba(64, 63, 61, 0.8);
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__board--item {
    width: 2rem;
    height: 2rem;
  }
}
.nonograms.medium .nonograms__clues.top {
  width: 40rem;
}
@media (max-width: 850px) {
  .nonograms.medium .nonograms__clues.top {
    width: 20em;
    height: 10rem;
  }
}

.nonograms.hard .nonograms__clues.top .nonograms__clue:nth-child(5) .nonograms__clue--col,
.nonograms.hard .nonograms__clues.top .nonograms__clue:nth-child(10) .nonograms__clue--col {
  border-right: 3px solid rgba(64, 63, 61, 0.8);
}
.nonograms.hard .nonograms__clues.left .nonograms__clue:nth-child(5) .nonograms__clue--row,
.nonograms.hard .nonograms__clues.left .nonograms__clue:nth-child(10) .nonograms__clue--row {
  border-bottom: 3px solid rgba(64, 63, 61, 0.8);
}
.nonograms.hard .nonograms__board--row .nonograms__board--item:nth-child(5),
.nonograms.hard .nonograms__board--row .nonograms__board--item:nth-child(10) {
  border-right: 3px solid rgba(64, 63, 61, 0.8);
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__board--row {
    height: 2rem;
  }
}
.nonograms.hard .nonograms__board--row--row:nth-child(4), .nonograms.hard .nonograms__board--row--row:nth-child(9) {
  height: 19px;
}
.nonograms.hard .nonograms__board--row--row:nth-child(5), .nonograms.hard .nonograms__board--row--row:nth-child(10) {
  height: 21px;
}
.nonograms.hard .nonograms__board--row:nth-child(5) .nonograms__board--item, .nonograms.hard .nonograms__board--row:nth-child(10) .nonograms__board--item {
  border-bottom: 3px solid rgba(64, 63, 61, 0.8);
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__board--item {
    width: 2rem;
    height: 2rem;
  }
}
.nonograms.hard .nonograms__wrapper {
  width: 80.3em;
  height: 80.3rem;
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__wrapper {
    width: 40.3em;
    height: 40.29em;
  }
}
.nonograms.hard .nonograms__board, .nonograms.hard .nonograms__clues.top {
  width: 60rem;
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__board, .nonograms.hard .nonograms__clues.top {
    width: 30em;
  }
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__logo {
    height: 10rem;
  }
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__logo, .nonograms.hard .nonograms__clues.left {
    width: 10rem;
  }
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__clues.top {
    height: 10rem;
  }
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__clues.top, .nonograms.hard .nonograms__board {
    width: 30rem;
  }
}
.nonograms.hard .nonograms__clue--col, .nonograms.hard .nonograms__clue--row {
  width: 4rem;
  height: 4rem;
}
@media (max-width: 850px) {
  .nonograms.hard .nonograms__clue--col, .nonograms.hard .nonograms__clue--row {
    width: 2rem;
    height: 2rem;
  }
}

.best__results {
  font-size: 3rem;
}

.results__table {
  font-size: 2rem;
}

.best__results {
  font-size: 3rem;
}

.results__table {
  font-size: 2rem;
}

/* ==================== DARK ==================== */
#root.dark .nonograms__select {
  font-size: 1.6rem;
  font-size: 1.6rem;
  background: #7fffd4;
  outline: 4px solid #ff7f50;
  border-radius: 20px;
  padding: 10px;
  border-right: 16px solid transparent;
  color: #ff7f50;
}
#root.dark .nonograms__clue--col, #root.dark .nonograms__clue--row {
  border-color: #e1d4c9;
}
#root.dark .nonograms__logo, #root.dark .nonograms__clues.top, #root.dark .nonograms__clues.left {
  border-color: #e1d4c9;
}
#root.dark .nonograms__wrapper {
  border: 3px solid #e1d4c9;
}
#root.dark .nonograms__board--item {
  background-color: transparent;
  border-color: #b0907a;
}
#root.dark .nonograms__board--item.active {
  background-color: #e1d4c9;
}
#root.dark .nonograms__board--item.cross span {
  background-color: red;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(64, 63, 61, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadein 1s;
}

.modal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: coral;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.modal__close-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 2px solid #f1cdb3;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -55px;
  right: -45px;
  cursor: pointer;
}

.modal__close-icon :hover {
  cursor: pointer;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.results {
  width: 30rem;
  color: #7fffd4;
  margin-bottom: 2rem;
}
.results__table {
  width: 90%;
  margin: 0 auto 1rem;
}

.own__results {
  font-size: 3rem;
}

.best__results {
  font-size: 2.5rem;
}

.own__results,
.best__results {
  text-align: center;
  padding: 1rem 0;
}

.own__results > span {
  color: #e1d4c9;
}

table,
th,
td {
  border: 1px solid;
}

th,
tr {
  color: #e1d4c9;
  font-size: 2rem;
}

td {
  text-align: center;
}

/*# sourceMappingURL=style.css.map */
