

@import url('https://fonts.googleapis.com/css2?family=Quicksand&family=Raleway:wght@500&display=swap');
  body {
    font-family: 'Quicksand', sans-serif;
    width: 100%;
    min-height: 100vh;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
.wordle {
    width: 700px;
    margin: 0 auto;
}
   .keyboard .key-row {
    display: flex;
    align-items: center;
    color: white;
    gap: 0.2em;
    justify-content: center;
   }
   .keyboard .key-row h3 {
    border: 1px solid white;
    color: rgb(0, 0, 0);
    font-size: 13px;
    padding: 0.5em;
    background-color: #D5D6DB;
    font-weight: bolder;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;

   }
   .keyboard {
    margin-top: 2em;
    max-width: 100%;
    /* min-width: 375px; */
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    
   }


 .keyboard .key-row h3:hover {
  cursor: pointer;
  transform: scale(1.2, 1.2);
  transition: 100ms linear all;
  
}


.effect {
    animation: scale 200ms ease-in-out forwards;
}

@keyframes scale {
 0% {
    transform: scale(1, 1);
 }
      
 50% {
    transform: scale(1.2, 1.2);
 }

 100% {
    transform: scale(1, 1);
 }
}

    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: rgb(0, 0, 0);
      padding: 0.5em;
      font-size: 32px;
      width: 100%;
      margin: 0 auto;
  
    }
 


  .game-area .father {
    width: 80px;
    height: 60px;
  
    border: 2px solid #D5D6D8;
    background-color: white;
    font-size: 24px;
    color: #88898b;
    display: flex;
    align-items: center;
    justify-content: center;   
  };

   .game-area h2 {
    margin: 0;
    
   }
 .game-area .father h2 {
   font-size: 24px;
   margin:  0;
 }

   .rotate {
    animation: rotate 400ms ease;
   }

@keyframes rotate {
    0% {
        transform: rotateX(0deg);
    }

   100% {
        transform: rotateX(180deg);
    }

   
}
   .game-area {
      display: flex; 
      flex-direction: row; 
      flex-wrap: wrap;
      width: 70%; 
      min-width: 375px;
      margin: 0 auto;
      justify-content: center;
      margin-top: 1em;
      gap: 0.5em;
   }

/* Sidebar */

.side_bar {
   width: 0%;
   height: 100vh;
   /* background-color: red; */
   /* border: 1px solid black; */
   position: absolute;
   /* margin-top: 16.7em; */
   left: 0;
   top: 0%;
   right: 0;
   background-color: #ccc;
   opacity: 0;
   transition: 0.1s linear all;
}


.open_sidebar {
   opacity: 1;
   width: 20%;
}
.side_bar p {
   font-size: 16px;
}

.side_bar .words-guessed {
   background-color: #ccc;
   padding: .5em 0.5em;
   border-radius: 5px;
}

.words-guessed li {
   margin-top: 0.5em;
   font-size: 14px;
}
.rules span {
   background-color: #fff;
   padding: 1em;
   /* border: 1px solid black; */
   font-size: 12px;
   font-weight: bold;
   width: 100%;
   height: 100%;
}

.rules {
   background-color: #ccc;
   padding: 0.5em 0.5em;
   width: 100%;
}

.rules span.yellow {
   background-color: #CAB459;
   color: #fff;
font-weight: bold;
}

.rules p {
   font-size: 14px;
   margin-top: 1.5em;
}

.rules span.gray {
   background-color: #777C7F;
   color: #fff;
   font-weight: bold;
}

.rules span.green {
   background-color: #6BAA65;
   color: #fff;
   font-weight: bold;
}





@media screen and (min-width: 360px ) and (max-width: 1200px) {
     .wordle {
      width: 360px;
     }

     .open_sidebar {
      
      min-width: 70%;
      max-width: 20%;
   }
     .game-area {
      margin-top: 4em;
     }
     /* .game-area h2 {
        min-width: 70px;
        min-height: 70px;
     } */
     .keyboard {
        width: 100%;
        margin-top: 4em;
     }
     .keyboard .key-row h3 {
        font-size: 13px;
        min-width: 30px;
        min-height: 30px;
     }

     .game-area .father {
      width: 56px;
      height: 55px;
      display: flex;
      align-items: center;
      justify-content: center;
     }
      .side_bar {
         top: 0%;
      }
     .game-area .father h2 {
      font-size: 16px
     }
};




.centered{
   position: absolute;
   top: 0;
   left: 0;
   z-index: 1;
}


.win-ui {
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   height: 90vh;
}

.win-ui video {
   width: 300px;
}

