/*
    CSS file created by Lars Skjærbæk
*/

:root {
    --accent: #000000; /* changed to black per request */
}

body {
    width: 90%;
    margin: auto;
}

#header {
    width: 100%;
    margin: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: rgb(110, 157, 72);
    color: white;
    text-align: center;
}

/* Streg under navnet i header */
#header h1 {
    display: inline-block; /* så stregen kun er så bred som navnet */
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 3px solid var(--accent);
}

#nav {
    width: 100%;
    margin: auto;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: rgb(0, 0, 0);
    text-align: center;
}

#section {
    float: left;
    text-align: left;
    width: 56%;
        margin: 2%;
}

#aside {
  float: left;
  text-align: center;
  width: 36%;
    margin: 2%;
}

/* Box around main text areas */
#section,
#aside {
    border: 2px solid #000; /* changed to black */
        padding: 14px;
        box-sizing: border-box;
        border-radius: 8px;
        background-color: #ffffff;
}

#footer {
    float: left;
    width: 100%;
    margin: auto;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: rgb(98, 95, 95);
    color: rgb(255, 255, 255);
    text-align: center;
}

#menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgb(98, 95, 95);
}

.menuPunkt {
    float: left;
}

.menuPunkt a {
    display: block;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: rgb(110, 157, 72);
}

.menuPunkt a:hover {
    background-color: rgb(98, 95, 95);
}

/* Sektion-overskrifter med lodret accentstreg (forslag 2) */
h3 {
    position: relative;
    padding-left: 16px;
    margin-top: 0.6em;
    margin-bottom: 0.4em;
}

h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;
    background: var(--accent);
    border-radius: 3px;
}

/* Billeder: let forstørrelse og skygge ved hover (kun på enheder med hover) */
@media (hover: hover) and (pointer: fine) {
    #aside img,
    #section img,
    img.zoomable {
        transition: transform .25s ease, box-shadow .25s ease;
        transform-origin: center;
        will-change: transform;
    }

    #aside img:hover,
    #section img:hover,
    img.zoomable:hover {
        transform: scale(1.06);
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }
}

/* mobil optimeret design */
@media screen and (max-width: 800px) {

    #section {
      width: 100%;
            margin: auto;
            padding: 12px;
    }

    #aside {
      width: 100%;
            margin: auto;
            padding: 12px;
    }

}
