.linear {
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  margin: auto;
  margin-bottom: 40px;
  margin-top: 65px;
}
.linear:after {
  content: "";
  z-index: 2;
  background: linear-gradient(90deg, transparent);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.slides {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slide {
  position: absolute;
  height: 100%;
  opacity: 0;
  inset: 0;
  animation: slide-show 12s infinite;
}

.slide-2 {
  animation-delay: 4s;
}

.slide-3 {
  animation-delay: 8s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes slide-show {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20%,
  30% {
    opacity: 1;
    scale: 1.03;
  }
  50% {
    opacity: 0;
  }
}

.first-title {
  color: #333;
  font-size: 1.5em;
  font-weight: 300;
  border-bottom: 4px solid rgb(118, 151, 190);
  position: absolute;
  top: 50px;
  right: 40px;
}

.first-title p {
  padding: 15px 20px;
  font-family: inherit;
}
/*Naslovi za slajd u donjem desnom uglu*/
.alu-title {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -60%);
  font-size: 5em;
  color: #fff;
  width: 70%;
  text-align: end;
  font-family: inherit;
}

.container-fasade {
  width: 90%;
  height: 100%;
  position: relative;
  display: flex;
  background-image: linear-gradient(
      rgba(240, 239, 239, 0.9),
      rgba(240, 239, 239, 0.9)
    ),
    url(../img/AlucoBondFasade.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  margin-bottom: 2em;
  overflow: hidden;
}

.container-uniform {
  width: 90%;
  height: 100%;
  position: relative;
  display: flex;
  background-image: linear-gradient(
      90deg,
      rgba(240, 239, 239, 0.9),
      rgba(255, 255, 255, 1)
    ),
    url(../img/Uniform_theWM-4.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  overflow: hidden;
}

.container-fasade .left-img {
  width: 50%;
  background: url(../img/AlucoBondFasade.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.5s;
}

.container-uniform .right-img {
  width: 50%;
  background: url(../img/uniform.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.5s;
}

.container-uniform .right-img:hover,
.container-fasade .left-img:hover {
  transform: scale(1.1);
}

.container-usluge .left-text,
.container-uniform .left-text,
.container-fasade .right-text {
  width: 50%;
  padding: 70px;
}

.container-usluge .left-text p,
.container-uniform .left-text p,
.container-fasade .right-text p {
  color: #333;
  line-height: 1.7em;
  text-align: justify;
}

.cumulative {
  width: 90%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 2em;
  column-gap: 2em;
  margin: auto;
  margin-top: 2em;
}

.prozori {
  width: 100%;
  height: 350px;
  background: linear-gradient(
      90deg,
      rgba(128, 114, 92, 0.5),
      rgba(240, 239, 239, 0.3)
    ),
    url(../img/prozori.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  overflow: hidden;
  transition: transform 0.5s, box-shadow 0.5s;
}

.vrata {
  width: 100%;
  height: 350px;
  background: linear-gradient(
      90deg,
      rgba(128, 114, 92, 0.5),
      rgba(240, 239, 239, 0.3)
    ),
    url(../img/vrata.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  overflow: hidden;
  transition: transform 0.5s, box-shadow 0.5s;
}

.alu {
  width: 100%;
  height: 350px;
  background: linear-gradient(
      90deg,
      rgba(128, 114, 92, 0.5),
      rgba(240, 239, 239, 0.3)
    ),
    url(../img/aluminijum.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  overflow: hidden;
  transition: transform 0.5s, box-shadow 0.5s;
}

.inox {
  width: 100%;
  height: 350px;
  background: linear-gradient(
      90deg,
      rgba(128, 114, 92, 0.5),
      rgba(240, 239, 239, 0.3)
    ),
    url(../img/inoks.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  overflow: hidden;
  transition: transform 0.5s, box-shadow 0.5s;
}

.prozori:hover,
.vrata:hover,
.alu:hover,
.inox:hover {
  transform: scale(1.05);
  box-shadow: 10px 10px 20px rgba(133, 133, 133, 0.5);
}

.prozori,
.vrata,
.alu,
.inox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-usluge {
  width: 90%;
  height: 100%;
  position: relative;
  display: flex;
  background-image: linear-gradient(
      90deg,
      rgba(240, 239, 239, 0.8),
      rgba(240, 239, 239, 0.9),
      rgba(255, 255, 255, 1)
    ),
    url(../img/front-hladna.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  overflow: hidden;
}

.container-usluge .right-img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 50%;
}

.container-usluge .right-img a button {
  margin: 5px;
  min-width: 25em;
}

@media (max-width: 1354px) {
  .first-title {
    font-size: 1em;
  }

  /*Naslovi za slajd u donjem desnom uglu*/
  .alu-title {
    font-size: 4em;
  }
}

@media (max-width: 991px) {
  .first-title {
    font-size: 1em;
  }

  /*Naslovi za slajd u donjem desnom uglu*/
  .alu-title {
    font-size: 3em;
  }
}

@media (max-width: 996px) {
  .container-fasade,
  .container-uniform,
  .cumulative,
  .container-usluge,
  .linear {
    width: 100%;
  }

  .container-usluge .right-img,
  .container-uniform .right-img,
  .container-fasade .left-img {
    display: none;
  }
}

@media (max-width: 767px) {
  .container-usluge .left-text,
  .container-uniform .left-text,
  .container-fasade .right-text {
    width: 100%;
    padding: 30px;
  }
}

@media (max-width: 551px) {
  .cumulative {
    grid-template-columns: auto;
    row-gap: 2em;
  }
}

@media (max-width: 491px) {
  .first-title {
    font-size: 1em;
  }

  /*Naslovi za slajd u donjem desnom uglu*/
  .alu-title {
    font-size: 2em;
  }
}
