/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background-color: rgb(228, 211, 190);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

header {
    width: 100%;
    background-color: rgb(223, 197, 126);
    padding: 20px;
    text-align: center;
    position: relative;

}

h1 {
    font-size: 24px;
    color: black;
}

/*nav {
    position: absolute;
    top: 15px;
    right: 20px;
}*/

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: white;
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

nav {
    background-color: rgb(223, 197, 126);
    padding: 10px 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}


.nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav > li {
    position: relative;
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: 0.3s;
    display: block;
}

.nav a:hover {
    background-color: #ddd;
    color: black;
    border-radius: 5px;
}



.slide {
    display: none;
}

.slideshow-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    height: 400px;  /* Bestäm en höjd för alla bilder */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-top: 20px;
}

.slide img {
    width: 100%;
    height: 100%;  /* Gör alla bilder lika höga */
    object-fit: cover;  /* Fyller utrymmet utan att förvränga bilderna */
    border-radius: 10px;
}



.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Responsiv design för mobiler */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgb(223, 197, 126);
        position: absolute;
        top: 50px;
        right: 20px;
        width: 150px;
        padding: 10px;
        border-radius: 5px;
        z-index: 2; /* För att säkerställa att menyn är över bilden */
    }
    .nav-links.active {
        display: flex;
    }
}

#menubutton{
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 3; /* För att säkerställa att knappen är över allt annat */
}
