body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-image: radial-gradient(circle, rgb(255, 244, 198) 12%, rgba(247, 181, 0, 0.832) 100%), url('/img/newhorse.JPG');
    background-repeat: no-repeat; /* Ensure the image is not repeated */
    background-attachment: fixed; /* Make the background image static */
    background-size: cover; /* Ensure the image covers the entire background */
}

header, footer {
    background-color: #ffffff;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

main {
    padding: 0;
    padding-top: 60px; /* Legg til padding på toppen for å skape plass mellom nav og innhold */
}

/* Grunnleggende stil for navigasjon */
nav {
    display: flex;
    justify-content: space-between;  /* Ensure space between logo and menu */
    align-items: center;      /* Sentraliser elementene vertikalt */
    width: 100%; 
    position: fixed; /* Fikserer navmenyen til toppen */
    top: 0;  /* Plasserer den på toppen av skjermen */
    left: 0; /* Sørger for at den er helt til venstre */
    right: 0; /* Sørger for at den strekker seg helt til høyre */
    z-index: 1000; /* Sørger for at navigasjonen er foran annet innhold */
    background-color: #472714; /* Valgfritt: bakgrunnsfarge */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Valgfritt: legger til skygge */
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* Plassere menyen til venstre */
    margin-left: 20px; /* Forskyver menyen til venstre */
}

nav ul li {
    position: relative; /* Må være relative for at dropdown skal fungere */
    margin-right: 20px; /* Plass mellom elementene */
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 10px;
}
nav ul li a:hover {
    color: #fbc40f;
    border-radius: 5px;
}

/*Nav logo*/
.nav-logo {
    max-width: 250px; /* Juster logoens størrelse */
    height: auto;     /* Behold proporsjoner */
    margin: 10px auto; /* Center the logo horizontally and add space above and below */
    display: block;   /* Ensure the logo is a block element */
    justify-content: left;
    margin-left: 50%;
}

/* Stil for dropdown */
/* nav ul li.dropdown:hover > .dropdown-menu { */
    /* display: block; Vist når du holder musen over */
/* } */

/* nav ul li .dropdown-menu { */
    /* display: none; Skjult som standard */
    /* position: absolute; */
    /* left: 0; */
    /* top: 100%; */
    /* background-color: #333; */
    /* list-style-type: none; */
    /* padding: 10px 0; */
    /* margin: 0; */
    /* min-width: 200px; Sett en minimum bredde for dropdown */
    /* border-radius: 5px; */
/* } */

/* nav ul li .dropdown-menu li { */
    /* padding: 10px; */
/* } */

/* nav ul li .dropdown-menu li a {
    color: white;
    padding: 10px;
    text-decoration: none; */
    /* display: block; Sørger for at lenkene fyller hele dropdown-elementet */
/* } */

/* nav ul li .dropdown-menu li a:hover {
    background-color: #ffffff;
    color: #fbc40f;
} */
/* Pilen som indikerer dropdown */
/* nav ul li a .dropdown-icon { */
    /* margin-left: 5px;  Litt plass mellom tekst og ikon */
    /* font-size: 12px;   Juster størrelsen på ikonet */
    /* color: #333;       Sett farge på pilen */
  /* } */
  
  /* Når musen er over dropdown, kan du rotere pilen */
  /* nav ul li.dropdown:hover a .dropdown-icon {
    transform: rotate(180deg); /* Roter pilen når dropdownen vises */
    /* transition: transform 0.3s ease; */
  /* } */ 

/* For å gjøre menyen mer responsiv på mobil */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
        position: absolute;
        background-color: #472714;
        top: 50px;
        right: 0;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    nav ul li a {
        color: white;
    }

    nav ul.show {
        display: block;
        background-color: #472714e9;
    }

    .menu-toggle {
        display: block; /* Viser knappen på mobil */
    }

    .nav-logo {
        margin-left: auto; /* Center the logo horizontally */
        margin-right: auto; /* Center the logo horizontally */
    }

    .img .img-item {
        flex: 1 1 100%; /* Allow items to take full width on mobile */
        max-width: 100%; /* Ensure items do not exceed full width */
        height: auto; /* Adjust height to auto for better responsiveness */
    } 

    .tekst-boks {
        max-width: 90%; /* Reduce max-width for better readability on mobile */
        font-size: 1.2em; /* Adjust font size for mobile */
        padding: 15px; /* Adjust padding for mobile */
    }

    .overlay-text {
        bottom: 20px; /* Plasser teksten nærmere bunnen */
        left: 50%; /* Sentraliser horisontalt */
        transform: translateX(-50%); /* Juster for nøyaktig sentrering */
        font-size: 1em; /* Juster fontstørrelsen for mindre skjermer */
        width: 80%; /* Reduser bredde for å unngå at teksten flyter utenfor skjermen */
        padding: 10px; /* Juster padding for mindre skjermer */
    }

    section .img1 .img-item1,
    section .img1 .img-item2,
    section .img1 .img-item3 {
        flex: 1 1 100%; /* Ensure items take full width on mobile */
        max-width: 100%; /* Ensure items do not exceed full width */
        height: auto; /* Adjust height to auto for better responsiveness */
        margin: 10px 0; /* Add vertical margin to separate items */
    }
}

/* Sett body og html til å fylle hele høyden på skjermen */
html, body {
    height: 100%;  /* Gjør at body tar hele høyden av skjermen */
    margin: 0;     /* Fjern standard margin */
}

/* Bruk Flexbox på page-wrapper for å organisere layouten */
.page-wrapper {
    display: flex;
    flex-direction: column;  /* Setter layouten til kolonne */
    min-height: 100vh;  /* Sørger for at siden alltid tar minst 100vh (full høyde på skjermen) */
}

/* Sørg for at hovedinnholdet fyller tilgjengelig plass */
main {
    flex: 1;  /* Hovedinnholdet fyller den gjenværende plassen */
}

.hero {
    margin-top: 25px; 
}

/* Stil for footer */
footer {
    background-color: #472714;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

footer nav ul li {
    display: inline-block;
    margin-right: 20px;
}

footer nav ul li a {
    text-decoration: none;
    color: white;
}

footer nav ul li a:hover {
    text-decoration: underline;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* Add flexbox */
    justify-content: space-between; /* Space out the paragraphs */
    align-items: center; /* Align items vertically */
    gap: 5px; /* Reduce the space between paragraphs */
    background-color: #fbc40fd7;
}

/* ...existing code... */

.menu-toggle {
    display: none; /* Skjult som standard */
    cursor: pointer;
    padding: 10px;
    background-color: #472714; /* Endret bakgrunnsfarge */
    color: white;
    font-size: 30px;
    position: fixed; /* Fikserer knappen til toppen */
    top: 10px; /* Plasserer den på toppen av skjermen */
    right: 20px; /* Plasserer den til høyre */
    z-index: 1001; /* Sørger for at knappen er foran annet innhold */
}

/* For å gjøre menyen mer responsiv på mobil */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
        position: absolute;
        background-color: #333;
        top: 50px;
        right: 0;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    nav ul li a {
        color: white;
    }

    nav ul.show {
        display: block;
    }

    .menu-toggle {
        display: block; /* Viser knappen på mobil */
    }
    .img .img-item {
        flex: 1 1 100%; /* Allow items to take full width on mobile */
        max-width: 100%; /* Ensure items do not exceed full width */
        height: auto; /* Adjust height to auto for better responsiveness */
    }

    .tekst-boks {
        max-width: 90%; /* Reduce max-width for better readability on mobile */
        font-size: 1.2em; /* Adjust font size for mobile */
        padding: 15px; /* Adjust padding for mobile */
    }

    /* .overlay-text { */
        /* top: 70%; Sentraliser vertikalt */
        /* left: 50%; Sentraliser horisontalt */
        /* transform: translate(-50%, -50%); Juster for nøyaktig sentrering */
        /* font-size: 5px; Juster fontstørrelsen for mindre skjermer */
        /* width: 60%; Reduser bredde for å unngå at teksten flyter utenfor skjermen */
        /* padding: 15px; Juster padding for mindre skjermer */
        /* text-align: center; Sentraliser teksten */
    /* } */
}

/* Konteiner for slideren */
/* .slider {
    position: relative;
    width: 80%; /* Juster bredden */
    /* max-width: 100%; */
    /* margin: 0 auto; */
    /* margin-top: 50px; Legg til litt plass over slideren */
    /* overflow: hidden; Skjuler innhold som er utenfor sliderområdet */
    /* border-radius: 10px; */
    /* height: 750px; */
    /* display: flex; */
    /* align-items: center; Vertikalt midtstiller slideren */
    /* justify-content: center; Horisontalt midtstiller slideren */
  /* } */ 
  
  
  /* Navigasjonsknapper */
  /* button.prev,
  button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
  }
  
  button.prev {
    left: 10px;
  }
  
  button.next {
    right: 10px;
  }
  
  button:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
  .overskrift {
    color: #ffffff;
    text-align: center;
    font-size: 2em;
    margin-top: 20px;
    background-color: #472714;
  } */

section .img1 {
    display: flex; /* Change to flex to align items side by side */
    justify-content: center; /* Center align the items */
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

section .img1 .img-item {
    margin: 10px; /* Add some space between items */
    flex: 1 1 300px; /* Allow items to grow and shrink, with a base width of 300px */
    max-width: 300px; /* Set a maximum width for each item */
    display: flex; /* Use flexbox to center the image inside the item */
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    height: 600px; /* Increased height for img1 items */
}

section .img1 .img-item img {
    max-width: 100%; /* Ensure the image fits within the item */
    max-height: 100%; /* Ensure the image fits within the item */
    object-fit: cover; /* Cover the entire area of the item */
}
section .img1 img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); /* Add shadow only to the bottom */
}
section .img1 .img-item1 {
    flex: 1 1 200px; /* Adjust the base width to 200px */
    max-width: 210px; /* Set a maximum width of 200px */
    height: 400px; /* Adjust the height to 400px */
}

section .img1 .img-item2 {
    flex: 1 1 200px; /* Adjust the base width to 200px */
    max-width: 210px; /* Set a maximum width of 200px */
    height: 400px; /* Adjust the height to 400px */
}

section .img1 .img-item3 {
    flex: 1 1 200px; /* Adjust the base width to 200px */
    max-width: 335px; /* Set a maximum width of 200px */
    height: 400px; /* Adjust the height to 400px */
}

section .img1 .img-item1,
section .img1 .img-item2,
section .img1 .img-item3 {
    margin: 50px; /* Increase the margin to 30px */
}

section .img2 {
    display: flex; /* Change to flex to align items side by side */
    justify-content: center; /* Center align the items */
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
    margin-top: 50px;
    margin-bottom: 50px;
    width: 100%;
}

section .img2 .img-item {
    margin: 30px; /* Add some space between items */
    flex: 1 1 300px; /* Allow items to grow and shrink, with a base width of 300px */
    max-width: 300px; /* Set a maximum width for each item */
    display: flex; /* Use flexbox to center the image inside the item */
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
    height: 300px; /* Set a fixed height for each item */
}

section .img2 .img-item img {
    max-width: 100%; /* Ensure the image fits within the item */
    max-height: 100%; /* Ensure the image fits within the item */
    object-fit: cover; /* Cover the entire area of the item */
}
section .img2 img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.forsidebilde {
    position: relative; /* Sørger for at .overlay-text er posisjonert relativt til dette elementet */
    display: flex; /* Add flexbox to center the image */
    justify-content: center; /* Center the image horizontally */
}

.hjemBilde {
    margin-top: 50px;
    width: 80%;
    height: auto;
    max-height: 900px; /* Juster høyden etter behov */
    object-fit: cover;
    border-radius: 5px; /* Valgfritt: runde hjørner */
    opacity: 0.9; /* Gjør bildet litt transparent */
    display: block; /* Ensure the image is a block element */
    margin-left: auto; /* Center the image horizontally */
    margin-right: auto; /* Center the image horizontally */
}

.overlay-text {
    position: absolute; /* Plasser teksten absolutt inne i .images-container */
    bottom: 70px; /* Plasser teksten nederst */
    left: 40%; /* Sentraliser horisontalt */
    transform: translateX(-30%); /* Juster for nøyaktig sentrering */
    color: rgb(47, 41, 37); /* Tekstfarge */
    background-color: rgba(248, 245, 206, 0.406); /* Semi-transparent bakgrunn */
    padding: 20px; /* Avstand rundt teksten */
    border-radius: 5px; /* Runde hjørner */
    text-align: center; /* Sentraliser tekst */
    font-size: 40px;
    font-family: 'PT Sans', sans-serif; /* Font */
    font-weight: bold; /* Gjør teksten fet */
    display: flex; /* Bruk flexbox for innholdsalignering */
    flex-direction: column; /* Stable barna vertikalt */
    align-items: center; /* Sentraliser barna horisontalt */
    font-style: italic; 
}

@media (max-width: 768px) {
    .overlay-text {
        bottom: 10px; /* Plasser teksten nærmere bunnen */
        left: 50%; /* Sentraliser horisontalt */
        transform: translateX(-50%); /* Juster for nøyaktig sentrering */
        font-size: 1em; /* Juster fontstørrelsen for mindre skjermer */
        width: 70%; /* Reduser bredde for å unngå at teksten flyter utenfor skjermen */
        padding: 10px; /* Juster padding for mindre skjermer */
    }
}

.tekst-boks {
    background-color: rgba(248, 245, 206, 0.725); /* Semi-transparent background */
    color: rgb(56, 45, 39); /* Text color */
    padding: 20px; /* Padding inside the box */
    border-radius: 10px; /* Rounded corners */
    margin: 50px auto; /* Center the box horizontally with some margin */
    max-width: 40%; /* Maximum width of the box */
    text-align: left; /* Center the text */
    font-size: 1.5em; /* Increase font size */
    font-family: 'Times New Roman', Times, serif; /* Font */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add shadow to the box */
}

@media (max-width: 768px) {
    .tekst-boks {
        max-width: 90%; /* Increase max-width for better readability on mobile */
        font-size: 1.2em; /* Adjust font size for mobile */
        padding: 15px; /* Adjust padding for mobile */
    }
}

.tekst-boks h2 {
    color: #472714; /* Change the color of the heading */
    font-size: 2em; /* Increase the font size */
    margin-bottom: 20px; /* Add some space below the heading */
    position: relative; /* Required for the pseudo-element */
}

.tekst-boks h2::after {
    content: '';
    position: absolute;
    width: 30%; /* Adjust the width as needed */
    height: 4px; /* Thickness of the underline */
    background-color: #472714; /* Color of the underline */
    bottom: -5px; /* Position below the text */
    left: 0; /* Align the underline to the left */
}

/* Litt om kaffen side */
.litt-om {
background-color: rgba(248, 245, 206, 0.725); /* Semi-transparent background */
color: rgb(56, 45, 39); /* Text color */
padding: 20px; /* Padding inside the box */
border-radius: 10px; /* Rounded corners */
margin: 50px auto; /* Center the box horizontally with some margin */
max-width: 50%; /* Maximum width of the box */
text-align: left; /* Center the text */
font-size: 1.5em; /* Increase font size */
font-family: 'Times New Roman', Times, serif; /* Font */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add shadow to the box */
}
@media (max-width: 768px) {
    .litt-om {
        max-width: 90%; /* Increase max-width for better readability on mobile */
        font-size: 1.2em; /* Adjust font size for mobile */
        padding: 15px; /* Adjust padding for mobile */
    }
}

.litt-om h2 {
    color: #472714; /* Change the color of the heading */
    font-size: 2em; /* Increase the font size */
    margin-bottom: 20px; /* Add some space below the heading */
    position: relative; /* Required for the pseudo-element */
}

.litt-om h2::after {
    content: '';
    position: absolute;
    width: 30%; /* Adjust the width as needed */
    height: 4px; /* Thickness of the underline */
    background-color: #472714; /* Color of the underline */
    bottom: -5px; /* Position below the text */
    left: 0; /* Align the underline to the left */
}
