:root {
  --main-color: #e77f0c;
  --secondary-color: #55829f;
  --white-color: #fff;
  --black-color: #000;
  --light-grey: #f8f8f8;
  --middle-grey: rgba(161, 159, 159, 0.2);
  --light-grey-font: #d2d8dd;
  --dark-grey: #555;
  --main-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 5px 3px 10px 0 rgb(0 0 0 / 19%);
}

body {
  font-family: "Josefin Sans", sans-serif;
  padding: 0;
  margin: 0;
}

a {
  color: var(--black-color);
  text-decoration: none;
}

.container {
  width: 70%;
  margin: auto;
}

.product-container {
  width: 90%;
  margin: auto;
  margin-top: 5%;
}

nav {
  width: 100%;
  z-index: 9999;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 5px 3px 10px 0 rgb(0 0 0 / 19%);
  position: fixed;
}

.nav {
  width: 100%;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-box {
  width: 50%;
}

.nav-menu ul {
  display: inline-block;
  width: 100%;
}

.nav-menu ul li {
  display: inline-block;
  list-style-type: none;
  border-right: 1px solid #000;
  padding-right: 2%;
  padding-left: 2%;
}

.nav-menu ul li:first-child {
  border-left: 1px solid #000;
}

.nav-menu ul li a {
  font-size: 1.2em;
}

.nav-logo img {
  position: absolute;
  top: 0;
  width: 100px;
  background: #fff;
  border-radius: 0px 0px 10px 10px;
  z-index: 9999;
  box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 5px 3px 10px 0 rgb(0 0 0 / 19%);
}

#hero {
  position: relative;
  background: url("/slike/hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Increase the background size to zoom out */
  height: 80vh;
}

#hero h1 {
  position: absolute;
  text-align: center;
  top: 20%;
  left: 5%;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 7vw;
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -moz-text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url(/slike/texture.jpg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#proizvodi {
  text-align: center;
}

#proizvodi h2 {
  font-size: 3em;
}

.product-boxes {
  /* width: 90%; */
  width: 60%;
  margin: auto;
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; */
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 5%;
}

.product-box img {
  width: 100%;
}

.product-box {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  font-size: 1.5em;
}

.product-box:hover {
  box-shadow: var(--main-shadow);
}

.product-page-boxes {
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  border-bottom: 1px solid #838383;
  padding-bottom: 5%;
}

.product-page-box {
  flex: 1;
}

.product-page-box:first-child img {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.product-page-box:last-child h1 {
  margin-top: 0;
}

.product-slider {
  width: 90%;
  margin: auto;
}

.product-slider img {
  width: 100%;
  border-radius: 5px;
}

.product-slider-big-image {
  margin-bottom: 3%;
  cursor: zoom-in;
}

.product-slider-small-images {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.product-slider-small-image {
  cursor: pointer;
}

.productKurirskaSluzba {
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.productKurirskaSluzba a {
  padding: 2%;
  display: flex;
}

.productKurirskaSluzba span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5%;
}

#landing-o-nama {
  width: 100%;
}

#landing-o-nama h2 {
  text-align: center;
  font-size: 3em;
}

.landing-o-nama-boxes {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.landing-o-nama-box {
  width: 47%;
}

.landing-o-nama-box img {
  width: 100%;
}

.landing-o-nama-title1 {
  font-size: 2.5em;
}

.landing-o-nama-title2 {
  font-size: 2em;
}

.landing-o-nama-box a {
  font-size: 1.5em;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
}

footer {
  width: 100%;
}

footer p {
  text-align: center;
}

.product-more-info {
  width: 80%;
  margin: auto;
  margin-top: 4%;
}

.product-page-info h2 {
  font-size: 2em;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

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

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

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

@media only screen and (max-width: 768px) {
  .container {
    width: 90% !important;
  }

  .product-boxes {
    display: block;
    width: 80%;
  }

  .product-box {
    display: block;
    width: 100%;
    margin-bottom: 5%;
  }

  .landing-o-nama-boxes {
    width: 100% !important;
    display: block;
  }

  .landing-o-nama-box {
    width: 100% !important;
  }

  .product-page-boxes {
    width: 90%;
    display: block;
  }

  .product-page-box {
    width: 100%;
    display: block;
    margin-bottom: 5%;
  }

  .product-slider {
    width: 100%;
  }

  .product-more-info {
    width: 90%;
  }

  #responsive-nav {
    z-index: 9999;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 5px 3px 10px 0 rgb(0 0 0 / 19%);
    position: fixed;
  }

  .responsive-nav-boxes {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .responsive-nav-box ion-icon {
    font-size: 2em;
  }

  .responsive-nav-box {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .responsive-nav-box a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .responsive-nav-box img {
    width: 40%;
  }

  .responsive-nav-menu {
    z-index: 9999;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 100vh;
  }

  .responsive-nav-menu a {
    font-size: 2em;
  }

  .responsive-nav-menu ul li {
    list-style-type: none;
  }

  #responsive-nav-menu-close {
    font-size: 3em;
    position: absolute;
    top: 0;
    right: 0;
  }

  #responsive-menu {
    margin-top: 20%;
  }

  #responsive-nav-menu .submenu li:first-child {
    margin-top: 5%;
  }

  #responsive-nav-menu .submenu li {
    list-style-type: disc;
    margin-bottom: 5%;
  }

  #responsive-nav-menu .submenu a {
    font-size: 1.5em;
  }

  #hero h1 {
    left: 5%;
    font-size: 10vw;
    top: 55%;
  }

  #hero {
    background-size: 203%;
    background-position: 80%;
  }
}
