/*
 * Font
 */
@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Titillium Web';
  src: url('../../inc/titilliumweb-1.1/TitilliumWeb-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@media (max-width: 991px) {

  h1,
  .fs-1 {
    font-size: 1.75rem !important;
  }

  h2,
  .fs-2 {
    font-size: 1.5rem !important;
  }

  h3,
  .fs-3 {
    font-size: 1.25rem !important;
  }

  h4,
  .fs-4 {
    font-size: 1rem !important;
  }

  h5,
  .fs-5 {
    font-size: .875rem !important;
  }

  h6,
  .fs-6,
  .nav-link {
    font-size: 0.75rem !important;
  }
}

/*
 * Body
 */
body {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: white;
  font-family: 'Titillium Web', sans-serif;
  font-style: normal;
  font-weight: 400;
}

/*
 * Loading
 */
#loading {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, .5);
}

.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px #ddd solid;
  border-top: 5px #3f87a6 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
  100% {
    transform: rotate(360deg);
  }
}

/*
* Cookie banner
*/
#cookie-banner {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: white;
  color: black;
  opacity: .75;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: all 0.3s ease;
}

#cookie-banner:hover {
  opacity: 1;
}

#cookie-banner.minimized {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

#cookie-banner.minimized .full-content {
  display: none;
}

#cookie-banner.minimized .minimized-text {
  display: inline;
}

.minimized-text {
  display: none;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  text-align: justify;
  gap: 1.5rem;
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
}

#minimize-button {
  font-size: 0.8rem;
}

/*
 * Header
 */
header {
  top: 0;
  flex: 0 0 auto;
  background: white;
}

/*
Nav
*/
#offcanvasNavbar {
  background-color: white;
  color: black;
}

.nav-masthead .nav-link {
  color: rgba(0, 0, 0, .5);
  border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
  border-bottom-color: rgba(0, 0, 0, .25);
}

.nav-masthead .nav-link:active {
  background: white;
}

.nav-masthead .nav-link+.nav-link {
  margin-left: 1rem;
}

.nav-masthead .active {
  color: #000;
  border-bottom-color: #000;
}

.dropdown-menu {
  background: white;
  color: white;
  border: none;
}

.dropdown-item {
  color: black;
}

.dropdown-item:focus {
  background: rgba(0, 0, 0, .25);
}

.dropdown-item.active {
  background: rgba(0, 0, 0, .25);
}

/*
 * Footer
 */
footer {
  bottom: 0;
  flex: 0 0 auto;
  background: white;
}

/*
 * Main
 */
#main {
  display: flex;
  flex: 1 0 auto;
  position: relative;
  max-width: 100vw;
  width: 100vw;
}

#map {
  position: relative;
  z-index: 0;
  width: 100vw;
  height: 100%;
  overflow-x: hidden;
}

.leaflet-overlay-pane svg path {
  transition: all ease .25s;
}

/*
 * Panels
 */
@media (max-width: 767px) {
  #left-panel {
    position: absolute;
    z-index: 1;
    top: 2.75%;
    left: 50%;
    min-width: 80%;
    max-width: 90%;
    height: auto;
    transform: translate(-50%, 0);
    overflow-y: hidden;
    transition: all ease .25s;
    scroll-behavior: smooth;
  }

  #right-panel {
    position: absolute;
    z-index: 1;
    bottom: 2.75%;
    right: 50%;
    width: auto;
    max-width: 80%;
    height: auto;
    /*max-height: 20%;*/
    transform: translate(50%, 0);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: auto;
    scroll-behavior: smooth;
  }

  #right-panel .card {
    flex: 0 0 auto;
    min-width: 150px;
  }

  #left-panel::-webkit-scrollbar,
  #right-panel::-webkit-scrollbar {
    width: 5px;
  }
}

@media (min-width: 768px) {
  #left-panel {
    position: absolute;
    z-index: 1;
    bottom: 50%;
    left: 2.5%;
    max-width: 20%;
    height: auto;
    max-height: 80%;
    transform: translate(0, 50%);
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    transition: all ease .25s;
    scroll-behavior: smooth;
  }

  #right-panel {
    position: absolute;
    z-index: 1;
    bottom: 50%;
    right: 2.5%;
    width: 20%;
    max-width: 20%;
    height: auto;
    max-height: 80%;
    transform: translate(0, 50%);
    overflow-y: scroll;
    scroll-behavior: smooth;
    transition: all ease .25s;
  }

  #left-panel::-webkit-scrollbar,
  #right-panel::-webkit-scrollbar {
    width: 15px;
  }
}

#left-panel .card,
#right-panel .card {
  opacity: .75;
  border: none;
  cursor: pointer;
  transition: all ease .25s;
}

#left-panel .card:hover {
  opacity: 1;
}

#left-panel::-webkit-scrollbar-track,
#right-panel::-webkit-scrollbar-track {
  background: transparent;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
  border-radius: 5px;
}

#left-panel::-webkit-scrollbar-thumb,
#right-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .75);
  border-radius: 5px;
  cursor: pointer;
  transition: all ease .25s;
}

#left-panel::-webkit-scrollbar-thumb:hover,
#right-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
}

/*
 * Modal
 */
#modals .card {
  border: none;
}

.modal-content {
  border: none;
}

.card-img-overlay {
  background: rgba(255, 255, 255, 0.875);
  height: auto;
  top: auto;
}