/* Copyright (C) 2025 filifa This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ #calculator { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; font-size: xx-large; font-family: monospace; } input { font-size: inherit; font-family: inherit; } #input-row { grid-column: 1 / 5; display: flex; flex-flow: wrap; } #expr-box { flex: 4 auto; display: flex; flex-flow: column; min-width: 0; } #expr-label { flex: initial; font-size: medium; } #expr { flex: auto; } #modulus-box { flex: auto; display: flex; flex-flow: wrap; justify-content: end; align-items: end; min-width: 0; } #modulus-label { flex: initial; margin-left: 0.3rem; margin-right: 0.3rem; } #modulus { flex: auto; min-width: 0; } #result { grid-column: 1 / 5; border: 1px solid gray; text-align: right; min-height: 1lh; } button { font-family: inherit; font-size: inherit; } #extra-buttons { grid-column: 1 / 5; display: grid; grid-template-columns: subgrid; gap: inherit; } #main-buttons { grid-column: 1 / 5; display: grid; grid-template-columns: subgrid; gap: inherit; } #numerals { grid-column: 1 / 4; display: grid; grid-template-columns: subgrid; gap: inherit; } #backspace { grid-column: 3; } #operators { grid-column: 4; grid-row: 1 / 3; display: grid; grid-template-columns: subgrid; gap: inherit; }