@import url("bootswatch-flatly.min.css");

/* ==== Google font ==== */
@import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic|Montserrat:700|Merriweather:400italic');


:root {
  /* image-rendering: -webkit-optimize-contrast; */
  --primary: #67b0d1 !important;
  --success: #5b9bd5 !important;
}

body {
  /* font-family:"Arial", "Helvetica", "sans-serif"; */
  /* padding-top:70.3px; margin-bottom: 130px; */
  padding-top:50.3px; margin-bottom: 89px;
  overflow-y: hidden;
  font-family: "OpenSans";
}

a {
  color: var(--success);
  font-weight: bolder;
}

a:hover {
  color: #2a5b88;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.navbar-brand {
  color: #4c4c4c !important;
  font-size: 20px;
  line-height: 40px;
  text-transform: uppercase;
  font-family: Montserrat,sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-brand.secondary {
  font-size: 12px;
  margin-left: auto;
  padding: 5px 15px;
  }

/* Da nestane E-PRIRODA */
@media screen and (max-width: 992px) {
  .navbar-brand.secondary {
    display: none;
  }
}
  
.navbar-brand.secondary:hover {
    background-color: #85c0da;
}

.navbar {
  padding: 0;
  height: 50px;
}

.navbar>.container {
  justify-content: start;
}

#navbar-zavod-logo {
  height: 40px;
  display: table-cell;
  float:left;
  margin: 0;
}

/* Izmjena Naslova stranice i skraćenice, kao i logoa koji u mobilnoj verziji postaje link za E-PRIRODA */
@media screen and (min-width: 992px) {
  #navbar-brandps-sm {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  #navbar-brandps-lg {
    display: none;
  }
  #navbar-brandps-sm {
    position: absolute;
    left: 10px;
  }
}

@media screen and (min-width: 992px) {
  #navbar-zlogo-sm {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  #navbar-zlogo-lg {
    display: none;
  }
  #navbar-zlogo-sm {
    position: absolute;
    left: 220px;
  }
}

.navbar-toggler {
  border-color: rgba(0,0,0,0) !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    /* outline: solid 1px white; */
    outline: none;
    /* box-shadow: 0 0 1px 1px white; */
}

@media screen and (max-width: 992px) {
  .navbar-toggler {
    position: absolute;
    right: 0px;
  }
  .togglePsList {
    display: none;
  }
}

.container-fluid {
  height: calc(100vh - 120px);
  padding-left: unset;
  padding-right: unset;
  overflow-x: hidden;
  overflow-y: auto;
}

@media screen and (min-width: 992px) {
  .main-details-container {
    width: 70%;
    margin: auto;
  }
}

@media screen and (max-width: 992px) {
  .main-details-container {
    width: 100%;
    margin: auto;
  }
}

.sd-title {
  /* padding-bottom: 10px; */
  text-align: center;
  /* font-weight: bold; */
  /* font-variant-caps: small-caps; */
}

#sd-classification {
  padding-bottom: 20px;
  /* text-align: center; */
  color: green;
  font-weight: bold;
}

@media screen and (min-width: 992px) {
  #sd-above-title {
    padding-top: 20px;
    text-align: center;
  }
}

@media screen and (max-width: 992px) {
  #sd-above-title {
    padding-top: 5px;
    text-align: center;
  }
}

#sd-below-title {
  padding-bottom: 20px;
  text-align: center;
}

@media screen and (min-width: 992px) {
  #sd-info-and-map {
    padding-bottom: 20px;
  }
}

@media screen and (max-width: 992px) {
  #sd-info-and-map {
    padding-bottom: 0px;
    display: flex;
  }
}

@media screen and (min-width: 992px) {
  #sd-info {
    height: 100%;
    padding: 10px;
    font-size: 14px;
    /* background-color: #ffe159; */
  }
}

@media screen and (max-width: 992px) {
  #sd-info {
    height: 100%;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 14px;
    /* background-color: #ffe159; */
  }
  #sd-info p {
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (max-width: 992px) {
  #sd-info-container {
    order: 2;
  }
}

#sd-common-name {
  background-color: var(--primary);
  padding: 10px;
}

/* .sd-info {
  font-size: 13px;
} */

#sd-synonyms {
  background-color: #4c4c4c;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  /* font-weight: bolder; */
  margin-bottom: 20px;
}

#sd-threat {
  background-color: #da2a1c;
  color: #fff;
  padding: 10px;
  font-size: 13px;
  /* font-weight: bolder; */
  margin-bottom: 20px;
}

#sd-protection {
  background-color: #ffe159;
  color: #000;
  padding: 10px;
  font-size: 13px;
  /* font-weight: bolder; */
  margin-bottom: 20px;
}

@media screen and (min-width: 992px) {
  .checklist-info-container {
    padding-top: 20px;
  }
}

@media screen and (max-width: 992px) {
  .checklist-info-container {
    padding-top: 20px;
  }
  #checklist-info-container-sm {
    padding-top: 0px;
  }
}

@media screen and (min-width: 992px) {
  #sd-checklist-info {
    width: 50%;
    margin: auto;
    background-color: #4c4c4c;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    /* font-weight: bolder; */
    /* margin-bottom: 20px; */
  }
}

@media screen and (max-width: 992px) {
  #sd-checklist-info {
    width: 90%;
    max-height: 42vh;
    overflow: auto;
    margin: auto;
    background-color: #4c4c4c;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    /* font-weight: bolder; */
    /* margin-bottom: 20px; */
  }
}

@media screen and (max-width: 992px) {
  #sd-pilot-container{
    display: flex;
    flex-wrap: wrap;
  }
  #sd-pilot-info {
    order: 2;
  }

  #sd-pilot-checklist {
    order: 1;
    width: 110vw;
  }
}

#sd-occurrences {
  background-color: var(--primary);
  padding: 10px;
  font-size: 14px;
  /* font-weight: bolder; */
  margin-bottom: 10px;
}

#sd-map-caption {
  width: 100%;
  font-size: 13px;
  padding: 10px 0;
  overflow: auto;
  /* margin: auto; */
}

#main-img-container{
  padding-bottom: 20px;
}

/* FOOTER */
div#footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4c4c4c;
    height: 70px;
    padding: 10px;
    font-size: 12px;
    color: #cccccc;
}

.footer-subregion {
  float: left;
  height: 100%;
  padding: 5px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-subregion div, .footer-subregion span, .footer-subregion img {
  display: table-cell;
}

#footer-copyright {
  float:right;
  padding: 0px 5px;
}

#zp-logo {
  height: 50px;
}

#zavod-logo {
  height: 50px;
}

@media screen and (max-width: 700px) {
  #zp-logo {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  #zavod-logo {
    display: none;
  }
}

/* FOOTER END */

p{
  margin:10px;
}

/* Karta */

#sd-map-container {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 992px) {
  #sd-map-container-container {
    order: 1;
  } 
}

#sd-map {
  width: 300px;
  height: 300px;
}

/* Karta END */

.front-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

hr{
  color: lavender;
}

.well {
  min-height:20px;
  padding:19px;
  margin-bottom:20px;
  background-color:#f5f5f5;
  border:1px solid #e3e3e3;
  border-radius:4px;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}


.well-lg {
  padding:24px;
  border-radius:6px
}
.well-sm {
   padding:9px;
   border-radius:3px
}.


.well blockquote{
   border-color:#ddd;
   border-color:rgba(0,0,0,.15)
}

.ps-title {
  padding: 20px 10px;
  text-align: center;
  /* font-weight: bold; */
  font-variant-caps: small-caps;
}

.ps-title span {
  font-size: larger;
}

.icon-info {
  margin-left:5px;
  font-size:20px;
  cursor:pointer;
  color: #5b9bd5;
  vertical-align: middle;
  margin-top: -3px;
}

/* Lightbox gallery style */
/* TODO Ovo izvući iz glavnog CSS fajla, da ne utiče na ostale modale? */
.modal-footer{
  font-weight: bold;
  font-variant-caps: small-caps;
  justify-content: center;
}

.modal-title{
  font-variant-caps: small-caps;
}

td p{
  margin: unset;
}

/* Sidebars */
/* --------------------- */

.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: hidden;
}

#sidebar-start {
  width: 70px;
  margin-right: 0px;
  /* padding: 5px 5px 0px 0px; */
  /* min-width: 50px; */
  /* max-width: 50px; */
  height: calc(100vh - 120px);
  /* margin-right: -250px; */
  background-color: #717171;
}

.sidebar-start-btns {
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  font-size: 11px;
  margin: auto;
  margin-bottom: 1px;
  background-color: #4c4c4c;
  color: white;
  cursor: pointer;
  box-sizing: border-box;
  /* vertical-align: middle; */
}

.sidebar-start-btns:hover {
  background-color: #74b374;
  font-weight: bolder;
}

.sidebar-start-btns.active {
  background-color: #74b374;
  font-weight: bolder;
}

#sidebar-search {
  min-width: 250px;
  max-width: 250px;
  height: calc(100vh - 120px);
  margin-right: -250px;
  overflow-y: auto;
}

#sidebar-info{
  min-width: 450px;
  max-width: 450px;
  height: calc(100vh - 120px);
  margin-right: -450px;
  overflow-y: auto;
}

#sidebar-pslist{
  min-width: 1000px;
  max-width: 1000px;
  height: calc(100vh - 120px);
  margin-right: -1000px;
  overflow-y: auto;
}

#sidebar-search.active,
#sidebar-info.active,
#sidebar-pslist.active {
  margin-right: 0px;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  #sidebar-search,
  #sidebar-info,
  #sidebar-pslist {
      margin-left: 0px;
  }
  #sidebar-search.active,
  #sidebar-info.active,
  #sidebar-pslist.active {
      margin-left: -250px;
  }
}

/*
    ADDITIONAL DEMO STYLE, NOT IMPORTANT TO MAKE THINGS WORK BUT TO MAKE IT A BIT NICER :)
*/
@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

#sidebar-search,
#sidebar-info,
#sidebar-pslist {
    /* don't forget to add all the previously mentioned styles here too */
    background: #fff;
    color: #000;
    transition: margin 0.4s ease-in;
    padding: 2px 5px;
    /* border: 1px solid #ced4da; */
}

#sidebar-search .sidebar-header, #sidebar-info .sidebar-header, #sidebar-pslist .sidebar-header {
    padding: 10px;
    background: #fff;
    color: black;
    margin-top: 10px;
    margin-bottom: -10px;
    position: relative;
}

#sidebar-search ul.components, #sidebar-info ul.components, #sidebar-pslist ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar-search ul p, #sidebar-info ul p, #sidebar-pslist ul p {
    color: #fff;
    padding: 10px;
}

#sidebar-search ul li a, #sidebar-info ul li a,  #sidebar-pslist ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}
#sidebar-search ul li a:hover,
#sidebar-info ul li a:hover,
#sidebar-pslist ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar-search ul li.active > a, a[aria-expanded="true"],
#sidebar-info ul li.active > a, a[aria-expanded="true"],
#sidebar-pslist ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

.sidebar-content {
  color: #777;
}

#sidebar-search {
  z-index: 100000;
}

#sidebar-info, #sidebar-pslist {
  z-index: 100001;
}

.table-sidebar-pslist {
  margin-top: 10px;
}

.table-sidebar-pslist td,
.table-sidebar-pslist th {
  width: auto;
  padding: 2px 10px 2px;
}

.table-details th,
.table-details td{
  padding: 0.2rem;
}

.table-details th{
  width: 20%;
}

/* When you mouse over the navigation links, change their color */
.sidebar-header a {
  color: #4c4c4c
}

.sidebar-header a:hover {
  color: #777;
  text-decoration: unset;
}

.sidebar-header .sidebar-closebtn {
  position: absolute;
  top: -15px;
  right: 10px;
  font-size: 36px;
  /* margin-right: 50px; */
}


/* FORM */

.form-control {
  border-radius: 0;
  padding: 5px;
}

.form-frame {
  border: 0;
}

/* FORM END */

/* SEARCH RESULTS BEGIN */

.search-results-container {
  position: absolute;
  right: 0px;
  padding: 50px 0;
  min-width: 100%;
  height: calc(100vh - 120px);
  overflow-y: auto;
}

@media screen and (min-width: 992px) {
  .search-result {
    width: 50%;
    margin: auto;
    border-radius: 0;
    border-color: #cccccc !important;
    display: table;
    clear: both;
  }
}

@media screen and (max-width: 992px) {
  .search-result {
    width: 100%;
    margin: auto;
    border-radius: 0;
    border-color: #cccccc !important;
    display: table;
    clear: both;
  }
}

.card-header {
  font-size: 12px;
}

@media screen and (max-width: 992px) {
  .card-header span {
    display: none;
  }
}

@media screen and (min-width: 992px) {
  .card-body {
    float:left;
    width:70%;
  }
}

@media screen and (max-width: 992px) {
  .card-body {
    float:left;
    width:100%;
  }
}

.result-img-container {
  width: 30%;
  float: left;
  padding:5px;
  display: table-cell;
  vertical-align: middle;
}

.result-img {
  max-width:100%;
  max-height: 100%;
}

.leaflet-container {
  background: white;
  /* outline: 1px solid; */
}

/* SEARCH RESULTS END */

/* CHECKLIST START */

@media screen and (min-width: 992px) {
  .family-title {
    display: table;
    width:50%;
    margin:auto;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 10px;
    padding-left: 10px;
  }
}

@media screen and (max-width: 992px) {
  .family-title {
    display: table;
    width:100%;
    margin: unset;
    font-size: 14px;
    font-weight: bold;
    padding-bottom: 10px;
    padding-left: 10px;
  }
}

/* Style the buttons that are used to open and close the accordion panel */
@media screen and (min-width: 992px) {
  .accordion-custom {
    background-color: var(--primary);
    color: #4c4c4c;
    cursor: pointer;
    padding: 18px;
    display: table;
    width:50%;
    margin:auto;
    margin-bottom: 10px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
  }
}

@media screen and (max-width: 992px) {
  .accordion-custom {
    background-color: var(--primary);
    color: #4c4c4c;
    cursor: pointer;
    padding: 18px;
    display: table;
    width: 90%;
    margin:auto;
    margin-bottom: 10px;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.4s ease-in-out;
  }
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion-custom:hover {
  background-color: var(--primary);
}

.accordion-custom:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: #777;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

/* Style the accordion panel. Note: hidden by default */
.panel-custom {
  padding: 0 18px;
  background-color: white;
  /* display: none; */
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
}
/* CHECKLIST END */

/* MAP LOADER */
#sd-loader {
  position: relative;
  left: 50%;
  top: 60%;
  z-index: 1;
  width: 50px;
  height: 50px;
  margin: -75px 0 0 -75px;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid green;
  /* width: 120px;
  height: 120px; */
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


