Files
quiz/app/static/css/style.css
T

1822 lines
41 KiB
CSS
Executable File

:root {
--bg-dark: #0b0b16;
--bg-card: rgba(20, 22, 40, 0.9);
--bg-card-hover: rgba(28, 31, 56, 0.95);
--gold: #c9a86a;
--gold-bright: #ffd700;
--gold-soft: #e6c98f;
--text-main: #f5f5f7;
--text-muted: #b8b8cc;
--parchment: #f6eedb;
--wax-red: #8b0000;
--success: #2ecc71;
--danger: #e74c3c;
--warning: #f39c12;
--border-gold: rgba(201, 168, 106, 0.35);
--header-height: 56px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
body {
background-color: var(--bg-dark);
background-image:
radial-gradient(circle at 15% 15%, rgba(201, 168, 106, 0.08) 0%, transparent 45%),
radial-gradient(circle at 85% 85%, rgba(116, 0, 1, 0.08) 0%, transparent 50%);
color: var(--text-main);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Georgia", "Times New Roman", serif;
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
line-height: 1.5;
}
/* =========================================
HEADER & NAVIGATION (Mobile-First)
========================================= */
.site-header {
background: rgba(11, 11, 22, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border-gold);
position: sticky;
top: 0;
z-index: 200;
width: 100%;
}
.header-inner {
max-width: 900px;
margin: 0 auto;
padding: 0 16px;
height: var(--header-height);
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.brand-link {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: var(--gold);
font-weight: bold;
font-size: 1.15rem;
letter-spacing: 0.5px;
}
.brand-sparkle {
font-size: 1.25rem;
}
.header-right {
display: flex;
align-items: center;
gap: 10px;
}
.lang-switch-group {
display: inline-flex;
background: rgba(20, 22, 40, 0.85);
border: 1px solid var(--border-gold);
border-radius: 20px;
padding: 2px;
overflow: hidden;
}
.lang-btn {
background: transparent;
border: none;
color: var(--text-muted);
font-size: 0.8rem;
font-weight: 600;
padding: 4px 9px;
border-radius: 16px;
cursor: pointer;
transition: all 0.2s ease;
min-height: 28px;
display: flex;
align-items: center;
gap: 4px;
}
.lang-btn:hover {
color: var(--gold);
}
.lang-btn.active {
background: var(--gold);
color: #0b0b16;
box-shadow: 0 0 8px rgba(201, 168, 106, 0.4);
}
.audio-btn {
background: rgba(201, 168, 106, 0.15);
border: 1px solid var(--gold);
color: var(--gold-soft);
padding: 6px 12px;
border-radius: 20px;
cursor: pointer;
font-size: 0.85rem;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
min-height: 36px;
}
.audio-btn:hover {
background: var(--gold);
color: #000;
}
.menu-toggle-btn {
display: none;
background: transparent;
border: 1px solid var(--border-gold);
color: var(--gold);
font-size: 1.3rem;
width: 38px;
height: 38px;
border-radius: 8px;
cursor: pointer;
align-items: center;
justify-content: center;
}
.nav-links {
display: flex;
gap: 18px;
align-items: center;
}
.nav-link {
color: var(--text-muted);
text-decoration: none;
font-size: 0.9rem;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.nav-link:hover {
color: var(--gold-bright);
background: rgba(201, 168, 106, 0.1);
}
/* =========================================
CONTAINER & LAYOUT
========================================= */
.container {
flex: 1;
max-width: 760px;
width: 100%;
margin: 20px auto;
padding: 0 16px;
}
.admin-wrapper {
max-width: 900px;
width: 100%;
margin: 20px auto;
padding: 0 16px;
}
.quiz-wrapper {
width: 100%;
}
.quiz-header {
text-align: center;
margin-bottom: 20px;
}
.glow-title {
color: var(--gold);
font-size: clamp(1.35rem, 5vw, 2.1rem);
letter-spacing: 0.5px;
text-shadow: 0 0 14px rgba(201, 168, 106, 0.4);
margin-bottom: 6px;
word-break: break-word;
}
.subtitle {
color: var(--text-muted);
font-size: clamp(0.85rem, 3vw, 1rem);
font-style: italic;
margin-bottom: 15px;
}
/* =========================================
CARD COMPONENT
========================================= */
.card {
background: var(--bg-card);
border: 1px solid var(--border-gold);
border-radius: 14px;
padding: clamp(16px, 4vw, 28px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
margin-bottom: 20px;
width: 100%;
}
/* =========================================
ANTIQUE HOGWARTS CLOSED ENVELOPE & LETTER REVEAL
========================================= */
.intro-parchment-wrapper {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
max-width: 600px;
margin: 0 auto;
}
/* =========================================
CODEPEN ENVELOPE WITH HOGWARTS AESTHETICS
- 4-Flap Envelope Back Geometry
- Realistic Parchment Textures
- Wax Seal in the Exact Center (Mitte)
- Small Handwriting Return Address (Top-Left)
- Clean Inner Letter Sheet
========================================= */
.envelope-outer-wrap {
width: 100%;
max-width: 480px;
margin: 15px auto 25px;
}
.envelope-form {
width: 100%;
perspective: 1200px;
}
.env-wrap {
position: relative;
overflow: hidden;
width: 100%;
padding-top: 86%; /* Aspect ratio for envelope body + rising letter */
background: transparent;
}
/* Interior Back Wall of the Envelope (Bottom 55%) */
.env-body-back {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 55%;
background-color: #2e2014;
background-image:
radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%),
url('/static/img/parchment_texture.jpg');
background-size: cover;
border-radius: 0 0 6px 6px;
border: 1.5px solid #6b4a24;
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
z-index: 1;
}
/* Top V-Flap (Hinged at 45% Top Edge of Envelope Body) */
.env-top {
position: absolute;
width: 100%;
height: 33%;
top: 45%;
z-index: 8;
transform-origin: top center;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.25s;
}
.env-top:before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background-color: #ebd8ae;
background-image:
radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.3) 0%, rgba(130, 95, 45, 0.2) 100%),
url('/static/img/parchment_texture.jpg');
background-size: cover;
clip-path: polygon(50% 100%, 0 0, 100% 0);
filter: drop-shadow(0px 8px 12px rgba(35, 18, 5, 0.6));
border-top: 1px solid #7c5830;
}
/* Sketched Dashed Line on Top Flap */
.env-top:after {
content: '';
position: absolute;
top: 2px;
left: 4%;
width: 92%;
height: 94%;
clip-path: polygon(50% 96%, 2% 2%, 98% 2%);
border-top: 1.5px dashed rgba(110, 75, 35, 0.4);
pointer-events: none;
}
/* Bottom Pocket Wrap */
.env-bottom-wrap {
height: 55%;
width: 100%;
z-index: 4;
bottom: 0;
position: absolute;
filter: drop-shadow(0px -4px 6px rgba(30, 15, 5, 0.3));
}
/* Bottom Flap */
.env-bottom {
clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
background-color: #e5cf9f;
background-image:
radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.25) 0%, rgba(120, 85, 40, 0.25) 100%),
url('/static/img/parchment_texture.jpg');
background-size: cover;
width: 100%;
height: 100%;
position: relative;
border-radius: 0 0 6px 6px;
}
/* Side Flaps Inside Bottom Pocket */
.env-bottom:before, .env-bottom:after {
content: '';
position: absolute;
width: 50%;
height: 100%;
background-size: cover;
}
/* Left Side Flap */
.env-bottom:before {
left: 0;
clip-path: polygon(100% 50%, 0 0, 0 100%);
background-color: #dfc794;
background-image:
linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.15) 100%),
url('/static/img/parchment_texture.jpg');
box-shadow: inset -2px 0 6px rgba(60, 40, 15, 0.2);
}
/* Right Side Flap */
.env-bottom:after {
right: 0;
clip-path: polygon(0 50%, 100% 0, 100% 100%);
background-color: #dbc38f;
background-image:
linear-gradient(-135deg, rgba(0, 0, 0, 0.12) 0%, rgba(255, 255, 255, 0.15) 100%),
url('/static/img/parchment_texture.jpg');
box-shadow: inset 2px 0 6px rgba(60, 40, 15, 0.2);
}
/* Small Handwriting Return Address in Top Left ("Abs.: Hogwarts Schule...") */
.env-sender-line {
position: absolute;
top: 47%;
left: 14px;
font-family: 'Caveat', 'Marck Script', cursive;
font-size: clamp(0.76rem, 2.1vw, 0.88rem);
color: #0d3820; /* Authentic Hogwarts Emerald Ink */
font-weight: 600;
z-index: 7;
pointer-events: none;
letter-spacing: 0.2px;
text-shadow: 0 0 1px rgba(13, 56, 32, 0.25);
transition: opacity 0.4s ease;
white-space: nowrap;
}
/* Hand-Sketched Hogwarts Wax Seal in the Exact Mitte (Center) */
.sketched-wax-seal {
position: absolute;
top: 72.5%; /* Exact point where top flap and pocket meet */
left: 50%;
transform: translate(-50%, -50%) rotate(-3deg);
width: 68px;
height: 68px;
border-radius: 50%;
cursor: pointer;
z-index: 9;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, opacity 0.4s ease;
box-shadow:
0 8px 20px rgba(0, 0, 0, 0.75),
0 2px 5px rgba(0, 0, 0, 0.5);
}
.sketched-wax-seal:hover {
transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
box-shadow:
0 12px 26px rgba(0, 0, 0, 0.85),
0 0 16px rgba(218, 165, 32, 0.5);
}
.seal-crest-img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
border: 2.5px solid #4a0d0d;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}
.seal-emboss-ring {
position: absolute;
inset: 2px;
border-radius: 50%;
border: 1.5px solid rgba(255, 215, 0, 0.25);
box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -3px 6px rgba(0, 0, 0, 0.6);
pointer-events: none;
}
.seal-glow {
position: absolute;
inset: -6px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.sketched-wax-seal:hover .seal-glow {
opacity: 1;
}
/* Inner Letter Sheet (Clean, No Distracting Text - "Den Text lassen wir erstmal weg") */
.env-letter-sheet {
width: calc(100% - 2.5rem);
left: 1.25rem;
position: absolute;
height: 68%;
top: 46%; /* Tucked safely inside pocket when closed */
background-color: #f7f0de;
background-image:
radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(140, 100, 50, 0.15) 100%),
url('/static/img/parchment_texture.jpg');
background-size: cover;
border-radius: 5px;
border: 1px solid #8e6c43;
outline: 1px dashed rgba(130, 95, 55, 0.4);
outline-offset: -5px;
z-index: 3; /* Behind bottom pocket (z-index: 4), in front of interior back (z-index: 1) */
transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1) 0.15s, box-shadow 0.6s ease;
transform: translateY(0);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 16px 20px;
text-align: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.letter-crest-small {
width: 48px;
height: 48px;
border-radius: 50%;
border: 2px solid #7c5830;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
margin-bottom: 8px;
object-fit: cover;
}
.letter-title {
font-family: 'Cinzel', serif;
font-size: clamp(0.95rem, 2.8vw, 1.2rem);
color: #2b1704;
letter-spacing: 1px;
font-weight: 700;
margin-bottom: 3px;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}
.letter-subtitle {
font-family: 'MedievalSharp', serif;
font-size: clamp(0.75rem, 2vw, 0.9rem);
color: #5a3d1e;
font-style: italic;
margin-bottom: 14px;
}
.btn-launch-express {
background: linear-gradient(135deg, #a62b2b 0%, #6e1010 100%);
color: #ffd700;
border: 1.5px solid #ffd700;
border-radius: 25px;
padding: 9px 18px;
font-family: 'Cinzel', serif;
font-size: clamp(0.78rem, 2.2vw, 0.92rem);
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
}
.btn-launch-express:hover {
transform: scale(1.04);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 215, 0, 0.6);
color: #ffffff;
}
/* =========================================
OPENED STATE (via .envelope-opened class OR hover)
========================================= */
.envelope-opened .env-top,
.envelope-form:hover .env-top {
transform: rotateX(-180deg);
z-index: 2;
transition-delay: 0s;
}
.envelope-opened .sketched-wax-seal {
opacity: 0;
transform: translate(-50%, -50%) scale(0.3) rotate(25deg);
pointer-events: none;
}
.envelope-form:hover .sketched-wax-seal {
opacity: 0.2;
transform: translate(-50%, -50%) scale(0.85);
}
.envelope-opened .env-letter-sheet,
.envelope-form:hover .env-letter-sheet {
transform: translateY(-56%);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(218, 165, 32, 0.35);
}
.envelope-opened .env-sender-line {
opacity: 0;
}
/* Controls Below Parchment */
.intro-controls-panel {
margin-top: 20px;
text-align: center;
}
.intro-subnote {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.5;
margin-bottom: 14px;
transition: all 0.3s ease;
}
.intro-action-container {
margin-top: 14px;
display: flex;
justify-content: center;
}
.letter-actions {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
width: 100%;
}
.fade-in-action {
animation: fadeInActionAnim 0.5s ease forwards;
}
@keyframes fadeInActionAnim {
0% { opacity: 0; transform: translateY(12px); }
100% { opacity: 1; transform: translateY(0); }
}
.btn-break-seal {
font-size: 1.12rem;
padding: 14px 28px;
box-shadow: 0 6px 20px rgba(201, 168, 106, 0.4);
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-break-seal:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 10px 28px rgba(201, 168, 106, 0.6);
}
.btn-launch-quiz {
font-size: clamp(1.05rem, 3.4vw, 1.22rem);
padding: 14px 28px;
font-weight: 700;
letter-spacing: 0.5px;
border-radius: 10px;
cursor: pointer;
background: linear-gradient(135deg, #e6c564 0%, #c9a86a 50%, #8c6838 100%);
color: #1a0f05;
border: 1px solid #ffd700;
box-shadow: 0 6px 25px rgba(201, 168, 106, 0.5), 0 0 15px rgba(255, 215, 0, 0.35);
transition: all 0.3s ease;
}
.btn-launch-quiz:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 10px 32px rgba(201, 168, 106, 0.75), 0 0 25px rgba(255, 215, 0, 0.6);
}
.glow-pulse {
animation: glowPulseAnim 2.6s infinite alternate ease-in-out;
}
@keyframes glowPulseAnim {
0% { box-shadow: 0 6px 20px rgba(201, 168, 106, 0.45); }
100% { box-shadow: 0 10px 32px rgba(201, 168, 106, 0.8), 0 0 25px rgba(255, 215, 0, 0.6); }
}
.btn-close-letter {
font-size: 0.92rem;
color: var(--text-muted);
background: transparent;
border: 1px solid rgba(201, 168, 106, 0.25);
padding: 8px 18px;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-close-letter:hover {
color: var(--gold-bright);
border-color: var(--gold);
background: rgba(201, 168, 106, 0.1);
}
@media (max-width: 480px) {
.envelope-outer-wrap {
max-width: 360px;
margin: 10px auto 20px;
}
.sketched-wax-seal {
width: 58px;
height: 58px;
}
.env-sender-line {
font-size: 0.72rem;
left: 10px;
}
.letter-crest-small {
width: 40px;
height: 40px;
margin-bottom: 6px;
}
.letter-title {
font-size: 0.96rem;
}
.letter-subtitle {
font-size: 0.76rem;
margin-bottom: 10px;
}
.btn-launch-express {
padding: 7px 14px;
font-size: 0.76rem;
}
.btn-launch-quiz {
padding: 12px 18px;
font-size: 0.95rem;
}
}
.difficulty-selection {
margin: 18px 0 22px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.difficulty-label {
font-size: 0.95rem;
color: var(--gold-soft);
font-weight: 600;
}
.difficulty-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.diff-chip {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-gold);
color: var(--text-muted);
border-radius: 20px;
padding: 8px 16px;
font-size: 0.88rem;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
font-family: inherit;
}
.diff-chip:hover {
border-color: var(--gold);
color: var(--text-main);
transform: translateY(-1px);
background: rgba(201, 168, 106, 0.12);
}
.diff-chip.active {
background: rgba(201, 168, 106, 0.25);
border-color: var(--gold);
color: var(--gold-bright);
box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
font-weight: bold;
}
/* =========================================
BUTTONS
========================================= */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 22px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: bold;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
border: none;
font-family: inherit;
min-height: 46px;
touch-action: manipulation;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
color: #0c0d14;
box-shadow: 0 4px 15px rgba(201, 168, 106, 0.3);
}
.btn-primary:hover:not(:disabled) {
background: linear-gradient(135deg, #ffd700 0%, var(--gold) 100%);
box-shadow: 0 6px 20px rgba(201, 168, 106, 0.5);
transform: translateY(-2px);
}
.btn-secondary {
background: rgba(255, 255, 255, 0.08);
color: var(--gold-soft);
border: 1px solid var(--gold);
}
.btn-secondary:hover:not(:disabled) {
background: rgba(201, 168, 106, 0.2);
}
.btn-danger {
background: rgba(231, 76, 60, 0.2);
color: #ff7675;
border: 1px solid var(--danger);
}
.btn-danger:hover:not(:disabled) {
background: var(--danger);
color: #fff;
}
.btn-success {
background: rgba(46, 204, 113, 0.2);
color: #55efc4;
border: 1px solid var(--success);
}
.btn-success:hover:not(:disabled) {
background: var(--success);
color: #000;
}
.btn-large {
font-size: 1.05rem;
padding: 14px 28px;
min-height: 50px;
}
.btn-sm {
font-size: 0.85rem;
padding: 8px 14px;
min-height: 38px;
}
.btn-group {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 18px;
width: 100%;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none !important;
}
/* =========================================
STATUS & PROGRESS
========================================= */
.status-panel {
margin-bottom: 16px;
width: 100%;
}
.progress-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-size: clamp(0.8rem, 3vw, 0.95rem);
}
.points-badge {
color: var(--gold-bright);
font-weight: bold;
text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
.progress-container {
width: 100%;
height: 10px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--border-gold);
border-radius: 8px;
overflow: hidden;
}
.progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--gold) 0%, #ffd700 100%);
box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
transition: width 0.35s ease;
}
/* =========================================
QUESTION CARD & ANSWERS
========================================= */
.question-card {
text-align: center;
}
.question-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
gap: 8px;
}
.meta-left {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.badge {
padding: 4px 10px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: bold;
background: rgba(201, 168, 106, 0.15);
border: 1px solid var(--gold);
color: var(--gold-soft);
white-space: nowrap;
}
.badge-diff {
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.2);
color: var(--text-main);
}
.badge-diff-easy {
background: rgba(46, 204, 113, 0.15);
border-color: #2ecc71;
color: #2ecc71;
}
.badge-diff-medium {
background: rgba(243, 156, 18, 0.15);
border-color: #f39c12;
color: #f39c12;
}
.badge-diff-hard {
background: rgba(231, 76, 60, 0.15);
border-color: #e74c3c;
color: #e74c3c;
}
.badge-warning {
background: rgba(243, 156, 18, 0.2);
border-color: var(--warning);
color: #f39c12;
}
.badge-success {
background: rgba(46, 204, 113, 0.2);
border-color: var(--success);
color: #2ecc71;
}
.badge-danger {
background: rgba(231, 76, 60, 0.2);
border-color: var(--danger);
color: #e74c3c;
}
.badge-muted {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
color: var(--text-muted);
}
.attempt-badge {
font-size: 0.8rem;
color: var(--text-muted);
white-space: nowrap;
}
.timer-badge {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
background: rgba(243, 156, 18, 0.15);
border: 1px solid #f39c12;
color: #ffd700;
font-weight: 700;
letter-spacing: 0.5px;
}
.question-text {
font-size: clamp(1.15rem, 4.5vw, 1.45rem);
line-height: 1.4;
text-align: center;
margin: 15px 0 20px;
color: var(--text-main);
word-break: break-word;
}
/* Freitext Input */
.answer-form {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.input-answer {
width: 100%;
max-width: 450px;
padding: 14px;
font-size: 16px; /* Prevents iOS auto-zoom */
text-align: center;
border-radius: 8px;
border: 2px solid var(--border-gold);
background: rgba(0, 0, 0, 0.35);
color: var(--text-main);
outline: none;
transition: all 0.2s ease;
font-family: inherit;
min-height: 48px;
}
.input-answer:focus {
border-color: var(--gold);
box-shadow: 0 0 12px rgba(201, 168, 106, 0.4);
}
/* Multiple Choice Grid */
.choice-group {
width: 100%;
margin-top: 5px;
}
.choice-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
width: 100%;
}
.choice-btn {
background: rgba(255, 255, 255, 0.05);
border: 2px solid var(--border-gold);
border-radius: 10px;
padding: 12px 14px;
color: var(--text-main);
font-size: clamp(0.9rem, 3.5vw, 1.05rem);
font-family: inherit;
cursor: pointer;
text-align: left;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.2s ease;
min-height: 52px;
width: 100%;
word-break: break-word;
touch-action: manipulation;
}
.choice-btn:hover:not(:disabled) {
background: rgba(201, 168, 106, 0.2);
border-color: var(--gold);
transform: translateY(-2px);
}
.choice-btn:active:not(:disabled) {
transform: scale(0.98);
}
.choice-letter {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: rgba(201, 168, 106, 0.2);
border: 1px solid var(--gold);
border-radius: 50%;
color: var(--gold-bright);
font-weight: bold;
font-size: 0.85rem;
flex-shrink: 0;
}
.choice-text {
flex: 1;
}
.choice-selected {
border-color: var(--gold-bright);
background: rgba(201, 168, 106, 0.3);
}
.choice-correct {
background: rgba(46, 204, 113, 0.25) !important;
border-color: #2ecc71 !important;
color: #55efc4 !important;
box-shadow: 0 0 12px rgba(46, 204, 113, 0.6) !important;
}
.choice-wrong {
background: rgba(231, 76, 60, 0.25) !important;
border-color: #e74c3c !important;
color: #ff7675 !important;
box-shadow: 0 0 12px rgba(231, 76, 60, 0.5) !important;
}
.hint-box {
margin-top: 15px;
padding: 12px 14px;
border-radius: 8px;
background: rgba(201, 168, 106, 0.1);
border-left: 4px solid var(--gold);
font-size: 0.9rem;
color: var(--gold-soft);
text-align: left;
word-break: break-word;
}
.feedback-box {
margin-top: 15px;
font-size: clamp(0.95rem, 3.5vw, 1.1rem);
text-align: center;
min-height: 28px;
font-weight: bold;
word-break: break-word;
}
.feedback-correct {
color: var(--success);
text-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}
.feedback-wrong {
color: var(--danger);
}
.feedback-revealed {
color: var(--warning);
font-size: 0.9rem;
margin-top: 4px;
}
/* =========================================
ANIMATIONS
========================================= */
.sparkle-effect {
animation: sparkle-glow 0.8s ease forwards;
}
@keyframes sparkle-glow {
0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 215, 0, 0.4); border-color: #ffd700; }
100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45); }
}
.shake-effect {
animation: shake 0.4s ease;
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
20%, 60% { transform: translateX(-6px); }
40%, 80% { transform: translateX(6px); }
}
/* =========================================
FINALE PAGE
========================================= */
.finale-card {
text-align: center;
}
.finale-header {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
margin-bottom: 15px;
}
.sparkle-icon {
font-size: 1.5rem;
}
.score-banner {
background: rgba(201, 168, 106, 0.1);
border: 1px dashed var(--gold);
border-radius: 8px;
padding: 14px;
margin-bottom: 20px;
}
.score-highlight {
font-size: clamp(1rem, 4vw, 1.25rem);
}
.gold-text {
color: var(--gold-bright);
font-weight: bold;
font-size: 1.35rem;
}
.reward-box {
background: rgba(0, 0, 0, 0.3);
border-radius: 10px;
padding: 18px 14px;
margin-bottom: 20px;
border-left: 4px solid var(--gold);
text-align: left;
}
.reward-box h2 {
color: var(--gold-soft);
font-size: clamp(1.1rem, 4vw, 1.35rem);
margin-bottom: 12px;
}
.reward-description {
font-size: clamp(0.95rem, 3.5vw, 1.05rem);
line-height: 1.6;
margin-bottom: 12px;
color: var(--text-main);
}
.love-note {
font-style: italic;
color: var(--gold);
font-size: 1rem;
}
.time-highlight {
margin-top: 8px;
font-size: clamp(0.9rem, 3.2vw, 1.05rem);
color: var(--text-muted);
}
/* Tiered evaluation styling */
.tier-box {
position: relative;
border-radius: 14px;
padding: 24px 18px;
margin: 20px 0;
border: 2px solid var(--border-gold);
background: radial-gradient(circle at top, rgba(201, 168, 106, 0.12) 0%, rgba(15, 17, 30, 0.85) 100%);
text-align: center;
}
.tier-badge-container {
display: flex;
justify-content: center;
margin-bottom: 14px;
}
.tier-grade-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 50%;
font-size: 2rem;
font-weight: 900;
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
border: 3px solid;
}
.tier-outstanding {
background: radial-gradient(circle, #ffd700, #b8860b);
color: #0b0b16;
border-color: #fff275;
box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}
.tier-exceeds {
background: radial-gradient(circle, #2ecc71, #27ae60);
color: #0b0b16;
border-color: #a8f5cc;
box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}
.tier-acceptable {
background: radial-gradient(circle, #3498db, #2980b9);
color: #ffffff;
border-color: #a0d3f8;
box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}
.tier-poor {
background: radial-gradient(circle, #e67e22, #d35400);
color: #ffffff;
border-color: #f7b278;
box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
}
.tier-troll {
background: radial-gradient(circle, #7f8c8d, #34495e);
color: #ff7675;
border-color: #e74c3c;
box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}
.tier-subtitle {
font-style: italic;
color: var(--gold-soft);
margin-bottom: 12px;
font-size: 1rem;
}
/* Leaderboard entry card & form on finale */
.leaderboard-entry-card {
background: rgba(14, 16, 32, 0.85);
border: 1px dashed var(--gold);
padding: 20px;
margin-top: 20px;
text-align: center;
}
.input-with-btn {
display: flex;
gap: 10px;
max-width: 480px;
margin: 0 auto;
width: 100%;
}
.input-with-btn .input-text {
flex: 1;
text-align: left;
}
.btn-dice {
background: rgba(201, 168, 106, 0.18);
border: 1px solid var(--gold);
color: var(--gold-bright);
padding: 0 14px;
border-radius: 8px;
cursor: pointer;
font-size: 0.95rem;
font-family: inherit;
font-weight: bold;
display: inline-flex;
align-items: center;
gap: 6px;
justify-content: center;
transition: all 0.2s ease;
min-height: 46px;
white-space: nowrap;
}
.btn-dice:hover {
background: var(--gold);
color: #0b0b16;
box-shadow: 0 0 12px rgba(201, 168, 106, 0.5);
transform: translateY(-1px);
}
/* Leaderboard tables & filters */
.diff-filter-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
margin: 15px 0;
}
.diff-filter-tabs .tab-btn {
border-radius: 20px;
padding: 8px 16px;
font-size: 0.88rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-gold);
color: var(--text-muted);
}
.diff-filter-tabs .tab-btn.active {
background: rgba(201, 168, 106, 0.25);
border-color: var(--gold);
color: var(--gold-bright);
box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
}
.table-responsive {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.lb-table {
width: 100%;
border-collapse: collapse;
text-align: left;
font-size: 0.9rem;
}
.lb-table th {
background: rgba(201, 168, 106, 0.12);
color: var(--gold-soft);
padding: 10px 12px;
border-bottom: 2px solid var(--border-gold);
white-space: nowrap;
}
.lb-table td {
padding: 10px 12px;
border-bottom: 1px solid rgba(201, 168, 106, 0.15);
color: var(--text-main);
}
.lb-table tr:hover td {
background: rgba(201, 168, 106, 0.05);
}
.lb-rank {
font-weight: bold;
color: var(--gold);
}
.lb-rank-1 { color: #ffd700; font-size: 1.1rem; }
.lb-rank-2 { color: #c0c0c0; font-size: 1.05rem; }
.lb-rank-3 { color: #cd7f32; font-size: 1.05rem; }
/* =========================================
FORMS & INPUTS
========================================= */
.magic-form {
display: flex;
flex-direction: column;
gap: 16px;
text-align: left;
width: 100%;
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
}
.form-group label {
font-size: 0.9rem;
font-weight: bold;
color: var(--gold-soft);
}
.input-text, .textarea, select.input-text {
padding: 12px 14px;
border-radius: 8px;
border: 1px solid var(--border-gold);
background: rgba(0, 0, 0, 0.4);
color: var(--text-main);
font-size: 16px; /* Prevents auto zoom */
font-family: inherit;
outline: none;
width: 100%;
min-height: 46px;
}
.input-text:focus, .textarea:focus {
border-color: var(--gold);
box-shadow: 0 0 8px rgba(201, 168, 106, 0.3);
}
.input-text-sm {
padding: 8px 10px;
border-radius: 6px;
border: 1px solid var(--border-gold);
background: rgba(0,0,0,0.3);
color: var(--text-main);
font-size: 15px;
min-height: 38px;
width: 100%;
}
.field-help {
font-size: 0.8rem;
color: var(--text-muted);
}
.info-alert {
background: rgba(41, 128, 185, 0.15);
border-left: 4px solid #3498db;
padding: 14px;
border-radius: 8px;
margin-bottom: 20px;
font-size: 0.9rem;
line-height: 1.5;
}
.alert-danger {
background: rgba(231, 76, 60, 0.2);
border: 1px solid var(--danger);
color: #ff7675;
padding: 12px;
border-radius: 6px;
margin-bottom: 16px;
text-align: center;
font-size: 0.9rem;
}
/* =========================================
ADMIN COCKPIT (Mobile Responsive)
========================================= */
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 12px;
}
.admin-top-actions {
display: flex;
gap: 8px;
}
/* Horizontal Scrollable Tabs on Mobile */
.tabs-nav {
display: flex;
gap: 6px;
border-bottom: 1px solid var(--border-gold);
margin-bottom: 20px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none; /* Firefox */
padding-bottom: 2px;
}
.tabs-nav::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}
.tab-btn {
background: rgba(255, 255, 255, 0.05);
border: none;
color: var(--text-muted);
padding: 10px 14px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
cursor: pointer;
font-size: 0.85rem;
font-family: inherit;
font-weight: bold;
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap;
flex-shrink: 0;
min-height: 42px;
touch-action: manipulation;
}
.tab-btn.active {
background: var(--bg-card);
color: var(--gold);
border: 1px solid var(--border-gold);
border-bottom: 1px solid transparent;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.question-admin-card {
margin-bottom: 14px;
padding: 16px;
}
.q-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
font-size: 0.8rem;
flex-wrap: wrap;
gap: 8px;
}
.highlight-answer {
color: var(--gold-bright);
font-weight: bold;
background: rgba(255, 215, 0, 0.1);
padding: 2px 6px;
border-radius: 4px;
word-break: break-word;
}
.test-matcher-box {
margin-top: 12px;
padding: 10px;
background: rgba(0, 0, 0, 0.25);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.test-input-group {
display: flex;
gap: 6px;
margin-top: 6px;
}
.test-result-feedback {
margin-top: 8px;
font-size: 0.85rem;
word-break: break-word;
}
.q-actions {
display: flex;
gap: 8px;
margin-top: 14px;
flex-wrap: wrap;
}
.inline-edit-form {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.empty-state {
text-align: center;
padding: 30px 10px;
color: var(--text-muted);
}
/* =========================================
FOOTER
========================================= */
.footer {
text-align: center;
padding: 16px;
color: var(--text-muted);
font-size: 0.75rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
margin-top: auto;
}
.footer-links {
margin-top: 12px;
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.footer-link {
color: var(--gold-soft);
text-decoration: none;
font-size: 0.82rem;
font-weight: 600;
padding: 4px 12px;
border-radius: 16px;
background: rgba(201, 168, 106, 0.12);
border: 1px solid rgba(201, 168, 106, 0.35);
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 5px;
}
.footer-link:hover {
color: #0b0b16;
background: var(--gold);
border-color: var(--gold-bright);
box-shadow: 0 0 12px rgba(201, 168, 106, 0.5);
text-decoration: none;
transform: translateY(-1px);
}
.footer-sep {
display: none;
}
.legal-card {
text-align: left;
max-width: 760px;
margin: 0 auto;
}
.legal-content {
margin-top: 20px;
line-height: 1.65;
color: var(--text-main);
}
.legal-content h3 {
color: var(--gold-soft);
margin-top: 22px;
margin-bottom: 8px;
font-size: 1.15rem;
border-bottom: 1px solid rgba(201, 168, 106, 0.2);
padding-bottom: 4px;
}
.legal-content p, .legal-content ul {
margin-bottom: 14px;
color: var(--text-muted);
font-size: 0.95rem;
}
.legal-content ul {
padding-left: 20px;
}
.legal-content code {
background: rgba(0, 0, 0, 0.35);
padding: 2px 6px;
border-radius: 4px;
color: var(--gold-bright);
font-size: 0.88em;
}
.hidden {
display: none !important;
}
/* =========================================
MOBILE RESPONSIVENESS (max-width: 640px)
========================================= */
@media (max-width: 640px) {
.container {
margin: 10px auto 25px;
padding: 0 10px;
}
.admin-wrapper {
margin: 10px auto 25px;
padding: 0 10px;
}
.card {
padding: 16px 12px;
border-radius: 12px;
}
/* Mobile Hamburger Menu */
.menu-toggle-btn {
display: inline-flex;
}
.nav-links {
display: none;
position: absolute;
top: var(--header-height);
left: 0;
right: 0;
background: rgba(11, 11, 22, 0.98);
border-bottom: 2px solid var(--gold);
flex-direction: column;
padding: 14px 16px;
gap: 8px;
box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}
.nav-links.nav-open {
display: flex;
}
.nav-link {
width: 100%;
padding: 12px 14px;
font-size: 1rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(201, 168, 106, 0.2);
}
.audio-label {
display: none; /* Show only 🔇/🔊 on small phones */
}
.audio-btn {
padding: 6px 10px;
}
/* Quiz Question layout */
.choice-grid {
grid-template-columns: 1fr; /* Single column on mobile */
gap: 10px;
}
.choice-btn {
min-height: 48px;
padding: 10px 12px;
font-size: 0.95rem;
}
.btn-group {
flex-direction: column;
}
.btn-group .btn {
width: 100%;
}
.test-input-group {
flex-direction: column;
}
.test-input-group .btn {
width: 100%;
}
.q-actions .btn {
flex: 1 1 100%;
}
.admin-header {
flex-direction: column;
align-items: stretch;
text-align: center;
}
.admin-top-actions {
justify-content: center;
}
.lang-btn {
padding: 4px 6px;
font-size: 0.75rem;
}
.diff-chip {
padding: 6px 10px;
font-size: 0.8rem;
}
}