body {
    height: 99vh;
    background-color: #202020;
    margin: 0;
    display: grid;
    justify-items: center;
    --function-button-color : #0c0c50;
    font-size: 1.3vh;
}

#calculatorContainer{
    height: 100vh;
    max-width: 100vw;
    aspect-ratio: 9/16;

}

.lowerButton {

    width: 100%;
    height: 100%;
    border: 1px solid black;
    padding: 0px;
    border-radius: 30%;
    background-color: grey;

    font-size: 3em;
}

.lowerButton:active {
    background-color: black;

}

.upperButton {

    width: 100%;
    height: 100%;
    border: 1px solid black;
    padding: 0px;
    border-radius: 30%;
    background-color: grey;

    font-size: 1.5em;
}

.shiftLabeling {
    color: #aba300;
    float: left;
    text-align: center;

}

.alphaLabeling {

    float: right;
    text-align: center;
    color: red;

}

.singleLabel {
    text-align: center;
    width: 100%;
}


#downArrow {
    grid-column: span 2;
}


#upperButtonTable {
    width: 100%;
    height: 34%;
    justify-items: stretch;
    display: grid;
    grid-template-columns: 16% 16% 16% 16% 16% 16%;
    grid-template-rows: 5% 15% 5% 15% 5% 15% 5% 15% 5% 15%;
    grid-gap: 0.66%;

    margin: 0px 0px 5% 0px;

}


#lowerButtonTable {
    width: 100%;
    height: 35%;
    justify-items: stretch;
    display: grid;
    grid-template-columns: 19.5% 19.5% 19.5% 19.5% 19.5%;
    grid-template-rows: 5% 20% 5% 20% 5% 20% 5% 20%;
    grid-gap: 0.5%;
}



.AcButton {
    background-color: #ffa100
}

.upperButton:active {
    background-color: black;

}





.display {
    display: block;
    background-color: #ffffff;
    color: #0000f0;
    overflow: auto;
    height: 24%;
    font-size: 2.5em;
}


#tableDisplay {
    display: none;
}

#valueTable {
    width: 70%;
    text-align: right;
}

table {
    border-collapse: collapse;
}

td {
    border-right: 5px solid blue;
    width: 45%;
    margin: 0;
    padding: 0;
}

td:first-child {
    margin-left: 5%;
    width: 1%;
}

/*automatically number tables*/
tbody {
    counter-reset: css-cunter 0;
}

tbody tr {
    counter-increment: css-counter 1;
}

tbody tr td:first-child:before {
    content: counter(css-counter);
    /* Apply counter before children's content. */
}

.optionsMenu {
    display: none;
    grid-template-columns: 50% 50%;
    align-content: start;
}

#result {
    float: right;
    background-color: inherit;
    font-size: 1em;
    color: inherit;
    height: 2%;

}

.calculation {
    background-color: inherit;
    font-size: 1em;
    color: inherit;
    height: 100%;

}

.functionButton{

    background-color: var(--function-button-color);
}




#o-pad {
    background-color: var(--function-button-color);
    grid-row: 2/span 3;
    grid-column: 3/span 2;
    align-items: center;
    justify-content: center;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
    aspect-ratio: 1/1;
    border: 2px solid black;
}


#stateContainer{
    background-color: white;
    height: 2vh;
    font-size: 1em;
    display: grid;
    width: 100%;
    grid-template-columns: 3% 3% 60% 3% 3% 3% 19% 3% 3%;
    justify-content: start;
    grid-gap: 2% 0%; 
    justify-items: center;
}

.stateContent{
    opacity: 0;
    color: white;
    background-color: blue;
}