:root {
  --font-family: system-ui, sans-serif;
  --text-color: #000;
  --link-color: #ff7f66;
  --bg-accent-color: #ffece8;
}

body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #fff;
  font-family: var(--font-family);
  color: var(--text-color);
}

a {
  font-weight: 600;
  text-decoration: underline;
  color: inherit;

  &:hover {
    text-decoration: none;
    color: inherit;
  }
}

.card-shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 202;
  padding-inline: 1.5rem;
  background-color: var(--bg-accent-color);
  text-align: center;

  h1 {
    margin-block: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;

    @media (max-width: 575.98px) {
      font-size: 1.25rem;
    }
  }
}

.zavesa {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background-color: rgba(0, 0, 0, 0.5);

  .zavesa-content {
    max-width: 800px;
    margin-inline: auto;
    padding: 2rem;
    padding-top: 6.5rem;
    background-color: #fff;

    @media (max-width: 575.98px) {
      padding-inline: 1.5rem;
    }

    h2 {
      margin-top: 0;
      margin-bottom: 1em;
      font-size: 1.5rem;
      line-height: 1.3;

      @media (max-width: 575.98px) {
        font-size: 1.25rem;
      }
    }

    p {
      margin-top: 0;
      margin-bottom: 1em;
      font-size: 1rem;
      line-height: 1.5;

      &.lead {
        font-size: 1.5rem;
        line-height: 1.3;

        @media (max-width: 575.98px) {
          font-size: 1.25rem;
        }
      }

      .thetime {
        font-weight: 600;
      }
    }

    .button {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      width: 100%;
      margin-block: 1.5rem;
      padding-inline: 1rem;
      padding-block: 0.75rem;
      font-size: 1.375rem;
      line-height: 1.5;
      font-weight: 600;
      background-color: var(--bg-accent-color);
      border: 0;
      box-shadow: 0 0 0 1px #000;
      transition-property: scale, box-shadow;
      transition-duration: 150ms;
      will-change: transform;

      @media (max-width: 575.98px) {
        margin-block: 1.125rem;
        font-size: 1.125rem;
        line-height: 1.3;
      }

      &:hover {
        box-shadow: 0 0 0 2px #000;
        scale: 1.05;
      }

      &:focus-visible {
        outline: 2px solid var(--link-color);
        outline-offset: 2px;
      }

      svg {
        flex-shrink: 0;
        height: 1.125rem;
      }
    }

    hr {
      height: 0;
      margin-block: 1.5rem;
      border: 0;
      border-top: 1px solid #000;
    }

    .share {
      display: flex;
      align-items: center;
      gap: 0.75rem;

      @media (max-width: 575.98px) {
        flex-direction: column;
        align-items: stretch;
      }

      .share-title {
        font-size: 1.25rem;
        font-weight: 600;

        @media (max-width: 575.98px) {
          font-size: 1.125rem;
        }
      }

      input {
        flex-grow: 1;
        padding-inline: 1rem;
        padding-block: 0.5rem;
        background-color: #fff;
        border: 1px solid #000;
        font-size: 1.25rem;
        line-height: 1.5;
        font-weight: 600;
        color: var(--text-color);

        &:focus-visible {
          outline: 2px solid var(--link-color);
          outline-offset: 1px;
        }

        @media (max-width: 575.98px) {
          font-size: 1.125rem;
          line-height: 1.3;
        }
      }

      .button.copy-button {
        width: auto;
        margin-block: 0;
        padding-inline: 1rem;
        padding-block: 0.5rem;
        background-color: #fff;
        font-size: 1.25rem;
        line-height: 1.5;
        font-weight: 600;
        color: var(--text-color);

        @media (max-width: 575.98px) {
          font-size: 1rem;
          line-height: 1.3;
        }

        svg {
          height: 1em;
        }
      }
    }
  }
}

#themap {
  position: fixed;
  inset: 0;
  top: 4.5rem;
  background-color: #ccc;

  @media (max-width: 575.98px) {
    top: 4rem;
  }
}

.leaflet-popup-content-wrapper {
  border-radius: 0;

  .markercontainer {
    font-family: var(--font-family);
    font-size: 0.875rem;
    color: var(--text-color);

    p,
    ul,
    ol {
      margin-top: 0;
      margin-bottom: 1em;
    }

    ul,
    ol {
      padding-left: 1.25em;
    }

    b,
    strong {
      font-weight: 600;
    }

    a {
      font-weight: 600;
      text-decoration: underline;
      color: inherit;

      &:hover {
        text-decoration: none;
        color: inherit;
      }
    }
  }
}
