@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
/* font-family: 'Roboto', sans-serif; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}

main {
    background: #6d6d6d;
    width: 100%;
    height: 100vh;
}

main>input{
    display: none;
}

main>input:checked~.grid-container{
    width: 100%;
    height: 442px;
    bottom: 0;
    left: 0;
    animation-name: animateRotateY;
    animation-duration: 2s;
    animation-timing-function: ease;
}

main>input:checked+#label-box{
    background: #afafaf;
}

main>input:checked+#label-box>#circle{
    background: #000;
    left: 50%;
}

main #label-box{
    margin: 10px;
    width: 50px;
    height: 30px;
    border-radius: 100px;
    display: inline-block;
    background: #473333;
    position: relative;
    transition: 0.3s all ease-in-out;
}

main #label-box #circle{
    position: absolute;
    top: 15%;
    left: 10%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: 0.3s all ease-in-out;
}

main .grid-container {
    width: 65%;
    height: 350px; /* h: 442px; */
    background: linear-gradient(0deg, #5B5D72, #5B5D72), linear-gradient(99.87deg, #4A4C60 0.08%, #525465 100%);
    box-shadow: 0px 18.2059px 36.4117px rgba(0, 0, 0, 0.2);
    border-radius: 26.0084px;
    display: grid;
    grid-template-columns: repeat(322, 1fr);
    grid-template-rows: 1fr 2fr 2fr 2fr 2fr 1fr 1fr;
    padding: 15px;
    position: absolute;
    bottom: 40%;
    left: 5%;
    transition: 2s all ease-in-out;
}

main .grid-container .keys {
    overflow: hidden;
    background-color: #1A1C28;
    border-radius: 5px;
    margin: 5px;
    grid-column: span 22;
    color: #CBCBCB;
    border-bottom: 5px solid rgba(41, 41, 41, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease-in-out;
}

main .grid-container .keys img {
    width: 10px;
}

main .grid-container .keys:active {
    background-color: #FF5C00;
    border-bottom: 5px solid transparent;
    transform: scale(0.9);
}




















/* ALL FONT SIZE */
.font-lg {
    font-size: 18px !important;
}

.font-sm {
    font-size: 12px !important;
}



/* Fractions */
.size-36fr {
    grid-column: span 36 !important;
}

.size-23fr {
    grid-column: span 23 !important;
}

.size-40fr {
    grid-column: span 40 !important;
}

.size-51fr {
    grid-column: span 51 !important;
}

.size-28fr {
    grid-column: span 28 !important;
}

.size-112fr {
    grid-column: span 112 !important;
}

.double-row {
    grid-row: span 2 !important;
}

/* FLEX-POSITION */
.flex-bottom-left {
    justify-content: unset !important;
    align-items: flex-end !important;
}

.flex-bottom-right {
    justify-content: flex-end !important;
    align-items: flex-end !important;
}

.flex-bottom {
    justify-content: center !important;
    align-items: flex-end !important;
}





/* OTHERS */

.line-height {
    line-height: 25px !important;
}


.transparent {
    visibility: hidden !important;
}


/* POSITIONS */
.position-top-left {
    position: absolute;
    top: 8px;
    left: 8px;
}

.position-top-right {
    position: absolute;
    top: 8px;
    right: 8px;
}










@keyframes animateRotateY {
    
    0%{
        transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
    }

    50%{
        transform: rotateY(0deg) rotateX(15deg) rotateZ(15deg);
    }

    100%{
        transform: rotateY(360deg) rotateX(0deg) rotateZ(0deg);
    }


}