* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: url('TilNettsiden/VrFyrInverted2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero {
    width: 100%;
    height: 550px;
    padding: 20px 10%;
    position: relative;
    z-index: 2;
}

.hero-text {
    position: absolute;
    top: 40%;
    right: 55%;
    transform: translateY(-50%);
    color: rgb(0, 0, 0);
    font-size: 5em;
    text-align: center;
}

.hero-text h1 {
    margin: 0;
    padding: 0;
}

.hero-text hr {
    border: 0;
    height: 2px;
    background: white;
    margin: 20px 0;
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    max-width: 400px;
    max-height: 80px;
    cursor: pointer;
}

nav .logoo {
    width: 100px;
    cursor: pointer;
}

.button-container {
    position: absolute;
    top: 16%;
    left: 65%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.main-button, .main-buttonn, .main-buttonnn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10%;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s;
    transform: scale(1.05);
}

.main-button {
    background-color: #2c3251;
}

.main-buttonn {
    background-color: #06299d;
}

.main-buttonnn {
    background-color: #59218a;
}

.main-button:hover, .main-buttonn:hover, .main-buttonnn:hover {
    background-color: #000000;
    transform: scale(1.05);
}

/* MENYEN (UL, LI, DROPDOWN) */
nav ul {
    /* Opprinnelig kode fra deg */
    flex: 1;
    text-align: right;
    margin-right: 50px;
 
    /* Legg til for hamburger-løsning på store skjermer: */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
 
nav ul li {
    list-style: none;
    display: inline-block;
    margin: 10px 15px;
    position: relative;
}
 
nav ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    position: relative;
    padding: 10px;
}
 
/* En highlight-bakgrunn ved hover (du hadde med ::before) */
nav ul li a::before {
    content: '';
    width: 100%;
    height: 0px;
    background: #150a6e9d;
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: -5px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: height 0.5s;
}
 
/* Dersom du vil at hover-bakgrunnen skal vises: 
   Men i koden var det "content: none" lenger nede,
   juster det etter ønske. */
nav ul li a:hover::before {
    height: 85px; 
}
 
/* For at dropdown ikke skal glitch med hover-effekten: */
nav ul li a:hover::before {
    content: none;
}
 
nav ul li .dropdown-content li a::before {
    height: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ededed;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    color: rgb(0, 0, 0);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content li a:hover {
    background-color: #a9c3ca;
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex-basis: 50%;
    position: relative;
}

.feature-img {
    width: 100%;
    margin-top: 10px;
}

.new-section {
    height: 100vh;
    width: 100vw;
    background-color: #E9F4FD;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
}

.section-header {
    margin-top: 20px;
    color: #000000;
    font-size: 2.5em;
}

.box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.box {
    background-color: #527C8E;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 1200px;
    height: 650px;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}

.box iframe {
    width: 95%;
    height: 95%;
    border: none;
}

/* ----------------------------------
   HAMBURGER-MENY (NY KODE)
---------------------------------- */
 
/* 1) Hamburgerikon skjules på store skjermer */
.menu-icon {
    display: none;           /* Vises ikke før media query */
    font-size: 2rem;
    cursor: pointer;
    margin-right: 20px;
    font-size: 45px;
}
 
/* 2) Klassen .show brukers for å vise/skjule <ul> i JS */
#nav-links.show {
    display: block !important;
}
 
/* ----------------------------------
   MEDIA QUERY FOR SMÅ SKJERMER 
---------------------------------- */
@media screen and (max-width: 1200px) {
    /* Skaler ned font hvis ønskelig */
    body {
        font-size: 90%;
    }
 
    /* 1) Vise hamburgerikonet, skjule UL som standard */
    .menu-icon {
        display: block;   /* Hamburgermeny-ikon */
    }
 
    /* 2) Skjul den vanlige horisontale menyen */
    nav ul {
        display: none;    /* start: skjult */
        flex-direction: column;
        background-color: #ededed;
        position: absolute;
        top: 60px;        /* Juster posisjon */
        right: 10px;
        width: 200px;     /* Bredde til "drop-down" */
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        border-radius: 8px;
        padding: 10px 0;
        z-index: 99;
        text-align: left; /* For at meny-elementene ikke klumper seg i midten */
    }
 
    /* 3) Når .show er aktiv, viser vi menyen */
    #nav-links.show {
        display: flex !important; 
    }
 
    /* 4) Li-elementene blir "block" for å stables under hverandre */
    nav ul li {
        display: block;
        margin: 10px 15px;
    }
 
    nav ul li a {
        color: #000;
        padding: 10px 20px;
        font-weight: 600; 
        display: block;
    }
 
    /* 5) Dropdown kan eventuelt bli klikk-basert i mobil.
       Men med hover: endre 'position: static' hvis du vil 
       at den skal dukke opp under. */
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: auto;
    }
 
    /* Liten justering for at dropdown-liste ikke "forsvinner" */
    .dropdown:hover .dropdown-content {
        display: block;
        margin-left: 0;
    }
}

/* Media query for iPad screen sizes */
@media screen and (max-width: 1200px) {
    .box {
        width: 900px;
        height: auto;
        aspect-ratio: 16 / 9; /* Maintain the aspect ratio */
    }

    .box iframe {
        width: 100%;
        height: 100%;
    }
}