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

body {
    background-color: #1F2120;
}

p {
    font-family: 'Montserrat', sans-serif;
    color: white;
    line-height: 1.7em;
}

.main-p {
    margin-top: 1em;
  }

h2 {
    color: white;
}

.subheader-margin {
    margin: 0 0 1em 0;
}

button, .main-btn, .buy-btn, .backlink, h2, h1, .kontakt-push-btn, .detail-btn, .product-nav-link  {
    font-family: 'Trirong', serif;
}

.menu-container {
    display: flex;
    align-items: center;
}

.menu-container-start {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
}

.logo {
    margin-left: 1em;
}

.menu {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 2em 0;
}

.menu-item {
    margin: 0 2em;
}

.menu-item-start {
    margin: 0 0 0 4em;
}

.menu-link {
    color: white;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Trirong', serif;
    margin-left: 3em;
    transition: color 0.3s;
    text-align: center;
    margin: 0 auto;
    text-decoration: none;
}

.menu-link:hover {
    color: #ff9e3c;
}

.active {
    color: #ff9e3c;
}

.menu-socials {
    display: flex;
    align-items: center;
}

.menu-social-icon {
    width: 45px;
    margin-right: 1em;
    padding: 3px;
    transition: padding 0.5s;
    cursor: pointer;
}

.menu-socials-mobile {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,-50%);
}

.menu-social-icon:hover {
    padding: 0;
}

#background-video {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    position: static;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
  }

.header-text-container{
    width: 40%;
    position: absolute;
    top: 50%; 
    left: 20%;
    transform: translate(-50%,-50%);
}


#header-title {
    color: white;
    text-align: center;
    font-size: 50px;
    font-family: 'Trirong', serif;
}

.line-divider-small {
    height: 5px;
    background-color: white;
    margin: 3em 0;
}

.main {
    padding: 0 0 4em 0;
    width: 80%;
    margin: 2em auto;
}


#main-text {
    width: 50%;
    margin: 6em auto 0 auto;
    display: block;
    font-size: 20px;
    line-height: 2em;
    color: white;
}

.line-divider {
    height: 1px;
    background-color: white;
    width: 80%;
    margin: 8em auto 5em auto;
}

.line-divider-secondary {
    margin: 6em auto 6em auto;
}

#img-2 {
    width: 100%;
    margin-bottom: 2em;
}

.flex-container {
    display: flex;
    justify-content: center;
}

.flex-item {
    height: 300px;
    width: 30%;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s;
    text-decoration: none;
    margin: 0 1em;
    position: relative;
}

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

.flex-item-img {
    height: 300px;
    object-fit: cover;
    transition: all 0.5s;
}

.flex-item:hover .flex-item-img {
    opacity: 0.7;
}

.flex-item-text {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1em 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
}

.text-white {
    color: white;
    margin-top: 1em;
}


.main-btn {
    padding: 1em 3em;
    background-color: white;
    color: #1F2120;
    display: block;
    width: fit-content;
    margin: 5em auto;
    text-align: center;
    border: 2px solid white;
    transition: all 0.5s ease-out;
    cursor: pointer;
    text-decoration: none;
}

.main-btn:hover {
    border: 2px solid #ff9e3c;
    color: white;
    background-color: #ff9e3c;
}

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

.flex-second {
    padding-left: 3em;
}


.footer {
    height: 300px;
    background-color: black;
    margin-top: 8em;
    position: relative;
}

.footer-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    justify-content: space-evenly;
    width: 80%;
}




  /* Secondary Global */
    .header-secondary {
        height: 60vh;
    }

    .main-secondary {
        padding: 4em;
        width: 80%;
        margin: 2em auto;
    }

    .page-title {
        display: block;
        color: white;
        text-align: left;
    }

    .breadcrumbs {
        padding: 1em 0 0 1em;
    }

    .breadcrumbs a, .breadcrumbs span {
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    .breadcrumbs a:hover {
        text-decoration: underline;
    }




  /* KONTAKT */
  .header-kontakt {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/produkter.jpeg") no-repeat center center scroll;
    background-size: cover;
  }

  form {
    margin: 2em auto 6em auto;
  }

  label {
      color: white;
      margin-bottom: 0.3em;
  }

  textarea {
      width: 100%;
      padding: 0.7em 1em;
  }

  .form-button {
    padding: 1em 3em;
    cursor: pointer;
    margin-top: 2em;
  }

  .inputs {
    width: 100%;
    padding: 0.7em 1em;
  }

  .flexed-input-right {
      margin-left: 10px;
  }

  .flexed-input-left {
    margin-right: 10px;
}

  .input-field {
      width: 100%;
      margin-bottom: 1em;
  }

  .labels {
      display: block;
  }

  .form-button {
      display: block;
  }

  .form-flex {
      display: flex;
  }

  .flex-item-kontakt {
      width: 50%;
  }

  .flex-item-kontakt p {
      margin: 1em 0;
  }

  .gmap_canvas {
      margin-top: 2em;
  }


  /* Om Oss */
  .header-om {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/birgitta3.jpeg") no-repeat center center scroll;
    background-size: cover;
    background-position-y: 50%;
  }

  .flex {
      display: flex;
      justify-content: space-between;
  }

  .om-flex-item {
    padding: 2em;
  }



  /* Profukter & Tjänster */
  .header-produkter-tjanster {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/klensmed-flip.jpeg") no-repeat center center scroll;
    background-size: cover;
  }

  .produkter-tjanster-paragraph {
      margin: 2em auto;
      display: block;
      width: 75%;
  }

  .grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 30px;
    margin: 5em auto 3em auto;
    justify-content: space-evenly;
    width: 100%;
  }

  .grid-item {
      height:300px;
      width: 400px;
      position: relative;
      text-decoration: none;
      transition: all 0.5s;
      width: 100%;
  }

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

  .item1 {
    background: url("bilder/krok1.jpeg") no-repeat top center;
    background-size: cover;
  }

  .item2 {
    background: url("bilder/ljusstakar.jpeg") no-repeat center top;
    background-size: cover;
}

  .item3 {
    background: url("bilder/handles.jpeg") no-repeat center center;
    background-size: cover;
}

  .item4 {
    background: url("bilder/letters.jpeg") no-repeat center center;
    background-size: cover;
  }

  .item5 {
    background: url("bilder/reperation.jpeg") no-repeat center center;
    background-size: cover;
  }     
  
  .grid-item-title {
      color: white;
      text-align: center;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      background-color: rgba(0, 0, 0, 0.5);
      padding: 1em 0;
      width: 100%;
  }

  .grid-item-img {
    height:300px;
    width: 400px;
    object-fit: cover;
    overflow: hidden;
    object-position: center;
    transition: all 0.5s;
    width: 100%;
  }

  .grid-item:hover .grid-item-img {
    opacity: 0.7;
  }



    /* Produkter/tjänster sidor */
    .product-img {
        width: 350px;
        height: 250px;
        object-fit: cover;
        overflow: hidden;
        object-position: center;
    }
    
        .product-title {
            color: white;
            padding: 1em 0;
        }
    
        .flex-price-buy {
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }
    
        .margin-bottom {
            margin-bottom: 2em;
        }

    .buy-btn {
        background-color: white;
        padding: 0.4em 1em;
        margin-left: 1em;
        cursor: pointer;
        transition: all 0.5s;
        color: #1F2120;
    }

    .buy-btn:hover {
        background-color: #ff9e3c;
        color: white;
    }

    .flex-title-backlink {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4em;
    }

    .backlink {
        color: white;
        cursor: pointer;
        text-decoration: none;
    }

    .backlink:hover {
        text-decoration: underline;
    }

    .grid-products {
        display: grid;
        grid-template-columns: auto auto auto;
        justify-content: center;
        grid-gap: 75px 50px;
        margin: 3em auto 3em auto;
    }

    .grid-product {
        max-width: 100%;
        margin: 0 auto;
        overflow-wrap: break-word;
    }

    .detail-btn-container {
        margin: 2em 0;
    }

    .detail-btn {
        color: white;
        cursor: pointer;
        width: fit-content;
    }

    .detail-btn:hover {
        text-decoration: underline;
    }

    .details-container {
        width: 350px;
    }

    #product1, #product2, #product3, #product4, #product5, #product6, #product7 {
        display: none;
    }

    .products-nav {
        display: flex;
        justify-content: center;
        margin-top: 4em;
    }

    .product-nav-link {
        display: block;
        padding: 1em 2em;
        background-color: white;
        cursor: pointer;
        text-decoration: none;
        color: #1F2120;
    }

    .product-nav-link:hover {
        background-color: #ff9e3c;
        color: white;
    }

    .product-nav-link-active {
        background-color: #ff9e3c;
        color: white;
    }

  /* Krokar */
.header-krokar {
    background: linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)), url("bilder/krokar.jpeg") no-repeat center scroll;
    background-size: cover;
    background-position-y: 25%;
}

.krok2 {
    object-position: center 30%;
}

.krok4, .krok5 {
    object-position: center top;
}

.krok6 {
    object-position: center center;
}

  /* Beslag */
.header-beslag {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/handles.jpeg") no-repeat center center scroll;
    background-size: cover;
    background-position-y: 40%;
  }

/* Ljusstakar */
.header-ljusstakar {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/ljusstakar.jpeg") no-repeat center center scroll;
    background-size: cover;
    background-position-y: 60%;
  }


.ljus1 {
    object-position: center 70%;
  }


.ljus4, .ljus5, .ljus6 {
    object-position: center bottom;
}

/* Siffror & Bokstäver */
.header-siffror-bokstaver {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/letters.jpeg") no-repeat center center scroll;
    background-size: cover;
}

.flex-item-sifbok {
    padding: 0 3em;
}

.flex-title-sifbok {
    margin-bottom: 0.5em;
}

.kontakt-push-btn {
    text-decoration: none;
    padding: 1em 3em;
    background-color: white;
    display: block;
    width: fit-content;
    text-align: center;
    margin-top: 2em;
    color: #1F2120;
    transition: all 0.5s;
}

.kontakt-push-btn:hover {
    color: white;
    background-color: #ff9e3c;
}

/* Reparationer */
.header-reparation {
    background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("bilder/reperation.jpeg") no-repeat center center scroll;
    background-size: cover;
}

.flex-container-reparationer {
    display: flex;
    justify-content: center;
}

.flex-item-reparationer {
    padding: 2em;
}




/* TABLET */

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

    .header {
        background-position: right;
    }

    .header-text-container{
        width: 80%;
        top: 60%; 
        left: 50%;
    }
    
    #header-title {
        font-size: 40px;
    }

    .line-divider-small {
        height: 5px;
        margin: 2em 0;
    }

    .menu-container, .menu-container-start {
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .menu-container-start {
        margin-top: 2em;
    }

    .menu-container {
        padding-top: 2em;
    }

    .menu {
        justify-content: space-evenly;
        width: 100%;
        margin: 3em auto;
        padding: 0;
    }

    .menu-item {
        margin-left: 0;
        margin: 0 auto;
    }


    #main-text {
        width: 80%;
    }

    .logo {
        order: 1;
        flex: 1 1 40%;
        text-align: end;
        margin-right: 1em;
        margin-left: 0;
    }

    .menu-socials {
        order: 2;
        flex: 1 1 40%;
        margin-left: 1em;
    }

    .menu {
        order: 3;
        flex: 1 1 40%;
    }

    .start-pushes {
        width: 100%;
        flex-wrap: wrap;
        padding: 2em;
    }

    .flex-item-first {
        width: 100%;
        margin-bottom: 2em;
    }

    .flex-item-first img {
        object-position: center bottom;
    }

    .flex-item-second {
        flex: 1 1 30%;
        margin-right: 1em;
    }

    .flex-item-third {
        flex: 1 1 30%;
        margin-left: 1em;
    }

    /* Kontakt Tablet */

    .flex-container-kontakt {
        justify-content: space-between;
    }

    .flex-item-kontakt {
        width: 40%;
    }

    #gmap_canvas {
        width: 350px;
    }



    /* Produkter & Tjänster */
    .grid {
        grid-template-columns: auto auto;
      }

    /* Siffror & Bokstäver */
    .flex-container-sifbok-first {
        flex-direction: column;
    }

    .flex-item-sifbok-img {
        order: 2;
    }

    .flex-item-sifbok-text {
        order: 1;
        margin-bottom: 4em;
    }

    .flex-title-sifbok-first {
        margin: 0 0 0.5em 0;
    }

    .flex-container-sifbok-second {
        flex-direction: column;
    }

    .flex-item-sifbok {
        padding: 0;
    }

    .flex-item-sifbok-img img {
        width: 100%;
    }
    
    .flex-title-sifbok {
        margin: 0 0 0.5em 0;
    }

    .flex-title-sifbok-p {
        margin-bottom: 1.5em;
    }

  }

  @media only screen and (max-width: 1000px) {
    
    #gmap_canvas {
        width: 280px;
    }

    .flex {
        flex-direction: column;
    }

    .flex-second {
        padding-left: 0;
    }

    /* Om Mig */
  
    .om-flex-item {
      padding: 0;
      margin: 2em auto;
    }
  
    .om-flex-item p {
      margin-top: 1em;
    }

    .cropped-img-om {
        width: 500px; 
        height: 400px; 
        object-fit: cover;
        object-position: 25% 30%; 
    }
  }


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

    /* Index */
    .menu {
        flex-direction: column;
        row-gap: 15px;
        margin: 2em auto;
    }

    .header-text-container{
        top: 70%; 
        left: 50%;
    }
    
    #header-title {
        font-size: 30px;
    }

    .line-divider-small {
        height: 4px;
        margin: 1.5em 0;
    }

    .line-divider-secondary {
        margin: 4em auto 4em auto;
    }

    .start-pushes {
        width: 100%;
        padding: 0;
        flex-direction: column;
    }

    .flex-item {
        width: 100%;
        flex: 1;
        margin: 1em auto;
    }

    .display-none {
        display: none;
    }

    .footer {
        height: 400px;
    }

    .header-secondary {
        height: 50vh;
    }

    .main-secondary {
        margin: 1em auto;
    }

    .page-title {
        display: block;
        margin: 1em 0;
        color: white;
        text-align: center;
    }

    .kontakt-push-btn {
        margin: 2em auto;
    }

    /* Produkter & Tjänster */
      .header-produkter-tjanster {
        background-position-x: 75%;
      }

    .grid {
        grid-template-columns: auto;
        grid-gap: 75px;
      }

    .product-img {
        min-width: 500px;
    }

    .details-container {
        width: 500px;
    }

    .flex-title-backlink {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4em;
        flex-direction: column;
    }

    .page-title {
        width: 100%;
    }

    .products-nav {
        display: flex;
        justify-content: center;
        margin-top: 4em;
        flex-direction: column;
    }

    /* Siffror & Bokstäver */
    .flex-item-sifbok-img {
        order: 0;
    }

    .flex-item-sifbok-text {
        order: 1;
        margin-bottom: 0;
        margin-top: 2em;;
    }

    /* Kontakt Tablet */
    .header-kontakt {
        background-position-x: 25%;
    }

    .form-flex {
        flex-direction: column;
    }

    .flexed-input-right {
        margin-left: 0;
    }
  
    .flexed-input-left {
      margin-right: 0;
  }

    .flex-container-kontakt {
        flex-direction: column;
    }
    .flex-item-kontakt {
        width: 100%;
        margin-bottom: 3em;
    }
    #gmap_canvas {
        width: 100%;
    }

    /* Om mig */
    .cropped-img-om {
        width: 400px; 
        height: 300px; 
        object-position: 25% 30%; 
    }

  }

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

    .logo {
        order: 1;
        flex: 1 1 100%;
        text-align: center;
        margin-right: 0;
        margin-left: 0;
    }

    .menu-socials {
        order: 2;
        flex: 1 1 100%;
        margin-left: 0;
        margin: 0 auto;
        justify-content: center;
        display: none;
    }

    .menu-socials-mobile {
        display: flex;
    }

    .header-text-container{
        top: 65%; 
        left: 50%;
    }
    
    #header-title {
        font-size: 30px;
    }

    .line-divider-small {
        height: 4px;
        background-color: white;
        margin: 1.5em 0;
    }

    #main-text {
        width: 100%;
        margin: 4em auto 0 auto;
        font-size: 20px;
        line-height: 2em;
    }

    .footer {
        height: 500px;
    }

    .footer-content {
        position: absolute;
        top: 50%; 
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        flex-direction: column;
        padding: 0;
    }

    .menu-footer {
        order: 1;
        width: 100%;
    }

    .menu-item-footer {
        margin: 0 auto;
    }

    .logo-footer {
        order: 2;
    }

    .menu-socials-footer {
        display: flex;
        margin-top: 2em;
    }

    .flex-item-socials-footer img {
        margin: 0 0.3em;
    }

    .main-secondary {
        padding: 2em;
        width: 100%;
    }

    /* Om mig */
    .cropped-img-om {
        width: 300px; 
        height: 200px; 
        object-position: 25% 30%; 
    }

    /* Grids */

    .grid {
        width: 100%;
    }

    .grid-item, .grid-item-img {
        min-width: 350px;
    }

    .product-img {
        min-width: 350px;
    }

    .details-container {
        width: 350px;
    }
}
