/* ========================================
   Global styles
======================================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.6;
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   Header & Banner
======================================== */
header {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.banner {
  background-image: url("src/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding-top: 20%;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: auto;
}

.header-content img {
  height: 60px;
}

.header-content h1 {
  margin: 0;
  font-size: 2rem;
  color: #222;
}

.header-content p {
  margin: 0;
  color: #444;
}

/* ========================================
   Navigation
======================================== */
nav {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #2E8B57;
  font-weight: bold;
}

/* ========================================
   Section styling
======================================== */
section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

.fullscreen-section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section:nth-child(odd) {
  background-color: #f0f0f0;
}

section:nth-child(even) {
  background-color: #d0e8d0;
}

/* ========================================
   Content blocks
======================================== */
.block {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.text, .image {
  background-color: white;
  padding: 1rem;
}

.text {
  flex: 7;
}

.image {
  flex: 3;
  max-width: 100%;
  overflow: hidden;
}

.image img {
  width: 100%;
  height: auto;
}

/* ========================================
   Headings and labels
======================================== */
h1 {
  margin: 0 0 10px 0;
}

h2 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1rem 0 0.2rem;
  color: #333;
}

p {
  max-width: none;         /* låt texten flöda fritt */
  text-align: left;        /* vänsterställ texten */
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.6;
}

p.center {
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

p.label {
  font-weight: bold;
  margin: 0;
}

p.desc {
  font-style: italic;
  margin: 0;
}

.check-heading::before {
  content: '✓';
  margin-right: 0.5rem;
  color: #2E8B57;
}

.heading-with-version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.heading-with-version span {
  white-space: nowrap;
  margin-left: 1rem;
}

.version-tag {
  font-size: 0.5em;
  color: #777;
  float: right;
  margin-left: 1rem;
}

/* ========================================
   Lists
======================================== */
.usp-list {
  list-style: none;
  padding-left: 0;
}

.usp-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
}

.usp-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #2E8B57;
  font-weight: bold;
}

/* ========================================
   Footer
======================================== */
footer {
  background-color: #f8f8f8;
  padding: 2rem 0;
  color: #444;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

footer .links {
  margin-bottom: 1rem;
}

footer .links a {
  margin: 0 1rem;
  text-decoration: none;
  color: #444;
}

footer .links a:hover {
  text-decoration: underline;
}

footer .download-icons img {
  height: 40px;
  margin: 0 0.5rem;
}

/* ========================================
   Responsive tweaks
======================================== */
@media (max-width: 500px) {
  .block {
    flex-direction: column;
  }

  .heading-with-version {
    flex-direction: column;
    align-items: flex-start;
  }

  .version-tag {
    font-size: 0.9rem;
  }
}

/* ========================================
   Viktigt-ruta
======================================== */
.info-box {
  display: flex;
  align-items: flex-start;
  background-color: #fffbe6;
  border: 1px solid #ffcc00;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  gap: 0.75rem;
}
.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ff9900;
}
.info-text {
  color: #333;
}

/* ========================================
   Block text + bild
======================================== */
.block.text-image {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  align-items: center;
}

.block.text-image .text {
  flex: 6;
  background-color: white;
  padding: 1rem;
}

.block.text-image .image {
  flex: 4;
  text-align: center;
}

.block.text-image .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .block.text-image {
    flex-direction: column;
  }
}

/* ========================================
   Scrollbeteende för olika visningar
======================================== */

/* För help.html (med flera sektioner, snap-scroll) */
body.scroll-page {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
}

/* För single.html (visar endast en sektion, normal scroll) */
body.single-page {
  overflow-y: auto;
  height: auto;
}

/* För ikoner som skall hamna på samma rad som texten */
.inline-section {
  display: flex;
  align-items: center;       /* centrera vertikalt */
  justify-content: center;   /* centrera hela blocket horisontellt */
  gap: 0.5rem;               /* lite luft mellan text och ikon */
  flex-wrap: nowrap;         /* 🔑 förhindrar radbrytning */
}

.inline-section p {
  margin: 0;
  text-align: left;          /* om du vill hålla vänsterställd text */
}

.inline-icon {
  width: 24px;
  height: 24px;
}

.icon-example {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.icon {
  height: 24px;
}

.icon-sm { height: 1px !important;}
.icon-md { height: 16px; }
.icon-lg { height: 24px; }

/* för introguide */
.inline-section {
  display: flex;
  align-items: center;
  justify-content: center;  /* ändra till flex-start om du vill vänsterställa */
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.inline-section p {
  margin: 0;
}

.inline-icon {
  width: 24px;
  height: 24px;
}
