*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%; /* Respect user settings */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 1rem;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: underline;
  color: red;
}

input,
button,
textarea,
select {
  font: inherit;
  border: solid black thin;
  padding: 3px;
  margin-bottom: 2px;
  outline: none;
  background: none;
}

header nav a {
    padding: 0 8px;
}

@media (max-width: 600px) {

    header nav {
        flex-direction: column;
        align-items: center;
    }

    header nav a {
        display: block;
        padding: 0;
    }

    header h2, header h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    header img {
        width: 120px;
    }
}

.formulas input,.formulas textarea,.formulas select {
  width: 100%;
  margin-bottom: 15px;
}

.formulas button {
  padding: 15px;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: disc;
}

ul li::marker {
  color: red;
}

input[type="checkbox"] {
  accent-color: red;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive text */
h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}
h2 {
  font-size: clamp(1.25rem, 4vw, 2rem);
}
p {
  font-size: clamp(1rem, 3vw, 1.125rem);
}

/* messages */
.messages {
    list-style: none;
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border: solid black thin;
}

/* leaflet */

#map {
  border: solid black thin;
}

button#reset-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background-color: white;
  border: 1px solid #000;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 0;
}

.leaflet-popup-content-wrapper {
  background: #fff;       /* dark background */
  border: solid black thin;
  font-family: "Times New Roman", Times, serif !important;
  color: #000;            /* white text */
  border-radius: 0px !important;
  box-shadow: none !important;
}

.leaflet-popup-tip {
  background: #222;       /* match background */
  display: none;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #000 !important;
}

.leaflet-popup-content {
  padding: 5px 1px 5px 1px !important;
}

.leaflet-popup-content a {
  color: red !important;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

.leaflet-tile {
    filter: grayscale(100%) brightness(100%) !important;
}