/* 
  colors
  fonts

*/

/* color variables */

:root {

--sunyellow: hsl(48,100%,50%);
--black: black;
--olive: darkolivegreen;


}

/* html elements */

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

}



h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bold;
  text-align: center;

}

a {
  /* font-size: larger; */
  text-decoration: none;
  color: var(--black);
  text-align: center;
  font-weight: normal !important;
}

a:hover {
  font-size: larger;
  
}

h1 {
 
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem
 
}

h3 {
  font-size: 2.3rem;
  line-height: 6rem;
     
}

h4 {
  font-size: 1.8rem;
  line-height: 3.5rem;
}

body {
  width: 768px;
  margin: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

footer a  {
  color: var(--sunyellow);
}

br.smartphone {
  display: none;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: end;
  padding: 20px 15px;
  position: sticky;
  top: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:url("/img/honungskaka.jpg");
  background-repeat: no-repeat;
  background-size:cover;
  color: var(--black);
  min-height: 200px;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--sunyellow);
  padding: 50px 0;
  height: auto;
}

/*  */

.bg-black {
  background-color: var(--black);
}

.bg-olive {
  background-color: var(--olive);
}

.bg-sunyellow {
  background-color: var(--sunyellow);
}

.links_section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
}

.links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  
}

.link {
  padding: 10px 20px;
  margin: 10px 25px;
  min-width: 100px;
  border-radius: 10px;
  /* background-color: var(--black); */
  color: var(--black);
  font-size: larger;
}

a:hover.link {
  /* padding: 10px 20px; */
  background-color: var(--black);
  /* border: 6px solid var(--sunyellow); */
  color: var(--sunyellow);
  font-size: larger;
  
  
}


footer {
    display: flex;
    flex-direction: column;
    color: var(--sunyellow);
    padding: 20px 8%;
    text-align: center;
    /* height: fit-content; */
    line-height: 2rem;
  }


/* classes */

.pics {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background-color: var(--olive);
  padding: 20px 0px;

}

.round-image {
  border-radius: 50%;
  margin: 0 50px;
  /* padding: 5px 0; */
  max-width: 100px;
  height: auto;
}

div.gallery {
  border: 1px solid #ccc;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}

/* * {
  box-sizing: border-box;
} */

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

/* --- slideshow css --- */


/* Slideshow container */
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
}

.slideshow-container img {
  width: 100%;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


/* --- mq tablet --- */

@media screen and (max-width: 768px) {

  
    h1 {
      font-size: 3rem;
     
    }
    
    h2 {
      font-size: 5vw;
        
    }
    
    h3 {
      font-size: 4vw;
      line-height: 3rem;
    }
    h4 {
      font-size: 3.5vw;
      line-height: 2.5rem;
    }

    a {
      font-size: 4vw;
      line-height: 3rem;
      
    }

    footer a {
      font-size: 3vw;
    }
    
    header {
      min-height: 160px;
    }
    
    body {
      width: auto;
    }


    main {
      padding: 25px 0;
      
    }
    
    
    .pics {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-evenly;
      background-color: var(--olive);
      padding: 10px 5px;
    }
    
    .round-image {
      margin: 20px 7px;
    }

    
    
    img {
      height: 160px;
    }

    a.link {
      padding: 5px 5px;
      margin: 10px 25px;
      width: 100%;
      background-color: var(--black);
      color: var(--sunyellow);
      
     
    }

  .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    
    
  }

  .links_section {
    padding-top: 25px;
  }
  
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }

}



/* MQ smartphone */

@media screen and (max-width: 480px) {

  h1 {
    font-size: 8vw;
    
    
  }

  h2 {
    font-size: 6.5vw;
    
  }

  h3 {
    font-size: 4.8vw;
    line-height: 3rem;
  }
  h4 {
    font-size: 3.5vw;
    line-height: 1.6rem;
  }

  img {
    height: 120px;
  }

  .slideshow-container img {
    height: auto;
  }

  br.break {
    display: inline;
  }

  a {
    line-height: 2rem;
  }

  body {
    width: auto;
    
  }


  header {
    min-height: 125px;
    
  }

  main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 5%;
    height: auto;
    
  }
  

  .pics {
    padding: 0 50px;
  }

  .round-image {
    margin: 20px 7px;
    width: 80px;
  }


  .links {
    flex-direction: column;
    flex-wrap: nowrap;  
 
  }

  a.link {
    padding: 3px 20px;
    margin: 5px 0;
  }

  .responsive {
    width: 100%;
  }
  

}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}