* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
}
a, a:visited {
    text-decoration: none;
    color: #000000;
}
a:hover {
    cursor: pointer;
    color: #ff9900;
}

.top-header div {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    color: #000000;
    box-sizing: border-box;
}
header {
    background-color: #0d1a2b;
}
header div {
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
}
header div .nav-container {
    margin: 0 0 0 auto;
    justify-content: center; /* Centrerar horisontellt */
    align-items: center;
}
header div h1 {
    font-size: 1.4rem;
    margin:0;
}
header div img {
    height: 100px;
    margin: 0 1rem;
    top: 25px;
    position: relative;
}
nav a {
    color: white !important;
    margin-left: 1rem;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: bold;
    
}

.hamburger {
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  display: none;
  z-index: 1001;
}
.hamburger span {
  background: white;
  position: absolute;
  height: 3px;
  width: 100%;
  left: 0;
  transition: all 0.3s ease-in-out;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}

.hero {
    background-image: url('../image/hero2-1.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
    margin: 0 auto;
}
.hero div {
    box-sizing: border-box;
}
.hero h2 {
    font-size: 2.5rem;
    background-color: rgba(255,255,255,0.2);
    padding: 2rem;
    margin: 1rem auto 0.5rem auto;
    width: 70%;
}
.hero p {
    font-size: 1.2rem;
}
.buttons {
    margin-top: 2rem;
}
.buttons a {
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin: 0 0.5rem;
    font-weight: bold;
}
.primary {
    background-color: #0d1a2b;
    color: white !important;
}
.primary:hover {
    color: #FF9900 !important;
}
.secondary {
    background-color: #f79e1b;
    color: black;
}
.secondary:hover {
    color: #FFFFFF !important;
}
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}
.column {
    flex: 1;
    min-width: 250px;
}
h3 {
    color: #0d1a2b;
    margin-bottom: 1rem;
}
ul {
    list-style: none;
    padding-left: 0;
}
ul li {
    margin-bottom: 0.5rem;
}
footer {
    background-color: #0d1a2b;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}
@media (min-width: 1400px) {
    .top-header div, header > div, .content, .hero div {
        width: 1400px;
        margin: 0 auto;
    }
}
@media (max-width: 570px) {
    header div h1 {
        font-size: 1.1rem;
    }
}
@media (max-width: 900px) {
    .hero h2 {
    font-size: 1.8rem;
    }
    .nav-container {
    width: 100%;
    margin-top: 1rem;
    }
    nav a {
    display: block;
    margin: 0.5rem 0;
    text-align: left;
    }
    .content {
        display: block;
    }

    .hamburger {
        display: block;
        margin: 0 2rem 0 auto;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        background-color: #0d1a2b;
        padding: 1rem;
        width: 100%;
    }

    .nav-container.show {
        display: flex;
    }

    .nav-container a {
        color: white;
        padding: 0.5rem 0;
        text-decoration: none;
        display: block;
        width: 100%;
    }
    
    .nav-container #mainNav {
        display: block;
        width: 100%;
    }

    
}