2022-01-27 18:36:45 +00:00
|
|
|
@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;
|
|
|
|
}
|
|
|
|
|
2022-01-27 20:20:51 +00:00
|
|
|
#game_container {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2022-01-27 18:36:45 +00:00
|
|
|
#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;
|
2022-01-27 20:20:51 +00:00
|
|
|
border: 0.2em solid var(--default-fg);
|
2022-01-27 18:36:45 +00:00
|
|
|
margin: 1em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: 800;
|
2022-01-27 20:20:51 +00:00
|
|
|
transition: 0.5s;
|
2022-01-27 18:36:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.grid_item * {
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid_correct { background-color: var(--green)}
|
|
|
|
.grid_present { background-color: var(--yellow)}
|
2022-01-27 20:20:51 +00:00
|
|
|
.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;
|
2022-01-27 22:05:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.kb_row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kb_row * {
|
|
|
|
width: 3em;
|
|
|
|
height: 3em;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.kb_row .kb_filler {
|
|
|
|
width: 1.5em;
|
|
|
|
}
|
|
|
|
|