eis-website/css/style.css
Tahar Lamred & Theresa Nerz 8a74c8c60f Quiz: style.css ergänzt
2026-06-18 10:49:31 +02:00

225 lines
3.4 KiB
CSS

/* Reset */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Base styles */
body {
font-family: 'Andalus', serif;
color: #000000;
line-height: 1.6;
background-color: #FFFFFF;
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Centered Logo */
.logo-container {
display: flex;
justify-content: center;
align-items: center;
margin: 1rem 0;
}
.logo-container img {
height: 100px;
}
/* Navigation Bar */
nav {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
background: #90EE90;
padding: 1rem 2rem;
border-bottom: 1px solid #e2e8f0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
/* Navigation Links Group */
.nav-links {
display: flex;
gap: 1rem;
}
/* Individual Links */
nav a {
text-decoration: none;
color: #000000;
font-weight: 500;
}
nav a:hover {
text-decoration: underline;
}
/* Dark Mode Button */
#dark-mode-toggle {
background-color: #2563eb;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
}
#dark-mode-toggle:hover {
background-color: #1e40af;
}
/* Gallery */
.galerie {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
margin: 1rem 0;
}
.galerie img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s;
}
.galerie img:hover {
transform: scale(1.03);
}
/* Progress Bar */
#balken-container {
width: 100%;
height: 20px;
background-color: #e5e7eb;
margin-top: 10px;
}
#balken {
height: 100%;
width: 0;
background-color: green;
border-radius: 5px;
transition: width 0.3s ease;
}
/* Dark Mode */
body.dark {
background-color: #121212;
color: #e0e0e0;
}
body.dark header,
body.dark nav {
background-color: #1e1e1e;
}
body.dark input,
body.dark button {
background-color: #333;
color: white;
border: 1px solid #555;
}
body.dark #balken-container {
background-color: #333;
}
.quiz-container {
max-width: 760px;
margin: 2rem auto;
padding: 1rem;
}
.quiz-card {
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 1.5rem;
background: #f8fafc;
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
.answer-list {
display: grid;
gap: 0.75rem;
margin: 1rem 0 0.5rem;
}
.answer-button,
#next-button {
display: inline-block;
width: 100%;
padding: 0.85rem 1rem;
border-radius: 8px;
border: 1px solid #94a3b8;
background: #ffffff;
color: #111827;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.answer-button:hover,
#next-button:hover {
background-color: #e2e8f0;
}
.answer-button:disabled {
cursor: default;
opacity: 0.7;
}
.correct-answer {
border-color: #16a34a;
background: #dcfce7;
}
.wrong-answer {
border-color: #dc2626;
background: #fee2e2;
}
.feedback {
margin-top: 1rem;
font-weight: 600;
}
.feedback.correct {
color: #166534;
}
.feedback.wrong {
color: #991b1b;
}
.quiz-score {
margin-top: 1rem;
font-weight: 700;
}
.quiz-final {
margin-top: 1rem;
font-size: 1rem;
}
/* -------------------------------------- */
/* Roundtrip 2 — Farben nach Tageszeit */
/* -------------------------------------- */
.morgen {
color: #d97706; /* warmes Orange */
}
.tag {
color: #16a34a; /* frisches Grün */
}