* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

:root {
    /* Main theme colors */
    --bg-color: #1e1e2e;
    --calc-bg: #2e2e3e;
    --display-bg: #000;
    --display-text: #0f0;

    /* Button colors */
    --btn-bg: #3e3e4e;
    --btn-hover: #57576d;
    --btn-text: #fff;

    --operator-bg: #ff9500;
    --operator-hover: #ffb84d;

    --equal-bg: #34c759;
    --equal-hover: #5cd37e;

    /* Borders */
    --border-color: #444;
}

body {
    background-color: var(--bg-color);
}

.main::before {
    content: '';
    background: linear-gradient(68deg, var(--btn-hover), var(--display-text));
    height: 200px;
    width: 200px;
    border-radius: 50%;
    position: absolute;
    left: 600px;
    top: 100px;
    z-index: -1;
    opacity: 0.7;
}

.main {
    width: 100vw;
    height: 100vh;
    position: relative;
    /* background-color: #34c759; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main::after {
    content: '';
    background: linear-gradient(68deg, var(--display-text), var(--btn-hover));
    /* or use angle: linear-gradient(270deg, var(--equal-hover), var(--operator-bg)); */
    height: 200px;
    width: 200px;
    border-radius: 50%;
    position: absolute;
    bottom: 100px;
    right: 600px;
    z-index: -1;
    opacity: 0.7;
}


.calculator {
    width: 400px;
    height: 600px;
    background-color: rgba(0, 0, 0, 0.459);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0px 45px rgba(0, 0, 0, 0.764);
    border: 1px solid black;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.header {
    width: 100%;
    height: 140px;
    /* background-color: rebeccapurple; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.display {
    width: 95%;
    height: 90%;
    background-color: #7474746a;
    border-radius: 20px;
    border: 1px solid black;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.459);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.display > p{
    width: 95%;
    /* background-color: #0f0; */
    height: calc(90%/2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 40px;
    /* outline: 1px solid white; */
    color: var(--btn-text);
    opacity: 1;
    font-weight: bolder;
    overflow: hidden;
}

.display .input{
    font-size: 50px;
    opacity: 0.7;

}

.buttons {
    width: 100%;
    height: 460px;
    display: grid;
    gap: 2px;
    /* background-color: #0f0   ; */
}

.buttons>div {
    width: 100%;
    height: calc(460px / 5.2);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* border: 2px solid white; */
}

.buttons button {
    margin: 0;
    padding: 0;
    width: calc(100% / 4.2);
    height: 98%;
    border-radius: 30px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7474746a;
    outline: none;
    color: var(--btn-text);
    cursor: pointer;
    border: 1px solid black;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.459);
    transition: all 0.3s ease;
}

.buttons button:hover {
    font-size: 40px;
    background-color: #7474747e;
}