/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.15; /* 1. Correct the line height in all browsers. */
  -webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
}

/*
Sections
========
*/
body {
  margin: 0; /* Remove the margin in all browsers. */
}

/*
Text-level semantics
====================
*/
/**
Add the correct font weight in Chrome and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/
/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
  border-color: currentcolor;
}

/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}

.action-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5em;
}
.action-buttons .action-buttons__button {
  color: #515151;
  background: transparent;
  padding: 0.4em 1em;
  border: 1px solid #d1d1d1;
}
.action-buttons .action-buttons__button:not(.disabled):hover {
  color: #f8f8f8;
  background: #fc8e39;
  -webkit-transform: scale(1);
          transform: scale(1);
}
.action-buttons .action-buttons__button.disabled {
  color: #d1d1d1;
  -webkit-transform: scale(1);
          transform: scale(1);
  cursor: auto;
}

.button {
  font-family: "Jersey 15", serif;
  font-size: 1.5em;
  color: #f8f8f8;
  background: #fc8e39;
  border: none;
  border-radius: 3px;
  padding: 0.4em 1.4em;
  cursor: pointer;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.button:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.button.active {
  background: #dc5628;
}
.button__start {
  font-size: 2.2em;
  padding: 0.4em 1.8em;
}

.difficulty-buttons-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}

.gameboard {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 1em;
  height: 100%;
}
.gameboard__buttons, .gameboard__info {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
}
.gameboard__info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  gap: 0.5em;
  font-family: "Jersey 15", serif;
  font-size: 3em;
  color: #515151;
}
.gameboard__input {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  -ms-flex-item-align: center;
      align-self: center;
  font-family: "Jersey 15", serif;
  color: #515151;
  font-size: 5em;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: 100%;
  max-height: 100px;
  border-radius: 7px;
  padding: 10px 15px;
  text-align: center;
  border: 1px solid #fc8e39;
}

@media (width <= 600px) {
  .gameboard {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 2em;
  }
  .gameboard__buttons {
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
  }
  .gameboard__info {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }
  .gameboard__input {
    width: 90%;
    font-size: 2.2em;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }
}
.game-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background-color: #f8f8f8;
}
.game-container__game {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 70vh;
          flex: 1 0 70vh;
  padding: 1em;
}
.game-container__bottom-part {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 30vh;
          flex: 1 0 30vh;
}
.game-container__start-screen {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px;
  height: 100%;
}

.info__difficulty {
  text-transform: capitalize;
}
.info__level-progress {
  letter-spacing: 0.3em;
  margin-right: -0.3em;
}

.keyboard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.3em;
  padding: 1em;
}
.keyboard__button {
  --size: 2.5em;
  font-family: "Jersey 15", serif;
  font-size: 1.5em;
  color: #515151;
  width: var(--size);
  height: var(--size);
  border-radius: 3px;
  background: #f8f8f8;
  border: 1px solid #c5c5c5;
  -webkit-box-shadow: inset 0 0 15px rgba(51, 51, 51, 0.3);
          box-shadow: inset 0 0 15px rgba(51, 51, 51, 0.3);
  cursor: pointer;
}
.keyboard__button.active {
  background: #fc8e39;
  color: #f8f8f8;
  -webkit-box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
          box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.3);
}
.keyboard__button.error {
  background: #dc5628;
  color: #f8f8f8;
}

.title {
  font-family: "Jersey 15", serif;
  font-size: 3em;
  color: #515151;
  text-align: center;
}

.popup {
  font-family: "Jersey 15", serif;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #f8f8f8;
  border: 1px solid #515151;
  -webkit-box-shadow: 0 0 10px rgba(81, 81, 81, 0.2);
          box-shadow: 0 0 10px rgba(81, 81, 81, 0.2);
  padding: 20px 25px;
  width: 100%;
  max-width: 80%;
  z-index: 999;
}
.popup__message {
  font-size: 2.2em;
  text-align: center;
}
.popup__close-btn {
  font-size: 1.5em;
  color: #f8f8f8;
  background: #fc8e39;
  border: none;
  border-radius: 3px;
  padding: 0.4em 1.4em;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}/*# sourceMappingURL=main.css.map */