* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at 20% 20%, #26334f 0%, transparent 35%),
        radial-gradient(circle at 80% 80%, #162d38 0%, transparent 35%),
        #080b12;

    overflow: hidden;
}


/* =========================
   CALCULATOR
========================= */

.calculator {
    width: 390px;
    padding: 25px;

    border-radius: 30px;

    background: rgba(20, 25, 36, 0.78);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* =========================
   DISPLAY
========================= */

.display {
    width: 100%;
    margin-bottom: 20px;
    padding: 8px 5px;
}

.display input {
    width: 100%;
    height: 85px;

    padding: 15px 18px;

    border: none;
    outline: none;

    border-radius: 18px;

    background: rgba(0, 0, 0, 0.28);

    color: #ffffff;

    font-size: 38px;
    font-weight: 500;

    text-align: right;

    box-shadow:
        inset 0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 -1px 1px rgba(255, 255, 255, 0.04);
}

.display input::placeholder {
    color: #ffffff;
    opacity: 0.9;
}


/* =========================
   ROW
========================= */

.row {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 15px;
}


/* =========================
   BUTTONS
========================= */

button {
    width: 100%;
    aspect-ratio: 1 / 1;

    border: none;
    outline: none;

    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #252c3a,
        #171c27
    );

    color: #f5f7fa;

    font-size: 22px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        7px 7px 15px rgba(0, 0, 0, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.035);

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.2s ease;
}


/* Hover */

button:hover {
    background: linear-gradient(
        145deg,
        #30394b,
        #1c2330
    );

    transform: translateY(-2px);

    box-shadow:
        8px 10px 18px rgba(0, 0, 0, 0.6),
        -3px -3px 10px rgba(255, 255, 255, 0.05);
}


/* Click */

button:active {
    transform: scale(0.92);

    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.55),
        inset -2px -2px 5px rgba(255, 255, 255, 0.04);
}


/* =========================
   OPERATOR BUTTONS
========================= */

.opr {
    color: #ffab19;

    background: linear-gradient(
        145deg,
        #29251f,
        #19181a
    );
}

.opr:hover {
    color: #ffc04d;

    background: linear-gradient(
        145deg,
        #373024,
        #211e1b
    );
}


/* =========================
   EQUAL BUTTON
========================= */

#eqbtn {
    color: white;

    background: linear-gradient(
        145deg,
        #ff6548,
        #ff3d20
    );

    box-shadow:
        0 8px 20px rgba(255, 70, 40, 0.35),
        7px 7px 15px rgba(0, 0, 0, 0.5);
}

#eqbtn:hover {
    background: linear-gradient(
        145deg,
        #ff755b,
        #ff472b
    );

    box-shadow:
        0 10px 25px rgba(255, 70, 40, 0.5);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 450px) {

    .calculator {
        width: 94%;
        padding: 20px;
        border-radius: 25px;
    }

    .display input {
        height: 75px;
        font-size: 32px;
    }

    .row {
        gap: 12px;
        margin-bottom: 12px;
    }

    button {
        font-size: 20px;
    }
}