* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  scrollbar-width: none; /* Firefox */
}

*::-webkit-scrollbar {
  display: block;
  width: 16px;
}

*::-webkit-scrollbar-button {
  display: none;
}

*::-webkit-scrollbar-track {
  background-color: #00000000;
}

*::-webkit-scrollbar-track-piece {
  background-color: #00000000;
}

*::-webkit-scrollbar-thumb {
  background-color: #00000000;
  border: 5px solid transparent;
  border-radius: 24px;
  box-shadow: 4px 0px 0px 4px #00000040 inset;
}

a {
  text-decoration: none;
  font-size: 1.1rem;
  text-align: center;
}

main {
  overflow-x: hidden;
  background-image: url("slike/Tiskara-1.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

main::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(
    to left,
    #fff 150px,
    rgba(255, 255, 255, 0.844) 20%
  );
}

.snapcontainer {
  max-height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.snapcontainer::-webkit-scrollbar {
  width: 0px;
}

.snapdijete {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Staatliches", cursive;
}

p,
a,
code {
  font-family: Lexend, sans-serif;
  font-weight: 300;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  color: #252525;
  font-size: 2rem;
  padding: 0 25px;
  width: fit-content;
  position: relative;
}

h3 {
  font-size: 1.5rem;
  text-align: center;
  cursor: pointer;
}
h4 {
  font-size: 1rem;
}

section > h2 {
  text-align: center;
  margin: 0 auto;
}

.logofirme {
  width: 250px;
}

p {
  line-height: 1.5;
  font-size: 1.1rem;
}
.none {
  display: none;
}
.selected {
  color: #0096db;
}

/*header.snapdijete a {
  color: transparent;
}

header.snapdijete nav {
  background: transparent !important;
}*/

.heromenu {
  position: absolute;
  z-index: 2;
  width: 50px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  top: 25vh;
}

.heromenu ul {
  padding: 25px 0;
  width: 7px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
  margin-left: 20px;
}

.heromenu ul li {
  list-style-type: none;
  background: #fff;
  margin-bottom: 30px !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0px 0px 7px #0000005e;
  pointer-events: none;
}

.heromenu ul li a {
  display: block;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.heromenu ul li a img {
  width: 75%;
  margin: 0 auto;
  transition: 0.35s ease, filter 0s;
}

.heromenu ul li a:hover img {
  width: 55%;
}

.heromenu ul li:first-of-type a:hover img {
  filter: invert(48%) sepia(95%) saturate(2506%) hue-rotate(165deg)
    brightness(102%) contrast(102%) drop-shadow(0 0 1px #00aeef);
}

.heromenu ul li:nth-of-type(2) a:hover img {
  filter: invert(15%) sepia(78%) saturate(5667%) hue-rotate(314deg)
    brightness(91%) contrast(108%) drop-shadow(0 0 1px #ec008c);
}

.heromenu ul li:nth-of-type(3) a:hover img {
  filter: invert(80%) sepia(95%) saturate(399%) hue-rotate(349deg)
    brightness(95%) contrast(94%) drop-shadow(0 0 1px #fff200);
}

.heromenu ul li:nth-of-type(4) a:hover img {
  filter: drop-shadow(0 0 1px #252525);
}

.fixed {
  position: fixed;
  top: 0;
  left: 0;
}

nav {
  background: #00aeef;
}

nav div {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  width: 80%;
  margin: auto;
  align-items: center;
}
#menu {
  display: none;
}

.hero {
  text-align: center;
  background-image: url(slike/Tiskara-1.webp);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: 2;
  position: relative;
  height: calc(100vh);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

.centar {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/*.hero:last-of-type {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: sticky;
  bottom: 0;
  z-index: -1;
  margin-top: 100vh;
}*/

.hero:before {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: #00aeef;
  opacity: 0.85;
}

#izradaPecata {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  flex-direction: column;
  position: relative;
}

#izradaPecata::before {
  content: "";
  position: absolute;
  width: 85%;
  height: calc(50vh + 8px);
  background: transparent;
  border: 7px solid #fff;
  display: block;
  top: 7.5%;
  left: -5px;
  border-right: unset;
  border-bottom: unset;
  border-top-left-radius: 85px;
}

#tiskara {
  width: 100%;
  height: 85%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  color: #fff;
  background: #180302b0;
  border-top-right-radius: 85px;
  border-bottom-right-radius: 85px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

#tiskara::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 50vh;
  background: transparent;
  border: 7px solid #fff;
  display: block;
  bottom: 0;
  right: -2px;
  border-left: unset;
  border-top: unset;
  border-bottom-right-radius: 85px;
}

#tiskara p,
#izradaPecata p {
  padding: 0 50px;
}

#tiskara .tekst,
#izradaPecata .tekst {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  height: 30vh;
  padding: 0 5%;
}

.hero p,
.hero h1 {
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}
.hero img {
  width: 250px;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.35));
}

#izradaPecata img {
  height: 250px;
  width: initial;
}

nav.glavni {
  width: 80px;
  position: absolute;
  top: calc((100vh - 434px) / 2);
  right: 0;
  padding: 70px 0px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  background: #252525;
  z-index: 0;
}

nav ul {
  padding-left: 23px;
}

nav.glavni .tekst {
  display: block;
  color: #fff;
  transform: rotate(90deg) translateX(0px) translateY(-50px);
  transform-origin: center;
  font-family: "Staatliches";
  width: 70px;
  position: absolute;
  transition: 0.3s ease;
}

nav.glavni a {
  display: flex;
}

nav.glavni a .ikona {
  transition: 0.3s;
}

nav.glavni li.aktivna a .ikona {
  transform: translateX(-55px);
}

nav.glavni li {
  list-style-type: none;
  margin-bottom: 50px;
}

nav.glavni li:last-of-type {
  margin-bottom: unset;
}

nav.glavni img {
  width: 30px;
  filter: invert(1);
}

nav .oznaka {
  position: absolute;
  left: -60px;
  height: 70px;
  width: 70px;
  background: #fff;
  border-radius: 50%;
  top: 41px;
  z-index: -1;
  border: 10px solid #fff;
  box-sizing: content-box;
  transition: 0.3s ease;
  transform: translateY(-125px);
}

nav .oznaka:before {
  content: "";
  position: absolute;
  left: 50px;
  top: -19.5px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-left-radius: 20px;
  box-shadow: -10px 0px 0 0 #fff;
}

nav .oznaka:after {
  content: "";
  position: absolute;
  left: 50px;
  bottom: -19.5px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-left-radius: 20px;
  box-shadow: -10px 0px 0 0 #fff;
}

nav ul li.aktivna a .tekst {
  transform: rotate(90deg) translateX(0px) translateY(7px);
}

nav ul li:nth-child(1).aktivna ~ .oznaka {
  transform: translateY(calc(84px * 0));
  background: #00aeef;
}

nav ul li.aktivna img {
  filter: drop-shadow(0 0 2px #000) invert(1);
}

nav ul li:nth-child(2).aktivna ~ .oznaka {
  transform: translateY(calc(84px * 1));
  background: #ec008c;
}

nav ul li:nth-child(3).aktivna ~ .oznaka {
  transform: translateY(calc(84px * 2));
  background: #fff200;
}

nav ul li:nth-child(3).aktivna img {
  filter: unset;
}

nav ul li:nth-child(4).aktivna ~ .oznaka {
  transform: translateY(calc(84px * 3));
  background: #231f20;
}

#onama {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  overflow-x: hidden;
  min-height: calc(100vh);
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 25;
}

#onama p {
  text-align: justify;
}

.divider {
  width: 100vw;
}

#onama > div {
  display: grid;
  grid-auto-flow: column;
  column-gap: 50px;
  padding: 20px 0;
  justify-items: center;
  align-items: center;
}

#onama h2 {
  color: #00aeef;
  padding: 25px 25px 25px 0;
  position: relative;
  width: fit-content;
  background: transparent;
}

#onama h2:before {
  content: "";
  display: block;
  position: absolute;
  width: 100vw;
  height: 3px;
  background: #00aeef;
  top: 50px;
  z-index: -1;
  left: 272px;
}

#onama p {
  padding: 40px 40px 0 0;
  margin-top: -15px;
  border-right: 3px solid #00aeef;
}

#pecat p {
  padding: 0px 0 40px 40px;
  margin-top: unset;
  margin-bottom: -50px;
  border-left: 3px solid #b51f1f;
  border-right: none;
  text-align-last: right;
  z-index: 2;
}

#pecat {
  display: flex;
  flex-direction: column;
  align-items: self-end;
  overflow: hidden;
}

#pecat h2 {
  text-align: right;
  color: #b51f1f !important;
  padding: 40px 0 25px 25px;
}

#onama h2,
#pecat h2 {
  padding-bottom: 0;
}

#pecat h2:before {
  content: "";
  display: block;
  position: absolute;
  width: 100vw;
  left: -100vw;
  height: 3px;
  background: #b51f1f;
  top: 50px;
  z-index: -1;
}

#usluge h4 {
  width: 90%;
  text-align: center;
  margin: auto;
}

#usluge,
#kontakt,
#galerija,
#onama {
  min-height: 100vh;
  align-content: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

.galerija {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.galerija figure {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

.galerija figure:hover:before {
  transform: scale(1);
}

.galerija figure:hover:after {
  opacity: 1;
}

.galerija img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 2;
  transition: 0.2s ease-in;
}

.galerija figure:before {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background: #00aeef;
  opacity: 0.75;
  transform: scale(0);
  transition: 0.2s ease-in;
}

.galerija figure:after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: 0.25s ease-in;
  font-size: 4em;
  color: #fff;
}

#kontakt {
  padding-bottom: 1px;
}

#hero {
  padding-top: 1px;
}

#usluge p,
#galerija p {
  padding-bottom: 25px !important;
  text-align: justify;
  text-align-last: center;
  padding: 0 40px;
}

p {
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

#usluge p:first-of-type {
  margin-top: -60px;
  padding-top: 50px;
}

#usluge h2,
#galerija h2 {
  margin-bottom: 20px;
}

#kontakt h2 {
  border-bottom: 3px solid;
  margin-bottom: 10px;
  padding: 0 0 5px 0;
  display: block;
  width: 100%;
  text-align: left;
}
.kontaktprvi {
  text-align: left;
  padding: 0 0 35px 0;
}

#kontakt > div {
  display: flex;
  width: 85%;
  justify-content: center;
  padding: 20px 0;
  z-index: 1;
}
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #180302b0;
  padding: 50px;
  width: 50%;
  border-radius: 0 40px 40px 0;
}

textarea {
  margin-top: 40px;
}

label {
  display: none;
}

form input {
  width: 100%;
  padding: 25px 15px;
  box-sizing: border-box;
  background: transparent;
  border: unset;
  border-bottom: 3px solid #fff;
}

img.ikona {
  width: 20px;
  margin-right: 20px;
}

div.info {
  display: flex;
}

.mailadresa {
  unicode-bidi: bidi-override;
  direction: rtl;
  user-select: none;
  pointer-events: none;
}

.kontaktinfo p a {
  color: #000;
}

.mailadresa::before {
  content: "moc.li";
}

div.info:not(:last-child) {
  margin-bottom: 25px;
}

.kontaktinfo p {
  text-align: left;
  color: #000;
}

.kontaktinfo {
  background-color: #ffffffb0;
  padding: 0 55px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 40px 0 0 40px;
  margin-right: 10px;
  width: 25%;
}

iframe {
  display: block;
  margin: auto;
}

footer {
  text-align: center;
  margin: 50px;
}
footer a {
  color: #0096db;
}

@media only screen and (max-width: 1000px) {
  .hero {
    flex-direction: column;
height: calc(100vh - 80px);
  }

#pecat p {margin-bottom: 0 !important;}
#usluge, #kontakt, #galerija, #onama {min-height: unset !important; margin-bottom: 80px !important;}

#kontakt {margin-bottom: 0 !important;}

  #lightbox-image {
    margin: 10px !important;
  }

  #lightbox {
    flex-direction: column;
    justify-content: center;
  }

  #lightbox button {
    margin: 0 !important;
  }

  #onama {
    margin-top: 50px;
  }

  nav ul li:nth-child(1).aktivna {
    filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(3540%)
      hue-rotate(164deg) brightness(101%) contrast(101%);
  }

  nav ul li:nth-child(2).aktivna {
    filter: brightness(0) saturate(100%) invert(17%) sepia(96%) saturate(6144%)
      hue-rotate(315deg) brightness(92%) contrast(107%);
  }

  nav ul li:nth-child(3).aktivna {
    filter: brightness(0) saturate(100%) invert(78%) sepia(86%) saturate(1018%)
      hue-rotate(359deg) brightness(106%) contrast(108%);
  }

  .snapcontainer {
    max-height: unset;
    overflow-y: scroll;
    scroll-snap-type: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  main::before {
    position: fixed;
    background: rgba(255, 255, 255, 0.844);
  }

  .heromenu {
    display: none;
  }

  .hero:first-of-type img {
    width: 120px;
    display: none;
  }
  #izradaPecata img {
    height: 120px;
  }

  #tiskara {
    height: calc(100% + 5px);
    margin-top: -5px;
    border-top-right-radius: 0;
  }

  #onama > div {
    display: flex;
  }

  nav ul {
    display: flex;
    padding-left: unset;
    justify-content: space-around;
    padding: 10px 20px;
  }

  nav .oznaka {
    display: none;
  }

  nav.glavni li.aktivna a .ikona {
    transform: scale(1.15);
  }

  nav.glavni .tekst {
    display: none;
  }

  nav.glavni {
    width: 100vw;
    height: 80px;
    position: fixed;
    z-index: 100 !important;
    bottom: -1px;
    right: 0;
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    top: unset;
    right: unset;
  }

  #pecat h2:before,
  #onama h2:before {
    content: none;
  }

  #pecat h2,
  #onama h2 {
    text-align: center;
    display: block;
    width: 100%;
  }

  #pecat p,
  #onama p {
    padding: 0 40px;
    border: none;
    text-align-last: center;
    margin-top: 15px;
  }

  .pecati-flex {
    flex-direction: column-reverse !important;
  }

  .pecati-flex #pecat {
    flex-direction: column-reverse !important;
  }

  .galerija figure {
    aspect-ratio: initial;
  }

  .galerija {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px;
    padding: 0 40px;
    margin-bottom: 100px;
  }

  .kontaktinfo {
    width: initial;
    border-radius: 0;
    padding: 40px 20px;
    margin-right: 0;
    background: transparent;
  }

  #kontakt h2,
  #kontakt p {
    text-align: center !important;
  }

  .kontaktinfo * {
    color: #fff !important;
  }

  .kontaktinfo img {
    filter: invert(1);
  }

  #kontakt > div {
    width: 100% !important;
    padding: 0;
  }

  #kontakt {
    height: initial !important;
    padding-bottom: 75px;
    min-height: unset;
  }

  form {
    width: initial;
    border-radius: 0;
    padding: 20px 20px 50px 20px;
  }

  h1 {
    font-size: 2rem;
  }
  p {
    font-size: 1rem;
  }

  #tiskara::after {
    background: #180302b0;
    content: "";
    display: block;
    position: absolute;
    width: 49px;
    height: 120px;
    bottom: -80px;
    left: 0;
    -webkit-mask-image: radial-gradient(
      circle,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 1) 50%
    );
    mask-image: radial-gradient(
      circle,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 1) 50%
    );
    mask-repeat: no-repeat;
    mask-position: 50px;
    -webkit-mask-position: -30px 40px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 170px;
    mask-size: 170px;
  }

  #tiskara::before {
    bottom: 1px;
    right: -2px;
    width: 60%;
  }

  #izradaPecata::before {
    width: 60%;
    top: -8px;
    left: 0px;
  }

  #onama > div {
    flex-direction: column;
  }
  #galerija div:first-of-type {
    grid-template-columns: auto;
  }
  #kontakt > div {
    flex-direction: column;
  }
  form div {
    width: 100%;
    flex-direction: column;
    justify-content: initial;
  }
  nav div {
    width: 100%;
    flex-direction: column;
    justify-content: initial;
    height: 0px;
    overflow: hidden;
    transition: 0.7s;
  }
  nav a {
    padding: 15px 0;
  }
  #menu {
    display: block;
  }
  #usluge > div {
    width: 90%;
  }
  #galerija-prvo {
    display: none;
  }
}

/*animacija*/
.slideanim {
  visibility: hidden;
  visibility: visible\9; /*For old IE browsers IE6-8 */
}
.slideanim.slide {
  visibility: visible;
  animation: slide 1s;
}

.slideanim.slide.slijeva {
  animation: slideSlijeva 1s;
}

.slideanim.slide.premagore {
  animation: slidePremagore 1s;
}

@keyframes slide {
  0% {
    opacity: 0;
    transform: translateX(50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideSlijeva {
  0% {
    opacity: 0;
    transform: translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slidePremagore {
  0% {
    opacity: 0;
    transform: translateY(50%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  z-index: 999;
  align-items: center;
}

#lightbox-image {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  border-radius: 5%;
}

.close {
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
}

#lightbox button {
  display: block;
  height: 60px;
  aspect-ratio: 1;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease-in;
}

#lightbox-button:hover {
  transform: scale(0.9);
}

#prev-button {
  margin-left: 25px;
}

#next-button {
  margin-right: 25px;
}

::placeholder {
  font-family: lexend;
  color: #8c8c8c;
}

form input {
  color: #fff;
  font-family: lexend;
}

textarea {
  color: #000;
  font-family: lexend;
  padding: 10px;
  border: none;
  border-radius: 10px 10px 0 0;
}

form .slanje {
  font-family: "Lexend";
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.2em;
  background: #fdf251;
  border: none;
  margin-top: 5px;
  border-radius: 0 0 10px 10px;
  padding: 15px;
  cursor: pointer;
  color: #000;
}

.telephone {
  display: none;
}
