@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@-ms-viewport {
  width: device-width;
}
@font-face
{
  font-family:'FontAwesome';
  src:url('./fontawesome-webfont.eot');
  src:url('./fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
  url('./fontawesome-webfont.woff') format('woff'),
  url('./fontawesome-webfont.ttf') format('truetype'),
  url('./fontawesome-webfont.svg#FontAwesome') format('svg');
  font-weight:normal;
  font-style:normal
}
@viewport {
  width: device-width;
}
*{
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: hidden;
}
body{
    background: #FFF9B6;
    font-family: 'Rubik';
}
.rules{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: #FFF9B6;
}
.rules .rules-content{
    position: relative;
    background: rgba(255, 230, 153, 0.2);
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 2.5px );
    -webkit-backdrop-filter: blur( 2.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 40%;
    height: auto;
    padding: 0 1em;
}
.rules .rules-content i{
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: larger;
    cursor: pointer;
}
.rules .rules-content .rules-title{
    color: #FF9292;
}
.rules .rules-content .rules-body  p{
    height: auto;
    text-align: center;
}
.rules .rules-content .rules-body .vert{
    background: #28FFBF;
    padding: 0.1em 0.2em;
    
}
.rules .rules-content .rules-body .bleu{
    background: #9ADCFF;
    padding: 0.1em 0.2em;
    
}
.lockscreen{
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 11;
    background: #FFF9B6;
}
.result-screen{
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 12;
}
.result-screen .result{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    width: 450px;
    height: 450px;
    border-radius: 5px;
    border: 2px rgb(255, 119, 73) solid;
    background: rgba(255, 134, 94, 0.815);
}
.result-screen .result .emoji .table-result i{
    font-size: 17pt;
}
.result-screen .result .copy{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 1.5px #FFE699 solid;
    border-radius: 5px;
    padding: 0 0.5em;
    background: #FFE9B6;
    cursor: pointer;
    user-select: none;
}
.result-screen .result .copy p{
    color: #FF9292;
    text-decoration: underline;
    padding: 0;
}
.result-screen .result .copy:hover{
    background: #FFE699;
    color: #ff7979;
}
.result-screen .result .copy:active{
    border: 1.5px #ffdd77 solid;
    background: #ffdd77;
    color: #d36060;
}
.result-screen .result .copy span.popup{
    position: absolute;
    width: 150px;
    padding: 0.5em;
    color: rgb(236, 236, 236);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    margin-top: -120px;
    display: none;
}
.popup .show{
    opacity: 1;
   
}
.title{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #FFE699; */
    top: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    z-index: 13;
}
.title img{
    width: 200px;
    margin-left: 20px;
}

.content{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.content .grille{
    width: auto;
    height: auto;
    margin-top: 75px;
    padding: 0;
}

.content .grille table{
    width: 100%;
    height: 100%;
    padding: 0.1em;
}
.content .grille table td{
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 25pt;
    font-weight: bold;
    background: rgb(255, 230, 153);
    color: #FF9292;
}

.content .keyboard{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 450px;
    margin: 1em;
    user-select: none;
}
.content .keyboard .touche{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FF9292;
    border: 1.5px #ec7c7c solid;
    text-align: center;
    margin: 0.5px;
    transition: 0.1s ease-in-out;
}
.content .keyboard .touche:hover{
    background: #ec7c7c;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}
.content .keyboard .touche:active{
    background: #ca6060;
    border: 1px #ca6060 solid;
    transition: 0.1s ease-in-out;
}
.content .keyboard .efface, .content .keyboard .entre{
    font-weight: bold;
}

footer{
    position: fixed;
    bottom: 0;
    text-align: center;
}


@media screen and (max-width: 500px) {
    .content .grille{
        width: 325px;
    }
    .content .keyboard{
        width: 325px;
    }
    .content .keyboard .touche{
        width: 30px;
        height: 40px;
    }
    .rules{
        padding: 0 1em;
    }
    .rules .rules-content{
        width: 100%;
    }
}