html,
body {
    height: 100%;
}

header.masthead,
.game {
    height: 90%;
}

footer {
    height: 10%;
}

header.masthead {
    padding-top: calc(15rem + 54px);
}

.game {
    padding-top: 80px;
}

.top-section {
    text-align: center;
}

.numbers-out {
    position: fixed;
    bottom: 10%;
    padding: 15px;
}

#container-num-out {
    font-size: 20px;
}

section {
    width: 100%;
}

h2.num-out {
    display: inline-block;
    margin-right: 12px;
}

@media only screen and (max-width: 600px) {
    header.masthead {
        padding-top: 0;
    }
}

.card-master {
    margin-bottom: 60px;
}

.card {
    display: table-cell;
    height: auto;
}

.logos {
    vertical-align: middle;
    display: table-cell;
    height: 400px;
}
.logos .logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.logos img {
    width: 100px;
}

.logo-before,
.logo-after {
    vertical-align: middle;
    display: table-cell;
    height: 400px;
}

.logo-before img,
.logo-after img {
    height: 100px;
}

.text-right-card {
    vertical-align: middle;
    display: table-cell;
    height: 400px;
}

.text-right-card > p {
    text-orientation: upright;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    color: #b5b5b5;
    font-size: 28px;
    margin: 0 0.5em;
}

.card-line {
    display: table;
}

.card-line:first-child > .cell,
.card-line:last-child > .cell:last-child,
.card-line:nth-child(2) > .cell:last-child {
    border-top: 4px solid lightgray;
}

.card-line:last-child > .cell {
    border-bottom: 4px solid lightgray;
}

.card > .card-line > .cell:last-child,
.control-card > .card-line > .cell:last-child {
    border-right: 4px solid lightgray;
}

.card > .card-line > .cell:first-child,
.control-card > .card-line > .cell:first-child {
    border-left: 4px solid lightgray;
}

.cell {
    border: 2px solid lightgray;
    font-size: 54px;
    display: table-cell;
    width: 90px;
    height: 146px;
    text-align: center;
    vertical-align: middle;
}

#footer {
    padding-top: 1% !important;
}

.number-cell {
    font-size: 28px;
    vertical-align: text-top;
}

.cell-inside {
    height: 145px;
}

.div-cell-icon,
.div-cell-text {
    vertical-align: middle;
}

@media all {
    .page-break {
        display: none;
    }
}

@media print {
    .page-break {
        display: block;
        page-break-before: always;
    }
}

#html-number {
    font-size: 190px;
}

.img-fluid {
    max-width: 75%;
}

.control-card .cell {
    width: 95px;
    height: 160px;
}

.control-card .cell-inside {
    height: 160px;
}

.previous-number > div,
.previous-number > h2 {
    display: inline-block;
}

#previous-html-img {
    width: 100px;
    padding-left: 22px;
}

.section-game .p-5 {
    text-align: center;
}
