/* ----------------------------------- */
/* 1. RESET & BOX-SIZING               */
/* ----------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------- */
/* 2. VARIABLER (CUSTOM PROPERTIES)    */
/* ----------------------------------- */
:root {
  /* Färger */
  --color-bg: #eef6fa;            /* Ljus isblå bakgrund */
  --color-bg-secondary: #ffffff;  /* Sekundär bakgrund, t.ex. kort eller sektioner */
  --color-primary: #1f5faa;       /* Mörkare blå (t.ex. för länkar och knappar) */
  --color-primary-hover: #174982; /* Hover-färg för knappar/länkar */
  --color-accent: #f8b400;        /* Accentfärg för highlights, markerar viktig info */
  --color-text: #333333;          /* Grundtext */
  --color-heading: #1e1e1e;       /* Rubriker */

  /* Typsnitt */
  --font-family: 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Övrigt */
  --border-radius: 0.4rem;
  --transition-speed: 0.3s;
}

/* ----------------------------------- */
/* 3. GRUNDDESIGN FÖR HTML & BODY      */
/* ----------------------------------- */
html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------- */
/* 4. KONTAINER & LAYOUT               */
/* ----------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* ----------------------------------- */
/* 5. RUBRIKER                         */
/* ----------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
}

/* ----------------------------------- */
/* 6. LÄNKAR                            */
/* ----------------------------------- */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

/* ----------------------------------- */
/* 7. KNAPPAR                           */
/* ----------------------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover {
  background-color: var(--color-primary-hover);
}

/* ----------------------------------- */
/* 8. BILDER                            */
/* ----------------------------------- */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* ----------------------------------- */
/* 9. SEKTIONER / KORT                 */
/* ----------------------------------- */
section {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section h2 {
  margin-bottom: 1rem;
}

/* ----------------------------------- */
/* 10. UTILITY-KLASSER                 */
/* ----------------------------------- */
.mt-1 {
  margin-top: 1rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

/* ----------------------------------- */
/* 11. FOOTER                           */
/* ----------------------------------- */
footer {
  text-align: center;
  padding: 1rem 0;
  opacity: 0.8;
  font-size: 0.875rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* ----------------------------------- */
/* 12. EXEMPEL PÅ EN "ACCENT BOX"      */
/* ----------------------------------- */
.accent-box {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
}

.accent-box p {
  margin: 0;
}

/* ----------------------------------- */
/* 13. RESPONSIV ANPASSNING (EXEMPEL)  */
/* ----------------------------------- */
@media (min-width: 768px) {
  /* Gör sektioner “sida vid sida” om du vill, etc. */
  .screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .screenshots img {
    flex: 1 1 calc(50% - 1rem); /* Exempel: två bilder per rad på mellanstora skärmar */
  }
}

.screenshots {
  background-color: var(--color-bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.screenshots h2 {
  margin-bottom: 1rem;
}

.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Avstånd mellan bilderna */
  justify-content: center; /* Centrerar innehållet horisontellt */
}

.screenshot-gallery img {
  flex: 1 1 calc(45% - 1rem); 
  /* 
    flex: 1 1 calc(45% - 1rem) innebär:
    - flex-basis: 45% av raden minus gap
    - gör att två bilder får plats per rad när utrymmet räcker
  */
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Lättare skugga runt bilderna */
  transition: transform 0.2s ease;
}

.screenshot-gallery img:hover {
  transform: scale(1.02); /* Liten zoom-effekt vid hover */
}

/* Se till att bilderna inte blir för små på riktigt smala skärmar */
@media (max-width: 600px) {
  .screenshot-gallery img {
    flex: 1 1 100%;
  }
}