body { margin: 0; padding: 0; background-color: white; font-family: Times, 'Times New Roman', Georgia, serif; } form { padding: 1rem; height: calc(100vh - 2rem); display: flex; flex-flow: column; justify-content: space-evenly; } h1 { margin: 0; } h1 table { margin: auto; line-height: 0.8; } h1 td { width: 0.7em; text-align: center; } h1, h2 { font-variant-caps: petite-caps; text-align: center; } table.grille { border-collapse: collapse; margin: 0 auto; } .grille th { width: 25px; height: 30px; text-align: center; } .grille td { width: 2rem; height: 2rem; border: 1px solid black; padding: 2px; background-color: white; } .grille tr:nth-of-type(2) td { border-top-width: 3px; } .grille tr:last-of-type td { border-bottom-width: 3px; } .grille td:first-of-type { border-left-width: 3px; } .grille td:last-child { border-right-width: 3px; } .grille .case.noire { background-color: black; } .grille .case.noire { background-color: black; } .grille input { width: 100%; height: 100%; border: none; padding: 0; text-align: center; font-size: 1.2em; font-family: 'Comic Sans MS', 'Comic Sans', sans; color: darkblue; background-color: white; } .grille input[disabled] { background-color: black; } .definitions { display: flex; justify-content: space-evenly; } .definitions .horizontales, .definitions .verticales { width: 45%; } .definitions ol { padding-left: 2em; } .definitions > div > ol > li::marker { font-weight: bold; } .definitions li ol { padding-left: 0em; } .definitions li li { margin-left: 0.8em; } .definitions li li::marker { font-size: small; } button[type='submit'] { width: fit-content; margin: 0 auto; } button[type='submit'] { width: fit-content; margin: 0 auto; border: none; background: none; font-family: inherit; font-size: 1em; } button[type="submit"]:hover { cursor: pointer; color: #2a6496; text-decoration: underline; } button[type="submit"]:active { color: darkorchid; } @media (max-width: 640px) { * { box-sizing: border-box; } body { width: auto; margin: 0; padding: 0; } h1 table { line-height: 0.7; } .grille td { width: 2.5rem; height: 2.5rem; } .definitions { display: flex; flex-flow: column; } .definitions .horizontales, .definitions .verticales { width: 100%; } } @media (max-device-width:768px) and (orientation: landscape) { html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } } @media (prefers-color-scheme: dark) { body, button { background-color: #02081a; color: #c6c6c6; } .grille td, .grille input { background-color: #edeeee; } button[type="submit"]:hover { color: #479fec; } button[type="submit"]:active { color: orchid; } }