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

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

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

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

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", sans-serif;
  background: linear-gradient(#88d1f3 1px, transparent 1px), linear-gradient(90deg, #88d1f3 1px, transparent 1px);
  background-size: 30px 30px;
  background-color: #f7f2e6;
  color: #a68a5c;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  color: #8b6f47;
}

h1 {
  text-align: center;
  font-size: 2.3rem;
}
@media (min-width: 1024px) {
  h1 {
    font-size: 4rem;
    margin: 1rem;
  }
}

@media (min-width: 1024px) {
  h2 {
    font-size: 3rem;
  }
}
.main,
.main__section {
  flex: 1;
  padding: 0 2rem;
}

.is-hidden {
  display: none;
}

.header {
  position: relative;
}
.header__logo {
  position: absolute;
  top: 1.5rem;
  left: 1.8rem;
  background-color: #fffefe;
  border: 2px solid #a68a5c;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  font-family: "Meddon", cursive;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 800;
  color: #8b6f47;
}
@media (min-width: 1024px) {
  .header__logo {
    top: 1rem;
    bottom: 7rem;
    left: 2.5rem;
    border: 3px solid #a68a5c;
    width: 5rem;
    height: 5rem;
    font-size: 1.5rem;
  }
}

.game-board {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
  background-color: #fffefe;
  border: 2px dashed #37353e;
  border-radius: 8px;
}

.game-board__word,
#game-message {
  font-size: 2rem;
  flex: 0 0 100%;
  text-align: center;
  margin: auto;
}
@media (min-width: 1024px) {
  .game-board__word,
  #game-message {
    font-size: 3rem;
  }
}

#game-message {
  color: #ff5555;
}

.game-stats {
  flex: 0 0 calc(50% - 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
}
.game-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fffefe;
  border: 1px solid #a68a5c;
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0 auto;
  min-width: 90px;
}
@media (min-width: 600px) {
  .game-stats__item {
    font-size: 1.5rem;
    min-width: 160px;
  }
}
.game-stats__value {
  font-weight: bold;
}
.game-stats__label {
  align-items: center;
  text-transform: uppercase;
  font-size: 0.9rem;
}
@media (min-width: 600px) {
  .game-stats {
    background-color: #fffefe;
    border: 1px solid #a68a5c;
    border-radius: 8px;
  }
}

.hangman-stage {
  background-color: #fffefe;
  border: 1px solid #a68a5c;
  border-radius: 8px;
  flex: 0 0 calc(50% - 2rem);
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

img {
  max-width: 90%;
  padding: 1rem;
}

.keyboard {
  background-color: #fffefe;
  border: 2px dashed #37353e;
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .keyboard__frame {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 1rem;
    justify-items: center;
  }
}
.keyboard__key {
  background: #fffefe;
  border: 2px solid #37353e;
  box-shadow: 3px 3px 0 #37353e;
  border-radius: 5px;
  color: #37353e;
  margin: 0.6rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
@media (min-width: 600px) {
  .keyboard__key {
    font-size: 1.5rem;
    margin: 0.3rem;
    min-width: 2rem;
  }
}
@media (min-width: 1024px) {
  .keyboard__key {
    font-size: 2rem;
    min-width: 3rem;
  }
}
@media (min-width: 600px) {
  .keyboard .keyboard__key:nth-child(15) {
    grid-column-start: 2;
  }
}
.keyboard__key:disabled {
  background: rgb(255, 254.1, 254.1);
  border-color: #37353e;
  opacity: 0.2;
  cursor: not-allowed;
  box-shadow: none;
}
.keyboard__special-keys {
  width: 100%;
  display: flex;
  justify-content: center;
}
.keyboard__reset {
  padding: 0.6rem 3rem;
  display: inline-flex;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .keyboard__reset {
    width: auto;
  }
}

.footer {
  background-color: #fffefe;
  padding: 2rem 1.5rem;
  border-radius: 30px 30px 0 0;
  text-align: center;
  color: #8b6f47;
  margin-top: 1rem;
}
.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer__email {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
}
.footer__email-link {
  color: #8b6f47;
  text-decoration: underline;
}
.footer__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer__social-link {
  color: #8b6f47;
  text-decoration: none;
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}
.footer__social-link:hover {
  opacity: 0.7;
}
.footer__copyright {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

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