words/styles.css

159 lines
2.4 KiB
CSS
Raw Normal View History

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-28 00:30:13 +00:00
body {
font-family: monospace;
margin-top: 0;
}
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;
}
2022-01-28 00:30:13 +00:00
#footer { margin-top: 4em; }
2022-01-27 18:36:45 +00:00
.grid_row {
display: flex;
flex-direction: row;
}
.grid_item {
2022-01-28 00:30:13 +00:00
width: 8vw;
max-width: 3em;
height: 8vw;
max-height: 3em;
2022-01-27 18:36:45 +00:00
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-28 00:57:36 +00:00
margin: min(1em, 3vw);
2022-01-27 18:36:45 +00:00
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;
}
2022-01-28 00:30:13 +00:00
.clicked {
animation: clicked 0.5s;
}
2022-01-27 20:20:51 +00:00
@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);
}
}
2022-01-28 00:30:13 +00:00
@keyframes clicked {
0% {
background: var(--default-bg);
}
50% {
background: var(--dark-bg);
}
100% {
background: var(--default-bg);
}
}
2022-01-27 20:20:51 +00:00
#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
}
#end_screen_image {
max-width: 80vw;
}
2022-01-28 00:30:13 +00:00
#keyboard {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
2022-01-27 22:05:10 +00:00
.kb_row {
display: flex;
}
.kb_row * {
2022-01-28 00:30:13 +00:00
width: min(10vw, 3em);
height: min(10vw, 3em);
2022-01-27 22:05:10 +00:00
text-align: center;
margin: 0;
}
2022-01-28 00:30:13 +00:00
.kb_filler {
width: min(5vw, 1.5em);
2022-01-27 22:05:10 +00:00
}
2022-01-28 00:30:13 +00:00
.kb_letter {
line-height: min(10vw, 3em)
}