webtools/site/mental-arithmatic/style.css

122 lines
1.8 KiB
CSS
Raw Permalink Normal View History

2026-01-15 11:51:48 +00:00
.hidden {
display: none !important;
}
body {
--pico-form-element-disabled-opacity: 1.0;
}
.game-card {
display: flex;
flex-direction: column;
2026-01-16 11:12:30 +00:00
min-height: 50vh;
}
.welcome-card .game-variant footer {
display: flex;
align-items: center;
justify-content: space-between;
}
.welcome-card .game-variant .high-scores {
display: flex;
gap: 10px;
}
.countdown-timer {
font-size: 3em;
text-align: center;
width: 100%;
}
input.fake {
position: fixed;
top: -600px;
2026-01-15 11:51:48 +00:00
}
.game-card header,
.game-card footer {
display: flex;
justify-content: space-between;
font-size: 2em;
margin-block: 12px;
margin-inline: 20px;
}
.game-card main {
flex-grow: 1;
flex-shrink: 1;
display: flex;
align-items: center;
2026-01-16 11:12:30 +00:00
padding-block-start: 40px;
2026-01-15 11:51:48 +00:00
}
.game-card .question {
margin: auto;
width: 60vw;
text-align: right;
font-size: 3em;
}
.game-card .answer {
border-block: 2px solid black;
padding-block: 2px;
position: relative;
}
.game-card .answer.right {
2026-01-16 11:12:30 +00:00
border-color: #4EB31B;
color: #4EB31B;
2026-01-15 11:51:48 +00:00
}
.game-card .answer.wrong {
2026-01-16 11:12:30 +00:00
border-color: #EE402E;
color: #EE402E;
2026-01-15 11:51:48 +00:00
}
.game-card .answer .indicator {
display: none;
position: absolute;
top: 0;
bottom: 0;
left: 0;
}
.game-card .answer.right .indicator.right {
display: block;
}
.game-card .answer.wrong .indicator.wrong {
display: block;
}
.game-card .question input {
border-inline: none;
border-radius: 0;
box-shadow: none;
border: none;
margin: 0;
padding: 0;
text-align: right;
font-size: 1em;
height: 1em;
}
.game-card .question input:focus {
border-none: none;
}
.game-card .answer.right input {
color: green;
}
.game-card .answer.wrong input {
color: red;
}