/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root Variables */
:root {
  --color-bg: #f5f7fa;
  --color-text: #333;
  --color-primary: #4a90e2;
  --color-primary-dark: #357ab8;
  --color-accent: #ff6b6b;
  --color-success: #2ecc71;
  --color-white: #fff;
  --spacing: 1.5rem;
  --radius: 0.75rem;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background: url("scm_background.png")no-repeat center center fixed;
  background-size: cover;
  color: var(--color-text);
  line-height: 1.6;
  padding: var(--spacing);
}

main#app {
  max-width: 800px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing);
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

#logo {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Layout Helpers */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex {
  display: flex;
  gap: var(--spacing);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--spacing);
}

/* Typography */
h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing);
  text-align: center;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing);
  text-align: center;
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: var(--shadow);
}

button:hover,
.btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cards */
.card, .question {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing);
  text-align: center;
}

.options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.options label {
  display: block;
  padding: 0.75rem 1rem;
  background: #f0f2f5;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.options label:hover {
  background: #e6eaf0;
}

.options label.correct {
  background: var(--color-success);
  color: var(--color-white);
}

.options label.incorrect {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Score */
.score {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: var(--spacing);
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
}

.score.correct {
  background: var(--color-success);
  color: var(--color-white);
}

.score.incorrect {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Grid for topics */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing);
  justify-items: center;
  margin-top: var(--spacing);
}

/* Score Page */
.score {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: var(--spacing);
  box-shadow: var(--shadow);
}

.score.green {
  background: var(--color-success);
  color: var(--color-white);
}

.score.red {
  background: var(--color-accent);
  color: var(--color-white);
}

.flashcard-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.message {
  font-size: 1.3rem;
  margin-top: 1rem;
  font-weight: 600;
}

.social-share {
  margin-top: 1.5rem;
  gap: 1rem;
}

button.share {
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: var(--radius);
}

button.linkedin {
  background-color: #0a66c2;
}
button.linkedin:hover {
  background-color: #004182;
}

button.twitter {
  background-color: #1da1f2;
}
button.twitter:hover {
  background-color: #0d8ddb;
}

button.whatsapp {
  background-color: #25d366;
}
button.whatsapp:hover {
  background-color: #1ca851;
}

/* NEW: Styles for the static about.html page content */
.static-page-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing);
  text-align: center;
}

.static-page-content h2 {
  color: var(--color-primary);
}


/* NEW: Styles for Ad Container */
.ad-container {
  margin: var(--spacing) auto;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px; /* Give ads some space to load */
}