html {
  scroll-behavior: smooth;
}

.scroll-offset {
  scroll-margin-top: 70px;
}

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

.Main {
  padding-top: 70px;
}

body {
  margin: 0px;
  padding: 0px;
  font-family: poppins, sans-serif, futura, sans-serif;
  background-color: #f5fffe;
}

h1,
h2,
h3 {
  font-family: poppins, sans-serif;
}

p {
  font-family: futura, sans-serif;
}

.logo {
  height: 40px;
}

.logo1 {
  height: 75px;
}

.topnav {
  overflow: hidden;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px rgb(147, 147, 147);
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}
/* css za meni */
.topnavmeni {
  overflow: hidden;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px rgb(147, 147, 147);
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.topnavmeni a {
  color: #fff;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 14px;
  padding-left: 0px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  color: rgb(101, 101, 101);
}

.midsection {
  position: absolute;
  top: 60px; /* visina navbar-a, prilagodi po potrebi */
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
  z-index: 2;
}

.midsection .card {
  flex: 1 1 33.33%;
  height: 100%;
  margin: 0;
  width: 33.33vw;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #119b8e;
  color: #fff;
  padding: 30px;
}

.midsection .card a {
  background-color: transparent;
  font-size: 20px;
  margin-top: 20px;
  border: 3px solid #fff;
  color: #fff;
  font-weight: 800;
  border-radius: 30px;
  padding: 15px;
  text-decoration: none;
}

.midsection .card:nth-child(3) a {
  color: #222;
  border: 3px solid #222;
}

.midsection .card p {
  font-size: 18px;
  text-align: center;
  margin-top: 20px;
}

.midsection .card:nth-child(1) {
  background-color: #119b8e;
  color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.midsection .card:nth-child(1):hover {
  background-color: #0e6d63; /* tamnija tirkizna */
  box-shadow: 0 8px 32px rgba(17, 155, 142, 0.4);
}

.midsection .card:nth-child(2) {
  background-color: #9b111e;
  color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.midsection .card:nth-child(2):hover {
  background-color: #6b0c15; /* tamnija crvena */
  box-shadow: 0 8px 32px rgba(155, 17, 30, 0.4);
}

.midsection .card:nth-child(3) {
  background-color: #f5ff6e;
  color: #222;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.midsection .card:nth-child(3):hover {
  background-color: #d4d94f; /* tamnija žuta */
  box-shadow: 0 8px 32px rgba(245, 255, 110, 0.4);
}

@media screen and (max-width: 768px) {
  .midsection {
    flex-direction: column;
    height: auto; /* da se visina prilagodi sadržaju */
  }

  .midsection .card {
    width: 100%; /* kartica zauzima celu širinu */
    height: auto; /* automatska visina */
  }
}

/* Hide the links inside the navigation menu (except for logo/home) */
/* Animacija za otvaranje/zatvaranje burger menija */
#myLinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  overflow: hidden;
  background-color: #119b8e;
  transition: max-height 0.4s ease-out;
}

#myLinks.show {
  max-height: 300px; /* prilagodi visinu po potrebi */
  transition: max-height 0.4s ease-in;
  padding-bottom: 3px;
}

/* Style navigation menu links */
.topnav a {
  color: #fff;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 14px;
  padding-left: 0px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  color: rgb(101, 101, 101);
}

/* Style the hamburger menu */
.topnav a.icon {
  background: hsl(0, 0%, 100%);
  display: block;
  position: absolute;
  margin: 5px;
  margin-top: 1px;
  margin-left: 0px;
  right: 0;
  top: 0;
}

#myLinks a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.2); /* tamnija pozadina */
  padding: 8px 16px;
  margin: 4px;
  border-radius: 10px; /* zaobljene ivice */
  color: white; /* boja teksta */
  text-decoration: none; /* bez podvlačenja */
  transition: background-color 0.3s ease;
  width: 97%;
}

#myLinks a:hover {
  background-color: rgba(0, 0, 0, 0.4); /* još tamnija kad se pređe mišem */
}

/* sidenav */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #fff; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
  box-shadow: 0 0 10px 5px #06524aa3; /* Add shadow for better visibility */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #119b8e;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left 0.5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}

/* Style the active link (or home/logo) */
.active {
  background-color: #ffffff;
  color: white;
}

.mySlides > img {
  display: block;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.scrlbar > button {
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
  background: #99d3df;
  border: none;
  border-radius: 5px;
  color: #8181a0;
  display: flex;
  align-items: center;
  border-radius: 100%;
  gap: 8px; /* space between icon and text */
}

.adplacement {
  background-image: url("/media/imgpc.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
}

@media screen and (max-width: 2560px) and (aspect-ratio: 16/9) {
  .adplacement {
    padding: 22%;
  }
}

@media screen and (max-width: 2304px) and (aspect-ratio: 16/10) {
  .adplacement {
    padding: 20%;
  }
}

@media screen and (max-width: 2560px) and (aspect-ratio: 16/10) {
  .adplacement {
    padding: 20%;
  }
}

@media screen and (max-width: 3024px) and (aspect-ratio: 16/10) {
  .adplacement {
    padding: 18%;
  }
}

@media screen and (max-width: 1920px) {
  .adplacement {
    padding: 17%;
  }
}

@media screen and (max-width: 900px) {
  .adplacement {
    background-image: url("/media/imgmobile.png");
    background-position: top;
    padding: 58%;
  }
  .footer-content {
    background: transparent !important;
    background-image: none !important;
  }
}

@media screen and (max-width: 500px) {
  .adplacement {
    background-image: url("/media/imgphone.png");
    padding: 0;
    min-height: 455px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .footer-content {
    background: transparent !important;
    background-image: none !important;
  }
}

@media screen and (aspect-ratio: 4/3) {
  .adplacement {
    background-image: url("/media/imgphone.png");
    background-size: fill;
    padding: 0;
    min-height: 480px;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

.about {
  padding: 5%;
  font-style: bold;
  font-size: 23px;
  color: #9b111e;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

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

.container1 {
  width: 70%;
}

.ilustration {
  width: 30%;
  margin: 20px;
}

hr {
  border: 3px solid #16161d;
  border-radius: 6px;
}

footer {
  background-image: url("/media/footer.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #f5fffe;
  padding: 50px;
  width: 100%;
  padding-bottom: 120px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.contact-footer > a {
  font-size: 32px;
  color: #f5fffe;
  cursor: pointer;
  margin-right: 20px;
}

@media screen and (max-width: 450px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-text {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .contact-footer {
    width: 90%;
    padding: 19px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
  }
}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #16161d;
  margin-top: 7px;
  box-shadow: 0 0 20px 10px #06524b;
}

/* 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: rgb(120, 120, 120);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: #99d3df30;
  border-radius: 10px;
}

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

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.309);
  color: rgb(255, 255, 255);
  border-radius: 10px;
}

/* 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: #9b111e;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

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

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

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* contact */
.contact {
  background-color: #16161d;
  width: 90%;
  padding: 19px;
  display: flex;
  object-fit: cover;
  justify-content: space-around;
  gap: 20px;
  border-radius: 30px;
  margin-top: 30px;
  box-shadow: 0 0 10px 5px #06524aa3;
}

.contact > a {
  font-size: 40px;
  color: #9b111e;
  width: 20%;
  border-radius: 20px;
}

.contact > a:hover {
  background-color: #9b111e;
  color: #ffffff;
  transition: 1s;
}

/* results */
.results {
  background-color: #16161d;
  color: #119b8e;
  display: flex;
  justify-content: center;
  flex-direction: column;
  font-weight: 500;
  padding: 10px;
  padding-bottom: 30px;
  box-shadow: 0 0 20px 10px #06524b;
  margin-top: 80px;
}

.products {
  background-color: #16161d;
  color: #119b8e;
  padding: 40px;
  font-size: 23px;
  margin-top: 20px;
}

.products h2 {
  color: #119b8e;
}

.products .accordion-header,
.products .accordion-header.active,
.products .accordion-content,
.products .accordion-item {
  background-color: #16161d !important;
  color: #119b8e !important;
  border-color: #119b8e !important;
  box-shadow: none !important;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-header,
.accordion-header.active {
  background-color: #f5fffe !important;
  box-shadow: none !important;
}

.accordion-header {
  cursor: pointer;
  padding: 10px 40px 10px 0; /* top right bottom left */
  position: relative;
  font-weight: 500;
  color: #9b111e;
}
.accordion-header::after {
  content: "+";
  position: absolute;
  right: 0;
  font-weight: bold;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.accordion-header.active::after {
  content: "—";
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 10px;
  transition: max-height 0.3s ease;
  color: #222;
}
.accordion-content.open {
  max-height: 200px; /* prilagodi po potrebi */
  padding: 10px 10px 20px 10px;
}

.wrapper {
  position: relative;
  width: 80vw;
  margin: 50px auto 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: nowrap;
}

.container {
  width: 28vmin;
  height: 28vmin;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 1em 0;
  position: relative;
  font-size: 16px;
  border-radius: 0.5em;
  background-color: #119b8e;
  border-bottom: 10px solid #06524b;
  box-shadow: 0 0 20px 7px #06524aa0;
  border-top: 1px solid #99d3df;
  border-left: 1px solid #99d3df;
  border-right: 1px solid #99d3df;
}

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

.caption > p {
  padding-top: 13px;
}

.results > p {
  margin-top: 40px;
}

.container > i {
  color: #ffffff;
  font-size: 2.5em;
  text-align: center;
}
span.num {
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 3em;
}
span.text {
  color: #e0e0e0;
  font-size: 1em;
  text-align: center;
  pad: 0.7em 0;
  font-weight: 400;
  line-height: 0;
}

@keyframes flash {
  0% {
    box-shadow: 0 0 15px rgba(24, 249, 143, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(24, 249, 143, 1);
  }
  100% {
    box-shadow: 0 0 15px rgba(24, 249, 143, 0.5);
  }
}

.flash {
  animation: flash 1s ease-in-out;
}

@media screen and (max-width: 1024px) {
  .wrapper {
    width: 85vw;
  }
  .container {
    height: 26vmin;
    width: 26vmin;
    font-size: 12px;
  }
  .about1 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .ilustration {
    width: 90%;
  }
  .container1 {
    width: fit-content;
    justify-content: center;
    align-items: center;
  }
}
@media screen and (max-width: 768px) {
  .wrapper {
    width: 90vw;
    flex-wrap: wrap;
    gap: 30px;
  }
  .container {
    width: calc(50% - 40px);
    height: 30vmin;
    font-size: 14px;
  }
}
@media screen and (max-width: 480px) {
  .wrapper {
    gap: 15px;
  }
  .container {
    width: 45%;
    height: 25vmin;
    font-size: 8px;
  }
}

/* Desktop css */
@media (min-width: 1024px) {
  .slideshow-container {
    max-width: 70%;
    box-shadow: 0 0 50px 10px rgb(85, 150, 124);
    border-radius: 10px;
    margin-top: 20px;
  }
  .scrlbar {
    background-color: #f4f4ff;
  }
  .logo1 {
    width: 600px; /* ili 2x trenutne vrednosti */
    height: auto;
  }
  .results-content p {
    font-size: 20px;
    margin-left: 6%;
    padding-top: 33px;
    padding-bottom: 40px;
  }
}

@media screen and (max-width: 600px) {
  .products {
    width: 83vw;
    padding-left: 2vw;
    padding-right: 2vw;
    margin-left: -2vw;
    margin-right: -2vw;
  }
}

.results-content {
  width: 80vw; /* ili koristi istu vrednost kao .wrapper */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-content .wrapper {
  width: 100%;
}

.results-content p {
  width: 100%;
  text-align: left;
}
