body {
    margin: 0;
    padding: 0;
    background-color: #FAFAFA;
}

.outer {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
}

.box {
    width: 90%;
    height: 90%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    justify-items: center;
}

.top,
.middle,
.bottom {
    display: grid;
    grid-template-rows: 1fr;
    align-content: center;
    align-items: center;
}

.top {
    width: 33%;
    grid-template-columns: 1fr;
}

.middle {
    width: 66%;
    grid-template-columns: 1fr 1fr;
}

.bottom {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
}

.inner {
    width: 100%;
    height: 100%;
    position: relative;
}

input,
input:focus {
    outline: none;
}

input {
    box-sizing: border-box;
    border: 5px solid #000000;
    border-bottom: none;
    font-size: 8vw;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    color: #111111;
}

.inner:nth-child(n + 2) input {
    border-left: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.bottom .inner input {
    border-bottom: 5px solid #000000;
}

input.readonly {
    pointer-events: none;
    user-select: none;
    color: #666666;
}

body.success {
    background-color: green;
}

body.error {
    background-color: red;
}

body.error input,
body.success input {
    border-color: #FFFFFF !important;
    background: none !important;
    color: #FFFFFF !important;
}