/* Grundläggande layout så att divarna fördelas som 20/10/60/10% av höjden */
* { box-sizing: border-box; }
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* gör procentbaserade flex-baser möjliga */
    width: fit-content;
}

.header {
    background-color: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main {
    display: flex;
    align-items: row;
}


/* angivna höjder som procent av containerens höjd */
.navigation { 
    flex: 0 0 5%; 
    background:#222; 
    color:#fff; 
    display:flex; 
    align-items:center; 
    justify-content: center; 
}

.content  { 
    flex: 1 0 50%; 
    padding: 1rem; 
    background:#f5f5f5; 
    overflow:auto; 
}

.Bonebreaking {
    color: black;
    text-decoration: none;
}

.footer   { 
    flex: 0 0 3%;
    background:#111; 
    color:#fff;   
    display:flex;
    align-items:center;
    justify-content: center;
    padding: 0.25rem 0.5rem;  
    font-size: 0.85rem;
    line-height: 1;
    margin: 0;              
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

p.footer {
    margin: 0; /* gjort av Noel Galin */
    padding: 0.25rem 0.5rem;
    background: #111;
    color: #fff;
}

.bilder{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    background: #141414;
}

.bilder img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: none;
    outline: none;
}

/* lista i footer: ta bort standardmarginaler och centrera horisontellt */
.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items:center;
}

/* navigation styling */
.navigation nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}
.navigation nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.1rem 0.3rem;
}
.navigation nav a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .main {
        flex-direction: column;
    }
    .content {
        width: 100%;
    }
    .navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .footer ul {
        flex-direction: column;
        align-items: center;
    }
    .bilder {
        width: 100%;
        align-items: center;
        padding: 0;
    }
    .bilder img {
        max-width: 100%;
    }
}