* {
    margin: 5px;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.body { 
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: rgb(180, 93, 0);
    text-shadow: #ffffff;
    text-decoration: wavy;
    font-size: 40px;
    padding-bottom: 25px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
   
    margin: 0 auto;
    border: 1px solid black;
}

.container form .display input {
    width: 95%;
    height: 70px;
    border-radius: 10px;
    background: #f2f2f2;
    font-size: 30px;
    color: black;
    text-align: right;
    box-shadow: none;
    border: 1px solid #ccc;
    outline: none;
}

.container form input {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 20px;
    color: black;
    cursor: pointer;
    margin: 5px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
    border: none;
    transition: background 0.3s, color 0.3s;
    
}

form input.ac {
    color: red;
    background: #f0f0f0;
}

form input.ac:hover {
    background: #ca0a0a;
    color: white;
}

form input.operator {
    color: #ffffff;
    background: #fa971f;
}

form input.operator:hover {
    background: #ffb300;
}

form input.equal {
    width: 175px;
    background: #7e97fa;
    color: #ffffff;
    font-weight: bold;
}

form input.equal:hover {
    background: #a4b4fa;
}

/* Additional hover and active effects */
form input:hover {
    background: #e0e0e0;
}

form input:active {
    background: #d0d0d0;
}

.container form .name {
    font-family: sans-serif;
    color: blue;
}
form input.del:hover {
    background: black;
    color:white;
}
@media (max-width: 768px) {
    .container form input {
        width: 22%; /* Makes buttons slightly wider on smaller screens */
        font-size: 18px;
        height: 55px;
    }

    .container form .display input {
        font-size: 25px;
    }
}

