@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.btn-primary {
  color: #fff;
  background-color: rgb(15, 50, 250) !important;
  border-color: rgb(15, 50, 250) !important;
}

.btn-outline-primary {
  background-color: white;
  border-color: rgb(15, 50, 250) !important;
  color: rgb(15, 50, 250) !important;
}
.btn-outline-primary:hover {
  background-color: rgb(15, 50, 250) !important;
  color: white !important;
}
.btn-none {
  background-color: white;
  font-weight: 600;
}

.btn {
  border-radius: 20px;
}
.btn-outline {
  border-width: 2px;
}

html {
  font-size: 14px;
}

.challenge-image {
  aspect-ratio: 2/1;
  background-color: blue;
  width: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: Poppins, sans-serif;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: rgb(235, 255, 0);
  margin-bottom: 0 !important;
  padding-top: 14px;
  padding-bottom: 14px;
}

main {
  flex: 1;
}

.page-header {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 30px;
  margin-top: 20px;
  text-align: center;
}

.s-16 {
  font-size: 16px;;
}
.s-20 {
  font-size: 20px;
}
.s-24 {
  font-size: 24px;
}
.w-400 {
  font-weight: 400;
}
.w-600 {
  font-weight: 600;
}
.card {border-radius: 18px;}
.challenge-image {
  border-radius: 8px;
  background-image: url('/images/winterolstice.jpg');
  background-size: cover;
  background-position: top center;
}

.progress {
  height: 0.5rem;
}
.progress-bar {
  color: rgb(15,50,250);
  background-color: rgb(15,50,250);
}

.connect-device {
  border: 1px solid black;
}

.page-nav a {
  text-decoration: none;
  color: rgb(15, 50, 250);
  font-weight: 600;
}

.form-label {
  font-weight: 600;
}
.form-control {
  font-size: 16px;
  height: 44px;;
}

.leaderboard-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.not-logged-in {
  border: 1px solid rgb(204,206,226);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: row;
  gap:8px;
  align-items: start;
}

.not-logged-in-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.max-400 {
  max-width: 400px;
  margin: 0 auto;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(204,206,226)
}

.leaderboard-row .name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-position {
  flex: 0 0 48px;
  display: flex;
  justify-content: center;
}

.leaderboard-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-progress {
  flex: 0 1 220px;
  min-width: 150px;
}

.leaderboard-progress .progress {
  width: 100%;
  margin: 0;
}
.done {
  background-color: green !important;
}

.leaderboard-value {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

.leaderboard-row .dist {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.leaderboard-row .dist .progress {
  width: 50px;
  margin: 0;
}

.badge {
  border-radius: 10px !important;
}

.badge-leaderboard {
  background-color: black;
  color: white;
  font-weight: 600;
  min-width: 36px;
  display: inline-flex;
  justify-content: center;
}


footer {
  border-top: 1px solid #4b4b5a;
  background-color: #0f0f19;
  color: white;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer .line {
  background-color: #4b4b5a;
}

footer .line.h2 {
  height: 2px;
}

footer .footer-section {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  gap: 5px;
}

footer .footer-section .header {
  font-size: 1rem;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  margin-bottom: 15px;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
