body{
    font-family: "Roboto", sans-serif;
    background-color:#333;
    font-size:1.4rem;
    
}
.logo{
    svg{ 
        width:50px;
        fill: #fd4;
    }
    color:#fd4;
    width:600px;
    margin: 50px auto;
}
#header{
    display: grid;
    grid-template-columns: 1fr 1fr;   
    margin:20px 6px 30px;
}
#info{
    color:#fd4;
}

#buttons{
    text-align: right;
}

button{
    background-color: rgba(255,255,255,.2);
    border:none;
    color:white;
    padding:5px 20px;
    border-radius:5px;
    cursor:pointer;
}

div#game{
    line-height: 35px;
    height:105px;
    overflow:hidden;
    position:relative;
}
div#game:focus{
    outline:none;
}

/* styling for focusing the game */

#words{
    filter: blur(5px);

}
#game:focus #words{
    filter:blur(0px);
}
#focus-error{
    color:white;
    position:absolute;
    inset:0;
    text-align: center;
    padding-top:35px;;
}
#game:focus #focus-error{
    display:none;
}
/* styling for focusing the game */

div.word{
    color:white;
    display:inline-block;
    font-family: 'Roboto Mono', monospace;
    margin :0 5px;
}

/*styling for correct and incorrect*/
.letter{
    color:#666;
}
.letter.correct{
    color:white;
}
.letter.incorrect{
    color:#f55;
}
@keyframes blink{
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

/*for cursor*/
#cursor{
    display:none;
    width:2px;
    height:1.6rem;
    background-color:#fd4;
    position:fixed;
    top:225px;
    left:15px;
    animation: blink .3s infinite;
}
#game:focus #cursor{
    display:block;
}

/*when the game is over*/
#game.over #words{
    opacity: .5;
    filter: blur(0px);
}
#game.over:focus #cursor{
    display:none;
}
#game.over #focus-error{
    display:none;
}
