/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

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

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
figcaption,
figure {
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * Add the correct display in IE.
 */
main {
  display: block;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Links
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit;
}

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

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000;
}

/**
 * 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;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden;
}

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

/**
 * Show the overflow in IE.
 */
button {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button; /* 2 */
}

button,
[type=button],
[type=reset],
[type=submit] {
  /**
   * Remove the inner border and padding in Firefox.
   */
  /**
   * Restore the focus styles unset by the previous rule.
   */
}
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Show the overflow in Edge.
 */
input {
  overflow: visible;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-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 and cancel buttons in Chrome and Safari on macOS.
   */
}
[type=search]::-webkit-search-cancel-button, [type=search]::-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 */
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  color: inherit; /* 2 */
  white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto;
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/*
 * Add the correct display in IE 9-.
 */
menu {
  display: block;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
  display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  font-family: "Source Sans Pro", sans-serif;
}

h1 {
  padding: 0.67em 0;
  margin: 0px;
  font-size: 3rem;
}

span {
  font-size: 2rem;
  font-weight: 700;
}

.title {
  text-align: center;
}

.new-game, .easy-level, .medium-level, .hard-level, .btn-ok {
  background: #cccccc;
  width: 100px;
  text-align: center;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 1.5rem;
  margin: 10px auto;
  cursor: pointer;
  border: 1px solid rgb(188, 188, 188);
}

.new-game {
  background: rgb(12, 101, 153);
  color: #ffffff;
  margin-bottom: 0px;
  border: 1px solid rgb(12, 101, 153);
}

.btn-ok {
  width: 40px;
  margin-left: 10px;
}

.btn-active {
  background: rgb(12, 101, 153);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgb(12, 101, 153);
}

.new-game:hover,
.easy-level:hover,
.medium-level:hover,
.hard-level:hover,
.btn-ok:hover {
  opacity: 0.8;
}

.new-game {
  margin-top: 20px;
  width: 180px;
  font-size: 2rem;
  font-weight: 700;
  padding-bottom: 10px;
}

.size-board, .number-mines, .info-game {
  display: flex;
  max-width: 500px;
  height: 50px;
  margin: 0 auto;
  border-bottom: 1px solid #cccccc;
}
.size-board span, .number-mines span, .info-game span {
  margin-top: 10px;
}

.themes {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: url(../assets/svg/theme-dakr.svg) no-repeat center/contain;
}

.themes:hover, .sound:hover {
  opacity: 0.7;
  cursor: pointer;
}

.sound {
  position: absolute;
  top: 70px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: url(../assets/svg/sound-on-dark.svg) no-repeat center/contain;
}

.mute {
  background: url(../assets/svg/sound-off-dark.svg) no-repeat center/contain;
}

.number-mines input[type=number] {
  display: block;
  height: 28px;
  line-height: 28px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.7rem;
  margin-top: 10px;
  margin-left: 10px;
  width: 50px;
  border: 2px solid #cccccc;
  border-radius: 5px;
}

.info-game {
  justify-content: space-between;
}
.info-game .number-clics, .info-game .time-game, .info-game .number-flag {
  margin-top: 11px;
  font-size: 2rem;
}

.info-item {
  display: flex;
}
.info-item span {
  margin-right: 5px;
}

.story-res-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding-bottom: 20px;
  color: #000000;
}
.story-res-box h2 {
  font-size: 2.5rem;
  margin-top: 15px;
  margin-bottom: 15px;
}
.story-res-box .story-results {
  display: flex;
  flex-direction: column;
}
.story-res-box .story-results :nth-child(2n) {
  color: #4e4e4e;
}
.story-res-box span {
  display: block;
  width: 100%;
  margin-bottom: 5px;
}

.popup {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 350px;
  height: 200px;
  position: fixed;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  z-index: 9;
  font-size: 3rem;
  padding: 0 10px;
}

.popup-text {
  margin-bottom: 20px;
  text-align: center;
}

.popup-btn {
  text-align: center;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 2rem;
  cursor: pointer;
  background: rgb(12, 101, 153);
  color: #ffffff;
  font-weight: 700;
  width: 100px;
}

.popup-btn:hover {
  opacity: 0.7;
}

.blackout {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background-color: rgba(41, 41, 41, 0.7);
}

@media (max-width: 680px) {
  .story-results span {
    font-size: 1.7rem;
  }
}
@media (max-width: 580px) {
  .size-board, .number-mines, .info-game {
    padding: 0 5px;
  }
  .themes {
    right: 60px;
  }
  .sound {
    top: 20px;
  }
  .story-results span {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .title {
    padding-left: 5px;
    text-align: left;
  }
  .story-results span {
    font-size: 1.4rem;
  }
}
.board {
  display: flex;
  flex-wrap: wrap;
  margin: 0 10px;
  background: rgb(12, 101, 153);
  padding: 8px;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e2e2e2;
  width: 50px;
  height: 50px;
  box-shadow: inset 0 2px 0 0 #fcfcfc, inset 2px 0 0 0 #fcfcfc, inset 0 -2px 0 0 #c9c9c9, inset -2px 0 0 0 #c9c9c9;
  font-size: 2px;
  transition: 0.2s ease;
}
.cell.active {
  font-size: 3em;
}
.cell.flag {
  font-size: 3em;
}
.cell.num-one {
  font-size: 3em;
  color: rgb(0, 125, 228);
}
.cell.num-two {
  color: rgb(18, 153, 0);
}
.cell.num-three {
  color: rgb(204, 2, 2);
}
.cell.num-four {
  color: rgb(0, 40, 151);
}
.cell.num-five {
  color: rgb(145, 58, 0);
}
.cell.num-six {
  color: rgb(0, 150, 130);
}
.cell.num-seven {
  color: rgb(0, 0, 0);
}
.cell.num-eight {
  color: rgb(255, 255, 255);
}

.cell:hover {
  background: #eeeeee;
}

.active {
  background: #d5d5d5;
  box-shadow: inset 0 1px 0 0 #c9c9c9, inset 1px 0 0 0 #c9c9c9, inset 0 -1px 0 0 #c9c9c9, inset -1px 0 0 0 #c9c9c9;
  transition: 0.2s ease;
}

.active:hover {
  background: #d5d5d5;
}

.board-wrap {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #cccccc;
}

.easy-size {
  width: 516px;
}

.medium-size {
  width: 766px;
}

.hard-size {
  width: 1266px;
}

@media (max-width: 1310px) {
  .hard-size {
    width: 1016px;
  }
  .hard-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
}
@media (max-width: 1060px) {
  .hard-size {
    width: 766px;
  }
  .hard-size .cell {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}
@media (max-width: 810px) {
  .medium-size {
    width: 616px;
  }
  .medium-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
  .hard-size {
    width: 516px;
  }
  .hard-size .cell {
    width: 20px;
    height: 20px;
    font-size: 1.7rem;
  }
}
@media (max-width: 650px) {
  .medium-size {
    width: 466px;
  }
  .medium-size .cell {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}
@media (max-width: 590px) {
  .easy-size {
    width: 416px;
  }
  .easy-size .cell {
    width: 40px;
    height: 40px;
    font-size: 2.5rem;
  }
}
@media (max-width: 550px) {
  .hard-size {
    width: 391px;
  }
  .hard-size .cell {
    width: 15px;
    height: 15px;
    font-size: 1rem;
  }
}
@media (max-width: 499px) {
  .board-wrap {
    display: block;
  }
  .board {
    margin: 0 auto;
  }
}
/* @media (min-width: 500px){

    .medium-size {
        max-width: 466px;
        .cell {
            width: 30px;
            height: 30px;
            font-size: 2rem;
        }
    }

}



} */
body {
  background-image: url("../assets/img/bg_light.jpg");
  background-repeat: repeat;
}

.dark {
  background-image: url("../assets/img/bg_dark.jpg");
  background-repeat: repeat;
}
.dark .themes {
  background: url(../assets/svg/theme-light.svg) no-repeat center/contain;
}
.dark h1, .dark h2 {
  color: #ffffff;
}
.dark .cell {
  background: #3d3d3d;
  box-shadow: inset 0 2px 0 0 #fcfcfc, inset 2px 0 0 0 #fcfcfc, inset 0 -2px 0 0 #c9c9c9, inset -2px 0 0 0 #c9c9c9;
}
.dark .cell:hover {
  background: #575757;
}
.dark .active {
  background: #707070;
}
.dark .sound {
  background: url(../assets/svg/sound-on-light.svg) no-repeat center/contain;
}
.dark .mute {
  background: url(../assets/svg/sound-off-light.svg) no-repeat center/contain;
}
.dark span, .dark .number-clics, .dark .time-game, .dark .number-flag {
  color: #ffffff;
}
.dark .story-results :nth-child(2n) {
  color: #cecece;
}

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