* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    color: #FFFFFF;
    font-family: monospace;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    width: 100%;
    height: 100%;
    max-width: min(90vw, 90vh);
    max-height: min(90vw, 90vh);
    gap: 2%;
}

.input {
    font-family: monospace;
    width: 100%;
    height: 100%;

    border: 2px solid #8c00ff7a;
    border-radius: 8px;
    box-shadow: 0px 4px 10px #8c00ff7a;

    background: #0f0f0f;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    color: #FFC000;
}

.input:focus {
    outline: 0px solid #8c00ff7a;
    outline-offset: 2px;
}

.input.result {
    background: #080808;
}

.equals {
    font-size: min(10vw, 10vh);
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.line {
    width: 100%;
    height: 2px;
    border: 0px solid;
    align-self: center;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}