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

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

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

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

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

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

#footer {
    float: left;
    width: 100%;
    margin: auto;
    padding-top: 1px;
    padding-bottom: 1px;
    background-color: black;
    color: white;
    text-align: center;
}

#menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000000;
}

.menuPunkt {
    float: left;
}

.menuPunkt a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    background-color: gray;
}

.menuPunkt a:hover {
    background-color: #111;
}

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

    #section {
      width: 100%;
      margin: auto;
    }

    #aside {
      width: 100%;
      margin: auto;
    }

}

/* Side-by-side images: square format and responsive */
.side-by-side {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
#aside.side-by-side {
    float: none !important;
    width: auto !important;
    display: flex !important;
    gap: 16px;
    align-items: center;
    justify-content: center;
    /* Force one row: no wrapping */
    flex-wrap: nowrap !important;
    /* Allow horizontal scroll if viewport too small */
    overflow-x: auto;
}
.side-by-side img {
    /* Force images to share the row: each takes ~50% */
    flex: 0 0 50%;
    width: 50%;
    max-width: none;
    height: auto;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 900px) {
    .side-by-side img {
        width: 260px;
    }
}

@media screen and (max-width: 600px) {
    .side-by-side img {
        width: 48%;
    }
}

/* Square, cropped responsive images used across the site */
.square-img {
    width: 100%;
    max-width: 640px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 10px auto;
}

@media screen and (max-width: 600px) {
    .square-img {
        max-width: 95%;
    }
}
