@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

a {
    text-decoration: none;
    color: #000;
}

ul {
    list-style: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    border: 2px solid #000;
    border-radius: 0.5rem;
    background-color: #aaa;
    width: 350px;
    height: 400px;
    padding: 1.5rem;
    margin-top: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
    height: 100%;
}

.screen {
    padding: 10px;
    height: 75px;
    background-color: whitesmoke;
    border: 2px solid #000;
    border-radius: 0.4rem;
}

.screen  div h1,
.screen div h3{
    text-align: right;
}

.screen div h1{
    font-size: 25px;
    min-height: 65%;
}

.screen div:first-child {
    min-height: 35%;
}

.util-btns {
    display: flex;
    margin: 5px 0;
    justify-content: space-evenly;
}

.util-btns button {
    border: 2px solid #000;
    width: 100%;
    height: 30px;
    border-radius: 0.25rem;
}

.util-btns button:first-child {
    background-color: #88d;;
    margin-right: 5px;
}

.util-btns button:first-child:hover {
    background-color: rgb(113, 113, 182);;
}

.util-btns button:last-child{
    background-color: #d88;
}

.util-btns button:last-child:hover{
    background-color: rgb(177, 109, 109);
}

.numpad.grid button {
    border: 2px solid #000;
    border-radius: 0.3rem;
}