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

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

html {
    scroll-behavior: smooth;
}

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

#nav {
    width: 100%;    
    margin: auto;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: rgba(119, 118, 116, 0.428);
    text-align: center;
}

#section {
    float: left;
    text-align: left;
    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: rgba(119, 118, 116, 0.428);
    color: white;
    text-align: center;
}

#footer nav {
    padding: 12px 0;
}

#footer nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

#footer nav a:hover {
    text-decoration: underline;
}

#menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #211e1ee2;

}

.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: #211e1ee2;
}

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

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

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

}

#contact {
    clear: both;
    padding: 16px;
    margin-top: 10px;
    background-color: rgba(255,255,255,0.04);
    border-radius: 4px;
}

/* Card grid */
.card-container {
    clear: both;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: center;
}

.card .card-header {
    padding: 14px 8px;
    background: white;
    font-weight: 700;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Specific centering for Om card; adjust the percentage to move focus vertically (lower value shows more of the top/hair) */
.card.om img {
    object-position: 50% 25%;
}

.card .card-body {
    padding: 14px 12px;
    color: #333;
}

.btn { 
    display: inline-block;
    background: #0b84ff;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin: 12px 0 18px 0;
    cursor: pointer;
    transform-origin: center center;
    will-change: transform;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn:hover, .btn:focus {
    transform: scale(1.06);
    filter: brightness(0.95);
    box-shadow: 0 6px 14px rgba(11,132,255,0.18);
}

.btn:focus {
    outline: 3px solid rgba(11,132,255,0.18);
    outline-offset: 2px;
@media (max-width: 500px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
