/* Grunnleggende til siden*/

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    }

p, h1, h2, h3 {
    line-height: 1.5;
}

p {
  font-family: 'Quicksand', sans-serif;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 0;
  color: #000000;
  
}

h1 {
    color: rgb(0, 0, 0);
    font-size: 52px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    word-wrap: break-word
    }

body, html {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
    }

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: #ffffff; /* body tekstfarge */
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-size:18px;
    }

#main-header {

    position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
    background-color: #F7B1D4; 
    color: #000000;     /* bildetekst og hamburgermeny */
    width: 100%;
    }

.logo {
flex: 1;
max-width: 250px;
}

.logo img {
  max-width: 100%;
  height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 40px;
    }

.navbar {
display: flex;
align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    font-size: 16px;
    gap: 20px;
    margin-right: 40px;
    }


.navbar ul li{
    display: inline; /*ved siden av hverandre*/
    margin-right: auto;
    position: relative;
    }

.navbar a {
  text-decoration: none;
  color: #33262c;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  padding: 10px;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.3s;
  }

.navbar a:hover {
  background-color: rgba(253, 226, 239, 0.5); /* Transparent rosa bakgrunn */
  color: #FF9B58; /* Endrer tekstfargen på hover */
  }

.navbar a.active {
    background-color: rgba(138, 175, 138, 0.5); /* Transparent lyseblå bakgrunn */
    color: #000000; 
  }

.navbar ul li:not(:last-child) a::after { /*strekene mellom menynavn */
  content: "";
  position: absolute;
  top: 50%;
  right: -10px; /* plasserer streken til høyre for lenken */
  height: 70%; /*juster høyden etter behov*/
  border-right: 1px solid #FC63AE;
  transform: translateY(-50%); /* Sentrer vertikalt */
  }


.showcase {
     /*line-height: 0; */
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
}

.showcase img {
  max-width: 100%;
  height: auto;
  display: block;
  
  }


.email {
  color: #000000;
}

main {

    flex: 1; /*main tar opp all tilgjengelig plass, flytter footeren som kommer etter helt ned på siden når innholdet er mindre enn skjermen */
    padding: 20px; /*luft mellom innholdet og kanten på innholdet */
    background-color: #FDE2EF;
    text-align: center;
}

footer {
    padding: 15px;
font-size: x-small;
margin: 0;
width: 100%;
box-sizing: border-box;
background-color: #FC63AE;
text-align: center;

}

footer p {
  padding: 10px;
}





    /* Grunnleggende stil for galleriet */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    background-color: #FDE2EF;
}

.gallery-item {
    width: 100%;
    height: 300px; /*låse lik størrelse på bildene*/
    object-fit: cover; /*beholder bildets proposjoner innenfor den faste størrelsen*/
    aspect-ratio: 1/1; /*samme bredde og høyde*/
    border: 2px solid #000000;
    cursor: pointer;
    
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Stil for bildefremvisning */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-content {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* mobilvisning */

.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #FC63AE;
  width: 75%;
  padding: 50px;
  border-bottom-left-radius: 20px; /* mykt hjørne nede venstre på menyen*/
  z-index: 1;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  
}
.mobile-menu li {
  margin-bottom: 10px;
  padding-bottom: 20px;
}

.mobile-menu a {
  
  color: #000000;
  text-decoration: none;
  font-size: 16px;
}

.mobile-menu a:hover,
.mobile-menu a:focus,
.mobile-menu a:active {
  text-decoration: underline;
}

@media (max-width: 1060px) {
  h1 {
    font-size: 36px;
    padding: 80px;
  }
}

    @media (max-width: 768px) {
        margin: 0;

        .gallery {
            grid-template-columns: 
            width: 100%; /* En boks per rad */
              margin: 10px 0;
              /*repeat(auto-fit, minmax(100px, 1fr));*/
      
        }
      
        .lightbox-content {
            max-width: 90%;
            max-height: 70%;
        }
      
        #caption {
            font-size: 14px;
        }
      
        .logo img {
        max-width: 70%;
        height: auto;
          padding-top: 10px;
          padding-bottom: 10px;
          margin-left: 20px;
          }

        .navbar {
          display: none;
          
        }
      
        .hamburger {
          display: block; /* vis hamburgerikonet på mobil*/
        }


        .mobile-menu.show {
          display: block; /* vis mobilmeny når den er aktivert*/
          
        }

        #main-header {
          height: 200px;  
        }
        

        .om-side .showcase img,
        .kontakt-side .showcase img {
          display: none;
          }
        
        .om-side .overlay,
        .kontakt-side .overlay {
          background-color: #956242;
          height: 600px;
        }
        
        .om-side .showcase,
        .kontakt-side .showcase {
          background-color: transparent;
        }

        #forsidebilde {
          width: auto;
        }  

        h1 {
          font-size: 28px;
          padding: 40px;
        }
        p {
          font-size: 20px;
        }

        .product-box {
          width: 100%; /* En boks per rad */
          margin: 10px 0;
      }
      
        footer {
          padding-top: 15px;
          padding-bottom: 15px;
        }
        footer p {
          font-size: 0.5rem;
          padding: 5px;
        }
      }
      

