:root {
    --puzzle-trail-body: #fcfeff;
    --puzzle-trail-light: #F6F0FF;
    --puzzle-trail-bright: #C224A5;
    --puzzle-trail-dark: #611253;
    --puzzle-trail-mid: #564453;
    --puzzle-trail-light-mid: #DDDADD;
    --puzzle-trail-bodytext: #1D0519;

    --foreground-positive: #160900;
    --background-positive: #FFFFF8;
    --background-positive-box-shadow: none;
    --foreground-negative: #FFFFF8;
    --background-positive-image: none;
    --main-heading-font-family: 'Sora', sans-serif;
    --scrollbar-color: #89847e #c8c7c2;
    --scrollbar-thumb: #89847e;
    --map-tile-opacity: 1;
    --map-tile-filter: none;
    --background-popuptip: #c8c7c2;

    --trail-area-height: 100%; 
    --trail-area-width: 100vw;
    --infobar-height: 100px;
    --alert-height: 150px;
    --background-negative: rgba(13,5,0,0.9);
    --background-controls-button: rgba(5,2,0,1);
    --background-controls-button-active: #776b5f;
    --background-infobar: rgba(13,5,0,0.8);
    --background-alert: rgba(186,27,20,0.8);
    --background-resume: rgba(13,5,0,0.7);
    --background-success: rgba(0,115,40,0.8);
    --background-error: rgba(186,27,20.8);
    --blockquote-font-family: 'Caveat', cursive;
}
@keyframes fadeInOut {
  0%,100% { opacity: 0 }
  50% { opacity: 1 }
}
.fade-in-out, #entry-feedback.toast-error.fade-in-out {
    -webkit-animation: fadeInOut 3s linear forwards;
    animation: fadeInOut 3s linear forwards;    
}
.disable-scroll {
    overflow: hidden!important;
}
.page-header, .page-footer {
    display: none;
}
.desktop-grid {
    height: 100%;
}
.trail-area-container {
    height: 100%;
}
.trail-area {
    width: 100%;
    height: 100%;
    position: relative;
}
.ls-text {
    display: none;
}
blockquote {
    font-weight: 400;
    font-family: var(--blockquote-font-family);
    font-size: 1.7rem;
}
@media (min-width: 520px) {
    :root {
        --trail-area-height: 100%;
        --trail-area-width: 480px;
    }
    .trail-area {
        width: 520px;
        height: calc(100vh - 180px);
        min-height: 650px;
        max-height: 1067px;
        overflow: hidden;
        border: 20px solid #111122;
        border-radius: 18px;
        margin: 60px auto;
    }
    /* ===== Scrollbar CSS ===== https://codepen.io/stephenpaton-tech/full/JjRvGmY */
      /* Firefox */
      .full-overlay, .fullscreen-popup .leaflet-popup.leaflet-zoom-animated {
        scrollbar-width: thin;
        scrollbar-color: var(--scrollbar-color);
      }

      /* Chrome, Edge, and Safari */
      .full-overlay::-webkit-scrollbar, .fullscreen-popup .leaflet-popup.leaflet-zoom-animated::-webkit-scrollbar {
        width: 12px;
      }

      .full-overlay::-webkit-scrollbar-track, .fullscreen-popup .leaflet-popup.leaflet-zoom-animated::-webkit-scrollbar-track {
        background: #ccc8ad;
      }

      .full-overlay::-webkit-scrollbar-thumb, .fullscreen-popup .leaflet-popup.leaflet-zoom-animated::-webkit-scrollbar-thumb {
        background-color: var(--scrollbar-thumb);
        border-radius: 8px;
        border: 0px solid #ffffff;
      }
}
@media(min-height:780px) and (min-width:520px) and (max-width:939px) {
    body {
        overflow: hidden;
    }
}
@media (min-width: 940px) {
    .desktop-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 600px minmax(340px, 576px) minmax(0, 1fr);
        grid-template-rows: 72px 1fr 72px;
        margin: 0 auto;
    }
    .trail-area-container {
        grid-column: 2 / 3;
    }
    .trail-area {
        height: calc(100vh - 284px);
    }
    .page-header {
        display: block;
        background-color: var(--puzzle-trail-light);
        grid-column: 1 / 5;
        border-top: 3px solid var(--puzzle-trail-dark);
        border-bottom: 3px solid var(--puzzle-trail-dark);
        color: var(--puzzle-trail-dark);
        text-align: center;
    }
    .page-footer {
        display: block;
        background-color: var(--puzzle-trail-light);
        border-top: 3px solid var(--puzzle-trail-dark);
        border-bottom: 3px solid var(--puzzle-trail-dark);
        grid-column: 1 / 5;
        color: var(--puzzle-trail-dark);
        text-align: right;
    }
    .content-width {
        max-width: 1176px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    .ls-text {
        display: block;
        grid-column: 3 / 4;
        padding: 40px;
        color: var(--puzzle-trail-bodytext);
    }
}
*, *:before, *:after {
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html, body {
    height: var(--trail-area-height);
    font-size: 16px;
    font-family: 'Sora', sans-serif; /* https://web.dev/variable-fonts/ */
    font-weight: 300;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
body {
    background-color: var(--puzzle-trail-body);
}
i, em, .italic {
    /* Should be font-style: italic; */
    font-variation-settings: 'ital' 1;
}
b, strong, .bold {
    font-weight: 500;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 400;
}
h1,h2 {
    font-family: var(--main-heading-font-family);
}
.ls-text h1 {
    font-size: 2.8rem;
    font-family: 'Road Rage', sans-serif;
    margin: 0.5rem 0;
    line-height: 1.25;
    color: var(--puzzle-trail-bright);
}
.brand {
    font-weight: 500;
    font-size: 3rem;
    line-height: 68px;
}
.copyright {
    line-height: 68px;
}
#map {
    width: calc(100% - 36px);
    height: 100%;
}
.img-fullscreen {
    cursor: pointer;
}
#controls {
    position: absolute;
    width: 36px;
    height: var(--trail-area-height);
    background-color: var(--background-negative);
    color: var(--foreground-negative);
    top: 0;
    right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: serif;
    font-weight: bold;
    font-style: italic;
    font-size: 1.25rem;
}
#controls span, #controls i {
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--background-controls-button);
}
#controls span {
    margin: 2px 0;
    height: 36px;
}
#controls i {
    padding-top: 6px;
    padding-bottom: 6px;
}
#controls span.active, #controls img.active, #controls i.active {
    background-color: var(--background-controls-button-active);
}
#controls span#ti-span {
    margin-top: 1rem;
}
#infobar {
    position: absolute;
    top: calc(var(--trail-area-height) - var(--infobar-height));
    left: 0;
    background-color: var(--background-infobar);
    color: var(--foreground-negative);
    z-index: 9999;
    padding: 4px 8px;
    width: calc(100% - 36px);
    height: var(--infobar-height);
}
.alert-overlay {
    position: absolute;
    top: calc(var(--trail-area-height) - var(--infobar-height) - var(--alert-height) );
    left: 0;
    background-color: var(--background-alert);
    color: var(--foreground-negative);
    z-index: 9999;
    padding: 4px 8px;
    width: calc(100% - 36px);
    height: var(--alert-height);
}
.full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-positive);
    background-image: var(--background-positive-image);
    z-index: 9999;
    padding: 1.5rem;
    font-size: 1.125rem;
    overflow-y: scroll;
    color: var(--foreground-positive);
    box-shadow: var(--background-positive-box-shadow);
}
#resume-fullscreen-overlay {
    background-color: var(--background-resume);
    color: var(--foreground-negative);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
#resume-fullscreen-overlay .text-button {
    font-size: 1.5rem;
}
img {
    max-width: 100%;
    height: auto;
}
h1 {
    font-size: 1.8rem;
    text-align: center;
}
.lead {
    text-align: center;
}
button, .btn {
    background-color: var(--puzzle-trail-dark);
    color: var(--foreground-negative);
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 2rem auto;
    font-weight: 500;
    font-size: 1.5rem;
    border: none;
    border-radius: 0.5rem;      
    cursor: pointer;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s linear;
}
button[disabled], button:disabled {
    opacity: .5;
}
#guess-form button {
    margin-top: 1rem;
}

details {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

summary {
    font-size: 1.5rem;
    pointer: cursor;
}
details.hint {
    border: 2px solid var(--puzzle-trail-light-mid);
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0.5rem;
    position: relative;
}
details.hint summary {
    background-color: var(--puzzle-trail-light-mid);
    padding: .75rem;
    border-radius: 0.5rem;
    list-style: none;    
}
details.hint summary .hint-cost {
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
}
.hint-cost:not(.hint-cost-updated) {
    background-color: transparent;
    -webkit-transition: background-color 2s ease-out;
    transition: background-color 1s ease-out;
}
.hint-cost.hint-cost-updated {
    background-color: gold;
    -webkit-transition: background-color 2s ease-out;
    transition: background-color 1s ease-out;
}

.back-to-guess-form {
    font-size: 0.9rem;
    border-top: 2px solid var(--puzzle-trail-light-mid);
    border-left: 2px solid var(--puzzle-trail-light-mid);
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.2rem;
    border-top-left-radius: 0.5rem;
    background-color: var(--puzzle-trail-light-mid);
    cursor: pointer;
}

.spacer-hint {
    padding-bottom: 4rem;
}

input[type="text"], input[type="email"], textarea {
    display: block;
    width: 100%;
    font-size: 1.5em;
    padding: 1rem;
    border: 2px solid var(--puzzle-trail-bright);
    border-radius: 0.5rem;
    margin: 2rem 0;
}
#guess-form {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px solid var(--puzzle-trail-dark);
    background-color: lightgoldenrodyellow;
    border-radius: 0.5rem;
}
#guess-form .entry-section h2 {
    margin-bottom:  0.5rem;
    margin-top: 0;
}
#guess-form input[type="text"] {
    margin: 0;
}

.completed-answer {
    margin-top: 1rem;
    padding: 1rem;
    border: 2px solid var(--puzzle-trail-dark);
    background-color: lightgoldenrodyellow;
    border-radius: 0.5rem;
}

.correct-answer {
    text-transform: uppercase;
}

dl {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-gap: 1rem;
}
dt {
    text-align: right;
}
dd {
    margin: 0;
}

.spacer-50 {
    min-height: 50vh;
}
.toast {
    font-size: 1.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
    border-radius: 0.5rem;    
    background-color: var(--background-negative);
    color: var(--foreground-negative);
    font-weight: 500;
}
.toast-success {
    background-color: var(--background-success);
    color: var(--foreground-negative);
}
.toast-error {
    background-color: var(--background-error);
    color: var(--foreground-negative);
}
#entry-feedback.toast-error {
    opacity: 0;
}
.d-none {
    display: none!important;
}
.d-none-regexable {
    display: none!important;
}
.ov-fade {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s linear;
}
.ov-fade.ov-none {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s linear, visibility 0.15s;
}

.leaflet-fade-anim .leaflet-popup.ov-fade {
    visibility: visible!important;
    opacity: 1!important;
    transition: visibility 0s, opacity 0.3s linear!important;
}
.leaflet-fade-anim .leaflet-popup.ov-fade.ov-none {
    visibility: hidden!important;
    opacity: 0!important;
    transition: opacity 0.3s linear, visibility 0.15s!important;
}

.v-hidden {
    visibility: hidden;
} 

#fullscreen-image-display {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#fullscreen-image-display.d-none {
    display: none;
}

#fullscreen-image-display.landscape img {
    height: var(--trail-area-width);
    max-width: none;
    width: auto;
    transform: rotate(-90deg);
    position: absolute;
    left: 0;
    display: block;
}
@media (min-width: 520px) {
    #fullscreen-image-display {
        position: fixed;
    }
    #fullscreen-image-display img, #fullscreen-image-display.landscape img {
        width: 100%;
        height: 100%;
        transform: none!important;
        position: static!important;
        object-fit: contain;
    }
}
.fullscreen-image-close {
    display: block;
    background-color: rgba(0,0,0,0.5);
    color: white;
    font-size: 0.75rem;
    text-align: center;
    width: 80%;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    position: absolute;
    top: 0;
    left: 10%;
    line-height: 2.2;
    cursor: pointer;
}
.fullscreen-image-close.base {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    position: static;
    margin: 2rem auto;
}
.fullscreen-image-close.help-close {
    font-size: 1rem;
    text-align: center;
}


.fullscreen-popup .leaflet-pane.leaflet-map-pane {
    transform: none!important;
}
.fullscreen-popup .leaflet-popup.leaflet-zoom-animated {
    transform:none!important;
    position: fixed!important;
    top: 0!important;
    left: 0!important;
    bottom: 0!important;
    right: 0!important;
    margin-bottom: 0!important;
    overflow-y: scroll!important;
    font-size: 1.125rem;
    color: var(--foreground-positive);
    width: calc( 100% - 36px );
    font-family: 'Sora', sans-serif; /* https://web.dev/variable-fonts/ */
    font-weight: 300;
    min-height: calc(100% + 20px);
}

@media (min-width: 520px) {
    .fullscreen-popup .leaflet-popup.leaflet-zoom-animated {
        position: absolute!important;
        width: 444px;
        margin: 0;
        height: calc(100vh - 195px);
        min-height: 620px;
        max-height: 1014px;
    }
}
@media (min-width: 940px) {
    .fullscreen-popup .leaflet-popup.leaflet-zoom-animated {
        left: -36px!important;
        margin: 0 0 0 36px;
        height: calc(100vh - 300px);
    }
}

.fullscreen-popup .leaflet-popup.leaflet-zoom-animated h2 {
    text-align: center;
}

.fullscreen-popup .leaflet-popup.leaflet-zoom-animated select {
    font-size: 1.5rem;
    padding: 0.5rem;
    border: 2px solid var(--puzzle-trail-bright);
    border-radius: 0.5rem;
}

.fullscreen-popup .leaflet-popup.leaflet-zoom-animated table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}
.fullscreen-popup .leaflet-popup.leaflet-zoom-animated th {
    background-color: #ddd;
    font-weight: bold;
    text-align: left;
}
.fullscreen-popup .leaflet-popup.leaflet-zoom-animated td {
    text-align: right;
}
.fullscreen-popup .leaflet-popup.leaflet-zoom-animated td, .fullscreen-popup .leaflet-popup.leaflet-zoom-animated th {
    border: 1px solid black;
    padding: 4px 6px;
}
.fullscreen-popup .leaflet-popup-content-wrapper {
    background-color: var(--background-positive);
    background-image: var(--background-positive-image);
    color: var(--foreground-positive);
}
.fullscreen-popup .leaflet-popup-tip {
    background-color: var(--background-popuptip);
    color: var(--foreground-positive);
}
.fullscreen-popup.leaflet-container a.leaflet-popup-close-button {
    font-size: 1.75rem;
    padding: 0;
    top: 1rem;
    right: 1rem;
}
.fullscreen-popup .leaflet-popup-content-wrapper {
    border-radius: 0;
    box-shadow: var(--background-positive-box-shadow);
    min-height: 100%;
}
.fullscreen-popup .leaflet-popup-content {
    width: calc( 100% - 36px )!important;
    max-width: 840px;
}
.fullscreen-popup .leaflet-control-attribution.leaflet-control {
    display:none!important;
}
.fullscreen-popup .leaflet-control-zoom.leaflet-bar.leaflet-control {
    display: none!important;
}
img.leaflet-tile {
    opacity: var(--map-tile-opacity)!important;
    filter: var(--map-tile-filter);
}

.text-center {
    text-align: center;
}


.multichoice-image {
    display: flex;
    flex-wrap: wrap;
}

.image-option {
    display: block;
    width: 48%;
    padding: 4px 1%;
    position:  relative;
}

.image-option input {
    display: block;
    position: absolute;
    left: 4px;
    bottom: 16px;
}


.acknowledgements p {
    font-size: 0.875rem;
}

.contact-form-block input, .contact-form-block select, .contact-form-block textarea {
    margin-bottom: .75rem;
    margin-top: 0;
}
.contact-form-block input[type="checkbox"] {
    width: auto;
    float: left;
    font-size: 3rem;
    margin-right: 1rem;
}
@supports not (-webkit-touch-callout: none) {
   /* CSS for other than iOS devices */ 
    .contact-form-block input[type="checkbox"] {
        transform: scale(1.75);
    }
}
.contacter-mjsubscribe, #js-show-name-email, .contacter-overall  {
    clear: left;
}
.contacter-reply, .contacter-mjsubscribe {
    padding: 1rem 0;
}
#contacter-overall .contacter-message {
    margin: 1rem 0;
}
.contact-form-block input[type="submit"] {
    background-color: var(--puzzle-trail-dark);
    color: var(--foreground-negative);
    padding: 1rem 0.5rem;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 2rem auto;
    font-weight: 500;
    font-size: 1.5rem;
    border: none;
    border-radius: 0.5rem;      
    cursor: pointer;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s linear;
}
.contacter-hpsubscribe {
    display: none;
}
.contacter-message {
    width: calc(100% - 30px);
    border: 1px solid darkred;
    background-color: red;
    color: white;
    display: none;
}
.contacter-message.contacter-visible {
    display: block;
    padding: 6px;
    margin-bottom: 12px;
    margin-top: -9px;
}
.contacter-message.contacter-success {
    border: 1px solid darkgreen;
    background-color: green;
}
.contacter-message.contacter-thinking {
    border: 1px solid darkorange;
    background-color: orange;
}
.contacter-has-message label {
    background-color: lightcoral;
}
.contacter-has-message label input, .contacter-has-message label textarea {
    border-color:  darkred;
    background-color: #ffeeee;
}
.contacter-about-list {
    clear: left;
    font-style: italic;
    font-size: 0.875rem;
}
.star-rating {
    font-size: 3rem;
}
.click-star {
    cursor: pointer;
}
.click-star-empty {
    color: #666;
}
.click-star-full {
    color: #FFD700;
    -webkit-text-fill-color: #FFD700; /* Will override color (regardless of order) */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #666;
}
.click-star .click-star-empty {
    display: inline;
}
.click-star .click-star-full {
    display: none;
}
.click-star.click-star-filled .click-star-empty {
    display: none;
}
.click-star.click-star-filled .click-star-full {
    display: inline;
}
.text-assistive {
  -webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  box-sizing: border-box;
  position: absolute;
  margin: 0;
  padding: 0;
}
#complete-trail-nav {
position: absolute;
    top: calc(var(--trail-area-height) - 8rem);
    left: 0;
    background-color: var(--puzzle-trail-light);
    color: var(--puzzle-trail-bright);
    z-index: 9999;
    padding: 4px 8px;
    width: 100%;
    height: 8rem;
    border-top: 3px solid var(--puzzle-trail-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
}
#complete-trail-nav button, #complete-trail-nav a.btn {
    background-color: var(--puzzle-trail-bright);
    color: white;
    font-family: 'Road Rage', sans-serif;
    padding: 0.125rem 1rem;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 400;
    text-decoration: none;
    border: none;
    display: block;
    margin: 0;
    position: relative;
    text-align: center;
}

#complete-trail-nav button i, #complete-trail-nav a.btn i {
    font-size: 1.5rem;
    display: inline-block;
    margin-right: 1rem;
}

.ko-fi-donate {
    grid-column: span 2;
}

.ko-fi-cup {
    width: 2.5rem;
    display: inline-block;
    margin: 0 0.8rem 0 0;
    position: relative;
    top: 4px;
}
