*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  /* font-optical-sizing: none; */
  font-style: normal;
  font-weight: 400;
  background-color: #f4f4f4;
  letter-spacing: 0;
  overflow-y: scroll;
}

a {
  color: #10375c;
  text-decoration: none;
}

h1 {
  color: #10375c;
  font-size: 3rem;
  padding: 4rem 0rem 1rem 0rem;
}

h2 {
  color: #10375c;
  font-size: 2rem;
  padding: 2rem 1rem 2rem 1rem;
}

h3 {
  padding: 1rem 0;
  font-size: 1rem;
}

p {
  font-size: 0.875rem;
  line-height: 1.4rem;
}

/* header */

.active {
  background-color: #f4f4f4;
}

.header {
  background-color: #fff;
  box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 3;
}

.header ul {
  background-color: #fff;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.header li a {
  display: block;
  padding: 20px 20px;
  border-right: 1px solid #f4f4f4;
  text-decoration: none;
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: #f1f1f1;
}

.header #logo {
  display: block;
  float: left;
  margin: 15px 20px;
  text-decoration: none;
  /* max-height: 60px; */
  max-width: 220px;
}

/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: 0.5s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: #10375c;
  display: block;
  height: 2px;
  position: relative;
  transition: 0.2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #10375c;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 4px;
}

.header .menu-icon .navicon:after {
  top: -4px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* top-spacer */
.space {
  padding-top: 4rem;
}

.space p {
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
/* banner */
.banner {
  text-align: center;
  color: #f4f4f4;
  box-shadow: 0 1.2rem 2rem 0 rgba(172, 172, 172, 0.2);
}

.banner-img {
  /* background-image: url(imgs/grdj3.jpeg); */
  background-image: url(imgs/gradjevinski-kontejneri-gradiliste.jpeg);
  min-height: 70vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner-layer {
  width: 100%;
  min-height: 70vh;
  background-color: rgba(69, 71, 75, 0.85);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.banner-layer h1,
.banner-layer h2 {
  color: #f4f4f4;
}

.about-layer h1,
.about-layer h2 {
  color: #f4f4f4;
}

.cta {
  margin-top: auto;
  margin-bottom: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(to bottom left, #eb8317 40%, #eb8317 100%);
  /* background: linear-gradient(to bottom left, #2bb84c 40%, #0d8d2b 100%); */
}

.cta:hover {
  background: #10375c;
}

.cta a {
  color: #f4f4f4;
  font-weight: 600;
}

/* about */

.about-img {
  min-height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(imgs/gradjevinski-kontejner-soba-za-sastanak.jpeg);
}

.about-layer {
  background-color: rgba(69, 71, 75, 0.85);
  width: 100%;
  min-height: 300px;
  color: #f4f4f4;
}

.banner-height {
  min-height: 80vh;
}

/* icons */
.about-layer i {
  background-color: #eb8317;
  /* background-color: #2bb84c; */
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
}

.about-layer h2 {
  padding: 3rem 0rem 1rem 0rem;
}

.flex-about {
  display: flex;
  text-align: center;
  justify-content: center;
  height: 100%;
  align-items: center;
  /* margin-right: 3rem; */
}

.flex-about p {
  padding: 0 1rem;
}

.flex-about > div {
  padding: 3rem 0 5rem 0;
  max-width: 425px;
}

/* visina kartice u zavisnosti od teksta */
.item-height {
  margin-bottom: auto;
}

.item-width {
  margin: auto;
}

/* usluge */
.width {
  max-width: 1200px;
  margin: auto;
  padding-bottom: 2rem;
}

.width h2 {
  text-align: center;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

video {
  /* height: 100%; */
  max-width: 100%;
  vertical-align: middle;
  margin: 0 auto;
}

.btnc {
  color: #fff;
  padding: 0.8rem;
  text-transform: uppercase;
  border-radius: 0.25rem;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  /* background: linear-gradient(to bottom left, #eb8317 40%, #eb8317 100%); */
  /* background: linear-gradient(to bottom left, #19558d 40%, #10375c 100%); */
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
}

.btnc:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.card_content a {
  margin-top: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
  display: flex;
  padding: 1rem;
  width: 33.3%;
}

.card {
  /* background-color: white; */
  background: linear-gradient(to bottom left, #19558d 40%, #10375c 100%);
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  color: #fff;
}

.card_content {
  padding: 1rem;
  background: linear-gradient(to bottom left, #19558d 40%, #10375c 100%);
  /* background: linear-gradient(to bottom, #ffffff 80%, #f0f0f0 100%); */
  /* background: linear-gradient(to bottom left, #2bb84c 40%, #0d8d2b 100%); */
  height: 100%;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
}

.card p {
  margin-bottom: 2rem;
}

#more {
  display: none;
}

/* Kontakt */

.card_contact {
  padding: 1rem;
  /* background: linear-gradient(to bottom left, #2bb84c 40%, #0d8d2b 100%); */
  /* background: linear-gradient(to bottom, #ffffff 95%, #f0f0f0 100%); */
  background: linear-gradient(to bottom left, #19558d 40%, #10375c 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* color: #333; */
  color: #f4f6ff;
}

.card_contact a {
  width: 100%;
}

.cards i {
  /* background-color: #28a745; */
  background-color: #eb8317;
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  margin: 15px 0;
}

.blck {
  color: #fff;
  /* background: linear-gradient(to bottom left, #2bb84c 40%, #0d8d2b 100%); */
  background: linear-gradient(to bottom left, #eb8317 40%, #eb8317 100%);
}
/* gallery */

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.no-space {
  padding: 0;
}

.wrapper {
  display: flex;
  max-width: 1200px;
  margin: 1rem;
  position: relative;
}

.grid {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  position: relative;
}

.grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.grid img {
  border-radius: 0.5rem;
  padding: 4px;
  min-height: 100%; /*dok se ne urade slike*/
}

.wrapper i {
  top: 50%;
  height: 44px;
  width: 44px;
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  position: absolute;
  text-align: center;
  line-height: 44px;
  background: #10375c;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}
.wrapper i:active {
  transform: translateY(-50%) scale(0.9);
}
.wrapper i:hover {
  background: #10375c;
}
.wrapper i:first-child {
  left: -10px;
}
.wrapper i:last-child {
  right: -10px;
}
.wrapper .carousel {
  font-size: 0px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  scroll-behavior: smooth;
}

.carousel {
  /* -ms-overflow-style: none; IE and Edge */
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overflow-x: scroll;
}

/* .carousel::-webkit-scrollbar {
  display: none;
  Hide scrollbar for Chrome, Safari and Opera
} */

.carousel.dragging {
  cursor: grab;
  scroll-behavior: auto;
}
.carousel.dragging img {
  pointer-events: none;
  scroll-snap-align: start;
}
.carousel img {
  height: 340px;
  object-fit: cover;
  user-select: none;
  padding: 0.25rem 0.25rem;
  border-radius: 0.5rem;
  width: calc(100% / 3);
  scroll-snap-align: start;
}
.carousel img:first-child {
  margin-left: 0px;
}

.popularno {
  display: flex;
  align-content: center;
  background-color: #28a745;
  border-radius: 0.25rem;
  margin: 1rem;
}

.popularno2 {
  display: flex;
  align-content: center;
  background-color: #28a745;
  border-radius: 0.25rem;
  margin: 1rem;
}

.popularno_card {
  background-color: white;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  width: 100%;
  color: #fff;
}

.popularno2 .popularno_card {
  flex-direction: row-reverse;
}

.popularno_card .card_content {
  width: 50%;
}

.popularno_card .card_text {
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 20vh;
  /* background: #333; */
  background: #10375c;
  color: #fff;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #eb8317;
  /* color: #2bb84c; */
}

.social {
  padding: 1rem 0;
}

.social a {
  margin: 0 1rem;
}

.footer-space {
  padding-bottom: 3rem;
}

/* cta bottom */

.cta-bottom {
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  width: 100%;
  cursor: pointer;
  background: linear-gradient(to bottom left, #eb8317 40%, #eb8317 100%);
  /* background: linear-gradient(to bottom left, #2bb84c 40%, #0d8d2b 100%); */
}

.cta-bottom a {
  color: #ffffff;
  font-weight: 600;
}

.cta-bottom:hover {
  background: #10375c;
}

/* Top */
.space {
  padding-top: 58px;
  text-align: center;
}

/* Whatsapp button */

#whatsapp .wtsapp:focus {
  border: 0;
  outline: 0;
}

#whatsapp .wtsapp {
  position: fixed;
  bottom: 10%;
  right: 24px;
  transition: all 0.5s ease;
  background: #25d366;
  display: block;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  border-right: 0;
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  border: 0;
  z-index: 2;
  width: 60px;
  height: 60px;
  line-height: 60px;
}

#whatsapp .wtsapp:before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  /* -webkit-animation: pulse-border 1500ms ease-out infinite; */
  animation: pulse-border 1500ms ease-out infinite;
}

/* Viber button */

#viber .vib:focus {
  border: 0;
  outline: 0;
}

#viber .vib {
  position: fixed;
  bottom: 22%;
  right: 24px;
  transition: all 0.5s ease;
  background: #7360f2;
  display: block;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
  border-right: 0;
  color: #fff;
  font-weight: 700;
  font-size: 35px;
  border: 0;
  z-index: 2;
  width: 60px;
  height: 60px;
  line-height: 60px;
}

#viber .vib:before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 60px;
  height: 60px;
  background: #7360f2;
  border-radius: 50%;
  /* -webkit-animation: pulse-border 1500ms ease-out infinite; */
  animation: pulse-border 1500ms ease-out infinite;
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

/* header media querry */

@media (min-width: 980px) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }
}

@media (max-width: 980px) {
  .header .menu-btn:checked ~ ul {
    padding-bottom: 100vh;
  }
  #mob {
    display: none;
  }
}

/* -1230 */
@media (max-width: 1230px) {
  /* Homepage banner*/
  .banner-img {
    min-height: 60vh;
    /* background-image: url(imgs/grdj1-galerija.jpeg); */
    background-image: url(imgs/gradjevinski-kontejneri-gradiliste.jpeg);
    background-attachment: unset;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .banner-layer {
    min-height: 60vh;
  }
  /* About section */
  .flex-about {
    flex-direction: column;
    margin-right: auto;
  }
  .flex-about > div {
    max-width: 100%;
    padding: 2rem 0 3rem 0;
  }
  .about-img {
    min-height: 80vh;
    background-attachment: unset;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .about-layer {
    min-height: 80vh;
  }
  /* Gallery */
  .carousel img {
    width: calc(100% / 2);
  }
  /* Usluge */
  .cards_item {
    width: 50%;
  }
}

/* -1080 */
@media (max-width: 1080px) {
  /* Gallery */
  .carousel img {
    width: 100%;
  }
  /* Usluge */
  .cards_item {
    width: 100%;
  }
  .popularno_card,
  .popularno2 .popularno_card {
    flex-direction: column;
  }
  .popularno_card .card_content {
    width: 100%;
  }
}

@media (min-width: 679px) {
  #viber {
    display: none;
  }
}
