* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 100px;
    font-family: Arial, sans-serif;
}

.display-container {
    width: auto;
    height: 82px;
    border: solid 2px black;
    background-color: #f5f5f5;
}

.result-container {
    height: 25px;
    display: flex;
    justify-content: end;
}

.calculation-container {
    height: 55px;
    display: flex;
    justify-content: end;
    align-items: flex-end;
    font-size: 30px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px;
    margin-top: 10px;
}

input {
    width: calc(25% - 10px); /* Calculate 25% width for each button with gap */
    height: 50px;
    font-size: 20px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s; /* Smooth transition for background color change */
}

input.operator {
    background-color: #f0f0f0;
    color: #333;
}

input.number {
    background-color: #4caf50;
    color: white;
}

input.decimal {
    background-color: #2196f3;
    color: white;
}

input.compute {
    background-color: #ff9800;
    color: white;
}

input.delete {
    background-color: #f44336;
    color: white;
}

/* Hover effect */
input:hover {
    background-color: #ddd;
}

/* Click effect */
input:active {
    transform: translateY(2px); /* Move the button down slightly when clicked */
}

@media (min-width: 1024px) {
    body {
        width: 40%;
        margin: 0 auto;
        text-align: center;
    }
}
