@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@500&display=swap');
body{
    margin: auto;
    width: 420px;
    background-color: rgb(18, 18, 18);
}
.grid{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 340px;
    height: 390px;
}
.grid div {
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 2px;
    background-color: rgb(18, 18, 18);
    border: 1.5px solid rgb(38, 38, 38);
}
@keyframes grid{
    0%{
        transform: scale(1.1);
    }
}
.animate {
    animation: grid 0.3s;
}
/*TODO: TEE MARGINIT OIKEIN ET ON KESKELLÄ*/
.keyboardgrid{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 380px;
    height: 45px;
}
.keyboardgrid div {
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 40px;
    margin: 1px;
    background-color: rgb(18, 18, 18);
    border: 1.5px solid rgb(38, 38, 38);
}
.keyboard-p{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 60px;
    height: 60px;
    font-weight: bold;
    font-family: 'Cabin', sans-serif;
    font-size: 20px;
}
.offsetrow2{
    margin-right: 15px;
    margin-left: -15px;
}
.offsetrow3{
    margin-right: 30px;
    margin-left: 50px;
}
h1{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-family: 'Cabin', sans-serif;
    font-size: 30px;
    margin-top: 10px;
    margin-bottom: 5px;
    width: 325px;
}
p{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 60px;
    height: 60px;
    font-weight: bold;
    font-family: 'Cabin', sans-serif;
    font-size: 30px;
}
#lopputeksti{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 325px;
}
.OikeaKirjainVaaraKohta{
    background-color: rgb(255, 200, 0) !important;
}
.OikeaKirjainOikeaKohta{
    background-color: rgb(12, 189, 3) !important;
}
.VaaraKirjainVaaraKohtaKirjain{
    color: rgb(83, 83, 83);
    text-decoration: line-through 3px; 
}