.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(248, 250, 252, 0.96);
  text-decoration: none;
  color: #0f172a;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  margin-bottom: 0.9rem;   /* ← lägg till denna igen */
}

.home-link::before {
  content: "←";
  font-size: 0.9rem;
}

.home-link:hover {
  background: #e2e8f0;
}
/* HERO SHADOW – stor och kraftig */
.page-header {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35) !important;
}
/* CARD SHADOW – lite kraftigare nu */
.card,
.side-card,
#practiceCard {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30) !important;
  border: none !important;
}

/* BUTTON SHADOW – liten men livfull */
button,
.btn,
.button {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

/* HOVER SHADOW – lyft vid hover  - kan användas senare eventuellt
.card:hover,
.side-card:hover,
#practiceCard:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32) !important;
  transform: translateY(-3px);
  transition: all 0.25s ease;
}
*/

/* ==========================================
   INDEX-SIDA (index.html)
   Flyttad från <style> i HTML
========================================== */



    /* Ljus overlay som mattar ner bakgrunden */
    

    .page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 4rem;
      position: relative;
      z-index: 1; /* ovanpå overlay */
    }

    /* ====== HERO ====== */
    .hero-box {
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(14px);
      border-radius: 18px;
      padding: 2.2rem 2rem;
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    h1 {
      margin: 0 0 0.4rem 0;
      font-size: 2.2rem;
      font-weight: 700;
    }

    .lead {
      margin: 0 0 2rem 0;
      font-size: 1.1rem;
      color: #475569;
    }

    /* ====== ROLLCARDS ====== */
    .role-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
      gap: 1.2rem;
      margin-top: 2rem;
    }

    .role-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 1.4rem 1.2rem 1.8rem;
      box-shadow: 0 12px 28px rgba(0,0,0,0.12);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      display: flex;
      flex-direction: column;
    }

    .role-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 35px rgba(0,0,0,0.18);
    }

    .role-card h3 {
      margin-top: 0;
      font-size: 1.3rem;
      font-weight: 700;
    }

    .role-card p {
      color: #475569;
      font-size: 0.95rem;
      margin-bottom: 1.2rem;
    }

    .btn {
      display: inline-block;
      padding: 0.55rem 1rem;
      border-radius: 10px;
      text-decoration: none;
      font-weight: 600;
      transition: opacity 0.2s;
      color: #fff;
      margin-top: auto; /* knappen i botten av kortet */
    }

    .btn:hover {
      opacity: 0.85;
    }

    .btn-blue   { background: #0ea5e9; }
    .btn-indigo { background: #6366f1; }
    .btn-green  { background: #22c55e; }
    .btn-orange { background: #f97316; }

    /* ====== FEATURES ====== */
    .features {
      margin-top: 3.5rem;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(10px);
      padding: 2rem;
      border-radius: 16px;
      box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .feature-list {
      columns: 2;
      column-gap: 2rem;
      margin: 1rem 0 1.5rem 0;
    }

    .feature-list div {
      break-inside: avoid;
      margin-bottom: 0.8rem;
      font-size: 1rem;
    }

    .feature-list span {
      color: #10b981;
      font-weight: bold;
      margin-right: 0.3rem;
    }

    /* ====== WHY BLOCK ====== */
    .why {
      margin-top: 3rem;
      padding: 2rem;
      border-radius: 16px;
      background: rgba(15,23,42,0.78);
      color: #f1f5f9;
      box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    }
    .why h2 {
      margin-top: 0;
      font-size: 1.7rem;
      color: #fff;
    }
    .why ul {
      margin-top: 0.6rem;
      padding-left: 1.2rem;
    }
    .why li {
      margin-bottom: 0.3rem;
    }


/* ====== CONTACT CARD (index.html) ====== */

/* Layout för kontanta + dela i två kolumner */
.contact-share-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}


/* Varje kort i kolumnlayouten */
.contact-card,
.share-card {
  flex: 1;                 /* gör inget ont även i grid */
  min-width: 260px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  padding: 1.8rem 1.6rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  color: #0f172a;
  height: 100%;            /* fyll hela grid-rutans höjd */
}

/* Rubriker likadana */
.contact-card h2,
.share-card h2 {
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
}

/* Text */
.contact-card p,
.share-card p {
  color: #475569;
  line-height: 1.4;
  font-size: 0.95rem;
}

/* Dela-knapparna */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.share-btn {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}


    /* ====== FOOTER ====== */
    footer {
      text-align: center;
      margin-top: 3rem;
      padding: 2rem 0;
      font-size: 0.9rem;
      color: #fff;
      text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }


/* ==========================================
   GLOSÖVNINGS-SIDA (glosovningar.html)
   Flyttad från <style> i HTML
========================================== */

  
    /* --- Footer --- */
    #footerRC {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      text-align: center;
      font-size: 0.85rem;
      color: #475569;
      padding: 0.3rem 0;
      background: #f8fafc;
      opacity: 0.85;
      pointer-events: none;
    }

    /* --- Baslayout / bakgrund --- */
    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

      /* Ny blågrå skolbakgrund */
      /* background: #0f172a url("../Bilder/classroom.png") repeat; */
      background: #0273ae;
      background-size: 360px;
      color: #0f172a;
    }

    .page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1.8rem 1.5rem 2.8rem;
    }

    h1 {
      font-size: 1.9rem;
      margin: 0 0 0.25rem 0;
    }

    /* --- Hero / toppkort --- */
    .hero-shell {
      margin: 0 auto 1.4rem auto;
    }

   .hero-box {
  background: #0ea5e9;           /* samma teal som knapparna */
  border-radius: 18px;
  padding: 1.2rem 1.5rem 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border: none;
  color: #f9fafb;
}

/* rubrik + text inne i kortet */
.hero-box h1 {
  color: #f9fafb;
}
.lead {
  margin: 0;
  font-size: 0.98rem;
  color: #e5e7eb;      /* lite ljusare text så den syns fint */
  max-width: 60rem;
}
.hero-stats {
  color: #e0f2fe;
}


    .hero-header {
      margin-bottom: 0.5rem;
    }

    .lead {
      margin: 0;
      font-size: 0.98rem;
      color: #475569;
      max-width: 60rem;
    }

    .hero-bottom-row {
      margin-top: 0.85rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.5rem;
      align-items: center;
      justify-content: space-between;
    }

    .hero-tabs-wrapper {
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .hero-stats {
      font-size: 0.9rem;
      font-weight: 500;
    }

    /* --- Vanliga knappar (inte tabbarna) --- */
    /* --- Vanliga knappar (inte tabbarna) --- */
button:not(.tab-btn) {
  border-radius: 999px;
  border: 1px solid #0284c7;
  padding: 0.5rem 1.1rem;
  background: #0284c7;     /* primär blå */
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.15s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
button:not(.tab-btn):hover {
  background: #0369a1;     /* mörkare blå vid hover */
  border-color: #0369a1;
}

    button:not(.tab-btn):active {
      transform: scale(0.97);
      box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    button:disabled {
      opacity: 0.5;
      cursor: default;
    }
    button.secondary {
      background: #0c6177;
      color: #ffffff;
    }
    button.small {
      padding: 0.35rem 0.7rem;
      font-size: 0.8rem;
    }

button.primary {
  background: #0ea5e9;          /* samma accent som hero */
  color: #ffffff;
  border: 1px solid #0284c7;
}

button.primary:hover {
  background: #0284c7;
}


    /* --- Cards / innehåll --- */
    .card {
      background: rgba(248, 250, 252, 0.96);
      border-radius: 14px;
      padding: 1rem;
      margin-top: 1rem;
      box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
      border: 1px solid #e2e8f0;
margin-left: 0;    /* inte centrerat */
  margin-right: 0;
    }
#practiceCard {
  max-width: 1140px;     /* matchar hero-box */
  width: 100%;
}

    .card:first-of-type {
      margin-top: 0.6rem;
    }
    .row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      margin-bottom: 0.75rem;
    }
    label {
      font-size: 0.9rem;
    }
    select,
    input[type="text"],
    textarea,
    button {
      font: inherit;
    }
    select,
    input[type="text"] {
      padding: 0.45rem 0.7rem;
      border-radius: 999px;
      border: 1px solid #cbd5f5;
      min-width: 140px;
    }
    input[type="text"] {
      border-radius: 12px;
      width: 100%;
      box-sizing: border-box;
    }

    .toggle-row {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 0.75rem;
    }
    .toggle-row label {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
/* I redigeringsläget (#redigera) ska bara Språk/Lista visas */
.edit-mode .mode-row,
.edit-mode .toggle-row {
  display: none !important;
}


    .prompt {
      font-size: 2rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
      word-wrap: break-word;
    }
    .hint {
      font-size: 0.9rem;
      color: #475569;
      margin-bottom: 0.5rem;
    }

    .choices {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 0.5rem;
      align-items: flex-start; /* vänsterställ knapparna */
    }

    .choice-btn {
  border-radius: 12px;
  border: 1px solid #0369a1;
  background: #0284c7;     /* blå knapp */
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  max-width: 260px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.choice-btn:hover {
  background: #0369a1;     /* lite mörkare vid hover */
}


    .choice-btn.correct {
      background: #dcfce7;
      border-color: #16a34a;
      color: #0f172a;
    }
    .choice-btn.wrong {
      background: #fee2e2;
      border-color: #dc2626;
      color: #0f172a;
    }

    .feedback {
      margin-top: 0.75rem;
      padding: 0.6rem 0.85rem;
      border-radius: 12px;
      font-size: 0.9rem;
      min-height: 1.8rem; /* reservera plats så sidan inte hoppar */
    }
    .feedback.right {
      background: #dcfce7;
      color: #166534;
      border: 1px solid #86efac;
    }
    .feedback.wrong {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }

    /* --- Tabbar (Öva / Redigera glosor) --- */
    .tabs {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .tab-btn {
      border-radius: 999px;
      border: 1px solid #94a3b8;
      padding: 0.45rem 0.9rem;
      background: #cbd5e1;
      color: #1e293b;
      cursor: pointer;
      font-size: 0.9rem;
      transition: 0.15s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }
    .tab-btn:hover {
      background: #a1b3c7;
      color: #0f172a;
      border-color: #a1b3c7;
    }
    .tab-btn.active {
  background: #0284c7;     /* blå som övriga knappar */
  color: #fff;
  border-color: #0284c7;
  box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}
.tab-btn.active:hover {
  background: #0369a1;     /* mörkare blå vid hover */
  color: #fff;
  border-color: #0369a1;
}


    /* --- Specialknapp: En gång till! --- */
    .restart-btn {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.22);
  transition: 0.15s ease;
}
.restart-btn:hover {
  background: #0369a1;
  border-color: #03537c;
}

    
    .restart-btn:active {
      transform: scale(0.97);
      box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    }

    /* Inaktiva flikar – säkerställ mörk text */
    #tabEdit:not(.active) {
      color: black !important;
    }
    #tabPractice:not(.active) {
      color: black !important;
    }

    /* --- Räknare --- */
    .stats {
      font-size: 0.85rem;
      color: #ffffff;
      margin-bottom: 0.25rem;
    }

    /* --- Textarea --- */
    textarea {
      width: 100%;
      min-height: 200px;
      border-radius: 12px;
      border: 1px solid #cbd5f5;
      padding: 0.6rem 0.75rem;
      box-sizing: border-box;
      resize: vertical;
      font-size: 0.9rem;
    }

    /* enkel badge */
    .badge {
      display: inline-block;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: #e2e8f0;
      font-size: 0.75rem;
      margin-left: 0.25rem;
    }

   
    /* --- Hjälp-popup --- */
    .help-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.45);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }
    .help-image {
      margin-top: 0.75rem;
    }
    .help-image img {
      max-width: 100%;
      border-radius: 12px;
      border: 1px solid #cbd5e1;
      display: block;
    }
    .help-image-note {
      font-size: 0.95rem;
      font-weight: 600;
      color: #475569;
      margin-top: 0.35rem;
    }
    .help-modal {
      background: #f8fafc;
      border-radius: 16px;
      border: 1px solid #e2e8f0;
      max-width: 720px;
      width: 100%;
      margin: 1rem;
      padding: 1.25rem 1.5rem 1.5rem;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
      max-height: 80vh;
      overflow-y: auto;
    }
    .help-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }
    .help-title {
      font-size: 1.15rem;
      font-weight: 600;
      margin: 0;
    }
    .help-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.8rem;
      padding: 0.15rem 0.6rem;
      border-radius: 999px;
      background: #e0f2fe;
      color: #0f172a;
    }
    .help-body p {
      font-size: 0.9rem;
      color: #475569;
      margin: 0.4rem 0;
    }
    .help-body code {
      background: #e2e8f0;
      padding: 0.1rem 0.25rem;
      border-radius: 4px;
      font-size: 0.85rem;
    }
    .help-body pre {
      background: #0f172a;
      color: #e5e7eb;
      font-size: 0.8rem;
      padding: 0.6rem 0.75rem;
      border-radius: 8px;
      overflow-x: auto;
    }
    .help-body ul {
      margin: 0.35rem 0 0.6rem 1.2rem;
      padding: 0;
      font-size: 0.9rem;
      color: #475569;
    }
    .help-section-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-top: 0.6rem;
      margin-bottom: 0.2rem;
    }
    .help-footer {
      margin-top: 0.9rem;
      display: flex;
      justify-content: flex-end;
    }
    .help-screenshot {
      margin: 0.5rem 0;
      padding: 0.5rem 0.6rem;
      border-radius: 10px;
      border: 1px dashed #cbd5e1;
      background: #f1f5f9;
      font-size: 0.8rem;
      color: #64748b;
    }
    .help-screenshot strong {
      color: #0f172a;
    }

    /* === FIRANDE-POPUP MED KONFETTI === */
    #celebrationModal {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    #celebrationModal.show {
      display: flex;
    }
    .celebration-content {
      position: relative;
      background: #0f172a;
      color: #f9fafb;
      padding: 1.5rem 1.75rem 1.25rem;
      border-radius: 0.75rem;
      max-width: 480px;
      width: 90%;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
      text-align: center;
    }
    .celebration-content h2 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      font-size: 1.5rem;
    }
    .celebration-content p {
      margin: 0;
      font-size: 0.98rem;
      opacity: 0.95;
    }
    .celebration-close-btn {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      border: none;
      background: transparent;
      color: #e5e7eb;
      font-size: 1.4rem;
      cursor: pointer;
    }
    #confettiCanvas {
      width: 100%;
      height: 220px;
      margin-top: 1rem;
      display: block;
      border-radius: 0.5rem;
      background: radial-gradient(circle at top, #1e293b, #020617);
    }
  
    /* Två-kolumns layout för övningen (desktop) */
    .exercise-layout {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 1rem;
    }

    .exercise-layout .card {
      margin-top: 0;
    }

    .side-card {
  flex: 0 0 280px;
  background: #0ea5e9;   /* samma blå som toppkortet */
border: none !important;       /* ← tar bort vita linjen runt kortet */
  color: #ffffff;        /* vit text som grund */
}
.side-card .sidebar-title,
.side-card label {
  color: #ffffff;
}

.side-card select {
  color: #0f172a;      /* mörkblå text i dropdownen */
  background: #ffffff; /* vit bakgrund (om du vill vara extra tydlig) */
}


    @media (min-width: 900px) {
      .exercise-layout {
        flex-direction: row;
        align-items: stretch;
      }
    }

    .sidebar-title {
      font-size: 0.9rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #64748b;
      margin-bottom: 0.4rem;
    }
/* ===========================================
   KNAPPAR NÄSTA GLOSA + HOPPA ÖVER
   =========================================== */
.next-btn,
.skip-btn {
  background: #0284c7;       /* blå knapp */
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.next-btn:hover,
.skip-btn:hover {
  background: #0369a1;       /* mörkare blå */
}

.next-btn:disabled,
.skip-btn:disabled {
  background: #94a3b8;       /* grå */
  color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
}
/* --- Blå Startsida-knapp med ikon (endast denna sida) --- */
.hero-shell .home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0284c7;
  color: #ffffff;
  padding: 0.45rem 1.0rem 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #0284c7;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: 0.15s ease;
  margin-bottom: 0.4rem;   /* mindre gap → hero-box kommer närmare */
}

/* Hus-ikon före texten */
.hero-shell .home-link::before {
  content: "🏠";
  font-size: 1.05rem;
  line-height: 1;
  display: inline-block;
  margin-right: 0.15rem;
}

.hero-shell .home-link:hover {
  background: #0369a1;
  border-color: #0369a1;
}
/* Justera raden med "Läge:" så dropdownen hamnar under den övre dropdownen */
.mode-row label {
  flex: 0 0 90px;   /* samma label-bredd som Språk/Lista-raden */
}

.mode-row select {
  width: 170px;
  margin-left: -11px;   /* flytta bara dropdownen lite åt vänster */
}




