/* ===== Base / Theme ===== */
:root {
  --bg: rgb(255, 255, 255);
  --fg: #0f0f0f;
  --card-bg: #ffffff;
  --card-border: #0f0f0f;
}
[data-theme="dark"] {
  --bg: rgb(1, 1, 1);
  --fg: #fff;
  --card-border: #ffffff;
  --card-bg: #0f0f0f;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Times New Roman", serif;
  margin: 8px;
  position: relative;
}


/* Background image layer */
.bg-images {
  position: fixed; /* or absolute */
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Individual background images */
.bg-images img {
  position: absolute;
  width: 180px;
  opacity: 0.15;
  filter: contrast(1.1) saturate(0.8);
    will-change: transform;
  transition: transform 0.2s ease-out;
}
.bg-img-1 { top: 10%; left: 5%; transform: rotate(-8deg); }
.bg-img-2 { top: 40%; left: 20%; transform: rotate(6deg); }
.bg-img-3 { top: 30%; left: 50%; transform: rotate(-3deg); }
.bg-img-4 { top: 70%; left: 10%; transform: rotate(4deg); }
.bg-img-5 { top: 15%; left: 75%; transform: rotate(6deg); }
.bg-img-6 { top: 50%; left: 20%; transform: rotate(8deg); }
.bg-img-7 { top: 80%; left: 55%; transform: rotate(-2deg); }



/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 4px 6px 2px 6px;
  background: transparent;
  mix-blend-mode: difference;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.titel h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  font-weight: 10;
  text-align: left;
  line-height: 1.1;
  color: white;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: white;
  font-family: "Times New Roman", serif;
  font-size: 14px;
}
.nav-links a:hover {
  text-decoration: underline;
}
#themeToggle {
  background: none;
  color: white;
  border: 1px solid white;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  padding: 2px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.om-side {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Blog post layout ===== */
#content-container {
  max-width: 600px;
  margin: 0 auto; /* Center it with auto margins */
  padding: 0 1rem; /* Add padding instead of margin */
}

/* ===== Poem indentation - responsive ===== */
#content-container p[style*="margin: 0 4rem"],
#content-container p[style*="margin: 1rem 6rem"] {
  margin-left: 2rem !important;
  margin-right: 2rem !important;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  body {
    margin: 6px;
  }
  
  #content-container {
    padding: 0 0.5rem;
  }
  
  .om-side {
    padding: 0 0.5rem;
  }
  
  /* Reduce poem indentation on mobile */
  #content-container p[style*="margin: 0 4rem"] {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
  #content-container p[style*="margin: 1rem 6rem"] {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
    margin-top: 1rem !important;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    margin: 5px;
  }
  
  #content-container {
    padding: 0 0.25rem;
  }
  
  /* Further reduce poem indentation on very small screens */
  #content-container p[style*="margin: 0 4rem"] {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
  
  #content-container p[style*="margin: 1rem 6rem"] {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
}


/* OM MIG */
p {
  font-size: 1.1rem;
}
    .intro-container {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    .intro-text {
      flex: 1;
      min-width: 250px;
      max-width: 500px;
    }

    .intro-image {
      flex: 0 0 200px;
      min-width: 150px;
      margin-top: 35px;
    }

    .intro-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
      /* border: 2px solid var(--fg); */
    }


    @media (max-width: 600px) {
      .intro-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .intro-image {
      max-width: 80%;
      order: 2; /* sikrer at intro-billedet og sidebillederne kommer efter teksten */
      width: 100%;
      margin-top: 0px;
      }
  }

.music-player-wrapper {
  position: relative;
  margin: 1.5rem 0;
}