/* Set theme colors up here and get a nice retheming of the PIM interface.
 */

:root {
  --primary: #00853f;
  --primary-foreground: white;
  --secondary: #0069aa;
  --secondary-foreground: white;
  --accent: #f3901d;
  --accent-foreground: #222;
  --success: #1d611d;
  --warning: #c04947;
  --error: #e91e63;
  --warning-foreground: white;
  --light: #eee;
  --form-background: white;
  --form-border: #ccc;
  --form-foreground: #222;
}

#content-root .child-content .copyright {
  margin: 3rem 0 0 0;
  text-align: center;
  font-size: 0.7em;
  /* background-color: var(--form-background); */
  /* opacity: 0.85; */
  color: var(--form-foreground);
  /* padding: 5px; */
  /* backdrop-filter: blur(5px); */
}

#content-root .child-content .copyright a {
  color: var(--secondary);
  font-weight: normal;
  text-decoration: none;
}

br {
  margin: 0 !important;
}

a {
  transition: all 0.25s;
}

hr {
  margin: 1rem 0;
  padding: 0;
  border-top: 2px solid var(--light);
}

/* LAYOUT COLORS
 *
 */

.large.inline-block.text-left,
.content-arrow,
.content-close,
.content-root.animated.fadeInLeft {
  background: white !important;
  color: #222;
}

.content-root,
.content-arrow,
.content-close {
  border: 0;
}

.content-arrow a img,
.content-close a img {
  filter: invert(100%);
  opacity: 0.4;
}

.content-edit.edit-tutorial {
  background-color: var(--primary) !important;
}

.content-edit.edit-cancel {
  background-color: var(--secondary) !important;
}

/* BUTTONS
 *
 */

.controls .menu-toggle {
  background-color: var(--secondary) !important;
}

.home-inline-buttons a.btn-primary {
  margin-bottom: 0;
}

.btn-primary,
.btn-primary.full,
input[type='submit'] {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--primary);
  padding: 1rem 1.25rem;
  text-align: center;
}

input[type='submit'] {
  width: auto !important;
}

.controls .control {
  background-color: var(--primary);
}

.controls .control:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.controls .control.active {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary.content-close-btn,
.btn-primary[data-navigate='previous'] {
  background-color: var(--light);
  color: var(--form-foreground);
  border: 2px solid var(--light);
}

#content-root a:not(.btn-primary) {
  color: var(--primary);
}

#content-root p a:not(.btn-primary) {
  color: var(--primary);
  text-decoration: underline;
}

a.btn-primary:hover {
  background-color: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-primary[data-navigate='previous']:hover {
  color: var(--warning) !important;
  background-color: transparent !important;
  border-color: var(--warning) !important;
}

/* FORMS
 *
 */

.form-control {
  background-color: var(--form-background);
  border-color: var(--form-border);
  color: var(--form-foreground);
}

.form-control.user-success {
  border-color: var(--success);
}

.form-control.user-error {
  border-color: var(--error);
}

.ws-errorbox p {
  border-color: var(--error);
  background-color: var(--error);
}

.required-icon:before {
  color: var(--error);
}

select.form-control {
  color: var(--primary);
  font-weight: bold;
}

.form-group {
  margin: 0 0 2rem 0;
}

.form-group .radio-inline,
.form-group .checkbox-inline {
  display: block;
}

.form-group > label,
.form-group .form-label {
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-size: 1.1rem;
  font-weight: bold;
}

.form-group > label.checkbox-inline,
.form-group > label.radio-inline {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: normal;
}

/* TEXT
 *
 */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary) !important;
font-family: "museo-sans-display", sans-serif;
font-weight: 600;
}

/* LEGEND
 *
 */

.legend-category {
  background-color: var(--light);
  color: #222;
  border: none;
  margin-bottom: 0.5em;
}

.legend-image svg {
  background-color: white;
  border: 4px solid white;
}

.legend-category h2 {
  color: #222 !important;
}

/* MODALS
 *
 */

.modal h1,
.modal h2 {
  color: var(--light) !important;
}

.modal,
.modal a.close-modal {
  background-color: var(--primary) !important;
}

.modal a.btn-primary {
  background-color: var(--secondary) !important;
  border: 2px solid var(--secondary) !important;
}

.modal a.btn-primary:hover {
  background-color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
}

/* Device-specific
 *
 */

@media (min-width: 600px) {
  .home-inline-buttons {
    margin: 1.4rem 0 0 0;
    align-items: center;
  }

  .home-inline-buttons-item {
    margin-right: 1rem !important;
  }
}

@media only screen and (min-width: 768px) {
  .content-arrow,
  .content-close {
    /* border-bottom: 2px solid var(--secondary);
    border-top: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    margin-right: -71px !important; */
  }

  .control {
    background-color: var(--primary);
  }

  .control:hover {
    color: #222;
    background-color: var(--accent);
  }
}

a.delete-confirm,
#content-root .comments a.tiny-btn {
  background-color: var(--primary-foreground);
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 3px;
  padding: 3px 6px;
  margin: 0 4px 0 0;
  font-size: 0.9rem;
  text-decoration: none;
}

.comments p .comment-buttons {
  display: block;
  margin-top: 0.5em;
}

/*
 *  Basic form styles
 *
 */

.form-group:not(.matrix-item) {
  margin: 0 0 2rem 0;
}

.leaflet-popup-content .form-group:not(.matrix-item) {
  margin: 0 0 1rem 0;
}

.form-group select {
  border: 1px solid #bbb;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
  border: 1px solid #bbb;
}

.form-group:not(.matrix-item) label.radio-inline,
.form-group:not(.matrix-item) label.checkbox-inline {
  margin: 0 0 0.5rem 0;
}

.form-group label:not(.btn-block) {
  margin: 0 0 0.5rem 0;
}

.form-group:not(.matrix-item) label.radio-inline input,
.form-group:not(.matrix-item) label.checkbox-inline input {
  margin-top: 0;
}

.form-group label {
  display: block;
}

.form-group:not(.matrix-item) label.btn-block {
  margin: 0 0 0.75rem 0;
}

.form-group .help-block {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
}

.form-group-required > label[for]:after {
  content: ' *';
  color: var(--error);
}

.alert-success {
  display: none;
}

/* matrix */

.matrix {
  margin: 0 0 2rem 0;
  padding: 0.5rem 0 0 0;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.matrix .matrix-item {
  margin: 0;
  padding: 0.75rem;
}

.matrix .matrix-item:nth-child(odd) {
  background: #eee;
}

.matrix label {
  display: inline-block;
}

.matrix .labels label:first-child {
  margin-left: 50%;
}

.matrix label.btn-block {
  width: 50%;
  margin: 0;
  padding: 0 3rem 0 0;
}

.matrix .labels {
  display: none;
}

html[lang='en'] .matrix .labels.en {
  display: block;
}

html[lang='es'] .matrix .labels.es {
  display: block;
}

.matrix .labels label {
  margin-bottom: 0.5rem;
}

.matrix .labels label,
.matrix .matrix-item .radio-inline {
  width: 15%;
  text-align: center;
}

.matrix .matrix-item label.radio-inline {
  margin: -2.5rem 0 0 0;
}

button.inline-block.like-btn.btn-liked {
  border: var(--success) 2px solid;
  color: var(--light);
  background-color: var(--success);
}

/* Contact page submit button hover */
.btn-primary:hover, input[type=submit]:hover {
  background-color: #fff;
  text-decoration: none;
  color: var(--primary);
}

/* Change pop-up background colors to neutrals */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: var(--primary-foreground) !important;
	color: var(--form-foreground) !important;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  border-radius: .25rem;
	}
.leaflet-popup-content h3 {
  color: var(--primary) !important;
}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 2px;
	right: 2px;
	padding: 4px 4px 0 0;
	border: none;
	text-align: center;
	width: 18px;
	height: 14px;
	font: 16px/14px Tahoma, Verdana, sans-serif;
	text-decoration: none;
	font-weight: bold;
	background: transparent !important;
	color: var(--form-foreground) !important;
  opacity: .7;
	}
.leaflet-container a.leaflet-popup-close-button:hover {
	color: var(--primary) !important;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	border-bottom: 1px solid #ddd !important;
	border-top: 1px solid #ddd !important;
	}
  
.leaflet-popup-content .likes, .leaflet-popup-content button.like-btn {
  color: var(--primary);
  }

.leaflet-popup-content button.like-btn, .leaflet-popup-content a.btn-novel {    
  border: 2px solid var(--primary);
  color: var(--primary);
  }

.leaflet-popup-content button.like-btn:hover, .leaflet-popup-content a.btn-novel:hover {    
  border: 2px solid var(--primary);
  background-color: var(--primary) !important;
  color: var(--light) !important;
  }


/*
 * Message displayed to user in suggestion popup when the suggestion type is
 * hidden from API
 */
p.hidden-note, p.visible-note {
  padding: .5em 1em;
  margin: 0;
  width: 100%;
  border-bottom: 1px solid #ffff;
  font-size: .85rem;
}

p.hidden-note:not(.comment-form):not(.inline),
p.visible-note:not(.comment-form):not(.inline) {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--light);
  color: var(--light);
  background-color: var(--secondary) !important;
}

p.hidden-note.comment-form,
p.visible-note.comment-form {
  padding: .5rem;
  border: 1px solid var(--warning);
  margin: 0 0 1rem 0;
  border-radius: 4px;
  background-color: var(--light);
}

.leaflet-popup-content p.hidden-note,
.leaflet-popup-content p.visible-note {
  margin-bottom: 1rem;
}

p.hidden-note.inline,
p.visible-note.inline {
  padding: .5rem;
  border: 1px solid var(--warning);
  border-radius: 4px;
  color: var(--warning);
}

p.visible-note {
  margin-top: 1rem;
}

.visible-note + .hidden-from-api,
.hidden-note + .hidden-from-api {
  padding-top: 2.5em;
}

.delete-confirmation button {
  color: var(--warning);
  border: 2px solid var(--warning) !important;
}

.delete-confirmation button:hover {
  background-color: var(--warning);
  color: var(--light);
  border: 2px solid var(--warning) !important;
}

.leaflet-container a {
  color: var(--secondary);
}

.fullscreen-icon { background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjYgNTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIwLjYgMzYuN0gxNmEuOS45IDAgMCAxLS44LS44di00LjVjMC0uMi4yLS40LjQtLjRoMS40Yy4zIDAgLjUuMi41LjR2M2gzYy4yIDAgLjQuMi40LjV2MS40YzAgLjItLjIuNC0uNC40em0tOS45LS44di00LjVjMC0uMi0uMi0uNC0uNC0uNEg4LjljLS4zIDAtLjUuMi0uNS40djNoLTNjLS4yIDAtLjQuMi0uNC41djEuNGMwIC4yLjIuNC40LjRIMTBjLjQgMCAuOC0uNC44LS44em0wIDEwLjdWNDJjMC0uNC0uNC0uOC0uOC0uOEg1LjRjLS4yIDAtLjQuMi0uNC40djEuNGMwIC4zLjIuNS40LjVoM3YzYzAgLjIuMi40LjUuNGgxLjRjLjIgMCAuNC0uMi40LS40em02LjkgMHYtM2gzYy4yIDAgLjQtLjIuNC0uNXYtMS40YzAtLjItLjItLjQtLjQtLjRIMTZjLS40IDAtLjguNC0uOC44djQuNWMwIC4yLjIuNC40LjRoMS40Yy4zIDAgLjUtLjIuNS0uNHpNNSAxMC4zVjUuOWMwLS41LjQtLjkuOS0uOWg0LjRjLjIgMCAuNC4yLjQuNFY3YzAgLjItLjIuNC0uNC40aC0zdjNjMCAuMi0uMi40LS40LjRINS40YS40LjQgMCAwIDEtLjQtLjR6bTEwLjMtNC45VjdjMCAuMi4yLjQuNC40aDN2M2MwIC4yLjIuNC40LjRoMS41Yy4yIDAgLjQtLjIuNC0uNFY1LjljMC0uNS0uNC0uOS0uOS0uOWgtNC40Yy0uMiAwLS40LjItLjQuNHptNS4zIDkuOUgxOWMtLjIgMC0uNC4yLS40LjR2M2gtM2MtLjIgMC0uNC4yLS40LjR2MS41YzAgLjIuMi40LjQuNGg0LjRjLjUgMCAuOS0uNC45LS45di00LjRjMC0uMi0uMi0uNC0uNC0uNHptLTkuOSA1LjNWMTljMC0uMi0uMi0uNC0uNC0uNGgtM3YtM2MwLS4yLS4yLS40LS40LS40SDUuNGMtLjIgMC0uNC4yLS40LjR2NC40YzAgLjUuNC45LjkuOWg0LjRjLjIgMCAuNC0uMi40LS40eiIgZmlsbD0iY3VycmVudENvbG9yIi8+PC9zdmc+'); background-size:26px 52px; }

/* 
 * 
 * glossary
 * 
 */ 
 
 
 div.glossary {
  max-width: 1280px;
}

.glossary .images-col {
  display: flex;
  flex-direction: column;
}


.glossary .images-col.horiz {
  display: flex;
  flex-direction: row;
}


.glossary .images-col .image {
  margin: .5em 0;
}

.glossary .container .row {
  margin-bottom: 2em;
}

.glossary .container {
  margin-left: 0;
  margin-right: 0;
  max-width: unset;
}

.glossary .container .row .desc-col {
  padding-left: 0 !important;
}

.glossary .container .row .images-col {
  padding-right: 0 !important;
}

.glossary .images-col.horiz {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 15px;
  grid-row-gap: 0px;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.glossary .images-col.horiz.images-count-3 {
  grid-template-columns: repeat(3, 1fr);
}

.glossary .images-col.horiz .image {
  width: 100%;
  display: block;
}

.images-col .image {
  display: block;
  width: 100%;
  overflow: hidden;
}

.images-col .image img {
  object-fit: contain;
  width: 100%;
}

.mini-legend .data-layers {
  overflow-y: scroll;
  max-height: 19.5rem;
}

.row.sep-after {
  margin-bottom: .5rem !important;
  border-bottom: 1px solid #ffffff52;
  padding-bottom: 1.5rem;
}

.glossary {
  background: white !important;
  color: var(--primary) !important;
}

.glossary h2 {
  background: white !important;
  color: var(--primary) !important;
}


.glossary h1 {
  background: white !important;
  color: var(--primary) !important;
}

.modal.glossary .close-modal {
  background-color: white !important;
  background-image: url(/storage/app/media/content-close-invert.png);
}


.instruction-screenshot img {
  margin-bottom: 1em;
  width: 100%;
  display: block;
  border: 1px solid #ccc;
  border-radius: 7px;
  max-height: 300px;
}

.home-block-bar img {
  float: right;
  height: 150px;
  margin-bottom: 2rem;
  margin-left: 2rem;
  background: white;
}

@media only screen and (max-width: 600px) {
  
  .home-block-bar {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }
  
  .home-block-bar img  {
      height: 40px;
      margin: 0 3.5rem !important;
      
  }

  .home-block-bar h1 {
      font-size: 1.25rem;
  }

  
}

.image .caption {
  font-size: .8rem;
  font-style: italic;
  width: 100%;
  text-align: right;
  display: block;
  background-color: white;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 6px;
}

.image {
  min-height: 150px;
}

.image img {
  background-color: #efefef;
}


a.close-modal {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAABGVJREFUeF7tnTuMTVEUhv/piFYokGiVVCRESeMRSomOTqGj8WroFFR0Ejri0VAKiakotRIkiNaj4+6Ze5jM49x9z/rXXv9lTb3XPv/6v73OOXvPzTpzyD8pB+ak1KQYJBCxRZBAEoiYA2JyskISiJgDYnKyQhKImANicrJCEoiYA2JyskISiJgDYnKyQhKImANicrJC/nEgBfBhACcB7AWwCcBPAG8BPAZwE8BXMQ/65GwEcAbAIQA7AKwD8AXASwB3xjn9YubDrJBtAO4C2Ncj8BuAswBuM5NwmusUgOsANvTM/wLACQDvWRpYQAqMVyOjt1QKOz9abdcqx0YMOwfgauWFPwLYDeBD5fjeYQwgZY7nEypjNRGqUKaB0eVVKmU/APPtiwHkCICHA1eHGpQhMLrUjwJ4NNCHP2EMIPcBHDMIUYFigVHSfwDguMGHhVAGkM/jtymLlmgoVhgl9/L2tdliAguI+b45TiIKCgNGx8G8wM0TAPgxfj+3Lo4S3xoKE0bZb623msAA8nr0MNtpFbIkvhUUJowi/81oo7jL6gMDyGUAF6xClsV7Q2HDKPKvjF57L1p9YAApxwvvJuxoh+j0guIBo5xAbGccCzGAFLPLMcOtIa5PiGFD8YBRUjjNOg5iASmivJJlQVHXR9uHLF3kqkmr6lpxg2BWSDe5WvJqenrv0h5AlG5fMwWDtVNfi3i0GdHXH/SO41Uh0bevmYThXSFRUGYWRisgLZ8pMw2jJZAWUGYeRmsgnlCejf6nf2DQU7Q/iLUprZbm/VBfTYjXSq5OunJgcxgRFeL9oK/0euKwEBiRQDxvXxPdnjAgDEY0EEUooTAUgChBCYehAkQBigQMJSCRUGRgqAGJgCIFQxFISyhyMFSBtIAiCUMZSNH21Ok4pByzHLRuVrziI45OanLxPl7JCqmhMB7jDaOTIglFrUJawZCFogSkNQxJKCpAomDIQVEAEg1DCko0EBUYMlAigajBkIASBUQVRjiUCCDqMEKhtAbiBSN/dTLFzrsb6gWj23F7zz8g5elDWlVIK7NaXWd6pysjWgBpbVLr61VaXTfMG0iUOVHXrXO9Z5QnkGhToq8/CI4XEBUzVHRUw/EAomaCmp5eOGwgqsmr6loBhwlEPWl1fQtwWECykwOpsScDSPY6AaR6nZQOOJeqXyPqBnr/AMHj9iXTDSj7ZS0uMpl+Wd8ZndTGheNdGcvrk1kpMh3lsufiX8zmZ7J5AgCfCN04W1eGR6XIdCXNvr2LeGX69mZn60UgMp2ty20ve78L9X4vq2Pr6Cf+8//x1xH2sD5ZwXiodw/IAuVefj+kbue71igmkO5sbK0v7DwBcIPRStWW8lTRM/2FnakyzcGrO8CukPTZ6EACMRrIDk8gbEeN8yUQo4Hs8ATCdtQ4XwIxGsgOTyBsR43zJRCjgezwBMJ21DhfAjEayA5PIGxHjfMlEKOB7PAEwnbUOF8CMRrIDk8gbEeN8yUQo4Hs8N/s9vRlHCoGmAAAAABJRU5ErkJggg==") !important;
}

/* .home-inline-buttons:not(.language-select) {
flex-direction: column;
row-gap: 1rem;
column-gap: 1rem;
align-items: flex-start;
justify-content: flex-start;
max-width: 400px;
}

.home-inline-buttons:not(.language-select)  > div {
  margin-left: 0;
  margin-right: 0 !important;
width: 100%;
margin-bottom: 0 !important;
} */

/* scale icons only */
.mini-legend img[src*="dot-icon-"] {
transform: scale(1.75) translateY(-10px);
}


/* sidebar legend */
/* .extra-legend .mini-legend {
  position: relative;
  top: unset !important;
  bottom: unset !important;
  left: unset !important;
  right: unset !important;
  border: unset;
  height: unset;
  width: unset;
  margin-top: 2rem !important;
  padding: 0;
  min-height: unset !important;
  max-height: unset;
} */

/* .extra-legend {
  border-top: 2px solid var(--light);
  padding: 1rem 0rem;
  margin-top: 1rem;
  margin-right: 10px;
}

.extra-legend .legend-toggle {
  display: none;
}

.extra-legend .base-layers {
  display: none;
}

.extra-legend .small {
  font-size: .9rem;
}

.extra-legend .data-layers {
  max-height: unset;
} */




#content-root .large {
background: #ffffff !important;
}

.learn-more-link .small {
font-size: .9rem;
display: block;
}

.suggestion-container {
    margin-bottom: .5rem; 
}

.suggestion-container div.suggestion-note {
  display: block;
  padding: .5rem .5rem;
  background: #e9e9e9;
  border-radius: 4px;
}

.suggestion-container a {
    margin-bottom: 0; 
}

.suggestion-note ul {
  margin-left: 1rem;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}




/* NAV
 *
 */

@media only screen and (min-width: 768px) {
   .controls  {
    display: flex;
    /* border-bottom-left-radius: 3px; */
    /* box-shadow: 2px 1px 0 0 #444; */
  }


  .controls > a {
    /* display: inline-block; */
  }

  .controls .control {
    border: 0;
    margin: 0;
    display: block;
    padding: .75rem 1rem !important;
    border-radius: 0;
    box-shadow: none;
    transition: all .25s;
  }

  .controls a:first-of-type .control {
    border-bottom-left-radius: 3px;
  }

  .controls .control:hover {
    padding: .75rem 1rem !important;
  }
}

body > div:has(.content-root.map-background) div#map {
  left: 0;
  width: 100% !important;
}

.map-background .child-content .large {
  border: 2px solid #799bc6;
}


body > div:has(.content-root.map-background) .mini-legend {
  opacity: 0; 
}




/* drag and drop 
 */

 .drag-and-drop {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.drag-and-drop label {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
}


.drag-and-drop li.list-group-item {
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  padding: .5em .25em;
}

.drag-and-drop li.list-group-item {
  cursor: grab;
  margin-left: 1.5rem;
}

.drag-and-drop li.list-group-item span.priority-text {
  display: block;
  width: calc(100%);
  overflow: hidden;
  margin-left: 0;
  padding-left: .75em;
  background: none !important;
  color: #222 !important;
}


.drag-and-drop li .priority-text:before {
  content: "";
  font-weight: 300;
}

.drag-and-drop li.list-group-item {
  border: 1px #333 solid;
  border-radius: 4px;
  background-color: #fafafa;
}

.drag-and-drop li.list-group-item:hover {
  border: 1px #333 solid;
  border-radius: 4px;
  background-color: #ffeed5;
}

/*
li.list-group-item:nth-child(1),
li.list-group-item:nth-child(2),
li.list-group-item:nth-child(3)
{
  border: 2px #220f00 solid !important;
  background-color: #f0f6ff;
}
*/

.drag-and-drop li.list-group-item:nth-child(1) .priority-text,
.drag-and-drop li.list-group-item:nth-child(2) .priority-text,
.drag-and-drop li.list-group-item:nth-child(3) .priority-text {
  color: var(--secondary);
}

.drag-and-drop li[data-value*="-placeholder"] {
  display: none;
}

.drag-and-drop li[data-value*="-placeholder"]:nth-child(1),
.drag-and-drop li[data-value*="-placeholder"]:nth-child(2),
.drag-and-drop li[data-value*="-placeholder"]:nth-child(3) {
  display: block;
  pointer-events: none;
}

li.list-group-item[data-value*="placeholder"] {
  opacity: .6;
  border: 1px dashed !important;
  min-height: 5em;
}

.drag-and-drop li  {
  counter-increment: listCounter;
}


@media only screen and (max-width: 767px) {
  
  .drag-and-drop li {
      margin-left: 0px;
  }
  
}


.drag-and-drop li.list-group-item.dragon-active,
.drag-and-drop li.list-group-item.gu-transit {
}

li.dragon-active {
  /* left: 1em; */
  /* box-shadow: 3px 3px 9px 2px #d4d4d4; */
}

li.dragon-active {
  position: relative;
}

.drag-and-drop {
  counter-reset: priority;
}

li.list-group-item:before {
  transition: .25s ease color;
  counter-increment: priority;
  content: counter(priority);
  margin-left: 0;
  position: absolute;
  left: -1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 100;
}

.list-group-item.gu-transit:before,
.gu-mirror:before {
  color: #ffffff;
}

.gu-mirror:before {
  content: none !important;  
}

.drag-and-drop li.list-group-item.gu-transit {
  background-color: #efefef;
  margin-bottom: 30px;
  
}


/* .drag-and-drop li.list-group-item.dragon-inactive  { */
/*     opacity: .8; */
/* } */



li.list-group-item.gu-transit {
  cursor: grabbing !important;
  display: flex !important;
}



/**
* Below are styles for the dragula elements
*/
.gu-mirror {
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid;
  text-align: left;
  position: fixed !important;
  margin: 0 !important;
  z-index: 9999 !important;
  background: #fff;
  cursor: -webkit-grabbing;
  list-style: none;
  display: flex;
}

li.list-group-item.gu-mirror img {
  filter: blur(1px) saturate(0.55) opacity(.25);
  
}

li.list-group-item.gu-transit::after {
  border-top: 2px solid red;
  display: flex;
  content: ' ';
  width: 100%;
  height: 2px !important;
  clear: both;
  white-space: break-spaces;
  position: absolute;
  bottom: -18px;
}


.gu-hide {
  display: none !important;
}

.gu-unselectable {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  list-style: none;
}

/*
.gu-transit {
  opacity: 0.2;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
  filter: alpha(opacity=20);
  list-style: none;
}
*/

.survey-container {
  min-width: 500px;
}

.gu-mirror {
  pointer-events: none;
}

.list-group-item .images {
  min-width: 70%;
  height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.list-group-item .images img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.list-group-item .text {
  /* width: 30%; */
  height: 100% !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  /* min-height: 100px; */
  align-content: flex-start;
}

.list-group-item .priority-text {
  margin-left: 0px;
  padding-left: 0px !important;
}

.list-group-item span.navigation-arrows {
  display: flex;
  flex-direction: row;
  margin: .5em 0;
}

.list-group-item span.navigation-arrows button {
  margin-right: .5em;
}

.list-group-item .handle {
  height: 100%;
  display: flex;
  min-height: 1.5rem;
  border: none;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 5px 10px 5px 5px;
  margin-right: 4px;
}

.list-group-item .handle button {
  border: none;
}

@media only screen and (max-width: 600px) {

  li.list-group-item {
      flex-direction: column;
  }

  li.list-group-item .handle {
      position: absolute;
      left: 0px;
      top: 0px;
  }

  .list-group-item .text {
      width: 100% !important;
      min-height: unset !important;
      margin-left: 40px;
      margin-bottom: 10px;
  }

  .list-group-item .images {
      margin-left: 20px;
  }

  .list-group-item .images {
      flex-direction: column !important;
      width: calc(100% - 40px) !important;
      margin-left: 0px;
      height: unset !important;
  }


  .list-group-item .images img {
      width: 100% !important;
      height: 100px !important;
  }

  .list-group-item .images img:last-child {
      margin-top: 10px;
  }
}

@media only screen and (min-width: 768px) {
  .glossary .images-col .image {
    width: calc(100% - .5rem);
  }
  .col-sm-6.col-md-6.col-lg-6.images-col {
    padding-left: 0;
  }
}

ul.events span.date {
  min-width: 3rem;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--accent);
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
  padding: 4px;
  font-size: 1.1rem;
  margin-right: .25rem;
}

ul.events {
  list-style-type: none;
  margin-left: 0;
  padding-left: .75rem;
}



@media only screen and (min-width: 768px) {
  .images-col .image {
    aspect-ratio: 4 / 3;
    height: 420px;
    width: 100%;
    overflow: hidden;
  }

  .images-col .image img {
    height: 420px;
    width: 100% !important;
    object-fit: cover;
    position: absolute;
  }


  .glossary .container .row .desc-col {
    padding: 1rem !important;
    padding-left: 1rem !important;
  }
}



/*
 *  Content page that displays the map in the background
 * 
 */
 
body > div:has(.content-root.map-background) div#map {
  left: 0;
  width: 100% !important;
}

.map-background .child-content .large {
  border: 2px solid #799bc6;
}


body > div:has(.content-root.map-background) .mini-legend {
  opacity: 0; 
}



/* modified language / nav buttons on home 
 */ 
 
html[dir="ltr"]  .home-inline-buttons.buttons-with-languages {
    display: flex;
    justify-content: space-between;
}

html[dir="ltr"]  .home-inline-buttons.buttons-with-languages .last {
    justify-self: flex-end;
    flex-grow: 0;
    margin-left: auto;
}

html[dir="ltr"] .home-inline-buttons.buttons-with-languages .first {
    justify-self: flex-start;
    flex-grow: 0;
}

html[dir="ltr"] .home-inline-buttons:not(:has(.first)):not(:has(.last)) .home-inline-buttons-item:last-child {
    margin-left: auto;
}



a.btn-primary.language {
    filter: saturate(0.6);
}

html[lang="en"] .home-inline-buttons-item:has(a.language[href*="en"]) {
    display: none !important;
}

html[lang="es"] .home-inline-buttons-item:has(a.language[href*="es"]) {
    display: none !important;
}

html[lang="fa"] .home-inline-buttons-item:has(a.language[href*="fa"]) {
    display: none !important;
}


/* nicer event styling
 */ 
 
ul.events span.date {
  min-width: 3rem;
  display: inline-block;
  text-align: center;
  border: 1px solid var(--accent);
  color: var(--primary);
  font-weight: 500;
  border-radius: 4px;
  padding: 4px;
  font-size: 1.1rem;
  margin-right: .25rem;
}

ul.events {
  list-style-type: none;
  margin-left: 0;
  padding-left: .75rem;
}

.checkbox:has(input[name="project-email-list-signup"]) {
    margin-bottom: 1rem;
    margin-top: -.5rem;
}

