.code-container {
    margin-top: 10px;
    background: #222;
    padding: 16px;
    border-radius: 8px;
    width: max-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

pre {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #fff;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.copy-btn {
    background: #0078d7; /* Blå farge */
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.copy-btn:hover {
    background: #005bb5; /* Mørkere blå farge ved hover */
}

h4 {
    margin-top: 40px;
    margin-bottom: 5px;

}

.tweaks {
    display: block;
    margin: 0 0;  
    border: 2px solid #000;
    max-width: 650px;
    filter: brightness(0.9);
}

.right {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    margin-right: 5px;
    margin-bottom: 2px;
  }  

.intro-box {
    background: #181818;
    color: #b8eaff;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 1.08rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 700px;
}

.section-title {
    font-size: 1.15rem;
    color: #35CDFE;
    margin: 32px 0 12px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Bildegrid og forstørrelse --- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin: 40px 0;
}
.image-grid h4 {
    margin: 0 0 8px 0;
    color: #35CDFE;
    font-size: 1rem;
    font-weight: 600;
}
.img-wrap.enlargeable {
    cursor: zoom-in;
    position: relative;
    display: inline-block;
    transition: box-shadow 0.2s;
    box-shadow: none;
    background: transparent;
    padding: 0px;
}
.img-wrap.enlargeable img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
    border: none;
    box-shadow: none;
    transition: border-bottom 0.2s;
}
/* Kun strek under bildet ved hover på wrapper */
.img-wrap.enlargeable:hover img {
    border-bottom: 3px solid #35CDFE;
}
.img-wrap.enlargeable::after {
    content: "Click to enlarge";
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.85);
    color: #35CDFE;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 3;
}
.img-wrap.enlargeable:hover::after {
    opacity: 1;
}
/* --- Overlay for forstørret bilde --- */
.img-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.img-overlay img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
    background: #222;
}
.img-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: color 0.2s;
}
.img-close:hover {
    color: #35CDFE;
}