169 lines
2.2 KiB
CSS
169 lines
2.2 KiB
CSS
body {
|
|
display: inline;
|
|
background-color: #1c1f22;
|
|
color: white;
|
|
font-family: Arial, sans-serif;
|
|
text-align: center;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#question {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
#question * {
|
|
background-color: black;
|
|
border: 1px solid;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
height: 2em;
|
|
line-height: 2em;
|
|
}
|
|
|
|
#character {
|
|
margin-bottom: 0.2em;
|
|
font-size: 100px;
|
|
width: 2em;
|
|
}
|
|
|
|
#equivalent {
|
|
font-size: 20px;
|
|
width: 10em;
|
|
}
|
|
|
|
#answer {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
#answer > * {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#user_answer {
|
|
display: inline-flex;
|
|
}
|
|
|
|
#user_answer * {
|
|
background-color: black;
|
|
color: white;
|
|
border: 1px solid;
|
|
font-size: 30px;
|
|
line-height: 75px;
|
|
margin-top: 1em;
|
|
margin-bottom: 0px;
|
|
padding: 0px 5px;
|
|
min-width: 50px;
|
|
height: 80px;
|
|
text-align: center;
|
|
}
|
|
|
|
#positive {
|
|
color: green;
|
|
}
|
|
|
|
#negative {
|
|
color: red;
|
|
}
|
|
|
|
input::placeholder {
|
|
color: grey !important;
|
|
}
|
|
|
|
#answer_field {
|
|
width: 250px;
|
|
}
|
|
|
|
#submit_answer button {
|
|
border-width: 2px;
|
|
font-weight: bold;
|
|
margin-top: 15px;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
min-width: 100px;
|
|
}
|
|
|
|
#correct_answer {
|
|
background-color: black;
|
|
border: 1px solid;
|
|
font-size: 20px;
|
|
line-height: 2em;
|
|
width: 300px;
|
|
height: 2em;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
#game {
|
|
margin-top: 25px;
|
|
}
|
|
|
|
#settings {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#settings > * {
|
|
background-color: #171717;
|
|
border: 1px solid white;
|
|
border-radius: 25px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
#settings label, #misc label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.h label {
|
|
background-color: #b57642;
|
|
}
|
|
.k label {
|
|
background-color: steelblue;
|
|
}
|
|
.r label {
|
|
background-color: blueviolet;
|
|
}
|
|
|
|
#misc {
|
|
background-color: black;
|
|
border: 1px solid;
|
|
width: fit-content;
|
|
padding: 5px;
|
|
margin-top: 15px;
|
|
margin-bottom: 0px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 450px) {
|
|
#user_answer * {
|
|
width: 12vw;
|
|
}
|
|
#answer_field {
|
|
width: 50vw;
|
|
}
|
|
#correct_answer {
|
|
font-size: 5vw;
|
|
height: auto;
|
|
width: 70vw;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-height: 650px) {
|
|
#user_answer * {
|
|
height: 8vh;
|
|
line-height: 7.5vh;
|
|
min-height: auto;
|
|
font-size: 5vh;
|
|
}
|
|
#character {
|
|
font-size: 12vh;
|
|
}
|
|
#equivalent, #correct_answer {
|
|
font-size: 4vh;
|
|
}
|
|
}
|