:root{
    --box-shadow:  -3px -2px 6px rgba(255, 255, 255, 0.521), 3px 2px 6px #000;
    --box-shadow-inset:  inset -3px -2px 6px rgba(255, 255, 255, 0.521), inset 3px 2px 6px #000;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-size: 20px;
}

body{
    background-color: #7e7676;
}
.calculator{
    background: rgba(14, 13, 13, 0.867);
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    margin: 20px auto;
    box-shadow: var(--box-shadow);
    padding: 20px;
    border-radius: 30px;
    user-select: none;
}

.light-mode.calculator{
    background: rgba(236, 235, 235, 0.867);
    color: black;
    transition: background .3s ease;
}
.light-mode.number{
    background: rgb(221, 218, 218);
    color: black;
    transition: background .3s ease;
}
.light-mode.previous-operand{
    color: rgb(49, 27, 27);
}
.light-mode.current-operand{
    color: rgb(14, 11, 11);
}
.output{
    width: 100%;
    min-height: 120px;
    box-shadow: var(--box-shadow-inset);
    border-radius: 30px;
    margin-bottom: 30px;
    display:grid;
    word-wrap: break-word;
    word-break: break-all;

}
.previous-operand{
    font-size: 1.5rem;
    color: #BBC2B8;
    padding: 5px;
    padding-right: 10px;
    text-align: right;
}
.current-operand{
    color: #fff;
    padding: 5px; 
    padding-right: 10px;
    font-size: 2rem;
    text-align: right;
    margin-bottom: 0;
}
.scroll-icon{
    width: 50px;

}
.svg-icon{
    position: relative;
    cursor: pointer;
}
.scroll{
    /* animation: scroll-in 1s forwards; */
    transform: translateX(-40px);
}

/* @keyframes scroll-in{
    from{
        transform: translateX(-40px);
    }
    to{
        transform: translateX(6px);
    }
} */
.change.scroll{
    transform: translateX(6px);
    transition: all .5s linear;
}

span{
    position: absolute;
    left: 20%;
    bottom: 30%;
    color: #BBC2B8;
}
.btns{
    display: grid;
    grid-gap: 0.85rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 65px);
}
.btns button{
    border-radius: 30px;
    box-shadow: -6px -6px 9px rgba(59, 56, 56, 0.521), 6px 6px 9px rgba(39, 33, 33, 0.418);
    outline: none;
    border: none;
    cursor: pointer;
    color: #fff;
}
.btns button:hover, 
.btns button:active{
    background:rgba(73, 73, 73, 0.867);
}
.span-two{
    grid-column: span 2;
}
.equal{
    background: #6d0eeb;
}
.clear{
    background: #fd9825;
}
.del{
    background: #fb8c0c4b;
}
.number{
    background:  rgba(14, 13, 13, 0.867);
}
.operator{
    background: #b48ce7;
}

