html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; } /* END RESET*/ /* GLOBAL STYLING */ :root { /* PALETTE */ --color1: #EDE7DC; --color2: #BDC3CB; --color3: #CCAFA5; --color4: #DCD2CC; --color5: #C0C0C0; --color6: #6C6A61; --color7: #2e4db4; --color8: #C0C9CC; --color9: #F2F1F0; --color10: #171515; /* USE OF COLORS */ --outcome-background-color: var(--color9); --outcome-background-hidden: var(--color2); --outcome-text-color: var(--color10); --background-dec-btn: var(--color7); --background-action-btn: var(--color6); --background-body: var(--color9); --color-dec-btn: var(--color9); --outcome-font-size:2em; --sq-height: 15vh; --sq-width: 15vh; --row-height: 17vh; --row-width: 17vw; --action-font-size: 1em; --table-side-margin: 25vw; --table-top-margin: 5vh; } body{ background-color: var(--background-body); color: var(--color3); font-size: 1em; font-family: Helvetica, sans-serif; min-height: 120vh; display: flex; flex-direction: column; overflow: hidden; } .debug-info { display: none; } .game-body { height:100vh; width:100vw; } .gametable { border-collapse: collapse; border-spacing: 0; box-sizing: border-box; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .gametable th, .gametable td { height: var(--sq-height); width: var(--sq-width); } .gametable tr { height: var(--row-height); width: var(--row-width); text-align : 'center'; } .button-game { border: 0; padding: 0; box-sizing: border-box; text-align: center; text-decoration: none; white-space: nowrap; vertical-align: middle; height: var(--sq-height); width: var(--sq-width); } .button-game button { cursor: default; margin: 0; } .button-game:focus { outline: 0; } .button-action { font-size: var(--action-font-size); background-color: var(--background-action-btn); color: var(--color-dec-btn); } .button-outcome { background-color: var(--outcome-background-hidden); color: var(--outcome-background-hidden); font-size: var(--outcome-font-size); } .dec-button{ background-color: var(--background-dec-btn); color: var(--color-dec-btn); border: 0px; border-radius: 3px; font-size: 1.5em !important; } #between-button { position: absolute; top: 50vh; line-height: 2em !important; width: 6em; transform: translate(-50%,-50%); } .button-img{ max-width:85%; max-height:85%; display: none; justify-content: center; align-self: center; } .hidden { color: var(--outcome-background-hidden); background-color: var(--outcome-background-hidden); } .non-hidden { color: var(--outcome-text-color); background-color: var(--outcome-background-color); } .hidden .button-img{ display: none; } .non-hidden .button-img{ display: inline-flex; }