.grid {
  display: grid;
  grid-template-columns: 60% 40%;
  grid-gap: 10px 0;
}

h1 {
  text-align: center;
}

p {
  margin: 0 0 10px;
  font-size: 1em;
}

ul,
ol {
  padding: 20px;
}

.fixStrana {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
}

.scrollStrana {
  width: 100%;
  height: 300px;
  float: left;
}

.inLine {
  display: inline-table;
}

/* Okvir */

.border {
  border: 4px solid;
  padding: 1rem;
  margin: 1rem 0;
}

.card {
  border-radius: 20px;
  background-color: #f4f4f4;
  padding: 10px 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.sides {
  border-image: linear-gradient(to left, #0f49a1, rgb(173, 174, 230)) 1 0;
}

/* Slike  */

.sliderShow {
  margin: 1rem auto;
  width: 600px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  background-color: #f4f4f4;
  padding: 10px;
  transition: 0.3s;
}

.slider1 {
  max-width: 600px;
  height: 400px;
  background: url(/img/682_gal.jpg);
  background-size: cover;
  /* animation: slide 30s infinite; */
  -webkit-animation-name: slide;
  -webkit-animation-duration: 30s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  -webkit-animation-timing-function: steps(1, end);
}

@keyframes slide {
  0% {
    background: url(./img/684_gal.jpg);
    background-size: cover;
  }
  16.6% {
    background: url(./img/686_gal.jpg);
    background-size: cover;
  }
  33.2% {
    background: url(./img/688_gal.jpg);
    background-size: cover;
  }
  49.8% {
    background: url(./img/690_gal.jpg);
    background-size: cover;
  }
  66.46% {
    background: url(./img/692_gal.jpg);
    background-size: cover;
  }
  83% {
    background: url(./img/694_gal.jpg);
    background-size: cover;
  }
  100% {
    background: url(./img/696_gal.jpg);
    background-size: cover;
  }
}

.slider2 {
  max-width: 600px;
  height: 400px;
  background: url(/img/682_gal.jpg);
  background-size: cover;
  animation: slide2 30s infinite;
}

@keyframes slide2 {
  0% {
    background: url(./img/683_gal.jpg);
    background-size: cover;
  }
  16.6% {
    background: url(./img/685_gal.jpg);
    background-size: cover;
  }
  33.2% {
    background: url(./img/687_gal.jpg);
    background-size: cover;
  }
  49.8% {
    background: url(./img/689_gal.jpg);
    background-size: cover;
  }
  66.46% {
    background: url(./img/691_gal.jpg);
    background-size: cover;
  }
  83% {
    background: url(./img/693_gal.jpg);
    background-size: cover;
  }
  100% {
    background: url(./img/695_gal.jpg);
    background-size: cover;
  }
}

/* Media query */

@media only screen and (max-width: 576px) {
  p,
  ul,
  li {
    font-size: 0.1em;
  }

  .fixStrana {
    position: relative;
    max-width: 100%;
    height: auto;
  }

  .scrollStrana {
    width: 100%;
    word-break: break-all;
  }

  .inLine {
    display: contents;
  }
  .sliderShow {
    margin: 25px auto;
    width: 250px;
    height: 150px;
    padding: 5px;
  }

  .slider1 {
    max-width: 250px;
    height: 150px;
  }
  .slider2 {
    max-width: 250px;
    height: 150px;
  }
}

@media only screen and (max-width: 768px) {
  p,
  ul,
  li {
    font-size: 0.1em;
  }
  .fixStrana {
    position: relative;
    max-width: 100%;
    height: auto;
  }

  .scrollStrana {
    width: 100%;
    word-break: break-all;
  }
  .inLine {
    display: contents;
  }
}

@media only screen and (max-width: 992px) {
  p,
  ul,
  li {
    font-size: 1em;
  }
  .fixStrana {
    position: relative;
    max-width: 100%;
    height: auto;
  }

  .scrollStrana {
    width: 100%;
    word-break: break-all;
  }
  .inLine {
    display: contents;
  }
}

@media only screen and (max-width: 1200px) {
  p,
  ul,
  li {
    font-size: 1em;
  }
  .fixStrana {
    position: relative;
    max-width: 100%;
    height: auto;
  }

  .scrollStrana {
    width: 100%;
    word-break: break-all;
  }
  .inLine {
    display: contents;
  }
}
