﻿

figure { margin: 0; }

.header__search {
  position: relative;
}

.search__result {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100%);
  z-index: 10;
  display: none;
}

@media screen and (max-width: 767px) {
  .search__result {
    left: -1rem;
    right: -1rem;
  }
}

.search__result.search__result--display {
  display: block;
  box-shadow: 0px 0.5rem 1.5rem var(--shadow-2);
}

.search__result .card { padding: .5rem; }

.search__result .media--profile + *,
.search__result .card > *:not(div), 
.search__result .avatar-list__action { display: none !important; }

/* .search__result form { display: none;} */

.header__search input {
  width: 100%;
  padding: 0.6rem 0.4rem;
  margin: 0;
}

.header__search button {
  display: none;
}


.sub-category {
  display: none;
  top: 100%;
  right: 0;
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation__item .navbars {
  background: var(--card-color);
  box-shadow: 0px 0.5rem 1.5rem rgba(13, 13, 18, 0.2);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  min-width: 300px;
}

.navigation__item .navigation__item__link {
  display: block;
  padding: 1rem 1rem 1rem 1rem;
  margin: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0.5rem;
}
.navigation__item svg.navigation__icon-mini {
  width: 1.5rem;
  height: auto;
  fill: var(--primary);
}

.navigation__item .navigation__item__link:hover {
  background: var(--chat-bubble-color);
}

/* .navigation__item:hover .sub-category { display: block; } */

.navigation__item .navbars.navbars--event {
    min-width: 400px;
    overflow: hidden;
}

@media screen and (max-width: 767px) {
  .navigation__item .navbars.navbars--event {
    right: -125%;
  }  
}


.Events__item {
  border-top: 1px solid var(--border-color);
  position: relative; 
  padding: 0.5rem 1rem;
}

.Events__item:first-child { border-top: 0 }

.Events__item a { text-decoration: none; }

/* .event a {
  text-decoration: none;
} */

.Events__item.Events__item--unread::before {
  content: "";
  left: 0;
  top: 0;
  bottom: 0;
  background-color: var(--primary);
  width: 3px;
  position: absolute;
}

.field-validation-error {
  display: block;
  font-weight: 300;
  color: #f00;
}



.card form .label {
  display: block;
  font-weight: bold;
  margin: 0.2rem 0;
}

.profile-image {
  overflow: hidden;
  position: relative;
}

.profile-image > img {
  display: block;
  border-radius: 50%;
  width: 70px;
  height: 70px;
}



.profile-card a { text-decoration:  none; }

h1 {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

hr {
  border: 0;
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}

.soical__container {
  align-items: center;
  display: inline-flex;
}
.soical__container + .soical__container { margin-left: var(--range-grid-space); }

.social {
  line-height: 1;
}
.social__button {
  line-height: 1;
  justify-content: center;
  border: 0;
  align-items: center;
  display: flex;
  background: transparent;
  color: inherit;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  margin: 0;
  padding: 0;
}

.social__button__icon.social__button__icon--liked {
  fill: var(--primary);
}

.social img,
.social svg {
  height: auto;
  margin-right: calc(var(--range-grid-space) / 2);
  width: 1.3rem;
  fill: currentColor;
}

.t {
  display: flex;
  flex-direction: row;
  margin: 1rem 0;
}
.t:before {
  margin: auto 1rem auto auto;
}
.t:after {
  margin: auto auto auto 1rem;
}
.t:before,
.t:after {
  content: "";
  flex: 1 1;
  border-bottom: 1px solid currentColor;
}

.list-navigation {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-navigation > li > a {
  padding: 0.5rem;
  color: var(--link-color);
  text-decoration: none;
}

.profile--card {
  background: #fff;
  margin-top: 2rem;
}


.heroarea {
  display: grid;
  grid-gap: var(--range-grid-space);
  grid-template-areas:
    "heromain";
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .heroarea {
    grid-template-columns: 100%;
    grid-template-areas:
      "heromain";
  }
  .sidebar2 { display: none; }
  .sidebar2 { display: none; }
}

@media only screen and (min-width: 1025px) {
  .heroarea {
    grid-template-areas: "heroarea1 heromain heroarea2";
  }
}


.hero-content {
  grid-area: heromain;
}

.hero {
  background-color: var(--hero-bottom-color);
  /* background: linear-gradient(180deg, var(--hero-top-color), var(--hero-bottom-color) 100%); */
  padding: 2rem 1rem 0rem;
}

.profile__header {
  font-weight: bold;
  font-size: 1.5rem;
}

@media screen and(min-width: 768px) {
  .profile__header {
    font-size: 2rem;
  }
  
}

.profile--navigation {
  display: flex;
  max-width: var(--max-site-width);
  justify-content: space-between;
  align-items: flex-end;
}

@media screen and (max-width: 767px) {
  .profile--navigation.common {
    flex-direction: column-reverse;
    align-items: center;
  }
  
}

.profile--navigation .button { margin-bottom: .5rem}

.profile__picture {
  display: inline-block;
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0px 0.5rem 1.5rem rgba(13, 13, 18, 0.04);

  position: relative;

  object-fit: cover;
  object-position: center right;
}

.long {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.avatar-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--range-grid-space) calc(2 * var(--range-grid-space));
}


@media only screen and (min-width: 900px) {
  .avatar-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.avatar-list.avatar-list--vertical {
  grid-template-columns: auto;
}

.avatar-list__row {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  min-width: 0;
}

.avatar-list__action {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.avatar-list__row a {
  text-decoration: none;
}

.friends-list__user {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.friends-list__avatar {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0px 0.5rem 1.5rem rgba(13, 13, 18, 0.04);
  position: relative;
  object-fit: cover;
  object-position: center right;
  margin-right: 1rem;
}

.radio-button {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  cursor: pointer;
  position: relative;
}

.group {
  display: flex;
  margin: 1rem 0;
}
.group > * {
  margin-right: 1.5rem;
}

/* input */
.radio-button input {
  position: absolute;
  z-index: -1;
}

/* .design */
.radio-button .design {
  width: 16px;
  height: 16px;

  border: 1px solid currentColor;
  border-radius: 100%;
  margin-right: 16px;

  position: relative;
}

.radio-button .design::before,
.radio-button .design::after {
  content: "";
  display: block;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  position: absolute;
  transform: scale(0);
  transform-origin: center center;
  width: 14px;
  height: 14px;
  top: 0;
  left: 0;
}

.radio-button .design:before {
  background: currentColor;
  opacity: 0;
  transition: 0.3s;
}

.radio-button .design::after {
  background: var(--primary);
  opacity: 0.4;
  transition: 0.6s;
}

/* checked state */
.radio-button input:checked + .design::before {
  opacity: 1;
  transform: scale(0.6);
}

/* other states */
.radio-button input:hover + .design,
.radio-button input:focus + .design {
  border: 1px solid var(--primary);
}

.radio-button input:hover + .design:before,
.radio-button input:focus + .design:before {
  background: var(--primary);
}

.radio-button input:hover ~ .text {
  color: var(--primary);
}

.radio-button input:focus + .design::after,
.radio-button input:active + .design::after {
  opacity: 0.1;
  transform: scale(2.6);
}

.popup-menu {
  display: none;
}

.popup-menu.popup-menu--open {
  display: block;
}

.popup-menu__list {
  background: var(--card-color);
  box-shadow: 0px 0 1rem 3px var(--shadow-1);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  min-width: 300px;
  position: absolute;
  right: 0;
  display: none;
  z-index: 10;
  top: calc(100% + 0.5rem);
}

.popup-menu.popup-menu--arrow::after {
  transform: rotate(-45deg);
  position: absolute;
  content: "";
  background: var(--card-color);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  width: 14px;
  height: 14px;
  top: -8px;
  border-radius: 2px;
  right: .9rem;
  z-index: -1;
}

:root {
  --loading-size: 40px;
  --loading-bar-size: 3px;
}

#load .lds-ring {
  display: none;
}
#load.loading .lds-ring {
  display: inherit;
}

.lds-ring {
  color: var(--loading-color);
  display: inline-block;
  position: relative;
  width: var(--loading-size);
  height: var(--loading-size);
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: calc(var(--loading-size) - (2 * var(--loading-bar-size)));
  height: calc(var(--loading-size) - (2 * var(--loading-bar-size)));
  margin: var(--loading-bar-size);
  border: var(--loading-bar-size) solid currentColor;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: currentColor transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.load-more {
  position: absolute;
  bottom: -7rem;
  height: 150vh;
  left: 0;
  right: 0;
  pointer-events: none;
  padding-bottom: 2rem;
  justify-content: center;
  display: flex;
  align-items: flex-end;
}


.badge__container {
  position: relative;
}

.badge {
  width: 1rem;
  position: absolute;
  left: 100%;
  top: -.3rem;

  fill: #D10000;
}

.icon {
  width: 1.5rem;
  height: auto;
  display: block;
}

.icon.icon--blind {
  stroke: var(--link-color);
  fill: var(--link-color);
  margin-left: 1ch;
}
.icon.icon--blind path {
  stroke: var(--link-color);
}


.x {
  display: block;
  padding: 1rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0.5rem;
  background: inherit;
  border: inherit;
  text-align: inherit;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-weight: 300;
  line-height: 1;
}
button.x {
  width: 100%;
}

/* .x .icon {
  height: 1rem;
} */

.x:hover {
  background: var(--chat-bubble-color);
}

.x.delete svg {
  fill: tomato;
  /* color: #fff;
  fill: currentColor; */
}
.x.positive svg {
  fill: var(--primary);
}

.x.confirm svg {
  fill: #0074d9;
}

.checkmark__circle {
  stroke-dasharray: 212; /* ORIGINALLY 166px */
  stroke-dashoffset: 212; /* ORIGINALLY 166px */
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 106px; /* ORIGINALLY 56px */
  height: 106px; /* ORIGINALLY 56px */
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #7ac142;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 98; /* ORIGINALLY 48px */
  stroke-dashoffset: 98; /* ORIGINALLY 48px*/
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 80px #7ac142;
  }
}


:root {
  --activity-summary: 2;
}

.activity-summary {
  display: grid;
  grid-gap: var(--range-grid-space);
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.activity-summary__card {

  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-color);
  padding: .5rem 1rem;
}


.activity-summary__header {
  text-align: center;
  Font-weight: 200;
  font-size: .95rem;
}
.activity-summary__content {
  white-space: nowrap;
  font-size: 1.5rem;
  Font-weight: 300;
  text-align: center;
}


label { cursor: pointer;}

.track__details__icon input[type="checkbox"] { display:  none; }
svg .marker__circle {
  fill: #ff3f34;
}

:checked + svg .marker__circle {
  fill: #2fcb0e;
}

.error-card {
  background: url(../images/resources/400_page.webp) no-repeat;
  background-size: cover;
  background-position: top right;
}

.error-card__header {
  font-size: 3rem;
  text-align: center;
}

.intro { text-align: center; font-size: 150%; }



.error-card__container {
  color: #eee;
  margin: 2rem 1rem;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0, 0.4);
  padding: 6rem  3rem;
  border-radius: 1rem;
}

@media screen and (min-width: 600px) {
  .error-card__container {
    max-width: 50%;
  }
}