body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: whitesmoke;
    font-size: 30px;
    color: white;
}

.calculator{
    margin: auto;
    margin-top: 1.5rem;
    padding: 1rem;
    height: 500px;
    width: 350px;
    background-color: azure;
    border-radius: 2rem;
    box-shadow: 2px 2px 8px rgba(128, 128, 128, 0.429);
    display: grid;
    grid-template-rows: repeat(7,1fr);
    grid-template-columns: repeat(4,1fr);
    grid-gap: 0.5rem;
}

.display{
    grid-column: 1/span 4;
    grid-row: 1/3;
    background-color: rgba(61, 61, 61, 0.938);
    border-radius: 1rem;
    display: grid;
    overflow-x: scroll;
    padding: 0.3rem;
    border: 2px solid rgba(61, 61, 61, 0.938);
    box-shadow: 1px 1px 5px gray; 
}

.keys,.del,.equal{
    background-color: rgba(61, 61, 61, 0.938);
    border-radius: 1rem;
    text-align: center;
    align-content: center;  
    box-shadow: 1px 1px 5px gray; 
}

.clear{
    background-color: coral;
}

.add,.mul,.sub,.div{
    background-color: rgba(255, 166, 0, 0.798);
}

.equal{
    grid-row: 6/8;
    grid-column: 4/5;
    background-color: rgba(53, 189, 175, 0.906);
}

.del{
    background-color: rgb(247, 85, 85);
}

h1,h2{
    margin: 0;
    width: 98%;
    display: flex;
    justify-content: end;
    align-items: end;
}

h1{
    overflow-x: scroll;
}

h2{
    opacity: 0.5;
    overflow-x: scroll;
}

::-webkit-scrollbar{
    display: none;
}

.keys:hover,.equal:hover,.del:hover{
    scale: 1.05;
}

@media(max-width:350px){
    .calculator{
        width: 250px;
    }
}

@media(max-width:426px){
    .calculator{
        height: 550px;
    }
}

