Spaces:
Running on Zero
Running on Zero
File size: 14,703 Bytes
3e6f84d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | /* Change these tokens to adjust the theme without hunting through components. */
:root {
font-family: 'Nunito Variable', 'Noto Sans Variable', sans-serif;
color: var(--ink);
background: #FFFFFF;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
--brand: #58CC02;
--brand-hover: #89E219;
--brand-shadow: #58A700;
--brand-soft: #D7FFB8;
--green-ink: #234600;
--blue: #1CB0F6;
--blue-ink: #175B8F;
--blue-soft: #DDF4FF;
--blue-line: #84D8FF;
--yellow: #FFC800;
--yellow-soft: #FFF5CC;
--orange: #FF9600;
--orange-ink: #805300;
--purple: #CE82FF;
--purple-ink: #7946A5;
--red: #FF4B4B;
--red-soft: #FFE5E5;
--red-line: #FFB4B4;
--red-ink: #A82020;
--ink: #4B4B4B;
--muted: #6B6B6B;
--line: #E5E5E5;
--surface: #F7F7F7;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 5px; }
button { transition: background-color .15s, box-shadow .15s, transform .15s; }
svg { display: block; flex-shrink: 0; }
p { margin: 0; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 234px; padding: 36px 21px 24px; display: flex; flex-direction: column; border-right: 2px solid var(--line); background: #fff; z-index: 2; }
.brand { display: flex; gap: 9px; align-items: center; padding-left: 2px; color: var(--brand); font-weight: 900; font-size: 29px; letter-spacing: -1.5px; text-decoration: none; }
.brand :is(svg, img) { width: 43px; height: 43px; }
nav { display: grid; gap: 12px; margin-top: 47px; }
.nav-button { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 12px 10px; border: 2px solid transparent; border-radius: 16px; background: none; color: var(--ink); font-size: 14px; letter-spacing: .5px; font-weight: 900; text-transform: uppercase; text-align: left; }
.nav-button svg { width: 27px; height: 27px; }
.nav-button:hover { background: var(--surface); }
.nav-button.is-selected { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-line); }
.nav-button:first-child svg { color: var(--brand-shadow); }
.sidebar-footer { margin-top: auto; padding: 24px 6px 0; display: flex; gap: 11px; align-items: center; font-size: 14px; font-weight: 800; line-height: 1.7; color: var(--ink); }
.sidebar-footer small { font-size: 12px; font-weight: 600; color: var(--muted); }
.tiny-book { background: var(--brand-soft); color: var(--brand-shadow); padding: 8px; border-radius: 11px; }
.tiny-book svg { width: 23px; height: 23px; }
.workspace { margin-left: 234px; }
.topbar { min-height: 90px; padding: 20px 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-label { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); font-weight: 800; }
.page-label img { width: 34px; height: 34px; }
.age-label { border: 2px solid var(--line); border-radius: 12px; color: var(--ink); padding: 5px 10px; font-size: 13px; font-weight: 800; }
main { max-width: 1240px; margin: 0 auto; padding: 42px 46px 45px; min-height: calc(100vh - 166px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
h1 { margin: 0 0 7px; font-size: clamp(30px, 3vw, 38px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.2; }
.page-heading p { font-size: 17px; color: var(--muted); font-weight: 600; }
.language-picker { display: flex; gap: 10px; }
.language-picker button { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 14px; min-height: 51px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 800; }
.language-picker button:hover { background: var(--surface); }
.language-picker button[aria-pressed='true'] { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue-ink); }
.language-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; font-weight: 900; }
.language-symbol.english { background: var(--blue-soft); color: var(--blue-ink); }
.language-symbol.greek { background: var(--blue-soft); color: var(--blue-ink); }
[lang='el'] { font-family: 'Noto Sans Variable', sans-serif; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 26px; align-items: start; }
.reading-card { min-width: 0; border: 2px solid var(--line); border-radius: 24px; background: white; overflow: hidden; box-shadow: 0 5px 0 var(--line); }
.card-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 25px; border-bottom: 1px solid var(--line); background: var(--surface); }
.passage-label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 700; }
.mini-book { color: var(--blue-ink); }
.mini-book svg { width: 23px; height: 23px; }
.toolbar-separator { color: var(--line); padding: 0 3px; }
.size-picker { display: flex; gap: 5px; }
.size-picker button { width: 38px; height: 38px; border: 1px solid var(--line); border-bottom: 3px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: 18px; font-weight: 800; }
.size-picker button:hover:not(:disabled) { background: var(--blue-soft); }
.size-picker span { font-size: 12px; padding-left: 1px; vertical-align: super; }
.passage { padding: 32px 35px 18px; }
.passage-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font-size: 13px; color: var(--muted); font-weight: 700; }
.passage-meta > :first-child { background: var(--blue-soft); border-radius: 7px; padding: 5px 9px; color: var(--purple-ink); }
.passage h2 { font-size: clamp(25px, 2.3vw, 31px); line-height: 1.3; font-weight: 900; letter-spacing: -.65px; margin: 0; color: var(--ink); }
.page-rule { width: 42px; height: 4px; margin: 23px 0; border-radius: 3px; background: var(--brand); }
.passage p { font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.85; margin: 0 0 23px; }
.passage.text-size-0 p { font-size: 19px; }
.passage.text-size-2 p { font-size: 26px; }
.passage[lang='el'] p { line-height: 1.95; font-weight: 400; }
.passage-footer { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.sample-label { color: var(--blue-ink); }
.reading-aside { display: grid; gap: 22px; }
.start-card { border: 2px solid #B8E986; border-bottom-width: 5px; background: linear-gradient(160deg, #F1FFE5, var(--brand-soft)); border-radius: 24px; overflow: hidden; }
.illustration-area { padding: 15px 9px 0; }
.panda-illustration { width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.start-content { padding: 6px 23px 23px; text-align: center; }
.start-content h2 { font-size: 23px; line-height: 1.25; font-weight: 900; letter-spacing: -.6px; margin: 0 0 11px; color: var(--ink); }
.start-content p { font-size: 16px; line-height: 1.65; color: var(--ink); font-weight: 600; margin-bottom: 22px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 2px solid var(--brand); box-shadow: 0 4px 0 var(--brand-shadow); border-radius: 16px; background: var(--brand); color: var(--green-ink); padding: 12px 20px; font-size: 16px; line-height: 1.25; font-weight: 900; letter-spacing: .4px; }
.primary-button svg { width: 19px; height: 19px; }
.primary-button:hover:not(:disabled) { background: var(--brand-hover); }
.primary-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-shadow); }
.primary-button:disabled { box-shadow: none; }
.passage-start { min-width: 92px; text-transform: uppercase; font-size: 14px; }
.start-content .primary-button { width: 100%; }
.microphone-note { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.reading-tip { padding: 20px 17px; display: flex; align-items: flex-start; gap: 13px; border: 2px solid var(--blue-line); border-radius: 19px; background: var(--blue-soft); }
.tip-icon { color: var(--blue); border: 1px solid var(--blue-line); border-bottom-width: 3px; background: var(--blue-soft); padding: 9px; border-radius: 12px; }
.tip-icon svg { width: 22px; height: 22px; }
.reading-tip h3 { font-size: 16px; color: var(--ink); margin: 0 0 6px; font-weight: 900; }
.reading-tip p { font-size: 14px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.feature-note { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; padding: 0 14px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; margin: 0 46px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.page-footer > :first-child { color: var(--blue-ink); font-weight: 900; }
.secondary-button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; background: white; color: var(--ink); font-weight: 800; font-size: 14px; }
.secondary-button svg { width: 18px; height: 18px; }
.secondary-button:hover:not(:disabled) { background: var(--surface); }
.secondary-button:active:not(:disabled) { transform: translateY(2px); }
.is-focused .sidebar { display: none; }
.is-focused .workspace { margin-left: 0; }
.is-focused main { max-width: 860px; }
.is-focused .reading-layout { grid-template-columns: minmax(0, 1fr); }
.setup-card { max-width: 700px; margin: 0 auto; padding: 34px; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 24px; }
.setup-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--blue-soft); color: var(--blue-ink); margin-bottom: 22px; }
.setup-icon svg { width: 28px; height: 28px; }
.muted { color: var(--muted); line-height: 1.7; }
.connection-row { padding: 23px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 16px; }
.connection-status { padding: 6px 11px; background: var(--blue-soft); border-radius: 9px; font-size: 14px; color: var(--ink); }
.connection-status.online { background: var(--brand-soft); color: var(--green-ink); }
.connection-status.offline { background: var(--yellow-soft); color: var(--orange-ink); }
.connection-help { color: var(--orange-ink); background: var(--yellow-soft); border-radius: 12px; padding: 14px; line-height: 1.6; margin-bottom: 20px; }
.setup-note { margin-top: 30px; padding-top: 10px; }
.setup-note h2 { font-size: 19px; }
.setup-note p { color: var(--muted); line-height: 1.7; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 14px; border-radius: 10px; color: white; background: var(--blue-ink); }
.skip-link:focus { top: 12px; }
@media (min-width: 1600px) { main { padding-top: 54px; } }
@media (max-width: 1200px) {
.sidebar { width: 204px; padding-inline: 16px; }
.brand { font-size: 26px; gap: 7px; }
.brand :is(svg, img) { width: 38px; height: 38px; }
.workspace { margin-left: 204px; }
main { padding: 32px 30px 40px; }
.topbar { padding-inline: 30px; }
.reading-layout { grid-template-columns: minmax(0, 1fr) 254px; gap: 20px; }
.passage { padding-inline: 26px; }
.start-content { padding-inline: 16px; }
.page-footer { margin-inline: 30px; }
}
@media (max-width: 1020px) {
.sidebar { width: 90px; align-items: center; padding: 28px 12px; }
.brand { padding: 0; }
.brand :is(svg, img) { width: 46px; height: 46px; }
.brand span, .nav-button span, .sidebar-footer { display: none; }
.nav-button { padding: 13px; }
.workspace { margin-left: 90px; }
}
@media (max-width: 800px) {
.sidebar { position: static; width: auto; padding: 16px 22px; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 2px solid var(--line); }
.brand span { display: inline; }
.brand :is(svg, img) { width: 37px; height: 37px; }
.brand { font-size: 26px; }
nav { margin: 0; display: flex; gap: 8px; }
.nav-button { min-height: 44px; padding: 9px 12px; }
.nav-button svg { width: 23px; height: 23px; }
.workspace { margin-left: 0; }
.topbar { min-height: 63px; padding: 12px 24px; }
main { padding: 28px 24px 36px; }
.reading-layout { grid-template-columns: minmax(0, 1fr); }
.reading-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.start-card { grid-row: span 2; }
.reading-tip { margin-top: 12px; }
.feature-note { text-align: left; padding-inline: 4px; }
.page-footer { margin-inline: 24px; }
}
@media (max-width: 520px) {
.sidebar { padding: 13px 17px; }
.brand { font-size: 24px; }
main { padding: 25px 16px 32px; }
.topbar { padding-inline: 19px; }
.page-heading { gap: 21px; margin-bottom: 24px; }
.language-picker { width: 100%; }
.language-picker button { flex: 1; }
.card-toolbar { padding: 14px; }
.passage-label { font-size: 12px; gap: 5px; }
.toolbar-separator { padding: 0; }
.passage { padding: 26px 22px 8px; }
.passage h2 { font-size: 28px; }
.passage p { font-size: 21px; }
.passage-footer { padding: 18px 22px; }
.reading-aside { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.start-card { grid-row: auto; }
.illustration-area { padding-top: 10px; }
.panda-illustration { max-width: 230px; }
.start-content { padding: 0 24px 24px; }
.reading-tip { margin: 0; }
.feature-note { text-align: center; }
.page-footer { margin-inline: 19px; }
.setup-card { padding: 24px 20px; }
.is-focused .page-label { font-size: 14px; }
.secondary-button { font-size: 12px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (max-width: 520px) {
.sidebar { flex-wrap: wrap; gap: 12px; }
.sidebar nav { flex-basis: 100%; justify-content: space-between; }
}
|