/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

header {
    background-color: #333333;
    color: rgb(252, 246, 216);
    padding: 10px 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
}

header nav ul li {
    display: inline-block;
    margin: 0 15px;
}

header nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

/* Menu Icon (Hamburger) */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Sidebar Styling */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Transparent black background */
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px; /* Padding to push down links from top */
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 22px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Hover effect with transparency */
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
}

h1, h2, h3 {
    margin: 0;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 9.7%;
    left: 13%;
    width: 45%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark transparent background */
    z-index: 1000;
    overflow-y: auto; /* Enable vertical scroll */
}

/* Modal content */
.modal-content {
    position: relative;
    padding: 20px;
    
    border-radius: 30px;
    color: #ffffff;
    max-height: 85%;
    overflow-y: auto;
}

/* Close button */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Text styling within modal */
.modal-content h2 {
    margin-top: 0;
}

.modal-content p {
    line-height: 1.5;
}

/* Parallaz Section */
.parallax {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(0, 0, 0);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax-content {
    display: flex;
    flex-direction: column; /* Stacks logo and text vertically */
    align-items: center;
    text-align: center;
}

.parallax-logo {
    height: 180px; /* Adjust as needed */
    width: auto;
    margin-bottom: 4px; /* Adds spacing between logo and text */
}

.parallax-1 {
    background-image: url('ovbild.jpg');
}

.parallax-2 {
    background-image: url('bild.jpg');
}

/* Content Sections */
.content {
    padding: 50px;
    text-align: left;
}

footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .parallax {
        height: 300px;
    }

    .content {
        padding: 30px;
    }
}


@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .parallax {
        height: 250px;
    }

    .content {
        padding: 2px;
    }

    footer p {
        font-size: 0.8em;
    }
}
