* {
  margin: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

html {
  color: #2b2017;
  // color: #013917;
  background: #fcfcfc;
  // for a hacky dark mode when coding at night:
  // background: #2b2017;
  // color: #ccc;
  font-family: 'Roboto Mono', monospace;
}

pre {
  text-wrap: wrap;
}

a {
  color: rgb(46, 103, 63);
  font-weight: 700;
  text-decoration: none;
  // background: rgb(42, 98, 59, 0.1);
  // padding: 2px 4px;
  border-bottom: 2px solid transparent;
  border-bottom: 2px solid rgb(42, 98, 59, 0.2);
  transition: border-bottom 0.1s ease-in-out;
}

a:hover {
  // text-decoration: underline;
  border-bottom: 2px solid rgb(42, 98, 59, 0.3);
  transition: border-bottom 0.1s ease-in-out;
}

button,
a,
textarea {
  font-family: 'Roboto Mono', monospace;
}

.btn {
  color: rgb(188, 181, 175, 1);
  border: 3px solid rgb(188, 181, 175, 0);
  transition: border 0.2s ease-in-out;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  margin: 6px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  color: rgb(108, 98, 90);
  transition: all 0.1s ease-in-out;
  border: 3px solid rgb(188, 181, 175, 0);
}

.btn.primary {
  border: 3px solid rgb(188, 181, 175, 0.4);
}

.btn.primary:hover {
  border: 3px solid rgb(188, 181, 175, 0.7);
}

.btn.primary.green {
  background: rgb(42, 98, 59, 0.08);
  border: 3px solid rgb(42, 98, 59, 0.8);
  color: rgb(42, 98, 59, 0.8);
  transition: all 0.1s ease-in-out;
}

.btn.primary.green:hover {
  background: rgb(42, 98, 59, 0.1);
  border: 3px solid rgb(42, 98, 59, 0.9);
  color: rgb(42, 98, 59, 1);
  transition: all 0.1s ease-in-out;
}

body {
  margin: 0;
}

html,
body {
  height: 100%;
}

input {
  color: #220b01;
  transition: color 200ms ease-in-out;
  font-family: 'Roboto Mono', monospace;
  accent-color: #054921e0;
}

input:focus {
  color: #000000;
  transition: color 200ms ease-in-out;
}

input[type='radio'] {
  width: 20px;
  height: 20px;
}

input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.input-container input {
  border: none;
  box-sizing: border-box;
  outline: 0;
  padding: 0.75rem;
  position: relative !important;
  width: 100%;
}

input[type='date'] {
  cursor: pointer;
}

input[type='date']::-webkit-calendar-picker-indicator {
  width: 100%;
  height: 22px;
  cursor: pointer;
  // opacity: 0.1;
  // height: 20px;
  // position: absolute;
  // fill parent:
  // top: 0;
  // left: 0;
  // right: 0;
  // bottom: 0;
  // visibility: hidden;
}

.input-date-overlay {
  display: block;
  margin-bottom: -38px;
  margin-left: 36px;
  top: 0px;
  padding: 6px 0px;
  font-size: 16px;
  display: block;
  margin-bottom: -28px;
  margin-left: 36px;
  position: relative;
  pointer-events: none;
}

/* keep form inputs from zooming on mobile: https://www.warrenchandler.com/2019/04/02/stop-iphones-from-zooming-in-on-form-fields */
body {
  line-height: 1.3em;
  font-size: 14px;
}

input,
select {
  font-size: 16px;
}

ul {
  padding-inline-start: 20px;
}

li {
  padding-left: 4px;
}

.loading-container {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-container .spinner {
  width: 120px;
  height: 120px;
  margin: auto;
  animation: spin 1.7s ease-in-out infinite;
  background-image: url('/orange-favicon.png');
  background-size: contain;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.bio-row .title {
  width: fit-content;
  padding: 16px 12px 0 12px;
  opacity: 0.75;
  font-weight: bold;
  text-transform: uppercase;
  font-style: italic;
  color: #a19890;
  font-size: 0.8em;
}

.bio-row .required-note {
  color: rgb(255 106 0);
  font-size: 1.3em;
  text-transform: lowercase;
  margin: 0 4px;
}

.bio-row textarea {
  background: white;
  border: 3px solid rgba(188, 181, 175, 0.3);
  border-radius: 8px;
  resize: vertical;
  padding: 16px 20px;
  margin-right: 12px;
  min-height: 140px;
  color: #333;
  font-size: 0.9em;
  width: 98%;
  transition: all 0.2s ease-in-out;
}

.required textarea:empty:not(:focus),
.required .editable-input.required-but-empty,
.required .editable-input[value='']:not([type='date']):not(:focus) {
  background-color: rgb(255, 248, 243);
  border: 3px solid rgb(255, 181, 128);
  transition: all 0.2s ease-in-out;
}

.required .editable-input.required-but-empty input {
  background-color: rgb(255, 248, 243);
}

.bio-row-locations .bio-row {
  width: 100%;
}

.bio-row-value {
  max-width: 78vw;
  display: flex;
}

.bio-row-value input:focus:not([type='date']) {
  border: 3px solid rgba(188, 181, 175, 0.6) !important;
  transition: all 0.2s ease-in-out;
}

@media screen and (min-width: 600px) {
  .bio-row-value {
    min-width: 370px;
  }
}

.required-but-empty,
.required-not-empty {
  padding: 6px 8px 8px 8px;
  border: 3px solid transparent;
}

.required-but-empty {
  background-color: rgb(255, 248, 243);
  border: 3px solid rgb(255, 181, 128);
  border-radius: 8px;
}

.editable-input {
  background: white;
  border: 3px solid rgba(188, 181, 175, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  margin-right: 4px;
  width: 95%;
  max-width: 380px;
}

.editable-input .editable-input {
  margin: 0;
  padding: 0;
  width: 100%;
  border: none;
}

input#display-phone,
.iti--separate-dial-code .iti__selected-flag {
  background: rgba(35, 81, 49, 0.08) !important;
}

#display-phone::placeholder {
  color: rgba(25, 56, 34, 0.4);
}

input#email,
.iti--separate-dial-code .iti__selected-flag {
  background: rgba(35, 81, 49, 0.08) !important;
}

#email::placeholder {
  color: rgba(25, 56, 34, 0.4);
}

.iti__country-list {
  max-width: 330px;
  overflow-x: hidden;
  font-size: 0.8em;
}

.oranges-wallpaper {
  background-color: #ffe2c0;
  background-image: url('../oranges-tile-repeat.jpg');
  background-size: 420px;
  background-image: url('../oranges-tile-repeat-2.jpg');
  background-size: min(700px, 90vw);
  background-position: 50% 0;
  background-position: 50% 0;
  height: calc(100vh - 15vh);

  // make children centered vertically on page, but no more than 120px from the top
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 15vh;
}

.oranges-wallpaper form {
  padding-top: 48px;
}

.signin-form-background {
  box-shadow: 0 0 2px 0 rgba(255, 255, 255, 1);
  border: 4px solid rgb(42, 98, 59, 1);
  color: rgb(7, 69, 25);
  background: rgb(252 252 252 / 100%);
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}

//////////////////////////////////////////////////
// Expandable component

// this currently doesn't work, not sure why... maybe because on plane?
details {
  font-size: 1.4em;
  color: red;
  cursor: pointer;
}

details span.title {
  margin-left: 8px;
  font-size: 1.5em;
}

details>summary {
  // width: 100%;
  width: fit-content;
  // border-top: 1px solid #e0e0e0;
  padding: 32px 6px 6px 6px;
  cursor: pointer;
  font-weight: bold;
}

details>summary:first-of-type {
  border-top: none;
  margin-top: 8px;
}

details[open]>summary::marker,
details>summary::marker,
details summary::-webkit-details-marker,
details summary::marker {
  font-size: 1.4em;
  display: inline-block;
}

//////////////////////////////////////////////////
/// table

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ddd;
}

th,
td {
  text-align: left;
  padding: 4px;
}

.invisible {
  opacity: 0;
}

.location-field:focus-within,
.email-options:focus-within,
.email-options:focus

/* the radio btns field is different */
.email-address:focus,
.email-address:focus-within {
  border: 1px solid #ffffff55;
}

.you-signed-in-as .friend {
  width: fit-content;
}

.you-signed-in-as {
  display: inline-flex;
}

.field .edit-icon {
  fill: white;
  height: 13px;
  margin-left: -36px;
  margin-top: 15px;
  position: absolute;
  opacity: 0.5;
}

.field {
  font-size: 0.95em;
}

.mapbox-container {
  margin: auto;
  width: 110px;
  height: 110px;
  margin: 0;
  margin-top: 10px;
  background: #ffffff11;
  overflow: hidden;
  background: #9dc7d9;
  border-radius: 100px;
}

.mapbox-container .mapboxgl-canvas-container,
.mapbox-container .mapboxgl-canvas-container canvas {
  border-radius: 100px;
}

.mapboxgl-canvas {
  position: relative !important;
}

.mapbox-container .mapboxgl-map {
  height: 100% !important;
}

/* pulsating background */
@keyframes pulsingGreenBkgd {
  0% {
    background-color: #1d7a42;
  }

  50% {
    background-color: #013917;
  }

  100% {
    background-color: #1d7a42;
  }
}

@keyframes pulsingSize {
  0% {
    transform: scale(1);
    // font-size: 1em;
    // transform: translateX(0) translateY(0);
  }

  50% {
    transform: scale(1.2);
    // font-size: 1.2em;
    // transform: translateX(-10px) translateY(-10px);
  }

  100% {
    transform: scale(1);
    // font-size: 1em;
    // transform: translateX(0) translateY(0);
  }
}

.mapbox-container .center-point,
.mapbox-container .center-point {
  width: 20px;
  height: 20px;
  font-size: 1.8em;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  // border: 1px solid white;
  // background-color: #e56800;
  border-radius: 100%;
  position: relative;
  left: calc(50%);
  top: calc(-50%);
  transform: translateX(-50%) translateY(-50%);
  // animation-name: pulsingSize;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

.location-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 12px 0;
  width: 100%;
}

.location-field,
.add-location-btn {
  background: #f6f6f6;
  border: 3px solid rgba(188, 181, 175, 0.15) !important;
  border-radius: 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  /* Adjust minimum width as needed */
  text-align: center;
  border: 1px solid #000;
  padding: 10px;
}

.add-location-btn.empty {
  border: 3px dashed rgb(255, 181, 128) !important;
  background-color: rgb(255, 248, 243);
}

.location-field .delete-location-btn {
  align-self: end;
  margin: 4px;
  fill: #bbb;
  cursor: pointer;
}

.location-field .location-field-top {
  margin: -12px 0 0 0;
}

.location-field .location-field-bottom {
  margin: 16px 12px 0 12px;
}

.location-field .location-input {
  background: white;
  margin: 4px 0 8px 0;
  padding: 4px 8px;
  width: calc(100% - 24px);
  border: 3px solid rgba(188, 181, 175, 0.3) !important;
  transition: all 0.2s ease-in-out;
  border-radius: 8px;
}

.location-field .location-input[value='']:not(:focus) {
  background-color: rgb(255, 248, 243);
  border: 3px solid rgb(255, 181, 128) !important;
  transition: all 0.2s ease-in-out;
}

.location-field .location-input:focus {
  border: 3px solid rgba(188, 181, 175, 0.5) !important;
  transition: all 0.2s ease-in-out;
  border-radius: 8px;
}

.location-field .location-type-radio {
  width: 100%;
  text-align: left;
}

.location-field .location-type-radio input {
  margin: 6px;
  cursor: pointer;
  // display: none;
}

.location-field .location-type-radio label {
  margin: 3px;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 2.2em;
  cursor: pointer;
  color: #013917c0;
  transition: color 0.1s ease-in-out;
}

.location-field .location-type-radio label:hover,
.location-field .location-type-radio input:hover+label {
  color: #013917e0;
  transition: color 0.1s ease-in-out;
}

.add-location-btn {
  padding: 24px 10px;
  min-height: 264px;
  color: #013917c0;
  background: white;
  border: 3px dashed rgba(188, 181, 175, 0.4) !important;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-weight: bolder;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-location-btn:hover {
  color: #013917;
  border: 3px dashed rgba(188, 181, 175, 0.8) !important;
  transition: all 0.2s ease-in-out;
}

.ready-for-review {
  position: fixed;
  background: white;
  border-top: 2px solid rgb(229, 225, 220);
  background: rgb(235, 232, 229);
  padding: 16px 16px 24px 16px;
  box-shadow: 0 0 8px 0 rgba(255, 255, 255, 1);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse;
  gap: 12px;
}

.ready-for-review button {
  color: white;
  background: #013917e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  width: fit-content;
  min-width: 200px;
}

.ready-for-review button:hover {
  background: #013917;
  transition: all 0.2s ease-in-out;
}

.ready-for-review button.disabled {
  background: rgba(160, 160, 160, 0.3);
  color: rgba(160, 160, 160, 0.9);
  cursor: not-allowed;
}

.ready-for-review .errors-list {
  // width: 336px;
  text-wrap: balance;
  line-height: 1.5em;
  font-size: 0.9em;
  text-align: center;
}

@media (min-width: 570px) {
  .ready-for-review .errors-list {
    text-align: left;
  }
}

.ready-for-review .errors-list ul {
  margin-top: 6px;
}

.welcome-message {
  line-height: 1.8em;
  // text-wrap: balance;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  background: #f6f6f6;
  background: rgb(235, 232, 229, 0.6);
  padding: 24px 48px 24px 32px;
  border-radius: 6px;
}

/**** image upload form ****************************************************************************/

.img-upload input[type='file'] {
  display: block;
  border: 2px dashed #ccc;
  text-align: center;
  transition: border-color 0.3s ease;
  cursor: pointer !important;
}

.img-upload input[type='file'] {
  // border: 3px solid rgba(188, 181, 175, 0.3);
  background: rgba(188, 181, 175, 0.2);
  width: 80%;
  padding: 48px;
  margin: 16px 0 8px 0;
  border-radius: 8px;
}

.img-upload.empty input[type='file'] {
  border: 3px dashed rgb(255, 181, 128) !important;
  background-color: rgb(255, 248, 243);
}

.img-upload p.error {
  color: rgb(255, 106, 0);
  margin-bottom: 8px;
}

// TODO: hmm this isn't working...
#file-upload-button {
  margin-right: 8px;
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  border: 3px solid green;
}

.bio-row .picture {
  display: inline-block !important;
}

.bio-row .picture img {
  // height: 200px;
  // width: 100px;
  // background: pink;
  max-height: 200px;
  max-width: 100%;
  margin: 8px 8px 0 0;
  border-radius: 8px;
  background: #ccc;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.bio-row .picture .cancel-btn {
  margin-left: -22px;
  margin-top: 4px;
  float: right;
  cursor: pointer;
}

.bio-row .picture svg.cancel-icon {
  transform: scale(1.1);
  border-radius: 8px;
  transition: all 100ms ease-in-out;
  fill: #718371;
  background: white;
  border: 1px solid white;
  margin-left: -20px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.3);
}

.bio-row .picture svg.cancel-icon:hover {
  fill: #3b5f46;
  transition: all 100ms ease-in-out;
  transform: scale(1.18);
}

// .img-upload input[type='submit'] {
//   display: block;
//   width: 100%;
//   padding: 10px;
//   background-color: #4caf50;
//   color: white;
//   border: none;
//   border-radius: 8px;
//   cursor: pointer;
//   font-size: 16px;
// }

// .img-upload input[type='submit']:hover {
//   background-color: #45a049;
// }