@import url("https://fonts.cdnfonts.com/css/aboreto");
/* custom CSS */
.dark {
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px 0px rgb(0, 0, 0, 30%);
  padding-top: 10px;
}
.dark img {
  border-radius: 8px;
}
.dark h3 {
  color: #002625;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 10px;
}
.dark p {
  color: #304e4e;
  font-size: 18px;
  line-height: 1.5;
}

/* HEADER STYLE */
.header {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.header-img-container {
  width: 100%;
  height: 95%;
}
.header-img-container .header-background-image {
  width: 100%; /* or any custom size */
  height: 100vh;
  object-fit: cover;
  user-select: none;
}
.dubrovnik-crest {
  position: absolute;
  left: 2%;
  top: 2%;
}

.dubrovnik-crest-logo {
  width: 80px;
}

/* Text over header image */
.header .header-text-container {
  position: absolute;
  right: 0;
  left: 0;
  top: 30%;
  display: flex;
  align-items: center;
  flex-direction: column;
  user-select: none;
}

.header .header-text-container .header-title {
  font-family: "Aboreto", sans-serif;
  font-size: 60px;
  color: #222222;
  margin-bottom: -10px;
  user-select: none;
}
.header .header-text-container .header-subtitle {
  font-weight: 400;
  color: #222222;
  user-select: none;
}
.header .header-text-container .header-date {
  font-size: 18px;
  margin-top: 10px;
  color: #304e4e;
  user-select: none;
}

.scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 20px;
  margin-right: 10px;
}

.scrollbar::-webkit-scrollbar-track {
  border-radius: 100vh;
  background: #f2f2f2;
}

.scrollbar::-webkit-scrollbar-thumb {
  background: #d0b17f;
  border-radius: 100vh;
}

.scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 96, 70, 0.25);
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(-10px);
  }
}
.header .header-chevron-arrow {
  width: 100%;
  margin-top: 50px;
  position: absolute;
  bottom: 2%;
  display: flex;
  justify-content: center;
  animation: bounceInDown 2s infinite;
  user-select: none;
}

/* image comparison slider */
:root {
  --image-comparison-slider-width: min(80vw, 768px);
  --image-comparison-slider-handle-width: 50px;
}
#image-comparison-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  flex-direction: column;
  user-select: none;
  padding-bottom: 35px;
}

.image-comparison-slider {
  position: relative;
  width: var(--image-comparison-slider-width);
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: -7px 5px 16px 1px rgba(56, 86, 122, 0.6);
  cursor: col-resize;
  margin-top: 60px;
  user-select: none;
}
.image-comparison-slider img {
  display: block;
  width: var(--image-comparison-slider-width);
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  user-select: none;
}
.image-comparison-slider .img-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  user-select: none;
  transform: translateZ(
    0
  ); /* This is in order to fix a Firefox bug, related to the 3D tilt effect */
  /* transition: 0.25s cubic-bezier(.03,.98,.52,.99); */
}

.image-comparison-slider .img-wrapper img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 10;
  user-select: none;
}

.image-comparison-slider .label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.33);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 1px;
  user-select: none;
  opacity: 0;
  transition: 0.25s cubic-bezier(0.68, 0.26, 0.58, 1.22);
  user-select: none;
}
.image-comparison-slider:hover .label {
  opacity: 1;
}
.image-comparison-slider .label.label-before {
  left: 1rem;
  user-select: none;
}
.image-comparison-slider .label.label-after {
  right: 1rem;
  background-color: #f95540;
  user-select: none;
}

.image-comparison-slider .handle {
  position: absolute;
  top: 0;
  left: calc(50% - var(--image-comparison-slider-handle-width) / 2);
  width: var(--image-comparison-slider-handle-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  z-index: 2;
  user-select: none;
  /* transition: 0.25s cubic-bezier(.03,.98,.52,.99); */
}
.image-comparison-slider .handle-line {
  width: 2px;
  flex-grow: 1;
  background-color: #fff;
  user-select: none;
}
.image-comparison-slider .handle-circle {
  width: var(--image-comparison-slider-handle-width);
  height: var(--image-comparison-slider-handle-width);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  user-select: none;
  /* background-color: rgba(0,0,0,0.5); */
}

.slider_desc {
  margin-top: 20px;
  font-size: 20px;
  color: #4c7271;
  text-align: center;
  line-height: 1.5;
  width: 50%;
  user-select: none;
}

/*About button in header*/
.about-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: #222222;
  border-color: transparent;
  cursor: pointer;
}

#aboutBtnOpened {
  position: absolute;
  right: 80px;
  top: 20px;
  bottom: 20px;
  border-radius: 12px;
  background-color: white;
  opacity: 0.95;
  color: #222222;
  max-width: 0;
  box-shadow: 0 4px 15px 0px rgb(0 0 0 / 30%);
  transition: max-width 0.5s ease-out;
  z-index: 2;
  overflow: hidden;
}

#aboutBtnOpened.open {
  max-width: 500px;
  overflow-y: scroll;
}

.about-btn-content h2 {
  font-family: "Aboreto", sans-serif;
  padding: 25px 45px 5px;
  color: #222222;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 10px;
}

.about-btn-content p {
  padding: 5px 45px 5px;
  color: #222222;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

footer {
  position: relative;
  bottom: 0px;
  width: 100%;
  background-color: #222222;
  display: flex;
  flex-direction: row;
  color: white;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 10px;
}

footer a:link,
a:visited {
  color: white;
  text-decoration: none;
}

footer a:hover {
  color: #00aeef;
}

@media (max-width: 768px) {
  :root {
    --image-comparison-slider-width: 90vw;
  }
  .slider_desc {
    margin-top: 20px;
    font-size: 16px;
    color: #4c7271;
    text-align: center;
    line-height: 1.5;
    width: 90%;
  }
  .header .header-text-container .header-title {
    font-size: 35px;
    margin-bottom: 8px;
  }
  .header .header-text-container .header-subtitle {
    font-size: 20px;
    text-align: center;
  }
  .header .header-text-container .header-date {
    font-size: 16px;
    margin-top: 2px;
  }
  .header .header-chevron-arrow {
    margin-top: 30px;
  }

  .about-btn {
    top: 20px;
  }

  .dubrovnik-crest {
    left: 25px;
    top: 15px;
  }

  .dubrovnik-crest-logo {
    width: 40px;
  }

  .desa-logo {
    height: 60px;
  }

  #aboutBtnOpened {
    margin-left: 20px;
    top: 85px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  #aboutBtnOpened {
    top: 85px;
    right: 20px;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
  }

  .about-btn {
    top: 20px;
  }

  .dubrovnik-crest {
    left: 25px;
    top: 15px;
  }

  .dubrovnik-crest-logo {
    width: 40px;
  }
  .desa-logo {
    height: 60px;
  }

  .eu-logo {
    width:70vw;
    height:auto;
    padding-right:55px;
  }

  #aboutBtnOpened.open {
    opacity: 1;
    max-height: 75%;
  }

  .about-btn-content h2 {
    font-size: 26px;
  }
  .about-btn-content p {
    font-size: 16px;
  }
  footer {
    font-size: 14px;
  }
}
