:root, html {
    zoom: 100%;
    font-size: 18pt;

    /* Main colours */
    --colourA: #7D1DD3;
    --colourB: #FFE500;

    /* Typography */
    --theme-font: 'Cormorant Garamond', serif;
    --theme-font-size: 24pt;
    --theme-letter-spacing: 1px;

    /* Background */
    --theme-background: none;
}

#content {
    position: relative;
    z-index: 1;

    font-family: var(--theme-font);
    font-size: var(--theme-font-size);
    letter-spacing: var(--theme-letter-spacing);
}

body[data-theme] #content::before {

    content: "";

    position: fixed;
    inset: 0;

    background-image: var(--theme-background);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    pointer-events: none;
    z-index: -1;

}

/* Main Content Classes */
body nav.navbar {
  position: relative;
  z-index: 10;
}

.content {
  background-position: center center;
  background-repeat: no-repeat;
}

.choice {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  --bs-btn-color: var(--colourB);
  --bs-btn-border-color: var(--colourA);

  padding: 12px 20px;

  overflow-wrap: break-word;
  hyphens: auto;
  white-space: normal;
}

.choice.small-text {
  font-size: 0.85rem;
}

.choice.tiny-text {
  font-size: 0.75rem;
}

.btn-outline-primary.choice:hover {
  background-color: color-mix(in srgb, var(--colourB) 85%, black 15%);
  border-color: var(--colourA);
  color: var(--colourB);
}

.btn-check:checked + .btn-outline-primary.choice {
  background-color: var(--colourA);
  border-color: var(--colourB);
  color: var(--colourB);
}

.choice.btn-success {
  background-color: #2eb01d;
  --bs-btn-active-bg: #2eb01d;
  --bs-btn-hover-bg: #2eb01d;
  --bs-btn-disabled-bg: #2eb01d;
}

.choice.btn-danger {
  background-color: #c03f22;
  --bs-btn-active-bg: #c03f22;
  --bs-btn-hover-bg: #c03f22;
  --bs-btn-disabled-bg: #c03f22;
}

.question {
  text-align: center;
  background-color: #e6fbff;
  border: 2px solid #cae9f0;
  padding: 1em;
  border-radius: 1em;
}

.q-admin-button {
  text-align: center;
  background-color: var(--colourB);
  border: 2px solid var(--colourA);
  padding: 1em;
  border-radius: 1em;
}

.validate {
  padding: 0;
  width: 3em;
  height: 3em;
}

.chart-container {
  background-color: var(--colourB);
  padding: 8px 4px 15px 4px; 
  border-radius: 8px;
  position: relative;
  z-index: 1;
  color: var(--colourA);
  border: 2px solid var(--colourA);
}

.chart-legend {
  background-color: transparent;
  padding: 15px 15px 0 15px;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 1;
  color: var(--colourA);
}

.chart-title {
  color: var(--colourA);
  font-size: 18pt;
  background-color: #212529;
  padding: 15px;
  border-radius: 8px;
  z-index: 1;
  text-align: center;
  word-wrap: break-word;
}

h1 {
  color: var(--colourA);
  font-size: 18pt;
  background-color: var(--colourB);
  text-align: center;
  word-wrap: break-word;
}

.divider-line {
  height: 2px;
  background-color: var(--colourA);
  margin: 0.5rem 0;
  z-index: 1;
}

.card-title {
  color: var(--colourA);
  text-decoration: underline;
}

.me-3 {
  color: var(--colourB);
  font-size: 18pt;
}

.nav-link {
  color: var(--colourB);
  font-size: 18pt;
  text-decoration: underline 2px;
  text-decoration-color: var(--colourA);
}

.navbar-brand {
  color: var(--colourB);
  font-size: 28pt;
  text-shadow:
    2px 2px 0 var(--colourA), 
    -2px -2px 0 var(--colourA) ;
}

button, .btn {
  background-color: var(--colourB);
  color: var(--colourA);
  border-radius: 10px;
  border: 2px solid var(--colourA);
  font-size: inherit;
}

button:hover, .btn:hover {
  background-color: var(--colourA);
  color: var(--colourB);
  border: 2px solid var(--colourB);
}

button:active, .btn:active {
  background-color: var(--colourA) !important;
  border-color: var(--colourB) !important;
  color: var(--colourB) !important;
  transform: scale(0.98) !important;
}

a {
  color: #FF0000;
  text-decoration: none;
}

a:hover {
  color: var(--colourA);
  text-decoration: underline;
}

/* ==========================================================================
   La fée Morgane et le roi Arthur
   ========================================================================== */

body[data-theme="bg-arthur"] {
    --colourA: #C4A34B;
    --colourB: #243B55;

    --theme-font: "Cinzel", serif;
    --theme-letter-spacing: 1px;

    /* Camelot • Excalibur • Round Table • Ivy • Castle towers */
    --theme-background: url("./images/arthur-background.png");
}

/* ==========================================================================
   Le conte de la princesse Kaguya
   ========================================================================== */

body[data-theme="bg-kaguya"] {
    --colourA: #F7F3E8;
    --colourB: #4E628D;

    --theme-font: "Forum", serif;
    --theme-letter-spacing: 1px;

    /* Full moon • Bamboo grove • Glowing robes • Cranes • Mist */
    --theme-background: url("./images/kaguya-background.png");
}

/* ==========================================================================
   Rokurokubi
   ========================================================================== */

body[data-theme="bg-rokurokubi"] {
    --colourA: #6E2E4A;
    --colourB: #E8E0D4;

    --theme-font: "IM Fell English", serif;
    --theme-letter-spacing: 1px;

    /* Traditional Japanese village • Paper lanterns • Mist • Maple leaves */
    --theme-background: url("./images/rokurokubi-background.png");
}

/* ==========================================================================
   Le Petit Prince
   ========================================================================== */

body[data-theme="bg-petitprince"] {
    --colourA: #D9983D;
    --colourB: #2B4D73;

    --theme-font: "Cormorant Garamond", serif;
    --theme-letter-spacing: 1px;

    /* Tiny asteroid • Rose • Fox • Constellations • Golden stars */
    --theme-background: url("./images/petitprince-background.png");
}

/* ==========================================================================
   Alice au Pays des Merveilles
   ========================================================================== */

body[data-theme="bg-alice"] {
    --colourA: #7D375B;
    --colourB: #F7F1E5;

    --theme-font: "Marcellus", serif;
    --theme-letter-spacing: 1px;

    /* Tea party • Rabbit hole • Giant mushrooms • Playing cards • Clock */
    --theme-background: url("./images/alice-background.png");
}

/* ==========================================================================
   Les Feux Follets
   ========================================================================== */

body[data-theme="bg-feuxfollets"] {
    --colourA: #3E7364;
    --colourB: #E9F5EA;

    --theme-font: "EB Garamond", serif;
    --theme-letter-spacing: 1px;

    /* Dark forest • Floating lights • Swamp • Ancient trees */
    --theme-background: url("./images/feuxfollets-background.png");
}

/* ==========================================================================
   Urashima Tarō
   ========================================================================== */

body[data-theme="bg-urashima"] {
    --colourA: #157B9D;
    --colourB: #EEF8FB;

    --theme-font: "Cormorant Garamond", serif;
    --theme-letter-spacing: 1px;

    /* Sea palace • Turtle • Coral reef • Waves • Treasure chest */
    --theme-background: url("./images/urashima-background.png");
}

/* ==========================================================================
   Baba Yaga
   ========================================================================== */

body[data-theme="bg-babayaga"] {
    --colourA: #3B4A2C;
    --colourB: #DCCDA9;

    --theme-font: "IM Fell English", serif;
    --theme-letter-spacing: 1px;

    /* Hut on chicken legs • Ravens • Lantern • Enchanted forest */
    --theme-background: url("./images/babayaga-background.png");
}

/* ==========================================================================
   Les Pinceaux Magiques
   ========================================================================== */

body[data-theme="bg-pinceaux"] {
    --colourA: #A1322D;
    --colourB: #F7E9D0;

    --theme-font: "Marcellus", serif;
    --theme-letter-spacing: 1px;

    /* Magic paintbrush • Scrolls • Ink dragons • Mountains • Flowing ink */
    --theme-background: url("./images/pinceaux-background.png");
}

/* ==========================================================================
   Kirikou et la Sorcière
   ========================================================================== */

body[data-theme="bg-kirikou"] {
    --colourA: #C26A18;
    --colourB: #F8E6B5;

    --theme-font: "Spectral", serif;
    --theme-letter-spacing: 1px;

    /* African village • Baobab • Savannah • Water spring • Warm sunset */
    --theme-background: url("./images/kirikou-background.png");
}

/* ==========================================================================
   L'Île de la Félicité
   ========================================================================== */

body[data-theme="bg-felicite"] {
    --colourA: #0F6C8C;
    --colourB: #FFF5D8;

    --theme-font: "Cormorant Garamond", serif;
    --theme-letter-spacing: 1px;

    /* Enchanted island • Sailing ship • Palm trees • Sunset • Ancient ruins */
    --theme-background: url("./images/ile-felicite-background.png");
}

/* ==========================================================================
   Dédale
   ========================================================================== */

body[data-theme="bg-dedale"] {
    --colourA: #B8863B;
    --colourB: #384A60;

    --theme-font: "Cinzel", serif;
    --theme-letter-spacing: 1px;

    /* Labyrinth • Marble columns • Wings • Minotaur silhouette • Bronze gates */
    --theme-background: url("./images/dedale-background.png");
}

/* ==========================================================================
   La Belle et la Bête
   ========================================================================== */

body[data-theme="bg-bellebete"] {
    --colourA: #8A2235;
    --colourB: #F8F2E5;

    --theme-font: "Forum", serif;
    --theme-letter-spacing: 1px;

    /* Enchanted castle • Rose under glass • Grand library • Candelabra • Snow */
    --theme-background: url("./images/bellebete-background.png");
}

.footer-logo {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 1000;
}

.footer-logo img {
  height: 20px;
  width: auto;
}
.footer-logo span {
  font-size: 0.5rem;
  color: #666;
  font-weight: 500;
}
