@import url("https://alv.cx/styles.css"); :root { --default-bg: #fefefe; --dark-bg: #b8b8b8; --selected-bg: #383838; --default-fg: #454545; --red: #ab4642; --orange: #dc9656; --yellow: #f7ca88; --green: #a1b56c; --teal: #86c1b9; --blue: #7cafc2; --purple: #ba8baf; --brown: #a16946; } #game_container { display: flex; align-items: center; justify-content: center; } #letter_grid { width: fit-content; margin: 0 auto; } .grid_row { display: flex; flex-direction: row; } .grid_item { width: 3em; height: 3em; display: flex; justify-content: center; align-items: center; border: 0.2em solid var(--default-fg); margin: 1em; text-transform: uppercase; font-weight: 800; transition: 0.5s; } .grid_item * { text-align: center; margin: 0; } .grid_correct { background-color: var(--green)} .grid_present { background-color: var(--yellow)} .grid_wrong { background-color: var(--default-bg)} .correct { animation: correct 0.5s; } .incorrect { animation: incorrect 0.5s; } @keyframes correct { 0% { background: var(--default-bg); } 50% { background: var(--green); } 100% { background: var(--default-bg); } } @keyframes incorrect { 0% { background: var(--default-bg); } 50% { background: var(--red); } 100% { background: var(--default-bg); } } #end_screen { position: fixed; height: 100vh; width: 100vw; top: 0; left: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background-color: rgba(255, 255, 255, 0.8) } #end_screen * { width: fit-content; } .kb_row { display: flex; } .kb_row * { width: 3em; height: 3em; text-align: center; margin: 0; } .kb_row .kb_filler { width: 1.5em; }