@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Inria+Serif:ital,wght@1,400;1,700&display=swap');

* {
  margin: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
html {
  color: #d9d3cc;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
  background-color: #013917;
  background-image: url(../az-subtle.png);
}
body {
  margin: 0;
}
html,
body {
  height: 100%;
}
input {
  color: #d9d3cc;
  transition: color 200ms ease-in-out;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
}
input:focus {
  color: #f1ece8;
  transition: color 200ms ease-in-out;
}
/* 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: 16px;
}
input,
select {
  font-size: 16px;
}

/*****************************************/
/**** nav ********************************/
/*****************************************/
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #013917;
  z-index: 1;
  width: -webkit-fill-available;
}
@media (min-width: 768px) /* desktop */ {
  .nav {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-right: 22px;
    padding-left: 8px;
  }
}
@media (max-width: 768px) /* mobile */ {
  .nav {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 16px;
    padding-left: 0;
  }
}
.nav::before {
  border-top: 1px solid #d9d3cc22;
  border-bottom: 1px solid #d9d3cc22;
  content: '';
  background-image: url(../washi.png);
  pointer-events: none;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  opacity: 0.26;
  height: 42px;
}
.nav .globe-loader {
  position: relative;
  top: 2px;
  transform: scale(0.8);
}
.logo {
  display: flex;
  align-items: center;
  margin-left: 16px;
  cursor: pointer;
}
.logo-globe {
  display: inline-block;
  border: 2px solid #d9d3ccaa;
  height: 30px;
  width: 30px;
  border-radius: 50px;
  background: #d9d3cc33;
}
.logo-text {
  display: inline-block;
  font-family: 'Inria Serif', serif;
  font-size: 1.5rem;
  margin: 10px 6px;
}
.fill-nav-space {
  flex-grow: 1;
}
.nav .screen-name {
  margin-top: 6px;
}
.nav.admin-impersonation {
  background: black;
}
.nav.admin-impersonation:before {
  display: none;
}

/******************************************************************************/
/**** animated logo ************************************************************/
/******************************************************************************/
.globe-loader {
  font-size: 2rem;
  position: fixed;
  position: relative;
  margin-right: 4px;
}
.no-animation,
.no-animation * {
  animation: none !important;
}
.globe-loader.fa-globe-americas {
  font-size: 8em;
}
.nav .globe-loader.fa-globe-americas {
  font-size: 2em;
}
.globe-loader > i.fa-plane {
  display: block;
  position: absolute;
  font-size: 0.3em;
  height: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: center bottom;
  animation: airplane-spin 2.5s infinite ease-in-out;
}
.globe-loader > i.fa-plane#little-plane.hidden {
  /* hide the plane for the first few seconds until the SVG has loaded */
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.globe-loader > i.fa-plane#little-plane {
  transition: opacity 200ms ease-out;
}
.globe-loader > i.fa-plane::before {
  position: relative;
  top: -1.26em;
}
.nav .globe-loader > i.fa-plane {
  font-size: 0.45em;
}
@keyframes airplane-spin {
  from {
    transform: translateX(-50%) rotate(-45deg);
  }
  to {
    transform: translateX(-50%) rotate(0.875turn);
  }
}
/******************************************************************************/
/**** animated loader *********************************************************/
/******************************************************************************/
.loader {
  animation: loader-spin 1s infinite linear;
  width: 50px;
  height: 50px;
  opacity: 0.6;
}
.loader path {
  -ms-transform: scale(0.5, 0.5); /* IE 9 */
  -webkit-transform: scale(0.5, 0.5); /* Safari */
  transform: scale(0.5, 0.5);
}
@keyframes loader-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.friends-list .loading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  opacity: 0.6;
  vertical-align: middle;
  gap: 14px;
}
.friends-list .loading .loader {
  margin: -6px;
}

/******************************************************************************/
/**** content *****************************************************************/
/******************************************************************************/
.home-page {
  margin: auto;
  padding: 16px 16px 4px 16px;
  max-width: calc(758px + 20px); /* leave space for 2 columns + padding */

  /* the following is so the map is centered, even when it overflows*/
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-page p.info {
  font-size: 0.9em;
  opacity: 0.7;
  text-align: center;
}
.home-page p.info a {
  color: #d9d3cc;
  border-bottom: 2px solid #d9d3cc55;
}
.home-page p.info a:hover {
  border-bottom: 2px solid #d9d3cc88;
}
pre {
  white-space: pre-wrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
  overflow: hidden;
  background-color: #ffffff11;
  padding: 8px;
  font-size: 0.6em;
}
textarea {
  font-size: 0.85em;
  line-height: 1.3em;
}
hr {
  border-bottom: 2px solid #d9d3cc33;
  margin: 8px 0;
}
button,
a,
a a {
  color: #d9d3cc;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
}
a,
a a {
  border-bottom: 3px solid #ffffff22;
  padding-bottom: 1px;
}
button:hover,
a:hover,
a:hover a {
  color: #f5f0eb;
  transition: all 50ms ease-out;
}
a:hover,
a:hover a {
  color: #f5f0eb;
  transition: all 50ms ease-out;
  border-bottom: 3px solid #ffffff44;
}
.friends-list .location-info {
  opacity: 0.7;
  font-size: 0.9em;
  color: #d9d3cc;
  cursor: pointer;
}
.friends-list .location-info .location {
  background-color: #002a0e;
  font-style: normal;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
  padding: 2px 6px 4px 6px;
  border-radius: 4px;
}
.friends-list input::placeholder {
  color: white;
  opacity: 0.5;
  font-size: 0.8em;
  vertical-align: middle;
  transform: translateY(-2px);
  margin-bottom: 4px;
  font-weight: 400;
}
.friends-list svg.x,
.friends-list svg.triangle {
  fill: white;
  margin-right: 6px;
  opacity: 0.6;
}
.friends-list .no-friends-found:hover svg.x,
.friends-list .location-info:hover svg.triangle {
  opacity: 0.75;
}
.friends-list svg.x {
  height: 11px;
}
.friends-list svg.triangle {
  margin-bottom: 1px;
  height: 9px;
  transform: rotate(180deg);
  transition: transform 140ms ease-out;
}
.friends-list .location-info .triangle.right {
  transform: rotate(90deg);
}
.friends-list .location-info .triangle.down {
  transform: rotate(180deg);
}
svg.question {
  fill: white;
  transform: scale(0.5);
  opacity: 0.4;
}

/*****************************************/
/**** table ******************************/
/*****************************************/
table {
  border-collapse: collapse;
}
th {
  text-align: left;
  opacity: 0.8;
}
td,
th {
  padding: 3px 8px;
}
tr:nth-child(even) {
  background: #11492799;
}
/*****************************************/
/**** category ***************************/
/*****************************************/
.category {
  border: 1px solid #d9d3cc22;
  border-radius: 10px;
  margin-bottom: 16px;
  width: 100%;
}
#track-new-location-field + .category {
  margin-top: 16px !important;
}
.category .current-user-location {
  transform: translateY(calc(-50% - 6px));
  color: #d9d3cc99;
  position: relative;
  background-color: #00000011;
  background-color: #013917;
  border-radius: 8px;
  background-image: url(../az-subtle.png);
  padding: 2px 4px;
  margin-left: -6px;
  top: -14px;
}
.no-locations-info {
  color: #d9d3cccc;
  padding: 20px;
  border: 1px solid #ffffff22;
  border-radius: 8px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.no-locations-info p,
ul {
  margin-bottom: 8px;
}
.friends-list {
  padding: 9px 6px;
}
.friends-list svg.info {
  fill: white;
  opacity: 0.45;
  margin-bottom: -3px;
  margin-left: 8px;
  cursor: pointer;
  transition: all 50ms ease-out;
  transform: scale(1.1);
}
.friends-list svg.info:hover {
  opacity: 1;
  transition: all 50ms ease-out;
}
.friends-list .verb-gerund {
  border-bottom: solid 2px #ffffff33;
}
// @media screen and (max-width: 720px) {
//   .friends-list {
//     padding: 12px;
//   }
// }
.friends-list .based-on {
  opacity: 0.8;
}
.friends-list:not(:first-of-type) {
  border-top: 1px solid #d9d3cc22;
}
.current-user-location + .friends-list {
  margin-top: -18px;
}
@media screen and (max-width: 720px) {
  .current-user-location + .friends-list {
    margin-top: -12px;
  }
}
.friends-list.header {
  font-size: 0.85em;
  display: flex;
  flex-direction: row;
  background-color: #ffffff0d;
  border-radius: 8px 8px 0 0;
}
.friends-list.header .small-info-text {
  text-align: left;
}
.friends-list input {
  font-size: 1.5em;
  font-weight: 600;
}
.friends-list .mapbox-container {
  width: 50px;
  height: 50px;
  border-radius: 80px;
}
.friends-list .mapbox-container .mapboxgl-map {
  height: 100% !important;
  width: 100% !important;
}
.friends-list .mapbox-container .mapboxgl-canvas-container,
.friends-list .mapbox-container .mapboxgl-canvas-container canvas {
  border-radius: 80px;
}

/*****************************************/
/**** friend *****************************/
/*****************************************/
.friends-list .friends {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  transition: margin-top 100ms ease-out;
}
@media screen and (min-width: 720px) {
  .friends-list .friends {
    margin-left: 18px;
  }
}
.friend {
  font-size: 0.95em;
  display: flex;
  align-items: center;
  justify-items: center;
}
@media screen and (min-width: 720px) {
  .friend {
    width: 360px;
  }
}
@media screen and (max-width: 720px) {
  .friend {
    width: 100%;
  }
}
.friend .twitter-pic,
.friend .twitter-pic img {
  height: 50px;
  width: 50px;
  border-radius: 50px;
}
.friend .twitter-pic {
  background-color: #d9d3cc22;
  border: 2px solid #d9d3cc44;
}
.friend .twitter-pic:hover {
  border: 2px solid #d9d3cc55;
  transition: all 50ms ease-out;
}
.friend .right-section {
  margin-left: 12px;
  overflow: hidden;
}
.friend .right-section .top .name {
  flex-shrink: 0;
}
.friend .right-section .top .name {
  font-size: 1em;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
  // display: inline-block;
}
.friend .right-section .top .handle {
  opacity: 0.6;
  margin-left: 8px;
  font-size: 0.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
  // white-space: nowrap;
  // display: inline-block;
}
.friend:hover .right-section .top .handle {
  opacity: 0.7;
}
.no-friends-found {
  font-size: 0.9em;
  opacity: 0.7;
  cursor: default;
}
.friend-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 8px auto 6px 2px;
  cursor: pointer;
  transition: margin-top 200ms ease-out;
}
.friend-bubbles .friend {
  width: auto;
  display: inline;
  margin: 1px;
  opacity: 0.8;
}
.friend-bubbles .friend:hover {
  opacity: 1;
  transition: opacity 100ms ease-out;
}
.friend-bubbles .friend .twitter-pic {
  border-width: 1px;
}
.friend-bubbles .friend .twitter-pic,
.friend-bubbles .friend .twitter-pic img {
  height: 20px;
  width: 20px;
}
/******************************************************************************/
/**** friend: current-user ********************************************************************/
/******************************************************************************/
.welcome-flow .title {
  margin: 20px -16px;
  padding-bottom: 38px;
  border-bottom: 1px solid #ffffff33;
}
.welcome-flow .twitter-data-explanation {
  max-width: 340px;
  margin: auto;
}
.twitter-data-explanation > .twitter-data {
  display: flex;
  padding: 8px 16px;
  margin-top: 16px;
  column-gap: 12px;
}
.twitter-data-explanation > .twitter-data .right-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.twitter-data-explanation > .twitter-data .name {
  font-size: 1.2em;
  font-weight: 600;
}
.twitter-data-explanation > .twitter-data .location {
  font-size: 1em;
  opacity: 0.8;
}
.twitter-data-explanation > .twitter-data img {
  height: 50px;
  width: 50px;
  border-radius: 100%;
  border: 2px solid #d9d3cc44;
  background-color: #d9d3cc22;
}
.twitter-data-explanation {
  text-align: left;
}
.twitter-data-explanation > .explanation {
  opacity: 0.8;
  line-height: 1.4em;
  align-items: center;
  display: flex;
  padding: 4px;
  font-size: 0.8em;
}
.twitter-data-explanation > .explanation .twitter-icon {
  height: 58px;
  fill: #d9d3cc;
  margin-left: 3px;
  margin-right: 12px;
}
.twitter-data-explanation > .explanation a {
  font-weight: 500;
  border-bottom: 3px solid #ffffff22;
  transition: all 50ms ease-out;
}
.twitter-data-explanation > .explanation a:hover {
  font-weight: 500;
  border-bottom: 3px solid #ffffff44;
}
.twitter-data-explanation {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: center;
}
.home-page .twitter-data-explanation {
  flex-direction: column-reverse;
}
@media screen and (min-width: 500px) {
  .home-page .twitter-data-explanation {
    margin: 12px 0 46px;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    flex-grow: 1;
    row-gap: 8px;
    column-gap: 16px;
  }
  .home-page .twitter-data-explanation > .explanation {
    max-width: 400px;
  }
  .home-page .twitter-data-explanation > * {
    align-items: center;
  }
}
.current-user .friend {
  margin-bottom: 24px;
}
@media screen and (min-width: 720px) {
  .current-user .friend {
    width: 100%;
  }
  .current-user .friend .twitter-pic,
  .current-user .friend .twitter-pic img {
    height: 100px;
    width: 100px;
    border-radius: 100px;
  }
  .current-user .friend .right-section .top .name {
    font-size: 1.5em;
    font-weight: bold;
  }
  .current-user .friend .bottom {
    font-size: 1em;
  }
}

/******************************************************************************/
/**** sticky footer ***********************************************************/
/******************************************************************************/
.sticky-footer {
  position: fixed;
  left: 0;
  bottom: -4px;
  width: 100%;
  color: white;
  text-align: center;
}

/******************************************************************************/
/**** welcome *****************************************************************/
/******************************************************************************/
.center-vh {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
}
.welcome {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  transform: scale(0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
  justify-content: center;
}
/* iOS devices only, to account for vertical space taken by iOS Safari search bar at bottom of screen */
@supports (-webkit-touch-callout: none) {
  .welcome {
    height: calc(100vh - 82px); /* account for Safari's serach bar */
  }
}
.welcome .hero {
  width: 98vw;
  margin: 6vh auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-items: center;
  justify-content: center;
}
.welcome .hero a#login-btn {
  font-weight: bolder !important;
  color: #013917;
  border-radius: 100px;
  padding: 6px 24px;
  margin-bottom: 8px;
  background-color: #d9d3cc;
  transition: background-color 100ms ease-out;
  font-size: 0.75em;
}
.welcome .hero a#login-btn:hover {
  background-color: #e7e2de;
  transition: background-color 100ms ease-out;
}
.welcome .hero a#login-btn .twitter-icon {
  fill: #013917;
  height: 24px;
  width: 24px;
  margin-right: 12px;
  margin-bottom: -3px;
}
.welcome .hero h1 {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2em;
  text-align: center;
}
.welcome .hero h2 {
  font-size: 2em;
  font-weight: 500;
  text-align: center;
  line-height: 2em;
}
.welcome .hero #logo-animation {
  -ms-transform: scale(1); /* IE 9 */
  -webkit-transform: scale(1); /* Safari */
  transform: scale(1);
  margin: 50px 0 42px 0;
  opacity: 0.25;
}
.steps {
  padding: 14px;
  border: 3px solid #ffffff22;
  border-radius: 8px;
  font-size: 1em;
  text-align: left;
}
.welcome .steps p {
  line-height: 1.5;
}
.welcome .steps p b {
  font-weight: 700;
  width: 3.6em;
  display: inline-block;
}
.welcome .info {
  font-size: 0.85em;
  opacity: 0.7;
  margin: 12px 10px 64px;
  max-width: 400px;
  line-height: 1.3;
  text-align: center;
}
.no-locations-info a,
.welcome .info a {
  border-bottom: 3px solid #ffffff22;
}
.no-locations-info a,
.welcome .info a {
  border-bottom: 3px solid #ffffff44;
}
.welcome .faq .question {
  margin: 32px 10px;
  line-height: 1.3;
}

/******************************************************************************/
/** welcome flow **************************************************************/
/******************************************************************************/

.welcome-flow {
  margin: 36px 16px;
  text-align: center;
}
.welcome-flow .friend {
  text-align: left;
}
.welcome-flow p {
  margin: 12px 0;
}
.welcome-flow a.btn {
  font-family: 'Inria Serif', serif;
  font-weight: 700;
  font-size: 1.4em;
  font-style: italic;
  -webkit-text-stroke-width: 0.4px;
  -webkit-text-stroke-color: #013917;
}
.welcome-flow hr {
  margin: 32px -24px;
}
.welcome-flow .you-signed-in-as,
.welcome-flow .location-field,
.welcome-flow .heads-up,
.welcome-flow .email-options,
.welcome-flow .email-address {
  max-width: 340px;
  margin: auto;
  padding: 16px 12px;
  border-radius: 12px;
}
.home-page #track-new-location-field,
.welcome-flow #track-new-location-field {
  width: fit-content;
  margin: auto;
  padding: 8px 14px;
  border-radius: 24px;
  fill: #d9d3cc;
  font-size: 0.9em;
  color: #d9d3cc;
  background-color: #ffffff11;
  transition: all 100ms ease-out;
}
.home-page #track-new-location-field:hover,
.welcome-flow #track-new-location-field:hover {
  fill: white;
  color: white;
  cursor: pointer;
  background-color: #ffffff16;
}
.home-page #track-new-location-field svg.plus,
.welcome-flow #track-new-location-field svg.plus {
  margin-right: 2px;
  margin-bottom: -6px;
}
.welcome-flow #track-new-location-field {
  margin-top: 12px;
}
.welcome-flow svg.cancel-icon,
.home-page .delete-location-btn svg.cancel-icon {
  float: right;
  cursor: pointer;
  transform: scale(1.1);
  background: #013917; /* this is so the hole for the X isn't empty */
  border-radius: 8px;
  fill: #3b5f46;
  transition: all 100ms ease-in-out;
}
.welcome-flow svg.cancel-icon:hover,
.home-page .delete-location-btn svg.cancel-icon:hover {
  fill: #718371;
  transition: all 100ms ease-in-out;
  transform: scale(1.18);
}
.welcome-flow svg.cancel-icon {
  margin-right: -18px;
  margin-top: -20px;
}
.home-page .friends-list.header .right-side {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) /* mobile */ {
  .home-page .friends-list.header .right-side {
    margin-left: 8px;
  }
  .home-page .friends-list.header {
    font-size: 0.8em;
  }
}
.home-page .friends-list.header .delete-location-btn {
  margin-left: auto;
  margin-right: -11px;
  margin-top: -14px;
}
.welcome-flow .location-field {
  padding: 16px 12px;
  padding-bottom: 6px;
  margin-top: 14px;
}
.welcome-flow .location-field label .small-info-text {
  padding: 0 10px;
}
.welcome-flow .location-field,
.welcome-flow .email-options,
.welcome-flow .email-address {
  border: 1px solid #ffffff33;
}
.welcome-flow input {
  border: 1px solid transparent;
}
.welcome-flow .location-field:focus-within,
.welcome-flow .email-options:focus-within,
.welcome-flow .email-options:focus /* the radio btns field is different */
.welcome-flow .email-address:focus,
.welcome-flow .email-address:focus-within {
  border: 1px solid #ffffff55;
}
.welcome-flow .you-signed-in-as .friend {
  width: fit-content;
}
.welcome-flow .you-signed-in-as {
  display: inline-flex;
}
.welcome-flow .field .edit-icon {
  fill: white;
  height: 13px;
  margin-left: -36px;
  margin-top: 15px;
  position: absolute;
  opacity: 0.5;
}
.welcome-flow .field {
  font-size: 0.95em;
}
.welcome-flow input[type='text'],
.welcome-flow input[type='email'] {
  width: 254px;
  padding: 4px 32px 4px 5px;
  background: #ffffff11;
  border-radius: 4px;
  margin: 8px 4px;
  font-weight: bold;
  text-align: center;
}
.welcome-flow input.location-input::placeholder {
  color: #d9d3cc55;
  padding-bottom: 2px;
}
.small-info-text {
  font-size: 0.8em;
  opacity: 0.5;
  line-height: 1.3em;
  text-align: center;
}
.small-info-text a {
  color: #f5f0eb;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.small-info-text a:hover {
  color: white;
  transition: all 50ms ease-out;
  border-bottom: 3px solid #ffffff22;
}
.welcome-flow .email-options {
  margin-top: 14px;
  padding-top: 6px;
  padding-bottom: 0;
}
.welcome-flow .email-address {
  margin-top: 14px;
  padding-bottom: 12px;
}
.welcome-flow .email-options .radio-btns {
  text-align: left;
  max-width: 400px;
  width: fit-content;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}
.welcome-flow .email-options .radio-btns .radio-btn {
  display: flex;
}
.welcome-flow .email-options .radio-btns .radio-btn label {
  font-size: 0.9em;
  margin-left: 6px;
  margin-top: -1px;
  opacity: 0.8;
  cursor: pointer;
}
input[type='radio'] {
  -webkit-appearance: none; /* Add if not using autoprefixer */
  appearance: none; /* Remove most all native input styles */
  background-color: #013917; /* For iOS < 15 */
  margin: 0; /* Not removed via appearance */

  font: inherit;
  color: currentColor;
  width: 1em;
  height: 1em;
  border: 0.15em solid currentColor;
  border-radius: 50%;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
  cursor: pointer;
}

input[type='radio']::before {
  content: '';
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em white;
  background-color: CanvasText; /* Windows High Contrast Mode */
}
input[type='radio']:checked::before {
  transform: scale(1);
}

input[type='radio']:focus {
  outline: 0.1em solid white;
  outline-offset: max(2px, 0.15em);
}
:not(.error) .error-msg {
  display: none;
}
.welcome-flow input::placeholder {
  color: #d9d3cc55;
}
.error .error-msg {
  display: block;
  color: #ffa88d;
  font-weight: 900;
  font-size: 0.8em;
  font-weight: 500;
  margin: 0 auto;
  text-align: center;
  text-align: center;
  width: 289px;
}
.welcome-flow .mapbox-container {
  margin: auto;
  width: min(300px, calc(100% - 64px));
  height: 140px;
  margin: 0 auto;
  margin-top: 10px;
  background: #ffffff11;
  overflow: hidden;
  background: #9dc7d9;
  border-radius: 100px;
}
.welcome-flow .mapbox-container .mapboxgl-canvas-container,
.welcome-flow .mapbox-container .mapboxgl-canvas-container canvas {
  border-radius: 100px;
}
.welcome-flow .mapbox-container .mapboxgl-map {
  height: 100% !important;
}
.welcome-flow .btn {
  padding: 8px 16px;
  font-size: 1.5em;
  border-radius: 50px;
}
/* pulsating background */
@keyframes pulsingGreenBkgd {
  0% {
    background-color: #1d7a42;
  }
  50% {
    background-color: #013917;
  }
  100% {
    background-color: #1d7a42;
  }
}
.welcome-flow .mapbox-container .center-point,
.friends-list.header .mapbox-container .center-point {
  width: 10px;
  height: 10px;
  border: 1px solid white;
  background-color: #013917;
  border-radius: 100%;
  position: relative;
  left: calc(50%);
  top: calc(-50%);
  transform: translateX(-50%) translateY(-50%);
  animation-name: pulsingGreenBkgd;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}
.welcome-flow .mapbox-container .mapboxgl-canvas {
  position: relative !important;
  background: #9dc7d9;
  border-radius: 112px;
}
.welcome-flow .mapbox-container .minimap-marker {
  border: 14px solid red;
  border-radius: 14px;
  position: absolute;
}

/******************************************************************************/
/**** Mapbox ******************************************************************/
/******************************************************************************/
#mapbox-container {
  pointer-events: none;
  overflow: hidden;
  background: #b3c3ca;
  border: 2px solid #00230e;
  box-shadow: 0px 0px 18px #ffffff22;
  border-radius: 24px;
  position: relative; /* required so that position:absolute works for the .expand-me btn */
  margin: 0 0 16px 0;
}
@media (max-width: 768px) /* mobile */ {
  #mapbox-container {
    width: calc(100vw - 32px);
    height: calc(60vh - 40px - 41px); /* 41px accounts for the margin */
  }
}
@media (min-width: 768px) /* desktop */ {
  #mapbox-container {
    width: calc(100vw - 40px);
    height: calc(70vh - 60px - 41px); /* 41px accounts for the margin */
  }
}
#mapbox-container.expanded {
  transition: all 200ms ease-in-out; /* smooth the expand/collapse behavior */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  border: none;
  width: 100%;
  margin: 0 !important;
  z-index: 1;
  border-radius: 0;
}
// #mapbox-container.loading {
//   height: 20vh;
//   transition: height 900ms ease-in-out;
// }
#mapbox-container .controls {
  right: 0;
  margin-top: 6px;
  margin-right: 6px;
  background: rgba(255, 255, 255, 0.9);
  width: fit-content;
  height: fit-content;
  z-index: 1;
  border-radius: 24px;
  position: absolute;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px 4px 13px;
}
#mapbox-container .zoom-in,
#mapbox-container .zoom-out,
#mapbox-container .expand-me {
  pointer-events: auto;
  fill: #013917;
  cursor: pointer;
  filter: drop-shadow(0 0 2px rgb(255 255 255 / 0.5));
  z-index: 300;
  margin-top: 12px;
  transform: scale(1.3);
}
#mapbox-container .zoom-in:hover,
#mapbox-container .zoom-out:hover,
#mapbox-container .expand-me:hover {
  fill: black;
  filter: drop-shadow(0 0 2px rgb(255 255 255 / 0.8));
}
#mapbox-container .expand-me {
  margin-right: 4px;
}
#mapbox-container .mapboxgl-map {
  background: #9dc7d9;
  border-top: 2px solid #013917;
  filter: saturate(40%);
  overflow: hidden;
  border: 0;
  border-radius: 24px; /* this needs to have border-radius, not just the parent, because otherwise it doesn't get rendered in iOS Safari */
}
#mapbox-container.expanded .mapboxgl-map {
  border-radius: 0;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#mapbox-container .loading {
  position: absolute;
  z-index: 3;
  top: 100%;
  left: 4px;
  transform: translate(10px, calc(-100% - 7px));
  color: #013917bb;
  display: flex;
  align-items: center;
  font-size: 0.75em;
  font-weight: 500;
  background: #ffffffdd;
  border-radius: 16px;
  padding-right: 12px;
  margin: -4px;
  transition: all 200ms ease-in-out;
  animation-delay: 1.5s;
}
#mapbox-container .loading.hidden {
  animation-delay: 1.5s;
  transition: all 200ms ease-in-out;
  opacity: 0;
}
#mapbox-container .loading .loader path {
  fill: #013917;
}
#mapbox {
  height: 100%;
  width: 100%;
  pointer-events: auto;
}
.mapboxgl-ctrl-logo {
  display: none !important;
}
.mapboxgl-marker:hover {
  z-index: 3;
}
.mapboxgl-marker .avatar {
  transform: scale(1);
  transition: transform 200ms ease-out;
}
.mapboxgl-marker:hover .avatar {
  transform: scale(110%) translate(0, -45%);
  transition: transform 100ms ease-out;
}
.marker .user-name {
  display: none;
  width: fit-content;
  width: 1;
  white-space: pre;
  display: block;
  background-color: white;
  padding: 1px 5px;
  box-shadow: #9dc7d9 0px 0px 18px;
  border-radius: 4px;
  color: #013917;
}
.marker.current-user {
  z-index: 2;
}
.marker.current-user .avatar {
  z-index: 1;
}
.marker.current-user:before {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  background: white;
  background: #65a5c1cc;
  background: #b09f8dbb;

  -webkit-animation-name: fadecolor;
  -webkit-animation-duration: 4s;
  -webkit-animation-iteration-count: infinite;
  transition: all 4s linear;
}
@-webkit-keyframes fadecolor {
  0% {
    width: 34px;
    height: 34px;
    position: absolute;
    -webkit-transform: translate(-1px, -17px);
    transform: translate(-1px, -17px);
  }
  50% {
    width: 44px;
    height: 44px;
    -webkit-transform: translate(-6px, -22px);
    transform: translate(-6px, -22px);
  }
  100% {
    width: 34px;
    height: 34px;
    position: absolute;
    -webkit-transform: translate(-1px, -17px);
    transform: translate(-1px, -17px);
  }
}
.marker .avatar {
  position: absolute; /* without this, you get the zoomy marker bug */
  transform: translateY(-50%);
  background-color: #013917;
  background: #e7e2de;
  height: 30px;
  width: 30px;
  border-radius: 8px;
  white-space: pre;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;

  transition: height 500ms ease-out, width 500ms ease-out;
  animation: fadein 1s;
  -moz-animation: fadein 1s; /* Firefox */
  -webkit-animation: fadein 1s; /* Safari and Chrome */
  -o-animation: fadein 1s; /* Opera */

  border-radius: 100%;
  border: 1px solid #efeaef;
  background-size: cover; /* the background-image will get loaded by the JS */

  /* scaling occurs in JS */
  min-height: 20px;
  min-width: 20px;
  max-height: 54px;
  max-width: 54px;

  cursor: pointer;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes fadein {
  /* Firefox */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadein {
  /* Safari and Chrome */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fadein {
  /* Opera */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/************************************************************/
/** utils ***************************************************/
/************************************************************/
.serif {
  font-family: 'Inria Serif', serif;
  font-style: italic;
}
button.btn,
a.btn {
  font-weight: bold;
  background-color: #d9d3cc;
  color: #013917;
  padding: 4px 16px 4px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 80ms ease-out;
}
button.btn:hover,
a.btn:hover {
  background: #e9e3dc;
  transition: all 80ms ease-out;
}

/******************************************************************************/
/** Mapbox popups *************************************************************/
/******************************************************************************/
.mapboxgl-popup {
  z-index: 12; /* make sure the popups go over the avatars */
}
.mapboxgl-popup .mapboxgl-popup-content {
  padding: 5px 8px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  margin-right: -6px;
  box-shadow: 0px 0px 3px rgb(0 0 0 / 10%), -2px 0px 3px rgb(0 0 0 / 10%);
  height: 10px;
  width: 10px;
  background: white;
  border: none;
  transform: rotate(45deg);
  z-index: -1;
}
.mapboxgl-popup-anchor-left::before {
  content: '';
  height: 12px;
  width: 12px;
  z-index: 1;
  background: white;
  top: 50%;
  transform: rotate(45deg) translateY(-31%) translateX(-50%);
  position: absolute;
}
.mapboxgl-popup-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
  color: #002a0e;
}
.mapboxgl-popup-content a {
  color: #1d7a42;
}
.mapboxgl-popup-content a:hover {
  color: #013917;
}
.mapboxgl-popup-content a.screen-name {
  font-weight: bold;
  margin-left: 4px;
}
.mapboxgl-popup-content .top-row,
.mapboxgl-popup-content .bottom-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mapboxgl-popup-content .bottom-row {
  fill: #999;
  color: #999;
}
.mapboxgl-popup-content .bottom-row code {
  margin-left: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
    monospace;
  opacity: 0.6;
}
.mapboxgl-popup-content .bottom-row svg.location {
  transform: scale(0.85);
  margin-left: -2px;
}

/************************************************************/
/** utils ***************************************************/
/************************************************************/
.admin-screen {
  margin: 64px 24px;
}
.admin-screen details {
  margin-bottom: 12px;
}
.admin-screen details summary {
  cursor: pointer;
}
.admin-screen details summary b {
  padding-left: 4px;
}
.admin-screen details > :not(summary) {
  margin-left: 20px;
}
.admin-screen pre {
  margin: 8px 0;
  border: 1px solid #ffffff33;
  border-radius: 3px;
}
ul {
  padding-left: 24px;
}
ul li {
  padding-left: 6px;
}
/************************************************************/
/** footer **************************************************/
/************************************************************/
.info-footer {
  text-align: center;
  padding-bottom: 12px;
  font-size: 0.8em;
  opacity: 0.5;
}
.info-footer .dot-separator {
  margin: 0 8px;
}
.info-footer a:hover {
  cursor: pointer;
}

/****************************************************************
 ** tooltips ****************************************************
 ****************************************************************/

/* Base styles for the element that has a tooltip */
[data-tooltip],
.tooltip {
  position: relative;
  cursor: pointer;
}
/* Base styles for the entire tooltip tooltip */
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after {
  position: absolute;
  visibility: hidden;
  -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)';
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out,
    -webkit-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  -moz-transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, -moz-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
/* Show the entire tooltip on hover and focus tooltip */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:focus:before,
.tooltip:focus:after {
  visibility: visible;
  -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)';
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}
/* Base styles for the tooltip's directional arrow tooltip */
.tooltip:before,
[data-tooltip]:before {
  z-index: 1001;
  border: 6px solid transparent;
  background: transparent;
  content: '';
}
/* Base styles for the tooltip's content area tooltip */
.tooltip:after,
[data-tooltip]:after {
  z-index: 1000;
  padding: 8px;
  width: 224px;
  background-color: #022610;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 14px;
  line-height: 1.2;
}
/* Directions tooltip */
/* Top (default) */
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after,
.tooltip-top:before,
.tooltip-top:after {
  bottom: 100%;
  left: 50%;
}
[data-tooltip]:before,
.tooltip:before,
.tooltip-top:before {
  margin-left: -6px;
  margin-bottom: -12px;
  border-top-color: #022610;
}
/* Horizontally align top/bottom tooltips tooltip */
[data-tooltip]:after,
.tooltip:after,
.tooltip-top:after {
  margin-left: -80px;
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip:focus:before,
.tooltip:focus:after,
.tooltip-top:hover:before,
.tooltip-top:hover:after,
.tooltip-top:focus:before,
.tooltip-top:focus:after {
  -webkit-transform: translateY(-12px);
  -moz-transform: translateY(-12px);
  transform: translateY(-12px);
}
/* Left tooltip */
.tooltip-left:before,
.tooltip-left:after {
  right: 100%;
  bottom: 50%;
  left: auto;
}
.tooltip-left:before {
  margin-left: 0;
  margin-right: -12px;
  margin-bottom: 0;
  border-top-color: transparent;
  border-left-color: #022610;
}
.tooltip-left:hover:before,
.tooltip-left:hover:after,
.tooltip-left:focus:before,
.tooltip-left:focus:after {
  -webkit-transform: translateX(-12px);
  -moz-transform: translateX(-12px);
  transform: translateX(-12px);
}
/* Bottom tooltip */
.tooltip-bottom:before,
.tooltip-bottom:after {
  top: 100%;
  bottom: auto;
  left: 50%;
}
.tooltip-bottom:before {
  margin-top: -12px;
  margin-bottom: 0;
  border-top-color: transparent;
  border-bottom-color: #022610;
}
.tooltip-bottom:hover:before,
.tooltip-bottom:hover:after,
.tooltip-bottom:focus:before,
.tooltip-bottom:focus:after {
  -webkit-transform: translateY(12px);
  -moz-transform: translateY(12px);
  transform: translateY(12px);
}
/* Right tooltip */
.tooltip-right:before,
.tooltip-right:after {
  bottom: 50%;
  left: 100%;
}
.tooltip-right:before {
  margin-bottom: 0;
  margin-left: -12px;
  border-top-color: transparent;
  border-right-color: #022610;
}
.tooltip-right:hover:before,
.tooltip-right:hover:after,
.tooltip-right:focus:before,
.tooltip-right:focus:after {
  -webkit-transform: translateX(12px);
  -moz-transform: translateX(12px);
  transform: translateX(12px);
}
/* Move directional arrows down a bit for left/right tooltips tooltip */
.tooltip-left:before,
.tooltip-right:before {
  top: 3px;
}
/* Vertically center tooltip content for left/right tooltips tooltip */
.tooltip-left:after,
.tooltip-right:after {
  margin-left: 0;
  margin-bottom: -16px;
}

/************************************************************/
/** Announcement banner *************************************/
/************************************************************/
.announcement-banner {
  padding: 10px 18px;
  margin: 6px 0 18px 0;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  line-height: 1.53;
}
.announcement-banner p.header {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9em;
}
.announcement-banner p {
  padding: 8px 0;
}
.announcement-banner a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}
.announcement-banner a:hover {
  color: white;
}
