Move info boxes to model popups
This commit is contained in:
fraxle
2026-06-11 18:12:04 +01:00
parent b41c4bd75c
commit 9a9684ba99
12 changed files with 615 additions and 306 deletions
+182
View File
@@ -868,6 +868,188 @@
text-transform: uppercase;
color: #7a5c2a;
}
/* ── Welcome / "How it works" popup ─────────────────────────────────── */
.welcome-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 20px;
animation: welcome-fade 0.18s ease-out;
}
@keyframes welcome-fade {
from { opacity: 0; }
to { opacity: 1; }
}
.welcome-card {
position: relative;
background: #fdf8ee;
border: 1.5px solid #c9b08a;
border-radius: 12px;
padding: 30px 34px;
width: 100%;
max-width: 480px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
animation: welcome-pop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes welcome-pop {
from { opacity: 0; transform: scale(0.94) translateY(8px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.welcome-close {
position: absolute;
top: 12px;
right: 14px;
background: none;
border: none;
font-size: 26px;
line-height: 1;
color: #b09870;
cursor: pointer;
padding: 2px 6px;
border-radius: 6px;
transition: color 0.15s, background 0.15s;
}
.welcome-close:hover {
color: #1e1208;
background: rgba(176, 152, 112, 0.16);
}
.welcome-head {
text-align: center;
margin-bottom: 22px;
}
.welcome-kicker {
font-family: Manrope, sans-serif;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #c8922a;
margin-bottom: 6px;
}
.welcome-title {
font-family: Fraunces, serif;
font-size: 1.5rem;
font-weight: 600;
color: #1e1208;
margin: 0;
line-height: 1.2;
}
.welcome-intro {
font-family: Manrope, sans-serif;
font-size: 0.9rem;
line-height: 1.5;
color: #4a3420;
text-align: center;
margin: 0 0 22px;
}
.welcome-intro em {
font-style: italic;
color: #6b4f2a;
}
.welcome-intro strong {
color: #c8922a;
}
.welcome-remember {
font-family: Manrope, sans-serif;
font-size: 0.82rem;
line-height: 1.4;
color: #6b4f2a;
text-align: center;
background: #f0e4c4;
border-radius: 8px;
padding: 10px 14px;
margin: 0 0 18px;
}
.welcome-steps {
list-style: none;
margin: 0 0 22px;
padding: 0;
display: flex;
flex-direction: column;
gap: 18px;
}
.welcome-step {
display: grid;
grid-template-columns: auto auto 1fr;
align-items: start;
gap: 12px;
}
.welcome-step-num {
font-family: Fraunces, serif;
font-size: 0.85rem;
font-weight: 700;
width: 24px;
height: 24px;
border-radius: 50%;
background: #c8922a;
color: #fffcf2;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
margin-top: 2px;
}
.welcome-step-icon {
font-size: 1.6rem;
line-height: 1;
margin-top: 1px;
}
.welcome-step-text {
display: flex;
flex-direction: column;
gap: 3px;
}
.welcome-step-title {
font-family: Manrope, sans-serif;
font-weight: 700;
font-size: 0.98rem;
color: #1e1208;
}
.welcome-step-body {
font-family: Manrope, sans-serif;
font-size: 0.88rem;
line-height: 1.45;
color: #4a3420;
}
.welcome-step-body strong {
color: #6b4f2a;
}
.welcome-cta {
display: block;
width: 100%;
font-family: Manrope, sans-serif;
font-weight: 700;
font-size: 0.95rem;
letter-spacing: 0.03em;
color: #fffcf2;
background: #c8922a;
border: none;
border-radius: 9px;
padding: 13px;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
}
.welcome-cta:hover {
background: #b3801f;
}
.welcome-cta:active {
transform: translateY(1px);
}
@media (max-width: 800px) {
.welcome-card {
padding: 26px 20px;
}
.welcome-title {
font-size: 1.3rem;
}
}
.utci-fetch-time {
text-align: right;
font-size: 0.72rem;