:root {
  --text-color: #000;
  --light-text-color: #333;
  --lighter-text-color: #555;
  --background-color: #fff;
  --primary-color: #6e95cb;
  --secondary-background-color: #eee;
  --tertiary-background-color: #999;
  --error-color: #aa0000;
}

* {
  font-family: "Open Sans", sans-serif;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
  -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
  outline: none !important;
}

a,
a:link,
a:hover,
a:active,
a:visited {
  color: var(--text-color);
  text-decoration: underline;
  font-size: inherit;
}

body {
  position: absolute;
  left: 0 !important;
  right: 0;
  top: 0;
  bottom: 0;
  min-width: 300px;
  margin: 0;
  color: var(--background-color);
  background-color: var(--primary-color);
}

#mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 10;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color);
  padding-left: 250px;
}

#container {
  position: absolute;
  right: -250px;
  left: 0;
  top: 50px;
  bottom: 0;
  text-align: center;
  transition: right 0.4s ease-in-out 0s, bottom 0.4s ease-in-out 0s;
  -webkit-transition: right 0.4s ease-in-out 0s, bottom 0.4s ease-in-out 0s;
  -moz-transition: right 0.4s ease-in-out 0s, bottom 0.4s ease-in-out 0s;
  -o-transition: right 0.4s ease-in-out 0s, bottom 0.4s ease-in-out 0s;
}

body.results #container {
  right: 0;
}

#title {
  height: 50px;
  font-size: 24pt;
  line-height: 50px;
  padding-left: 10px;
  width: 245px;
  cursor: pointer;
}

#logo {
  position: absolute;
  top: 10px;
  left: 45px;
  right: 5px;
  bottom: 10px;
  transition: opacity 0.5s ease-in-out 0s;
  -webkit-transition: opacity 0.5s ease-in-out 0s;
  -moz-transition: opacity 0.5s ease-in-out 0s;
  -o-transition: opacity 0.5s ease-in-out 0s;
}

#logo img {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

#sidebar-header {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 250px;
  overflow: hidden;
}

#sidebar-header-scroller {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  transition: left 0.5s ease-in-out 0s, width 0.5s ease-in-out 0s;
  -webkit-transition: left 0.5s ease-in-out 0s, width 0.5s ease-in-out 0s;
  -moz-transition: left 0.5s ease-in-out 0s, width 0.5s ease-in-out 0s;
  -o-transition: left 0.5s ease-in-out 0s, width 0.5s ease-in-out 0s;
}

#search-container {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 230px;
  transition: opacity 0.5s ease-in-out 0s, left 0.5s ease-in-out,
    width 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out 0s, left 0.5s ease-in-out,
    width 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out 0s, left 0.5s ease-in-out,
    width 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out 0s, left 0.5s ease-in-out,
    width 0.5s ease-in-out;
}

#search-cancel {
  position: absolute;
  width: 15px;
  height: 15px;
  top: 17.5px;
  right: 15px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 15px 15px;
  background-image: url(resources/cancel.png);
  cursor: pointer;
}

#search-box {
  position: absolute;
  left: 10px;
  right: 40px;
  top: 10px;
  bottom: 10px;
  background-color: var(--background-color);
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#search-field {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  display: block;
  border: none;
  margin: 0;
  padding: 10px;
  padding-left: 30px;
  font-family: inherit;
  font-size: 0.8em;
  background: none;
  outline: none;
  text-overflow: ellipsis;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-image: url(resources/search.png);
  background-position: 7.5px 7.5px;
  color: var(--text-color);
}

body.results #search-container {
  width: 200px;
}

body.results #search-container {
  opacity: 1;
}

body.results #sidebar-title-box {
  opacity: 0;
}

#details-container {
  display: block;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay-blur,
#overlay-color {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#overlay-blur {
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
}

#overlay-color {
  background-color: var(--primary-color);
  z-index: 6;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
}

#overlay {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#overlay.blur #overlay-color {
  opacity: 0.7;
}

#overlay.blur #overlay-blur {
  display: block;
}

body.details #overlay {
  opacity: 1;
  pointer-events: auto;
}

body.details #details-container {
  pointer-events: auto;
  opacity: 1;
}

#drawer {
  position: absolute;
  left: -260px;
  top: 0;
  bottom: 0;
  width: 250px;
  padding-top: 50px;
  overflow: hidden;
  background-color: var(--background-color);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);
  z-index: 7;
  font-size: 10pt;
  text-align: left;
  transition: left 0.3s ease-in-out 0s;
  -webkit-transition: left 0.3s ease-in-out 0s;
  -moz-transition: left 0.3s ease-in-out 0s;
  -o-variabletransition: left 0.3s ease-in-out 0s;
  overflow: auto;
}

body.drawer #drawer {
  left: 0;
}

#drawer .drawer-button {
  position: relative;
  color: var(--light-text-color);
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
  padding: 0 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

#drawer .drawer-svg-icon {
  display: inline;
  height: 24px;
  width: 24px;
  margin-top: 8px;
  margin-right: 10px;
  vertical-align: top;
  fill: var(--light-text-color);
}

#drawer .drawer-iubilaeum-logo {
  padding: 0 15px;
  margin: 5px;
  margin-top: 10px;
  max-height: 46px;
}

#drawer .drawer-button .material-icons {
  margin-right: 10px;
  vertical-align: top;
  line-height: 40px;
}

#drawer .drawer-item {
  position: relative;
  color: var(--light-text-color);
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
  padding: 0 15px;
  margin: 5px;
}

#drawer .drawer-section {
  padding: 0 20px;
}

#drawer .drawer-button .material-icons, #drawer .drawer-item .material-icons {
  margin-right: 10px;
  vertical-align: top;
  line-height: 40px;
}

#drawer .drawer-button:hover {
  background-color: var(--secondary-background-color);
}

#drawer .drawer-separator {
  border-top: 1px solid var(--secondary-background-color);
  margin: 0 20px;
}

#drawer .caption,
#drawer .caption a,
#drawer .caption a:hover,
#drawer .caption a:link,
#drawer .caption a:active,
#drawer .caption a:visited {
  text-align: center;
  color: var(--lighter-text-color);
}

#sidebar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 250px;
  overflow: hidden;
  background-color: var(--background-color);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3);
  z-index: 2;
  color: #000;
  font-size: 10pt;
  text-align: left;
}

#scroller {
  position: absolute;
  width: 500px;
  top: 0;
  bottom: 0;
  left: -250px;
}

#container.animated #scroller {
  transition: left 0.5s ease-in-out 0s;
  -webkit-transition: left 0.5s ease-in-out 0s;
  -moz-transition: left 0.5s ease-in-out 0s;
  -o-variabletransition: left 0.5s ease-in-out 0s;
}

body.results #scroller {
  left: 0;
}

#search-list {
  position: absolute;
  width: 250px;
  top: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text-color);
}

#details-container {
  position: absolute;
  left: 50%;
  margin-left: -320px;
  top: 40px;
  bottom: 100px;
  min-height: 500px !important;
  width: 640px;
  z-index: 12;
  font-size: 1em;
  opacity: 0;
}

#details-close-button {
  position: absolute;
  top: 30px;
  left: 0;
  color: var(--background-color);
  text-transform: uppercase;
  cursor: pointer;
  line-height: 20px;
}

#details-close-button .icon {
  margin-right: 10px;
  fill: var(--background-color);
}

.open-details-button {
  display: block;
  width: auto;
  margin: 10px 0 0 0;
  font-size: 1em;
  font-weight: bold;
  padding: 10px;
  color: var(--background-color);
  cursor: pointer;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
}

#details {
  position: absolute;
  top: 60px;
  bottom: 30px;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0px 1px 3px #444;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out 0s;
  -webkit-transition: opacity 0.5s ease-in-out 0s;
  -moz-transition: opacity 0.5s ease-in-out 0s;
  -o-variabletransition: opacity 0.5s ease-in-out 0s;
  overflow: hidden;
}

#details-logo {
  position: absolute;
  top: 0;
  right: 10px;
  height: 50px;
  text-align: center;
  left: 10px;
}

#details-close-button+#details-logo {
  left: auto;
}

#details-footer {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9pt;
  color: var(--lighter-text-color);
}

#details-donate-overlay {
  position: absolute;
  color: var(--background-color);
  bottom: 0;
  right: 10px;
  height: 20px;
  text-align: center;
  font-weight: 500;
  left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

#details-donate-overlay a,
#details-donate-overlay a,
#details-donate-overlay a:hover,
#details-donate-overlay a:active {
  color: inherit;
  text-decoration: inherit;
}

#details-donate-overlay svg {
  height: 16px;
  width: 14px;
  vertical-align: -2px;
  stroke: var(--background-color);
}

#details-footer a,
#details-footer a,
#details-footer a:hover,
#details-footer a:active {
  color: inherit;
}

#details-logo img {
  display: block;
  float: right;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

#details.loaded {
  opacity: 1;
}

#details-single-column {
  margin: 20px;
}

#details-timetable-column,
#details-info-column {
  position: absolute;
  overflow: auto;
  padding: 20px;
  padding-bottom: 0;
  top: 0;
  bottom: 110px;
}

#details-info-column {
  width: 280px;
  left: 0;
  max-height: 100%;
  overflow: auto;
}

#details-info-column>.item {
  border-top: 0;
}

#details-timetable-column {
  right: 0;
  width: 280px;
}

#details-title {
  font-size: 1em;
  font-weight: bold;
  color: var(--light-text-color);
  margin: 0 0 25px 0;
}

#details-map {
  width: auto;
  height: 150px;
  border-radius: 5px;
  background-color: #eee;
}

#details-map div {
  cursor: default !important;
}

#date-interval-selector {
  position: relative;
  margin-bottom: 5px;
  font-size: 10pt;
  min-height: 30px;
  line-height: 30px;
  padding: 5px;
  color: var(--light-text-color);
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#date-interval-button-prev,
#date-interval-button-next {
  position: absolute;
  height: 20px;
  width: 20px;
  padding: 5px;
  background-repeat: no-repeat;
  background-size: auto 20px;
  cursor: pointer;
}

#date-interval-button-prev .icon,
#date-interval-button-next .icon {
  margin-left: 0;
  margin-right: 0;
}

#date-interval-button-prev {
  left: 35px;
  top: 5px;
}

#date-interval-button-next {
  right: 35px;
  top: 5px;
}

#date-interval-button-prev.disabled,
#date-interval-button-next.disabled {
  opacity: 0.5;
  cursor: default;
}

h1,
h2,
h3,
h4 {
  position: relative;
  margin: 0;
  font-size: 10pt;
  text-transform: uppercase;
  min-height: 30px;
  line-height: 30px;
  padding: 5px;
  border-top: 1px solid var(--secondary-background-color);
  color: var(--light-text-color);
  padding-left: 20px;
}

h1 {
  background-color: var(--secondary-background-color);
}

.description {
  padding: 10px;
}

.mass-time-h {
  font-weight: bold;
}

.icon {
  height: 20px;
  width: 20px;
  display: block;
  position: relative;
  float: left;
  fill: var(--light-text-color);
}

.name,
.address,
.website,
.email,
.phone,
.name *,
.address *,
.website *,
.email *,
.phone * {
  -webkit-tap-highlight-color: auto;
  -webkit-focus-ring-color: auto;
  outline: auto;
  -webkit-user-select: auto;
  user-select: auto;
}

.warning {
  font-size: 0.7em;
  color: var(--light-text-color);
  text-align: center;
  background-color: var(--secondary-background-color);
  margin: 5px;
  padding: 5px;
  border-radius: 3px;
}

.warning p {
  margin-bottom: 0.7em;
}

.label {
  font-weight: bold;
  font-size: 10pt;
  text-transform: uppercase;
}

.item {
  position: relative;
  min-height: 30px;
  line-height: 30px;
  padding: 5px;
  padding-left: 30px;
  border-top: 1px solid var(--secondary-background-color);
  color: var(--light-text-color);
}

.item.oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item.noindent {
  text-indent: 0;
  padding-left: 10px;
}

.item.noservice {
  padding: 10px;
  text-indent: 0;
  text-align: center;
  font-size: 0.8em;
  color: var(--light-text-color);
  border: none;
}

.item .icon,
#timetable-container h1 .icon {
  margin: 5px;
  margin-left: -30px;
  margin-right: 10px;
}

#timetable-container {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#timetable-container h1 {
  position: relative;
  border-radius: 3px;
  padding-left: 40px;
  background-color: var(--secondary-background-color);
  border-top: 0;
}

#timetable-container h1+.item {
  border-top: 0;
}

#timetable-container.updating {
  opacity: 0.5;
  pointer-events: none;
}

#download-box {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  background-color: var(--secondary-background-color);
  border-radius: 5px;
  padding: 20px;
  color: var(--lighter-text-color);
  font-size: 0.7em;
  padding-right: 250px;
}

.badge {
  display: block;
  position: absolute;
  width: 100px;
  top: 20px;
  right: 20px;
}

.badgeBlock+.badgeBlock .badge {
  right: 140px;
}

#search-list {
  left: 0;
}

#search-list.typing,
#search-list.no-results {
  text-align: center;
  padding-top: 30px;
  color: var(--lighter-text-color);
}

.search-separator {
  background-color: var(--secondary-background-color);
  text-align: center;
  line-height: 2em;
}

.result {
  font-size: 1em;
  padding: 5px;
  padding-left: 30px;
  border-bottom: 1px solid var(--secondary-background-color);
  background-repeat: no-repeat;
  background-position: 5px center;
  cursor: pointer;
  background-size: 20px 30px;
}

.result:hover {
  background-color: var(--secondary-background-color);
}

.result-title,
.result-address {
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-title {
  white-space: nowrap;
}

.result-address {
  font-size: 0.8em;
  color: var(--lighter-text-color);
  white-space: nowrap;
}

.church1 {
  background-image: url(resources/church1.png?v1);
}

.church2 {
  background-image: url(resources/church2.png?v1);
}

.church3 {
  background-image: url(resources/church3.png?v1);
}

.church4 {
  background-image: url(resources/church4.png?v1);
}

.church5 {
  background-image: url(resources/church5.png?v1);
}

.church6 {
  background-image: url(resources/church6.png?v1);
}

.church7 {
  background-image: url(resources/church7.png?v1);
}

.church8 {
  background-image: url(resources/church8.png?v1);
}

.church9 {
  background-image: url(resources/church9.png?v1);
}

.place1 {
  background-image: url(resources/place1.png?v1);
}

.place2 {
  background-image: url(resources/place2.png?v1);
}

.place3 {
  background-image: url(resources/place3.png?v1);
}

.place4 {
  background-image: url(resources/place4.png?v1);
}

.place5 {
  background-image: url(resources/place5.png?v1);
}

.place6 {
  background-image: url(resources/place6.png?v1);
}

.place7 {
  background-image: url(resources/place7.png?v1);
}

.place8 {
  background-image: url(resources/place8.png?v1);
}

.place9 {
  background-image: url(resources/place9.png?v1);
}

#map {
  position: absolute;
  right: 250px;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

#search-here-button {
  position: absolute;
  padding: 0;
  width: 160px;
  height: 30px;
  line-height: 30px;
  background-color: var(--background-color);
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: var(--light-text-color);
  left: 50%;
  margin-left: -205px;
  top: -50px;
  font-size: 0.8em;
  font-weight: bold;
  transition: top 0.25s ease-in-out 0s;
  -webkit-transition: top 0.25s ease-in-out 0s;
  -moz-transition: top 0.25s ease-in-out 0s;
  -o-transition: top 0.25s ease-in-out 0s;
  cursor: pointer;
  z-index: 5;
}

#search-here-button.visible {
  top: 10px;
}

#map-spinner {
  position: absolute;
  left: 5px;
  top: 5px;
}

#map-loading-box {
  position: absolute;
  right: 260px;
  top: 10px;
  opacity: 0;
  height: 30px;
  line-height: 30px;
  padding-left: 35px;
  padding-right: 10px;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  background-color: var(--background-color);
  color: var(--light-text-color);
  font-size: 0.7em;
  -webkit-transition: opacity 0.3s ease-in-out 0s;
  -moz-transition: opacity 0.3s ease-in-out 0s;
  -o-transition: opacity 0.3s ease-in-out 0s;
  transition: opacity 0.3s ease-in-out 0s;
  z-index: 5;
}

#map-loading-box.visible {
  opacity: 1;
}

#retry-button {
  display: none;
  position: absolute;
  right: 260px;
  top: 10px;
  height: 30px;
  line-height: 30px;
  padding-left: 35px;
  padding-right: 10px;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  background-color: var(--background-color);
  color: var(--light-text-color);
  font-size: 0.7em;
  background-repeat: no-repeat;
  background-position: 7.5px 7.5px;
  background-size: 15px 15px;
  background-image: url(resources/reload.png);
  z-index: 6;
}

#retry-button:hover {
  background-color: var(--secondary-background-color);
}

#retry-button.visible {
  display: block;
  cursor: pointer;
}

.spinner {
  width: 20px;
  height: 20px;
  background-image: url(resources/spinner.png);
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-animation: spin 1s step-end 0s infinite;
  -moz-animation: spin 1s step-end 0s infinite;
  -o-animation: spin 1s step-end 0s infinite;
  animation: spin 1s step-end 0s infinite;
}

@-webkit-keyframes spin {
  00.00000% {
    -webkit-transform: rotate(030deg);
  }

  08.33333% {
    -webkit-transform: rotate(060deg);
  }

  16.66666% {
    -webkit-transform: rotate(090deg);
  }

  25.00000% {
    -webkit-transform: rotate(120deg);
  }

  33.33333% {
    -webkit-transform: rotate(150deg);
  }

  41.66666% {
    -webkit-transform: rotate(180deg);
  }

  50.00000% {
    -webkit-transform: rotate(210deg);
  }

  58.33333% {
    -webkit-transform: rotate(240deg);
  }

  66.66666% {
    -webkit-transform: rotate(270deg);
  }

  75.00000% {
    -webkit-transform: rotate(300deg);
  }

  83.33333% {
    -webkit-transform: rotate(330deg);
  }

  91.66666% {
    -webkit-transform: rotate(000deg);
  }
}

@-moz-keyframes spin {
  00.00000% {
    -moz-transform: rotate(030deg);
  }

  08.33333% {
    -moz-transform: rotate(060deg);
  }

  16.66666% {
    -moz-transform: rotate(090deg);
  }

  25.00000% {
    -moz-transform: rotate(120deg);
  }

  33.33333% {
    -moz-transform: rotate(150deg);
  }

  41.66666% {
    -moz-transform: rotate(180deg);
  }

  50.00000% {
    -moz-transform: rotate(210deg);
  }

  58.33333% {
    -moz-transform: rotate(240deg);
  }

  66.66666% {
    -moz-transform: rotate(270deg);
  }

  75.00000% {
    -moz-transform: rotate(300deg);
  }

  83.33333% {
    -moz-transform: rotate(330deg);
  }

  91.66666% {
    -moz-transform: rotate(000deg);
  }
}

@-o-keyframes spin {
  00.00000% {
    -o-transform: rotate(030deg);
  }

  08.33333% {
    -o-transform: rotate(060deg);
  }

  16.66666% {
    -o-transform: rotate(090deg);
  }

  25.00000% {
    -o-transform: rotate(120deg);
  }

  33.33333% {
    -o-transform: rotate(150deg);
  }

  41.66666% {
    -o-transform: rotate(180deg);
  }

  50.00000% {
    -o-transform: rotate(210deg);
  }

  58.33333% {
    -o-transform: rotate(240deg);
  }

  66.66666% {
    -o-transform: rotate(270deg);
  }

  75.00000% {
    -o-transform: rotate(300deg);
  }

  83.33333% {
    -o-transform: rotate(330deg);
  }

  91.66666% {
    -o-transform: rotate(000deg);
  }
}

@keyframes spin {
  00.00000% {
    transform: rotate(030deg);
  }

  08.33333% {
    transform: rotate(060deg);
  }

  16.66666% {
    transform: rotate(090deg);
  }

  25.00000% {
    transform: rotate(120deg);
  }

  33.33333% {
    transform: rotate(150deg);
  }

  41.66666% {
    transform: rotate(180deg);
  }

  50.00000% {
    transform: rotate(210deg);
  }

  58.33333% {
    transform: rotate(240deg);
  }

  66.66666% {
    transform: rotate(270deg);
  }

  75.00000% {
    transform: rotate(300deg);
  }

  83.33333% {
    transform: rotate(330deg);
  }

  91.66666% {
    transform: rotate(000deg);
  }
}

#filter-box {
  position: absolute;
  right: 200px;
  width: 200px;
  max-height: 300px;
  overflow: hidden;
  top: -300px;
  opacity: 0;
  padding: 20px;
  padding-top: 30px;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
  background-color: var(--background-color);
  color: var(--light-text-color);
  z-index: 2;
  -webkit-transition: top 0.5s ease, opacity 0.5s ease;
  -moz-transition: top 0.5s ease, opacity 0.5s ease;
  -o-transition: top 0.5s ease, opacity 0.5s ease;
  transition: top 0.5s ease, opacity 0.5s ease;
}

#filter-box.visible {
  top: 40px;
  opacity: 1;
}

#filter-status {
  position: absolute;
  top: 10px;
  height: 30px;
  width: 30px;
  right: 200px;
  border-radius: 3px;
  -webkit-transition: right 0.5s ease-in-out;
  -moz-transition: right 0.5s ease-in-out;
  -o-transition: right 0.5s ease-in-out;
  transition: right 0.5s ease-in-out;
}

#filter-label {
  display: none;
  height: 30px;
  line-height: 30px;
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.filter #filter-status {
  width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.2);
}

body.filter #filter-status #filter-label {
  display: block;
  position: absolute;
  left: 30px;
  right: 0;
  top: 0;
  bottom: 0;
  cursor: pointer;
}

#filter-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center center;
  background-image: url(resources/filter.png);
  border-radius: 3px;
  cursor: pointer;
}

#info-button {
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center center;
  background-image: url(resources/info.png);
  cursor: pointer;
}

#filter-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#filter-button:active {
  background-color: rgba(255, 255, 255, 0.2);
}

body.filter #filter-status #filter-button {
  background-image: url(resources/cancel.png);
  background-size: 10px 10px;
  border-radius: 0;
}

.box-confirm,
.box-cancel {
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  padding: 5px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center center;
  cursor: pointer;
  border-radius: 3px;
}

.box-confirm {
  right: 10px;
}

.box-cancel {
  left: 10px;
}

.box-confirm:hover,
.box-cancel:hover {
  background-color: var(--secondary-background-color);
}

.box-confirm:active,
.box-cancel:active {
  background-color: var(--tertiary-background-color);
}

.box-confirm.disabled {
  cursor: auto;
  opacity: 0.5;
}

.box-confirm.disabled:hover,
.box-confirm.disabled:active {
  background-color: transparent;
}

.box-title {
  font-weight: bold;
  text-align: center;
  height: 20px;
  line-height: 20px;
  margin-bottom: 20px;
}

.box-label {
  color: var(--lighter-text-color);
  font-size: 0.8em;
}

.box-radio {
  background-repeat: no-repeat;
  background-position: 0 2.5px;
  background-size: 15px 15px;
  height: 20px;
  line-height: 20px;
  cursor: pointer;
  margin-top: 5px;
}

.box-radio .icon {
  padding-right: 5px;
}

.box-radio .radio_on {
  display: none;
}

.box-radio.checked .radio_off {
  display: none;
}

.box-radio.checked .radio_on {
  display: block;
}

.box-text {
  position: relative;
  width: 200px;
  height: 30px;
  border-bottom: 1px solid #ccc;
  margin-top: 5px;
}

.box-text.format-error {
  border-bottom: 1px solid var(--error-color);
}

.box-text-label {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 30px;
  color: #999;
  font-size: 0.8em;
}

.box-text.format-error .box-text-label {
  color: var(--error-color);
}

.box-text-input {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 150px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  font-size: 1em;
  font-family: inherit;
  padding-left: 50px;
  text-align: right;
  background: transparent;
  color: var(--text-color);
}

.box-text.format-error .box-text-input {
  color: var(--error-color);
}

.header-button {
  display: inline-block;
  background-color: var(--background-color);
  top: 10px;
  width: 120px;
  height: 20px;
  line-height: 20px;
  border-radius: 3px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--light-text-color);
  padding: 5px;
  padding-left: 10px;
}

.header-button:hover {
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4);
}

.header-button a,
.header-button a:hover,
.header-button a:active,
.header-button a:visited,
.header-button a:link {
  color: inherit;
  text-decoration: none;
  display: block;
}

#items-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

#items-right>div {
  display: inline-block;
  vertical-align: middle;
}

/*Google Maps and third party modifications*/

.gm-ui-hover-effect {
  display: none !important;
}

.cc-floating {
  box-shadow: 0 0 10px var(--lighter-text-color);
}

.cc-message {
  font-size: 0.8em !important;
  text-align: justify;
}

/*Dark mode*/

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #fff;
    --light-text-color: #ccc;
    --lighter-text-color: #999;
    --background-color: #222;
    --secondary-background-color: #333;
    --tertiary-background-color: #777;
    --primary-color: #555;
  }

  body.details #overlay-color {
    background-color: var(--lighter-text-color) !important;
  }

  #map {
    --text-color: #000;
    --background-color: #fff;
    --primary-color: #6e95cb;
  }

  #details-close-button,
  #details-donate-overlay,
  #details-footer {
    --background-color: #fff;
  }
}

/*Responsive deisgn*/

@media only screen and (max-height: 600px) {
  #details-container {
    top: 0;
    bottom: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 0 !important;
  }
}

@media only screen and (max-width: 660px),
(max-height: 500px) {

  body.details #container,
  body.details #header {
    display: none;
  }

  body.details #overlay-color,
  body.details #overlay-blur {
    display: none;
  }

  #details-title {
    text-align: center;
  }

  #details-info-column,
  #details-timetable-column {
    position: relative;
    width: auto;
    height: auto;
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 20px;
    padding: 0;
  }

  #details-container {
    position: absolute;
    width: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px;
  }

  #details {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 30px;
    overflow: auto;
  }

  #details-logo {
    position: static;
    height: 35px;
    right: 10px;
  }

  #details-close-button {
    top: 5px;
  }

  #download-box {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    margin: 20px;
  }

  .badge,
  .badgeBlock+.badgeBlock .badge {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 10px auto;
    max-width: 200px;
    width: auto;
  }

  #details-footer {
    position: static;
    margin: 10px;
  }
}

@media only screen and (max-width: 550px) {
  #sidebar-header-scroller {
    width: 50px;
  }

  body.results #logo,
  body.filter #logo {
    opacity: 0;
  }

  body.results #sidebar-header-scroller {
    width: 250px;
  }

  #search-container {
    width: 80px;
  }

  body.results #search-container {
    width: 200px;
  }

  body.results #sidebar-header-scroller {
    width: 200px;
  }

  #info-button {
    float: right;
  }

  #filter-status {
    right: 50px;
  }

  body.results #filter-status {
    right: 200px;
  }

  #filter-box {
    left: 0;
    right: 0;
    width: auto;
    border-radius: 0;
  }

  #filter-box.visible {
    left: 0;
    right: 0;
    width: auto;
  }

  .box-text {
    width: auto;
  }

  .box-text-input {
    width: auto;
    right: 0;
    left: auto;
  }

  #sidebar-header {
    top: 0;
    width: auto;
    right: 0;
  }

  #sidebar {
    width: auto;
    left: 0;
    right: 250px;
    bottom: 0;
    top: auto;
    height: 250px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  }

  #container {
    bottom: -250px;
  }

  body.results #container {
    right: -250px;
    bottom: 0;
  }

  #search-list {
    right: 0;
    width: auto;
  }

  #scroller {
    width: auto;
    right: 0;
    left: 0;
  }

  #map {
    right: 250px;
    bottom: 250px;
  }

  #details-close-button span {
    display: none;
  }

  #details-logo img {
    float: none;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
  }
}

.marker {
  display: block;
  cursor: pointer;
  background-repeat: no-repeat;

  background-image: url(resources/marker.png);
  width: 20px;
  height: 30px;
  background-size: 20px 30px;
}

.marker-iubilaeum {
  background-image: url(resources/markerIubilaeum.png);
}

.marker-cluster {
  width: 24px;
  height: 30px;
  background-size: 24px 30px;
  background-image: url(resources/cluster.png);
}

.marker-unknown {
  background-image: url(resources/markerUnknown.png);
}

.marker-result {
  z-index: 1;
}

.marker-popup {
  z-index: 5;
}

.marker-church-1 {
  background-image: url(resources/church1.png?v1);
}

.marker-church-2 {
  background-image: url(resources/church2.png?v1);
}

.marker-church-3 {
  background-image: url(resources/church3.png?v1);
}

.marker-church-4 {
  background-image: url(resources/church4.png?v1);
}

.marker-church-5 {
  background-image: url(resources/church5.png?v1);
}

.marker-church-6 {
  background-image: url(resources/church6.png?v1);
}

.marker-church-7 {
  background-image: url(resources/church7.png?v1);
}

.marker-church-8 {
  background-image: url(resources/church8.png?v1);
}

.marker-church-9 {
  background-image: url(resources/church9.png?v1);
}

.marker-place-1 {
  background-image: url(resources/place1.png?v1);
}

.marker-place-2 {
  background-image: url(resources/place2.png?v1);
}

.marker-place-3 {
  background-image: url(resources/place3.png?v1);
}

.marker-place-4 {
  background-image: url(resources/place4.png?v1);
}

.marker-place-5 {
  background-image: url(resources/place5.png?v1);
}

.marker-place-6 {
  background-image: url(resources/place6.png?v1);
}

.marker-place-7 {
  background-image: url(resources/place7.png?v1);
}

.marker-place-8 {
  background-image: url(resources/place8.png?v1);
}

.marker-place-9 {
  background-image: url(resources/place9.png?v1);
}

#language-select {
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  padding: 0 8px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px;
  padding-right: 24px;
}

#language-select:focus {
  outline: none;
}

#language-select option {
  background: #fff;
  color: #333;
}

/* Donation Prompt Styles */
.donation-prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: donationPromptFadeIn 0.3s ease-out;
}

@keyframes donationPromptFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
  .donation-prompt-overlay {
    background-color: var(--background-color);
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
  }

  .donation-prompt-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
    min-height: 100vh;
    box-sizing: border-box;
  }

  .donation-prompt-visual {
    width: 160px;
    height: 160px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('resources/donation-box.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }

  .donation-prompt-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-transform: none;
  }

  .donation-prompt-message {
    font-size: 1em;
    color: var(--lighter-text-color);
    line-height: 1.5;
    margin: 0 0 40px 0;
    max-width: 320px;
  }

  .donation-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 280px;
  }

  .donation-prompt-cta {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .donation-prompt-cta:hover {
    background-color: #5a7bb8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }

  .donation-prompt-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .donation-prompt-dismiss {
    background: none;
    border: 2px solid var(--lighter-text-color);
    color: var(--lighter-text-color);
    font-size: 1em;
    cursor: pointer;
    padding: 16px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .donation-prompt-dismiss:hover {
    background-color: var(--secondary-background-color);
    border-color: var(--light-text-color);
    color: var(--light-text-color);
  }
}

/* Short screen adjustments */
@media only screen and (max-height: 600px) {
  .donation-prompt-visual {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  .donation-prompt-content {
    padding: 20px 30px;
  }

  .donation-prompt-title {
    font-size: 1.4em;
    margin: 0 0 15px 0;
  }

  .donation-prompt-message {
    font-size: 0.95em;
    margin: 0 0 25px 0;
  }

  .donation-prompt-buttons {
    gap: 12px;
  }

  .donation-prompt-cta,
  .donation-prompt-dismiss {
    padding: 14px 20px;
    font-size: 1em;
  }
}

/* Desktop Styles */
@media only screen and (min-width: 769px) {
  .donation-prompt-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    overflow-y: auto;
  }

  .donation-prompt-content {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: donationPromptSlideIn 0.3s ease-out;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
  }

  @keyframes donationPromptSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .donation-prompt-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('resources/donation-box.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .donation-prompt-title {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
    text-transform: none;
  }

  .donation-prompt-message {
    font-size: 1.1em;
    color: var(--lighter-text-color);
    line-height: 1.6;
    margin: 0 0 35px 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .donation-prompt-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .donation-prompt-cta {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 140px;
  }

  .donation-prompt-cta:hover {
    background-color: #5a7bb8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }

  .donation-prompt-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .donation-prompt-dismiss {
    background: none;
    border: 2px solid var(--lighter-text-color);
    color: var(--lighter-text-color);
    font-size: 1em;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 140px;
  }

  .donation-prompt-dismiss:hover {
    background-color: var(--secondary-background-color);
    border-color: var(--light-text-color);
    color: var(--light-text-color);
  }
}