body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

#slideshow,
#slideshow .carousel-inner {
  height: calc(100vw / 1.5);
  max-height: 37em;
}
.card-hover {
  transition: all 0.25s ease;
}
.card-hover:hover {
  transform: scale(1.1);
  background-color: #0b5ed7;
  color: white;
}

/* -----------NAV---------------------- */
#nav {
  position: relative;
  width: 100%;
  background-color: var(--bs-gray-800);
  height: 3.5em;
}
#nav a {
  height: 100%;
  padding: 0 1em;
  text-decoration: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: white;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bs-gray-800);
  transition: background-color 0.2s ease;
}
#nav a:hover,
#nav a:focus,
#nav a.active {
  background-color: var(--bs-primary);
  color: white;
}

#nav .navbar-wrapper {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 100;
  transition: max-height 0.2s ease;
}
/* DROPDOWN LINKOVI */
#nav .dropdwn {
  cursor: pointer;
  position: relative;
  height: 100%;
  float: left;
}
#nav .dropdwn-menu {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  z-index: 100;
  transition: max-height 0.2s ease;
}
#nav .dropdwn-menu a {
  width: 100%;
  padding: 0.5em 1em;
}
#nav .dropdwn .dropdwn-select::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  color: white;
}

/* DROPDOWN HOVER SAMO ZA DESKTOP */
@media only screen and (min-width: 576px) {
  #nav .dropdwn:hover .dropdwn-menu,
  #nav .dropdwn:focus .dropdwn-menu {
    max-height: 10em !important;
  }
}

/* BURGER */
.menu-label,
#mobile-menu-checkbox {
  display: none;
}

/* ZA MOBILE */
@media only screen and (max-width: 576px) {
  #nav {
    height: 3em;
  }
  #nav a,
  #nav .dropdwn {
    width: 100%;
  }
  #nav .navbar-wrapper {
    max-height: 0;
    overflow: hidden;
    height: auto;
    top: 100%;
  }
  #nav .navbar-wrapper a {
    padding: 0.75em 1em;
  }

  /* DROPDOWN LINKOVI */
  #nav .dropdwn-menu {
    position: relative;
  }
  #nav .dropdwn.selected .dropdwn-menu {
    max-height: 10em !important;
  }
  /* BURGER */
  .menu-label {
    margin-left: auto;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 100%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .menu-label .menu-icon {
    background-color: var(--bs-light);
    display: block;
    position: relative;
    height: 2px;
    width: 20px;
    transition: background 0.2s ease-out;
  }
  .menu-label .menu-icon:before,
  .menu-label .menu-icon:after {
    background-color: var(--bs-light);
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    transition: all 0.2s ease-out;
  }
  .menu-label .menu-icon:before {
    top: -5px;
  }
  .menu-label .menu-icon::after {
    top: 5px;
  }
  #mobile-menu-checkbox:checked ~ .menu-label .menu-icon {
    background: transparent;
  }
  #mobile-menu-checkbox:checked ~ .menu-label .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }
  #mobile-menu-checkbox:checked ~ .menu-label .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
  #mobile-menu-checkbox:checked ~ .navbar-wrapper {
    max-height: 30em;
  }
}

@media only screen and (max-width: 1200px) {
  .lista-oblasti {
    width: 50% !important;
  }
}
@media only screen and (max-width: 992px) {
  .lista-oblasti {
    width: 80% !important;
  }
}

/* -----------FOOTER---------------------- */
#footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: var(--bs-dark);
  color: white;
  padding: 1em;
}
#footer .box-1 p {
  margin: 0;
}
#footer .box-1,
#footer .box-3 {
  flex-basis: 33%;
  -webkit-flex-basis: 33%;
}
#footer .box-3 ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
#footer .box-3 a {
  padding: 0 0.5em;
  text-decoration: none;
  color: white;
}
@media only screen and (max-width: 1200px) {
  #footer .box-2 {
    display: none;
  }
  #footer .box-1,
  #footer .box-3 {
    flex-basis: auto;
    -webkit-flex-basis: auto;
  }
  #footer .box-3 {
    flex-grow: 1;
  }
}
@media only screen and (max-width: 768px) {
  #footer {
    flex-direction: column;
  }
  #footer .box-1,
  #footer .box-3 ul {
    text-align: center;
    justify-content: center;
  }
}
/* -----------IMAGE OVERLAYS---------------------- */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.overlay.active {
  opacity: 1;
}
.overlay img {
  max-width: 60em;
  width: 100%;
  border-radius: 0.5em 0.5em 0 0;
  overflow: hidden;
}
.overlay p {
  border-radius: 0 0 0.5em 0.5em;
  max-width: 60em;
  width: 100%;
  padding: 1em;
  background-color: var(--bs-gray-800);
  color: white;
}
.img-overlay {
  cursor: pointer;
  position: relative;
}
.img-overlay::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bs-gray-800);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.img-overlay:hover::after {
  opacity: 0.75;
}

/* -----------TOASTER---------------------- */
.css-toast-container {
  position: fixed;
  top: 1em;
  right: 1em;
  gap: 0.5em;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}
.css-toast {
  opacity: 0;
  transform: translateX(100%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bs-success);
  color: white;
  padding: 1em 2em;
  max-width: 20em;
  max-height: 10em;
  z-index: 50;
  border: 2px solid black;
  border-radius: 0.3em;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.css-toast.visible {
  transform: translateX(0);
  opacity: 1;
}
.css-toast .css-toast-close {
  cursor: pointer;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 1em;
  height: 1em;
}
.css-toast p {
  padding: 0;
  margin: 0;
}

.css-toast .css-toast-close::before,
.css-toast .css-toast-close::after {
  content: "";
  position: absolute;
  top: 0.5em;
  width: 1em;
  height: 0.12em;
  background-color: white;
}
.css-toast .css-toast-close::before {
  transform: rotate(45deg);
}
.css-toast .css-toast-close::after {
  transform: rotate(-45deg);
}

.css-toast.type-warning {
  background-color: #fd7e14;
  color: black;
}
.css-toast.type-warning .css-toast-close::before,
.css-toast.type-warning .css-toast-close::after {
  background-color: black;
}
.css-toast.type-error {
  background-color: #dc3545;
}
