capitals_quiz/src/game_styles.css

119 lines
1.8 KiB
CSS
Raw Normal View History

2021-04-10 14:02:36 +00:00
:root {
--a-color: var(--red);
--b-color: var(--yellow);
--c-color: var(--green);
--d-color: var(--blue);
--question-country-color: var(--teal);
}
2021-04-11 14:04:52 +00:00
.correct {
animation: correct .5s;
2021-04-11 14:04:52 +00:00
}
.incorrect {
animation: incorrect .5s;
2021-04-11 14:04:52 +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); }
}
2021-04-11 17:03:01 +00:00
#toprow {
2021-04-10 14:02:36 +00:00
display: flex;
justify-content: space-between;
align-items: center;
}
@media only screen and (max-width: 600px) {
2021-04-11 17:03:01 +00:00
#toprow {
2021-04-10 14:02:36 +00:00
flex-direction: column-reverse;
}
}
2021-04-11 17:03:01 +00:00
#question {
2021-04-10 14:02:36 +00:00
font-size: 1.5em;
}
2021-04-11 17:03:01 +00:00
#score {
2021-04-10 14:02:36 +00:00
--good: var(--green);
--okay: var(--yellow);
--bad: var(--red);
2021-04-11 17:03:01 +00:00
background: var(--good);
2021-04-10 14:02:36 +00:00
}
#previousQuestionAnswer { background: var(--green) }
2021-04-10 14:02:36 +00:00
#game .answer {
display: flex;
justify-content: space-evenly;
align-items: center;
align-content: center;
}
#game .answer .text {
width: 50%;
}
#game .answer .letter {
font-size: 1.5em;
padding: 1em;
border: 0;
2021-04-10 14:02:36 +00:00
border-radius: 0.25em;
}
2021-04-11 17:03:01 +00:00
#a {
2021-04-10 14:02:36 +00:00
background-color: var(--a-color);
border-color: var(--a-color);
}
2021-04-11 17:03:01 +00:00
#b {
2021-04-10 14:02:36 +00:00
background-color: var(--b-color);
border-color: var(--b-color);
}
2021-04-11 17:03:01 +00:00
#c {
2021-04-10 14:02:36 +00:00
background-color: var(--c-color);
border-color: var(--c-color);
}
2021-04-11 17:03:01 +00:00
#d {
2021-04-10 14:02:36 +00:00
background-color: var(--d-color);
border-color: var(--d-color);
}
span#questionCountry {
background-color: var(--question-country-color);
}
2021-04-11 14:04:52 +00:00
2021-04-11 17:03:01 +00:00
#region_selector {
2021-04-11 14:04:52 +00:00
width: 100%;
background: var(--dark-bg);
font-size: 1.5em;
padding: 1em;
border: none;
border-radius: 0.25em;
box-sizing: border-box;
}
#settings {
width: 100%
}
2021-04-11 17:03:01 +00:00
#selector_results {
2021-04-11 14:04:52 +00:00
display: flex;
flex-wrap: wrap;
2021-04-11 17:03:01 +00:00
justify-content: center;
2021-04-11 14:04:52 +00:00
}
#settings .selector_result {
2021-04-11 17:03:01 +00:00
margin: 1em;
2021-04-11 14:04:52 +00:00
}