* {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    max-height: 100vh;
}

.content {
    margin: 0 auto;
}

body{
    display: grid;
    grid-template-columns: repeat(1fr);
    height: 100vh;
}

/* ==== HEADER ====*/

header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    border-bottom: 1px solid #999;
    min-width: 480px;
    max-width: 27%;
    padding: 5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.question i,
.mode i{
    color: #999;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}


header h2{font-size: 30px;}

/* ==== GRILL ====*/

.grill {
    margin: 130px auto;
}

.animate-grill{
    animation: grill .3s forwards;
}

@keyframes grill {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.0);
        border-color: hsl(0, 3%, 15%);
    }
  }

.row{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px;
}

.item {
    border: 2px solid #D4D5D5;
    min-height: 65px;
    min-width: 60px;
    margin: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}


/*==== KEYBOARD ====*/

.keyboard {
    margin: 0 auto;
    width: 450px;
}

.row-keyboard{
    display: flex;
    justify-content: center;
}

.row-keyboard i {
    font-size: 20px;
}

.key {
    background-color: #ddd;
    border-radius: 3px;
    padding: 3px 4px 3px 4px;
    min-height: 50px;
    min-width: 35px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 3px;
    cursor: pointer;
    text-align: center;
    flex: 1;
    display:flex;
    justify-content: center;
    align-items: center;
}

.key-special{
    min-width: 70px;
}

.key-special-del{
    min-width: 55px;
}

/*==== MODAL INSTRUCTION ====*/
.modal{
    height: 100vh;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
}


.modal_instruction {
    display: flex;
    justify-content: center;
    position: absolute;
    background-color: #fff;
    padding: 20px 0;
    height: 600px;
    width: 450px;
    top:0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    visibility: visible;
}

.hide{
    visibility: hidden;
}

.animation-in{
    animation-duration: .4s;
    animation-name: fade;
}

@keyframes fade {
    from {
      opacity: 0;
      transform: scale(0.9);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

.animation-out{
    animation-duration: .5s;
    animation-name: fadeOff;
}

@keyframes fadeOff {
    from {
      opacity: 1;
      transform: scale(1);
    }

    to {
      opacity: 0;
      transform: scale(0.9);
    }
  }

.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.example_grid{
    display: flex;
    min-height: 50px;
    min-width: 50px;
}

.example_cell{
    border: 2px solid hsl(0, 0%, 50%);
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    min-height: 50px;
    min-width: 50px;
    margin: 3px;

}

.green{
    color: #fff;
    background-color: #6AAA64;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    min-height: 50px;
    min-width: 50px;
    opacity: 0;
}

.yellow{
    color: #fff;
    background-color: #C9B559;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    min-height: 50px;
    min-width: 50px;
}

.gray{
    color: #fff;
    background-color: #797D7E;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    min-height: 50px;
    min-width: 50px;
    opacity: 0;

}

.flip-animation{
    animation-duration: .5s;
    animation-name: flip;
    animation-fill-mode: forwards;
}

@keyframes flip {
    from {
      transform: rotateX(90deg);
      background-color: #fff;
      opacity: 1;
    }

    to {
        transform: rotateX(0deg);
        opacity: 1;
    }
  }

.close{
    font-weight: 700;
    color: #999;
    text-align: right;
    cursor: pointer;
}

p{
    font-size: 14px;
    margin: 10px 0;
}

span{
    font-weight: 700;
}

h2{
    font-size: 25px;
}

h4{
    margin: 10px 0;
}

.content-btn{
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_play{
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    background-color: #6AAA64;
    padding: 10px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: block;
}

/*==== MESSAGE ====*/

.message{
    background-color: #ddd;
    position: absolute;
    top: 2%;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    padding: 20px 50px;
    border-radius: 10px;
}

.message p {
    font-size: 16px;
}

.msg-animation{
    animation: zoomIn 1s;
}

@keyframes zoomIn {
    from {
      transform: scale(0);
    }

    to {
        transform: scale(1);
    }
  }

/*==== DARK ====*/
.modal-bg,
.dark_bg{
    background-color: #131212;
}

.modal_instruction_dark{
    color: #fff;
    background-color: #131212;
}

.dark_key {
    color: #fff;
    background-color: hsl(200, 1%, 62%);
}



.dark_grid {
    border: 2px solid #414041;
    color: #fff;
}

.dark_font{
    color: #fff;
}

.dark_icon{
    color: #D4D5D5!important;
}

.dark_header {
    border-bottom: 1px solid #414041;
}


/*=== Color cells ===*/

.yellow-key,
.yellow-cell{
    color: #fff;
    background-color: #C9B559;
}

.gray-key,
.gray-cell{
    color: #fff;
    background-color: #797D7E;
}

.green-key,
.green-cell{
    color: #fff;
    background-color: #6AAA64;
}


/*=== END GAME MODAL ==*/

.modal-endgame{
    position: absolute;
    top: 2%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 450px;
}

.result-grid-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.result-grid{
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-cell{
    min-height: 15px;
    min-width: 15px;
    margin: 3px;
}

.subtitle{
    margin-top: 30px;
    text-align: center;
}

.stadistic{
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid #D4D5D5;
    padding-bottom: 30px;
}

.subtitle h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.stadistic p {
    font-size: 10px;
    text-align: center;
}

.number-victory,
.number-play{
    font-size: 35px;
    text-align: center;
}

.distribution{
    padding: 20px 0 40px 0;
}

.dist{
    font-weight: 300;
}

.square-result{
    height: 15px;
    width: 15px;
    margin: 3px;
    background-color: #131212;
    display: inline-block;
    vertical-align: middle;
}

.squaresBG {
    background-color: #D4D5D5;
}

#dist_number{
    display: flex;
    align-items: center;
}

.dist_row{
    display: flex;
    margin-bottom: 5px;
}

.solution,
.timer{
    text-align: center;
    margin-bottom: 40px;
}

.solution-word {
    font-weight: 700;
}

/*=== MODE ====*/

.btn_mode{
  margin: 14px 0px;
  width: 30px;
  height: 15px;
  background-color: black;
  display: flex;
  position: relative;
  margin-right: 20px;
  box-shadow: -1px 3px 22px 0px rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.btn_mode {
  border-color: #fff;
  border-radius: 50px;
  background-color: #fff;
  border: 2px solid #797D7E;
  box-shadow: -1px 1px 13px 0px rgba(255, 255, 255, 0.75);
}

i {
  color: #797D7E;
  font-size: 9px;
  margin: 3px;
  transition: all 300ms ease;
}

.active1 {
  transform: translateX(15px) rotate(350deg);
  color: #D4D5D5;
}

.changeBg {
  background-color: #111;
  border-color: #111;
  box-shadow: -1px 0px 10px 0px rgba(255, 255, 255, 0.507);
}

/* === FOOTER === */
.footer{
    display: flex;
    align-items: center;
    flex: 1;
    padding: 5px;
    margin-top: 30px;
    justify-content: center;
    border-top: 1px solid #999;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
}

.icons{
    filter: invert(.6);
    height: 16px;
    margin-left: 8px;
    transition: all .3s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.icons:hover{
    filter: invert(1);
}

.icons-dark-mode{
    filter: invert(0.2);
    transition: all .3s ease-in-out;
}


.icons-dark-mode:hover{
    filter: invert(0);
}

.border-dark{
    border-top: 1px solid #414041;
}

.icons-footer{
    font-size: 10px;
}