@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {

    background-color: rgba(0, 0, 0, 0.927);



}


.p{
color: #9b9b9b41;
    font-family: "Poppins", sans-serif;
    padding: 20px;
}


.heading {
    font-size: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    justify-content: center;
    text-align: center;
    color: #dbdbdb;
    font-family: "Poppins", sans-serif;
    z-index: -5;
}


.calculator {
    padding: 20px;
    border-radius: 15px;
    background-color: #79797935;
    width: 300px;
    position: relative;
    z-index: 1;
    /* Ensure the element is above the pseudo-element */
}

.calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    z-index: -2;
    /* Place it behind the main element */
    filter: blur(60px);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.calculator:hover::before {
    filter: blur(90px);
    opacity: 1;
}


#display {
    width: 93%;
    padding: 10px;
    font-size: 24px;
    font-weight: 800;
    text-align: right;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    background-color: #79797935;
    color: #ffffff;
    z-index: -2;
    height: 60px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    gap: 10px;

}

button {
    padding: 15px 10px;
    font-size: 20px;
    border: none;
    border-radius: 10px;
    background-color:#ffffff35 ;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 800;
    font-family: "Poppins", sans-serif;
    color: #fff;
}

button:hover {
    background-color: #ffffff5c;
    
}

button.zero {
    grid-column: span 2;
}

button.equal {
    grid-row: span 2;
}