/* Header */
.header {
  background-color: var(--color-white);
  position: fixed;
  top: 0px;
  padding: 1em 2em;
  width: calc(100% - 4em);
  backdrop-filter: blur(10px);
  color: var(--color-black);

  /* text-shadow: 2px 2px var(--color-black); */
  text-decoration-color: var(--color-black);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
  z-index: 1000;
}

.header i {
  font-size: 2em;
}

.header img {
  height: 5em;
  width: auto;
  object-fit: contain;
  /* margin-right: 1em; */
}

.header h1 {
  display: none;
}

@media only screen and (max-width: 767px) {
  .header img {
    max-height: 4em;
  }

}

/* End of Header */

/* Content */
.content {
  background-color: var(--color-background);
  padding: 2em 2em 0em 2em;
}

/* End of Content */

/* Products */

.products {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.products h1 {
  word-break: break-all;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make product columns equal height */
.products .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.products .col {
  display: flex;
}

.products .col .column {
  display: flex;
  flex: 1 1 auto;
}

.column {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1em;
  margin: 0 1em;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.products .col:first-child .column {
  margin-left: 0;
}

.products .col:last-child .column {
  margin-right: 0;
}

.column h3 {
  margin-top: 1em;
}

.column p {
  margin-top: 1em;
  margin-bottom: 1em;
}

@media only screen and (max-width: 1023px) {
  .products .col:first-child .column {
    margin-bottom: 2em;
  }

  .products .col:nth-child(2) .column {
    margin-bottom: 2em;
    margin-right: 0;
  }

  .products .col:nth-child(3) .column {
    margin-left: 0;
  }
}

@media only screen and (max-width: 767px) {
  .products .col:first-child .column {
    margin-bottom: 2em;
    margin-right: 0;
  }

  .products .col:nth-child(2) .column {
    margin-bottom: 2em;
    margin-right: 0;
    margin-left: 0;
  }

  .products .col:nth-child(3) .column {
    margin-bottom: 2em;
    margin-right: 0;
    margin-left: 0;
  }

  .products .col:last-child .column {
    margin-left: 0;
  }
}

.main::after {
  content: "";
  display: table;
  clear: both;
}

.products .product_1 {
  display: flex;
  flex-direction: column;

}

.product_img_container {
  width: 100%;
  /* Širina tvog diva (npr. 50% ekrana) */
  height: 300px;
  /* Ovde definišeš horizontalnu proporciju */
  overflow: hidden
}

.product_img_container img {
  width: 100%;
  /* Slika se širi do ivica roditelja */
  height: 100%;
  /* Slika popunjava visinu roditelja */
  object-fit: cover;
  /* Sprečava deformaciju (razvlačenje) slike */
  cursor: pointer;
}

.products .product_1 .btn_product {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 0;
  margin-bottom: 0;
}

.product_img {
  transition: all 0.3s linear;

}

.product_img:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Pozadina modala (crna sa providnošću) */
.modal {
  display: none;
  /* Sakriveno po defaultu */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

/* Sadržaj pop-up-a */
.modal-content {

  background-color: var(--color-primary);
  opacity: 0.8;
  border-radius: var(--border-radius);
  color: white;
  padding: 2em;
  width: 80%;
  max-height: 70%;
  overflow-y: auto;

  /* animation: fadeIn 0.3s; */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
}

/* Dugme za zatvaranje (X) */
.close {
  background-color: rgb(0, 135, 205);
  opacity: 0.8;
  border-radius: var(--border-radius);
  color: white;
  position: sticky;
  top: 0;
  font-size: 2em;
  cursor: pointer;
  text-align: right;
  z-index: 1002;
  grid-column: 2;
  grid-row: 1;
  border: none;
  background: transparent;
  height: fit-content;
  line-height: unset;
}

.close:hover {
  opacity: 1;
}

.myModal_header {
  position: sticky;
  top: 0;
  margin: 0;
  background-color: rgb(0, 135, 205);
  z-index: 1001;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.myModal_txt {
  overflow-y: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  scrollbar-color: rgb(95, 126, 238) rgba(95, 126, 238, 0.3);
  scrollbar-width: thick;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.myModal_txt::-webkit-scrollbar {
  width: 14px;
}

.myModal_txt::-webkit-scrollbar-track {
  background: rgba(95, 126, 238, 0.2);
  border-radius: 10px;
}

.myModal_txt::-webkit-scrollbar-thumb {
  background-color: rgb(95, 126, 238);
  border-radius: 10px;
  min-height: 40px;
}

.myModal_txt::-webkit-scrollbar-thumb:hover {
  background-color: rgb(120, 150, 255);
}

/* Klasa koja "zaključava" ekran */
.no-scroll {
  overflow: hidden;
  height: 100%;
  /* Dodatna sigurnost za mobilne uređaje */
}


/* @keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

} */

.myModal_header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.myModal_txt {
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  margin-top: 1em;
}

/* End of Products */

/* About us */
.about_us {
  background-color: var(--color-background);
  display: flex;
  align-items: stretch;
}

.about_us .col {
  display: flex;
  flex-direction: column;
}

.about_us_left {
  display: flex;
  flex-direction: column;
  padding: 1em;
  gap: 0.5em;
  margin-right: 1em;
  background-color: #f4f1ea;
  border-radius: var(--border-radius);
  flex: 1 1 auto;
}

.about_us_left .col {
  display: flex;
}


/* Stil za naslov */
.about_us_left_title {
  display: flex;
  justify-content: center;
  align-items: center;


}

.divider {
  height: 4px;
  border-top: 2px solid black;
  border-bottom: 1px solid black;
}

.divider_1 {
  height: 4px;
  border-top: 2px solid white;
  border-bottom: 1px solid white;
}

.about_us_left_text {
  flex: 2;
  /* text-align: justify; */
  color: #333;
}

.about_us_left_image {
  flex: 1;
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  max-width: 65%;

}

.about_us_left_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.caption {
  font-size: 0.75em;
  font-style: italic;
  color: #666;
  margin-top: 5px;
  border-top: 1px solid #eee;
}


.about_us_right {
  background-color: rgb(0, 135, 205);
  color: white;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1em;
  gap: 0.5em;
  border-radius: var(--border-radius);
  margin-left: 1em;

}

.about_us_right .col {
  display: flex;
}

.about_us_right_title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about_us_right_line_comment {
  padding: 0.5em 1em;
  font-weight: 600;
  opacity: 0.5;
}

@media only screen and (max-width: 767px) {

  .about_us_left,
  .about_us_right {
    margin: 0;
    margin-bottom: 2em;
  }
}


/* End of About us */
/* Gallery */

/* End of Gallery */

/* Contact */

.adress {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.adress h1 {
  margin-bottom: 2em;
}

.adress h3 {
  margin-bottom: 0.5em;
}

.adress img {
  max-width: 360px;
  max-height: 120px;
  height: auto;
  margin-bottom: 1em;
  margin-top: 2em;
  object-fit: contain;
}

/* .contact_form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 5px 15px black;
  border-radius: var(--border-radius);

  background-color: rgba(180, 183, 201, 0.177);

} */

/* .form_text {
  display: flex;
  justify-content: center;
  margin-top: 0.5em;
}

.form {
  display: flex;
  flex-direction: column;
  padding: 1em 1.5em;

}

.form_1 {
  height: 2.5em;
  padding: 0.75em 1em;
  margin-bottom: 1.25em;
  resize: vertical;
  border: none;
  background-color: rgb(162, 181, 203);
  border-radius: var(--border-radius);
}

.form_1:focus {
  background-color: rgb(235, 234, 247);
}

.form_1::placeholder {
  color: rgb(15, 11, 11);

}


.btn_contact {
  height: 3em;
  width: 100%;
  border-radius: var(--border-radius);
  border: none;
  background-color: rgb(162, 181, 203);
  padding: 1em;
}

.btn_contact:hover {
  background: rgb(60, 4, 241);
} */

@media only screen and (max-width: 767px) {
  .adress img {
    width: 80%;
  }
}


/* End of Contact */

/* Footer */
/* .footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 2em;
  margin-top: 2em;
}

.fb_style {
  width: 100%;
  font-size: 1.5em;
  color: var(--color-white);
  display: flex;
  justify-content: center;
}

.fb_style:hover {
  color: var(--color-button);
  text-decoration: none;
}

.footer a {
  color: var(--color-white);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-button);
} */

/* Osnovni stilovi (Mobilni uređaji - jedna kolona) */
.footer-container {
  display: flex;
  flex-direction: column;
  /* Ređa elemente jedan ispod drugog */
  text-align: center;
  gap: 1em;
  padding: 2em;
  background-color: #0088cc;
  color: white;
  margin-top: 2em;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 0.75em;
  text-transform: uppercase;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--color-button);
  text-decoration: underline;
}

.fb_style {
  width: 100%;
  font-size: 1.5em;
}

.fb_style:hover {
  color: var(--color-button);
  text-decoration: none;
}

/* Donji deo za copyright */
.footer-copyright {
  text-align: center;
  padding: 2em;
  background-color: #0077b3;
  /* Malo tamnija nijansa za dno */
  font-size: 0.8rem;
  font-weight: 600;
}

/* Stil za desktop (Ekrani širi od 768px - tri kolone) */
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    /* Menja raspored u red (kolone) */
    justify-content: space-around;
    /* Pravi jednak razmak između kolona */
    align-items: flex-start;
    text-align: left;
    /* Na desktopu tekst obično lepše izgleda poravnat levo */
  }

  .footer-column {
    flex: 1;
    /* Svaka kolona zauzima jednako mesta */
    max-width: 300px;
  }
}

/* End of Footer */