/* Global Styles */
html {
    scroll-behavior: smooth; /* Ensures smooth scrolling */
}

body {
    margin: 0;
    padding: 0;
    font-family: montserrat, sans-serif;
    height: fit-content;
}

/* Menu Area Styles */
.menu-area {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #385b69c4;
    width: 100%;
    height: 70px;
    z-index: 1;
    transition: 0.3s;
}

.menu-area:hover {
    background-color: #2c3c42d5;
}

.nav {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    margin-right: 10%;
}

.logo {
    flex: 1 1 auto;
    margin-left: 10%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 25px;
}

a {
    margin: 15px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

/* Section Styles */
section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#start {
    background-image: url(img/1.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    text-align: center;
    color: white;
}

#start .content {
    position: relative;
    z-index: 1;
    margin-top: 20%;
}

.startside {
    font-size: 250px;
    margin: 0;
}

#innledning, #hovedpunkter, #hoveddel2, #avsluttning {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding-block: 50px;
    color: #333;
}

#innledning::before,
#hovedpunkter::before,
#hoveddel2::before,
#avsluttning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.3;
}

#innledning {
    color: #3B4F63;
    background-color: #B3D1E1;
}


#innledning::before {
    background-image: url();
}

#hovedpunkter {
    color: #C5D9F1;
    background-color: #5A7184;
}

#hovedpunkter::before {
    background-image: url();
}

#hoveddel2 {
    color: #3B4F63;
    background-color: #B3D1E1;
}

#hoveddel2::before {
    background-image: url();
}

#avsluttning {
    color: #C5D9F1;
    background-color: #5A7184;
}

#avsluttning::before {
    background-image: url();
}

.content {
    position: relative;
    z-index: 1;
    width: 800px;
    margin: auto;
}

.content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.content p {
    font-size: 16px;
    line-height: 1.6;
}

/* Optional: Make navbar sticky on scroll (for better UX) */
.menu-area {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-area {
        flex-direction: column;
        height: auto;
    }

    .nav {
        justify-content: center;
        margin-right: 0;
    }

    .logo {
        margin-left: 0;
        font-size: 20px;
    }

    .nav li {
        margin: 10px;
    }

    .startside {
        font-size: 120px;
    }
}


#merInfo {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}
button {
    margin: 5px;
    cursor: pointer;
    padding: 4px 8px;
    background-color:#B3D1E1;
    color: #3B4F63;
    border: 0.5 px solid #5A7184;
    border-radius: 4px;
    transition: 0.3s;
}
button:hover {
    background-color: #5A7184;
    color:#C5D9F1 ;
    border: solid #384249;
}

#merInfo {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

footer{
    color: #2a3846;
    text-align: center;
    padding: 20px;
    background-color: #90a6b3;
}

/*a{
    margin: 25px;
    margin-left: 46.5%;
    margin-right: 46.5%;
    text-align: center;
    color: #336699;
}