body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgb(228, 184, 184);
}

.calculator {
    background-color: rgb(75, 42, 152);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    /* Adjust max-width as needed */
    width: 100%;
}

.display {
    width: calc(100% - 22px);
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1.5rem;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

button {
    padding: 10px;
    font-size: 1.2rem;
    border: none;
    border-radius: 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    width: 100%;
    /* Adjust button width for responsiveness */
}

button:hover {
    background-color: rgb(196, 194, 194);
}

/* Media Query for smaller screens */
@media screen and (max-width: 600px) {
    .calculator {
        max-width: 300px;
        /* Adjust max-width for smaller screens */
    }
}

/* Media Query for bigger screens */
@media screen and (min-width: 650px) {
    .calculator {
        max-width: 500px;
        border-radius: 20px;
    }

    .display {
        font-size: 2.5rem;
        border-radius: 20px;
    }

    button {
        padding: 15px;
        font-size: 1.5rem;
        border-radius: 20px;
    }
}