body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    position: relative;
}
.h1{
    text-align: center;
}
.calculator {
    background-image: url(backgr.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#display {
    width: 100%;
    height: 80px;
    font-size: 70px;
    text-align: right;
    margin-bottom: 10px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5px;
}

button {
    width: 100px;
    height: 150px;
    padding: 5px;
    font-size: 18px;
    background-color: #ff00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* button:hover {
    background-color: #b5b5b5;
} */

#popOut {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 150px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

#popOut.show {
    opacity: 1;
    transform: scale(1);
    animation: popOutAnimation 1s ease-out;
}

.hidden {
    display: none;
}

@keyframes popOutAnimation {
    0% {
        transform: translateY(-200px) scale(0);
    }
    50% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(50px) scale(1);
    }
}

/* .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.popup button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
} */


.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: white;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.popup p {
    margin-bottom: 10px;
}

.popup input {
    margin-top: 5px;
    padding: 5px;
    width: 80%;
}

.popup button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}



/* Glow effect for successful calculation */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 1), 0 0 30px rgba(255, 255, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
    }
}

.glow {
    animation: glow 1.5s ease-in-out;
    animation-iteration-count: 1;
}
