@import url('https://fonts.googleapis.com/css2?family=Roboto:ital@0;1&display=swap');
/*
font-family: 'Roboto', sans-serif;
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 10px;
    font-family: 'Roboto', sans-serif;
}
.wrapper {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.h1 {
    margin: 2rem;
    font-size: 3.2rem;
}
.form {
    max-width: 1024px;
    width: 100%;
    height: 250px;
}
.textarea {
    max-width: 1024px;
    width: 100%;
    height: 100%;
    font-size: 3.2rem
}
.keyboard {
    max-width: 1024px;
    width: 100%;
    height: 306px;
    padding: 0.5rem;
    border-radius: 2rem;
    margin-top: 1rem;
    background-color: rgb(141, 139, 139);
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
.row {
    display: flex;
    justify-content: center;
    align-items: center;
}
.keys {
    padding: 1rem 1.5rem;
    margin: 0.5rem;
    font-size: 2.2rem;
    background-color: rgb(191, 191, 192);
    border-radius: 0.5rem;
    transition: all 0.6s;
    color: #fff;
}
.keys:hover {
    background-color: rgb(157, 157, 248);
}
.btn {
    font-size: 2.4rem;
    background-color: rgb(91, 91, 91);
}
.svg {
    width: 2rem;
    height: 2rem;
    fill: #fff;
}
.space {
    width: 29.8rem;
    text-align: center;
}
.message {
    margin-top: 1.5rem;
    height: 50px;
    text-align: center;
}
.message-text {
    padding: 0.5rem;
    font-size: 1.6rem;
}
.active {
    background-color: rgb(157, 157, 248);
}
.jello-horizontal {
	animation: jello-horizontal 0.9s both;
    background-color: rgb(157, 157, 248);
}

@keyframes jello-horizontal {
    0% {
      transform: scale3d(1, 1, 1);
    }
    30% {
      transform: scale3d(1.15, 0.75, 1);
    }
    40% {
      transform: scale3d(0.75, 1.15, 1);
    }
    50% {
      transform: scale3d(1.05, 0.85, 1);
    }
    65% {
      transform: scale3d(0.95, 1.05, 1);
    }
    75% {
      transform: scale3d(1.05, 0.95, 1);
    }
    100% {
      transform: scale3d(1, 1, 1);
    }
  }

@media screen and (min-width: 580px) and (max-width: 855px) {
    .wrapper {
        max-width: 855px;
        width: 100%;
        padding: 0 0.5rem;
    }
    .h1 {
        margin: 1rem;
        font-size: 2.6rem;
    }
    .form {
        max-width: 855px;
        height: 200px;
    }
    .textarea {
        max-width: 855px;
        font-size: 2.6rem
    }
    .keyboard {
        max-width: 855px;
        height: 230px;
        /* padding: 0.5rem; */
        border-radius: 1rem;
        margin-top: 0.5rem;
    }
    .keys {
        padding: 1rem 1rem;
        margin: 0.2rem;
        font-size: 1.6rem;
        border-radius: 0.4rem;
    }
    .btn {
        font-size: 1.6rem;
    }
    .svg {
        width: 1.4rem;
        height: 1.4rem;
    }
    .space {
        width: 18.8rem;
    }
    .message {
        margin-top: 0.5rem;
        height: 40px;
    }
    .message-text {
        padding: 0.5rem;
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 320px) and (max-width: 579px) {
    .wrapper {
        max-width: 579px;
        padding: 0 0.3rem;
    }
    .h1 {
        margin: 0.5rem;
        font-size: 1.8rem;
    }
    .form {
        max-width: 579px;
    }
    .textarea {
        max-width: 579px;
        font-size: 2rem
    }
    .keyboard {
        max-width: 579px;
        height: 142px;
        border-radius: 0.5rem;
        margin-top: 0.3rem;
    }
    .keys {
        padding: 0.5rem 0.5rem;
        margin: 0.11rem;
        font-size: 1.2rem;
        border-radius: 0.4rem;
    }
    .btn {
        font-size: 1.2rem;
    }
    .svg {
        width: 1.2rem;
        height: 1.2rem;
    }
    .space {
        width: 9.6rem;
    }
    .message {
        margin-top: 0.5rem;
        height: 55px;
    }
    .message-text {
        padding: 0.2rem;
        font-size: 1.2rem;
    }
}