/* Generell styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Navigasjonsmeny */
nav {
    background-color: #2b2b2b;
    padding: 20px 0;
    min-height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
}

/* Hamburgermeny knapp - skjult som standard */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 18px;
    transition: background 0.2s, box-shadow 0.2s;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 18px;
    text-decoration: none;
}

/* Responsiv design - under 1200px */
@media screen and (max-width: 1199px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2b2b2b;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none; /* Skjult som standard */
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex; /* Vises når aktiv */
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Dropdown styling for mobil-enheter */
    .dropdown-menu {
        position: static;
        display: none;
        background-color: #1a1a1a;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        border-radius: 0;
        min-width: auto;
        padding: 0;
        margin-top: 10px;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding: 12px 40px;
        font-size: 0.9em;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.8em;
        margin-left: 5px;
        transition: transform 0.2s;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Sideinnhold */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #000000;
}

/* Dropdown-beholder */
.dropdown {
    position: relative;
}

/* Dropdown-meny */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2b2b2b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
}

/* Dropdown-menyelementer */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 0;
}

/* Vis dropdown ved hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown-veksler styling */
.dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 5px;
}

/* Bilde- og videobeholdere */
.images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.image-item {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container {
    margin-bottom: 50px;
    text-align: center;
}

.video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive tilpasninger for mindre skjermer */
@media screen and (max-width: 768px) {
    .images-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-item {
        min-width: 250px;
        max-width: 100%;
    }
}