html, body {
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    margin: 0;
    background-image: url("../assets/images/background.webp");
    background-size: cover;
    background-position: center;
}

.calculator {
    background: linear-gradient(to bottom left, #131313, #242424);
    padding: 20px;
    border-radius: 10px;
    width: 320px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: #b89678;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.model {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    color: #b89678;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.display {
    color: #b89678;
    background-color: #343434;
    border-radius: 2.5px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 50px;
    margin-bottom: 20px;
    margin-top: 5px;
    padding: 0 5px;
    word-break: break-all;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 72.5px);
    grid-template-rows: repeat(6, 60px);
    gap: 10px;
    padding-bottom: 3px;
}

.btn {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #b89678;
    background-color: #151515;
    box-shadow: 0 3px #040404;
    border: solid 1px #040404;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.05s, box-shadow 0.05s;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
}

.btn:hover {
    background-color: #343434;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px #040404;
}

.memory {
    position: relative;
}

/* Highlight for MRC button when memory has a value */
.memory-active {
    background-color: #343434;
    color: #ffb27a;
}

.operator-active {
    background-color: #343434;
    transform: translateY(3px);
    box-shadow: none;
    transition: none;
}

.operator-active:hover {
    background-color: #343434;
}

#plus {
    grid-row: span 2;
}

.sqrt-icon {
    width: 50px;
    height: 50px;
}

.divide-icon {
    width: 35px;
    height: 35px;
}

.multiply-icon {
    width: 40px;
    height: 40px;
}