body { margin: 0; padding: 0; width: 100%; height: 100%; background: darkgray; } input { width: 90%; height: 100%; } #overlay { position: fixed; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(20,20,20,0.7); z-index: 2; display: none; } .box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 15%; width: auto; height: auto; min-width: 25%; min-height: 25%; background-color: #ffffff; } #import { position: absolute; top:0; width: 100%; height: 100%; display: none; } hr { border-top: 1px solid black; } .week { width: 100%; height: 80%; display: flex; flex-direction: column; border: 1px solid #000000; } .week-head { text-align: center; align-items: center; justify-content: center; background-color: #f2f2f2; } .day { flex-basis: 18%; margin-top: -1px; margin-left: -1px; margin-right: -1px; border: 1px solid #000000; } .week-foot { background-color: #f2f2f2; } .week-foot div:first-child { text-align: right; } .day-line { align-items: center; flex-basis: 20%; } .day:nth-child(even) .day-line:nth-child(even) { background-color: #f2f2f2; } .day:nth-child(odd) .day-line:nth-child(odd) { background-color: #f2f2f2; } .flexh { display: flex; } .flexv { width: 100%; height: 100%; display: flex; flex-direction: column; } .flexgrow { flex-grow: 1; } .flexten { flex-basis: 10%; flex-grow: 0; flex-shrink: 0; text-align: center; } .flexfive { flex-basis: 5%; } .vertical { text-align: center; writing-mode: vertical-lr; transform: rotate(180deg); border-left: 1px solid #000000;; } .sign { position: absolute; bottom: 0; width: 100%; height: 15%; } .sign table { width: 100%; height: 100%; } .sign table, .sign table td { border: 1px solid black; border-collapse: collapse; } .sign td { width: 50%; } .sign tr:last-child td { height: 90%; text-align: center; vertical-align: bottom; font-size: 0.7em; } .page { position: relative; margin: auto; margin-bottom: 0.25cm; width: 21cm; height: 29.7cm; display: grid; grid-template-rows: 2cm auto 2cm; background: #ffffff; } .page:nth-child(odd) { grid-template-columns: 2.41cm auto 0.81cm; } .page:nth-child(even) { grid-template-columns: 0.81cm auto 2.42cm; } .pg-head { position: relative; width: 100%; height: 100%; grid-row: 1 / 2; grid-column: 2 / 3; background: #ffffff; } .pg-head .flex { position: absolute; top: 1cm; text-align: center; } .pg-head img { position: absolute; top: .5cm; height: .5cm; } .page:nth-child(odd) .pg-head img { right: 0; } .pg-content { position: relative; width: 100%; height: 100%; grid-row: 2 / 3; grid-column: 2 / 3; } .pg-footer { position: relative; width: 100%; height: 100%; grid-row: 3 / 4; grid-column: 2 / 3; display: flex; justify-content: center; align-items: center; white-space: pre; } div.sticky { position: sticky; position: -webkit-sticky; align-self: flex-start; top: 0; z-index: 1; } .flex { width: 100%; display: flex; white-space: pre; } .eightyw { width: 80%; } .halfw { width: 50%; } .quarterw { width: 25%; } .tenw { width: 10%; } .halfh { height: 50%; } @media print { body, .page { margin: none; } .sticky, button { display: none; } }