html {
  background-color: #a8a7a7;  /* din mørke top/bund baggrund */
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  background-color: transparent; /* lad html farven skinne igennem */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  /*background-color: #cac8c8;*/
  color: #333;
  font-family: Arial, sans-serif;
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #aaa transparent;
  transition: none !important; /* forhindrer blink ved load */
}

header {
  background-color: #a8a7a7;
  color: white;
  padding: 20px;
  text-align: center;
}

footer {
  background-color: #a8a7a7;
  color: white;
  padding: 15px;
  text-align: center;
}

/* Logo */
.logo {
  display: block;
  margin: 0 auto;
  max-width: 350px;
  height: auto;
}

/* Footer layout */
.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.info-box {
  background-color: #9c9898;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-width: 140px;
  text-align: center;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
  color: #222;
}

.info-box.updated {
  background-color: #9c9898;
}

.footer-note {
  text-align: center;
  color: #666;
  font-size: 0.85em;
}

/* CPU status farver */
.cpu-low {
  background-color: #6caa87;
  color: #a1e9c0;
}

.cpu-medium {
  background-color: #968636;
  color: #ffda74;
}

.cpu-high {
  background-color: #502a2a;
  color: #ff8c8c;
}

/* Scroll to top button */
#scrollTopBtn {
  all: unset;
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: #444;
  color: white;
  font-size: 24px;
  border-radius: 8px;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#scrollTopBtn:hover {
  background-color: #222;
  transform: scale(1.1);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Selve nyheds-items */
.news-item {
  background-color: #d8d6d6;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.news-item strong {
  font-size: 1.1em;
}

.news-item small {
  color: #555;
}

.news-column {
  flex: 1 1 300px;
  max-width: 350px;
}

.news-box h3 {
  margin: 0 0 5px 0;
  font-size: 1.1em;
}

.news-box .date {
  font-size: 0.8em;
  color: #666;
}

.content-column {
  flex: 2 1 600px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.venstre, .midt, .hoejre {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Boksen omkring nyheder, galleri & Guide-liste og Boks i midten */

.midt.boks {
  background-color: #cac8c8;
  color: #222;
  border: 1px solid #858383; /* ← den her er din kant! */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.venstre.boks {
  background-color: #cac8c8;
  color: #222;
  border: 1px solid #858383; /* ← den her er din kant! */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hoejre.boks {
  background-color: #cac8c8;
  color: #222;
  border: 1px solid #858383; /* ← den her er din kant! */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Indre boks Guide-liste */
.sub-boks {
  background-color: #d8d6d6;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/*Til min nyeste guide liste*/
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-list li {
  margin-bottom: 8px;
  padding-left: 35px;
  position: relative;
}

.guide-list a {
  color: inherit;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

.guide-list li::before {
  content: "🧾";
  position: absolute;
  left: 5px;
  font-size: 1.1em;
  line-height: 1;
}

.guide-list li a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.guide-list li a:hover {
  color: #0077cc; /* eller en farve du kan lide */
  text-decoration: underline;
  transform: translateX(2px); /* flytter linket en lille smule mod højre */
}

/*Til min nyeste galleri liste*/
.galleri-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.galleri-list li {
  margin-bottom: 8px;
  padding-left: 35px;
  position: relative;
}

.galleri-list a {
  color: inherit;
  text-decoration: none;
}

.galleri-list a:hover {
  text-decoration: underline;
}

.galleri-list li::before {
  content: "📷";
  position: absolute;
  left: 5px;
  font-size: 1.1em;
  line-height: 1;
}

.galleri-list li a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.galleri-list li a:hover {
  color: #0077cc; /* eller en farve du kan lide */
  text-decoration: underline;
  transform: translateX(2px); /* flytter linket en lille smule mod højre */
}

.billede-box {
    position: relative;
    display: inline-block;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 4.0fr 1.5fr;
    gap: 2rem;
    max-width: 1450px;
    margin: 0 auto;
    padding: 2rem;
    align-items: start;
}

.checkbox-wrapper {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-wrapper .checkmark {
    width: 20px;
    height: 20px;
    background-color: #eee;
    border-radius: 3px;
    display: inline-block;
}

.checkbox-wrapper input:checked + .checkmark {
    background-color: #f44336;
}

body.guide-redigering .layout-wrapper {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Bruges kun når man opretter/redigerer en guide */
.layout-guideeditor {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Fjern venstre og højre kolonner */
.layout-guideeditor .venstre,
.layout-guideeditor .hoejre {
  display: none;
}

/* Gør midterboks fyldende og pæn */
.layout-guideeditor .midt {
  grid-column: 1 / -1;
  width: 100%;
}

body, .boks, .sub-boks, .info-box, .guide-container pre, .copy-button {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

#progressBar {
  transition: width 0.3s ease;
}

/*Til sortering af billeder */
.sortable-placeholder {
  border: 2px dashed #999;
  background: #eee;
  min-height: 250px;
  border-radius: 10px;
}

.billed-item {
  position: relative;
}

.gemt-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(46, 204, 113, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.billed-item.show-gemt .gemt-overlay {
  opacity: 1;
}

/* Til drag and drop billeder */
.dropzone {
  border: 2px dashed #aaa;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-grid .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #ccc;
  cursor: grab;
}
