*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F9F8F3;
    padding: 20px;
}

.calculator{

    width: 100%;
    max-width: 370px;

    background: #fff;

    padding: 25px;

    border-radius: 20px;

    border: 2px solid #DDE8B5;

    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.calculator h2{

    text-align: center;

    color: #222;

    margin-bottom: 20px;
}

#display{

    width: 100%;

    height: 70px;

    border: 2px solid #DDE8B5;

    border-radius: 12px;

    outline: none;

    margin-bottom: 20px;

    padding: 15px;

    text-align: right;

    font-size: 30px;

    font-weight: bold;

    color: #222;

    background: #F3FAD8;
}

.buttons{

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 12px;
}

button{

    height: 60px;

    border: none;

    border-radius: 12px;

    background: white;

    color: #222;

    font-size: 22px;

    font-weight: bold;

    cursor: pointer;

    border: 2px solid #DDE8B5;

    transition: .3s;
}

button:hover{

    background: #92B83C;

    color: white;

    transform: translateY(-4px);

    box-shadow: 0 10px 20px rgba(146,184,60,.3);
}

button:active{

    transform: translateY(2px);
}

.operator{

    background: #92B83C;

    color: white;
}

.operator:hover{

    background: #7CA42B;
}

.equal{

    background: #222;

    color: white;

    grid-column: span 2;
}

.equal:hover{

    background: #000;
}

@media(max-width:480px){

    .calculator{

        max-width: 100%;

        padding: 20px;
    }

    #display{

        height: 60px;

        font-size: 26px;
    }

    button{

        height: 55px;

        font-size: 20px;
    }

}