body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Bakgrunnsbilde-oppsett */
    background-color: #2c3e50; /* Reservefarge hvis bildet mangler */
    background-image: url('bakgrunn.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Hovedboksen som holder filene dine */
.container {
    max-width: 850px;
    width: 90%;
    margin: 50px auto;
    /* hvit med 90% synlighet (0.9) */
    background: rgba(255, 255, 255, 0.6); 
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px); /* Gir en lekker "glass-effekt" på bakgrunnen */
}

h1 { 
    color: #1a2a3a; 
    margin-top: 0;
    font-size: 2.2rem;
}

.subtitle { 
    color: #555; 
    margin-bottom: 30px; 
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1); 
}

/* Stil for hver datomappe */
.folder-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

h3 { 
    margin-top: 0; 
    color: #2980b9; 
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

/* Liste med filer */
ul { 
    list-style: none; 
    padding: 0; 
    margin: 10px 0 0 0;
}

li {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    transition: background 0.2s;
}

li:hover {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

li:last-child { border-bottom: none; }

li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

li a:hover { 
    color: #3498db; 
}

.file-info { 
    font-size: 0.85rem; 
    color: #7f8c8d; 
    font-family: monospace;
}

.empty { 
    font-style: italic; 
    color: #999; 
    padding: 10px;
}

/* Responsiv tilpasning for mobil */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
        padding: 20px;
    }
    
    li {
        flex-direction: column;
    }
    
    .file-info {
        margin-top: 5px;
    }
}

/* Kompakte kontaktbokser */
.contact-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 15px; /* Redusert padding gjør boksen lavere */
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;       /* Bruker flex for å ha ikon og tekst på linje */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-box h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.contact-box p {
    margin: 0;
    font-size: 0.9rem;
}

.contact-box .icon {
    font-size: 1.1rem; /* Litt mindre ikon */
}

/* Gjør dem fortsatt stablet på mobil for lesbarhet */
@media (max-width: 600px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 10px;
    }
}
/* Justering for SVG-ikoner i kontaktboksene */
.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Hindrer ikonet i å bli klemt flatt */
}

.contact-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Avstand mellom ikon og tekst */
}

.contact-box p {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap; /* Hindrer teksten i å hoppe til neste linje */
}

.contact-box a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

