/*
 * Føreprøven.no – modern and responsive styles
 * This stylesheet defines a light‑themed layout suitable for desktop and mobile.
 */

:root {
  --primary: #0d6efd;
  --secondary: #f8f9fa;
  --text-color: #212529;
  --border-radius: 8px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--secondary);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background-color: var(--primary);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.25);
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.hero {
  background: linear-gradient(135deg, #8ec5fc 0%, #e0c3fc 100%);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #212529;
}

.hero h2 {
  margin-top: 0;
  font-size: 2rem;
}

.hero p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Grid of sign cards */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.sign-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sign-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.sign-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.sign-card p {
  font-size: 0.8rem;
  margin: 0;
}

/* Search bar */
.search-bar {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

/* Quiz styles */
.quiz-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: auto;
}

.quiz-options {
  margin-top: 1rem;
}

.quiz-options label {
  display: block;
  margin-bottom: 0.5rem;
}

button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

.result {
  margin-top: 1rem;
  font-weight: bold;
}

/* Scenario styles */
.scenario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.scenario img, .scenario video {
  max-width: 100%;
  border-radius: var(--border-radius);
}

.scenario .options label {
  display: block;
  margin-bottom: 0.5rem;
}