/* The actual timeline (the vertical ruler) */
.main-timeline {
  position: relative;
}

/* The actual timeline (the vertical ruler) */
.main-timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #939597;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.timeline {
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.timeline::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background-color: #939597;
  border: 5px solid #ffffff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  padding: 0px 40px 20px 0px;
  left: 0;
}

/* Place the container to the right */
.right {
  padding: 0px 0px 20px 40px;
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -12px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  /* Place the timelime to the left */
  .main-timeline::after {
    left: 31px;
  }

  /* Full-width containers */
  .timeline {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .timeline::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after,
  .right::after {
    left: 18px;
  }

  .left::before {
    right: auto;
  }

  /* Make all right containers behave like the left ones */
  .right {
    left: 0%;
  }
}

.card-body{
    color: black!important;
  }

textarea{
    resize: none;
}

.mreze1{
  padding: 0;
  margin:0 auto;
  list-style: none;
  width: 195px;
  height: 65px;
}

.mreze1 li{
  padding: 5px;
  float: left;
  text-align: center;
  min-width: 50px;
}

.mreze1 li a{
  color: white;
  display: block;
}

.mreze1 li a img{
  padding: 10px;
  border:1px solid white;
  border-radius: 99rem;
}

.mreze2{
  padding: 0;
  margin:0 auto;
  list-style: none;
  width: 206px;
  height: 65px;
}

.mreze2 li{
  padding: 5px;
  float: left;
  text-align: center;
  min-width: 50px;
}

.mreze2 li a{
  color: white;
  display: block;
}

.mreze2 li a img{
  padding: 10px;
  border:1px solid white;
  border-radius: 99rem;
}

.important{
  font-weight: bold;
}

.important::before{
  content:" - - - ";
  color: rgb(168, 168, 3);
}

.important::after{
  content:" - - - ";
  color: rgb(168, 168, 3);
}

.bg1{
  background-image: url("slike/bg1.webp");
  background-size: cover;
  background-position: center center;
}

.bg3{
  background-image: url("slike/bg3.webp");
  background-size: cover;
  background-position: center center;
}

.bg4{
  background-image: url("slike/bg4.webp");
  background-size: cover;
  background-position: center center;
}

.autosizeIMG{
  height: 100%; width: 100%; object-fit: contain;
}

.aIMG{
  border-radius: 99rem;
  padding: 10px;
  border:1px solid white;
}

.block{
  display: block;
}

.text-secondary{
  background-color: wheat;
  color: black!important;
}

.IMG{
  border-radius: 99rem;
  padding: 10px;
  border:1px solid white;
}

.card-body p{
  margin: 0;
  padding: 0;
  font-size:medium;
}

h3::before{
  content:"|";
}

h3::after{
  content:"|";
}

#btn-back-to-top {
  margin: 0;
  padding: 0;
  display: none; /* Hidden by default */
  position: fixed;
  width: 30px;
  height: 40px;
  bottom: 50px;
  right: 20px;
  background-color: red;
  color: white;
  z-index: 99; /* Ensure it's above other elements */
  text-align: center;
}

#btn-back-to-top i{
  color: white;
}

nav a{
  text-underline-offset: 0.5em;
}

html {
  scroll-behavior: smooth;
}

.HIDE{
  display: none;
}

.gromipakao{
  background-image: linear-gradient(#00000050,#00000050),url("slike/gromipakao.gif");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(100%);
}

.bitno{
  color:#EFBF04;
}

.navodnici{
  color:#EFBF04;
}

.navodnici::before {
  content: "“";
  color: #ccc;
}

.navodnici::after {
  content: "”";
  color: #ccc;
}

.image-overlay {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.image-overlay img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0px 0px 6px rgb(173, 89, 103);
    border-radius: 10px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.image-overlay:hover img {
    transform: scale(1.05);
    border: 3px solid pink;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-overlay:hover .overlay {
    opacity: 0;
}

.overlay-text {
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

.offcanvas-fullscreen {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.offcanvas-body {
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offcanvas-image {
    max-height: 80vh;
    max-width: 90%;
    object-fit: contain;
}

.btn-close {
    filter: invert(100%);
    position: absolute;
    top: 1rem;
    right: 1rem;
}
