@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Roboto', sans-serif;
    color: #444444;
    font-size: 10px;
    padding-top: 50px;
}
h1,h2,h3{
    text-align: center;
}
h1{
    /* margin-top: 10px; */
    font-size: 3rem;
}

h2,h3{
    font-weight: 400;
   
}
h3{
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
h2{
    font-size: 1.4rem;
    margin-bottom: 4rem;
}


.wrapper{
    margin: auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 800px;

}
.output{
    margin-bottom: 40px;
    resize: none;
}
.keyboard{
    transform: rotateX(20deg);
    -webkit-transform: rotateX(20deg);
    border-bottom: 2px solid #bdbdbd;
    padding: 20px;
    /* border-radius: 10px; */
    box-shadow: 10px 20px 10px rgba(0,0,0,0.2);
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.keyboard__row{
    display: flex;
    gap: 6px;
}

.keyboard__key{
    width: 35px;
    height: 35px;
    border-radius: 3px;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5), 2px 2px 3px rgba(0,0,0,0.5);
    background: #444444;
    flex: 0 0 auto;
    color: #ebebeb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    transition-duration: 0.3s;
}
.keyboard__key_active{
    box-shadow: inset 2px 2px 3px rgba(0,0,0,0.5),0px 0px 0px rgba(0,0,0,0.5);;
    background: #303030;
    font-weight: bold;
    text-shadow: 0 0 5px white;
    transform: translate(2px,2px);
}
.key__title{
    font-size: 0.8rem;
    text-align: center;
}
.key__subtitle{
    color: #ababab;
    font-size: 0.5rem;
    text-align: center;
    align-self: flex-start;
}

.keyboard__key[data-code = 'Backspace']{
    width: 90px;
}
.keyboard__key[data-code = 'Tab']{
    width: 48px;
}
.keyboard__key[data-code = 'CapsLock']{
    width: 70px;
}
.keyboard__key[data-code = 'Enter']{
    width: 95px;
}
.keyboard__key[data-code = 'ShiftLeft']{
    width: 90px;
}
.keyboard__key[data-code = 'ShiftRight']{
    width: 75px;
}
.keyboard__key[data-code = 'Space']{
    width: 253px;
}
