/* -------------------- *\
# BASE
\* -------------------- */
html {
  box-sizing: border-box;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

:root {
  --xxs: 0.15em; /* 2.5 */
  --xs: 0.3em; /* 5 */
  --sm: 0.5em; /* 8 */
  --md: 1em; /* 16 */
  --lg: 1.25em; /* 20 */
  --xl: 1.5em; /* 24 */
  --xxl: 2em; /* 32 */
}

body {
  margin: var(--lg);
  align-items: center;
  background-color: #34495e;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  height: 90vh;
  overflow: hidden;
}

/* -------------------- *\
    # UTILITY CLASS AND SIMILARS
\* -------------------- */
.main-title {
  margin: var(--md) 0 0;
}

/* -------------------- *\
    # FIGURE
\* -------------------- */

.figure-container {
  fill: transparent;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 4px;
}

.figure__part {
  display: none;
}

/* -------------------- *\
    # GAME BOARD
\* -------------------- */

.game-board {
  height: 350px;
  margin: auto;
  padding: var(--lg) var(--xxl);
  position: relative; /* context for inside elements */
  width: 450px;
}

/* -------------------- *\
    # DISPLAY LETTERS
\* -------------------- */
.display-letters {
  display: flex;
  flex-direction: column;
  text-align: right;
  position: absolute;
  right: var(--lg);
  top: var(--lg);
}

.display-letters p {
  margin: 0 0 var(--xs);
}

.display-letters span {
  font-size: 1.5rem;
  color: rgb(245, 190, 190);
  margin-right: var(--xxs);
}

/* -------------------- *\
    # DISPLAY WORD
\* -------------------- */
.display-word {
  bottom: var(--sm);
  display: flex;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
}

.display-word__letter {
  align-items: center;
  border-bottom: var(--xxs) solid #2980b9;
  color: rgb(160, 248, 218);
  display: inline-flex;
  font-size: 1.8rem;
  height: 50px;
  justify-content: center;
  margin: 0 var(--xxs);
  width: var(--sm);
}

/* -------------------- *\
    # POPUP
\* -------------------- */
.popup {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.popup__container {
  background-color: #2980b9;
  border-radius: 5px;
  box-shadow: 0 15px 10px 3px rgba(0, 0, 0, 0.1);
  padding: var(--lg);
  text-align: center;
}

.popup.show {
  display: flex;
}

/* -------------------- *\
    # BUTTON
\* -------------------- */
.btn {
  background-color: #fff;
  border: 0;
  border-radius: 5px;
  color: #2980b9;
  cursor: pointer;
  font-size: 1rem;
  margin-top: var(--lg);
  padding: var(--md) var(--lg);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus {
  outline: none;
}

/* -------------------- *\
    # NOTIFICATION
\* -------------------- */
.notification {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px 10px 0 0;
  bottom: -75px;
  left: 43%;
  padding: var(--md) var(--lg);
  position: absolute;
  transition: transform 0.3s ease-in-out;
}

.notification__message {
  margin: 0;
}

.notification.show {
  transform: translate3d(0, -75px, 0);
}
