@import url('https://fonts.googleapis.com/css2?family=Open%20Sans:wght@400;700&display=swap');

/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

#map {
  height: 100%;
}

#coordinates {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 1000;
}

html, body {
  font-family: 'Open Sans', sans-serif;
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  height: 100%;
  margin: 0;
  padding: 0;
}

#menu {
  position: absolute;
  top: 10%;
  right: 10px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 300px;
  max-height: 75%;
  overflow-y: auto;
  transition: none;
}

#menu.collapsed {
  max-height: 25px;
  overflow: hidden;
}

#menu h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.menu-title {
  flex-grow: 1;
  text-align: center;
}

#toggleMenuButton {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  color: #333;
  position: absolute;
  right: 0;
}

#toggleMenuButton::before {
  content: '\25B2';
}

#menu.collapsed #toggleMenuButton::before {
  content: '\25BC';
}

.category-section {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  overflow: hidden;
}

.category-title {
  cursor: pointer;
  font-weight: bold;
  margin: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eaeaea;
  border-bottom: 1px solid #ddd;
}

.category-title::after {
  content: '\25B6';
  font-size: 12px;
  transition: transform 0.3s ease;
}

.category-section.expanded .category-title::after {
  transform: rotate(90deg);
}

.category-content {
  padding: 10px;
  display: none;
}

.category-section.expanded .category-content {
  display: block;
}

.marker-name {
  font-size: 0.85em;
  color: #333;
}

#menu .menu-label {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

#menu .menu-label input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

#menu .menu-label img {
  margin-right: 5px;
  vertical-align: middle;
}

#menu .menu-label .marker-name {
  font-size: 0.85em;
  color: #333;
}

.marker-count {
  display: inline-block;
  background-color: #ccc;
  color: #333;
  font-size: 0.6em;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  text-align: center;
  margin-left: 8px;
}

.select-all-container {
  display: flex;
  align-items: center;
  margin: 0 0 5px 0;
  padding: 0 10px;
}

.select-all-container input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}

.select-all-container label {
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.select-all-container,
#categories {
  transition: opacity 0.3s ease;
  opacity: 1;
}

#menu.collapsed .select-all-container,
#menu.collapsed #categories {
  opacity: 0;
  pointer-events: none;
}

.opacity-slider-container {
  display: flex;
  align-items: center;
  margin: 0 0 10px 0;
  padding: 0 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

#activateMultiSelect {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1000;
}

.exploration-map-container {
  text-align: center;
  position: relative;
}

.exploration-map-container img {
  max-width: 90%;
  height: auto;
  transition: transform 0.3s ease-in-out;
  width: 400px;
  border-radius: 3px;
}

.exploration-map-container {
  transform: scale(2);
}

body.exploration-page {
  background: #0f0e11;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Arial, sans-serif;
}

.tooltip {
  position: absolute;
  display: none;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.tooltip-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.tooltip-column {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tooltip-column h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #333;
  text-align: center;
}

.tooltip-column ul {
  margin: 0;
  padding: 0;
  list-style-type: disc;
  list-style-position: inside;
}

.tooltip-column ul li {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.tooltip h3 {
  text-align: center;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.tooltip p {
  text-align: left;
  font-style: italic;
  font-size: 14px;
  color: #555;
  margin: 5px 0 5px 0;
}

.tooltip-item-image {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.back {
  position: absolute;
  top: 90px;
  left: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  background-color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.back .icon {
  margin-right: 8px;
  font-size: 18px;
}

.back:hover {
  background-color: #eaeaea;
}

#footer {
  height: 20px;
  width: auto;
  background-color: #f8f8f8;
  color: #555;
  font-size: 12px;
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
}

#footer a {
  color: #0078A8;
  text-decoration: none;
}

#footer span {
  color: #0051ff;
  font-weight: bold;
}
