/* @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); */
@import url("https://fonts.googleapis.com/css?family=Sigmar+One");

.cursor-pointer {
  pointer-events: initial !important;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.chip {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  position: relative;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  align-items: center;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  background: var(--gradient-color2);
  color: var(--white-color);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;

  width: 100px;
  text-align: center;
}

.small-loader {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 8px solid;
  border-color: #e4e4ed;
  border-right-color: var(--primary-color1);
  animation: s2 1s infinite linear;
}

@keyframes s2 {
  to {
    transform: rotate(1turn);
  }
}

/* Loader */
.doubleDayLoader {
  /* position: absolute; */
  /* top: 10px;
  right: 10px; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 120px;
}

.doubleDayLoader .loader {
  --circle-size: 100px;

  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  display: inline-block;
  border: none;
  border-top: 4px solid #ffb549;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.doubleDayLoader .loader::after {
  --circle-size: 100px;

  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  border-bottom: 4px solid #0475ba;
  border-left: 4px solid transparent;
}

.doubleDayLoader .loaderLogo {
  position: absolute;
  transform: translate(-46%, -53%);
  top: 50%;
  left: 50%;
  height: 70px;
  /* width: 60px; */
}

/* Loading */
.smallLoaderBackground {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.smallLoaderBackground .loader {
  --circle-size: 45px;

  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  display: inline-block;
  border: none;
  border-top: 4px solid #ffb549;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.smallLoaderBackground .loader::after {
  --circle-size: 45px;

  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: -4px;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  border-bottom: 4px solid #0475ba;
  border-left: 4px solid transparent;
}

.smallLoaderBackground .loaderLogo {
  position: absolute;
  transform: translate(-50%, -60%);
  top: 50%;
  left: 50%;
  /* width: 60px; */
}

.loaderBackground {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.65);
  height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

.loaderBackground.hide {
  display: none;
}

.loaderBackground img {
  max-width: 200px;
  height: auto;
}

.loaderBackground .loader {
  --circle-size: 75px;

  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  display: inline-block;
  border: none;
  border-top: 4px solid #ffb549;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loaderBackground .loader::after {
  --circle-size: 75px;

  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  border-bottom: 4px solid #0475ba;
  border-left: 4px solid transparent;
}

.loaderBackground .loaderLogo {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  width: 60px;
}

.loaderBackground #loading-text {
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--secondary-color4);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.text-overflow-epllisis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}

.is-clickable {
  font-weight: bold !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.help-text {
  font-size: 12px;
  color: var(--secondary-color4);
}

#btnBackTop {
  display: inline-block;
  background-color: #eba642;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 6px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color .3s, 
  opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}
#btnBackTop::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 1em;
  line-height: 40px;
  color: #fff;
}
#btnBackTop:hover {
  cursor: pointer;
  background-color: #3177b7;
}
#btnBackTop:active {
  background-color: #555;
}
#btnBackTop.show {
  opacity: 1;
  visibility: visible;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Bubble */
.bubble {
  position: relative;
  display: inline-block;
  margin: 20px;
  text-align: center;
  /* font-family: 'Press Start 2P', cursive; */
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3em;
  background-color: #fff;
  color: #000;
  padding: 12px;
  box-shadow: 0 -4px #fff, 0 -8px var(--primary-color2), 4px 0 #fff,
    4px -4px var(--primary-color2), 8px 0 var(--primary-color2), 0 4px #fff,
    0 8px var(--primary-color2), -4px 0 #fff, -4px 4px var(--primary-color2),
    -8px 0 var(--primary-color2), -4px -4px var(--primary-color2),
    4px 4px var(--primary-color2);
  box-sizing: border-box;
  width: 200px;
}
.bubble::after {
  content: "";
  display: block;
  position: absolute;
  box-sizing: border-box;
}
.bubble.mini {
  width: 110px;
  /* font-size: 13px; */
  padding: 4px;
}

.bubble.top::after {
  height: 4px;
  width: 4px;
  top: -8px;
  left: 32px;
  box-shadow: 0 -4px var(--primary-color2), 0 -8px var(--primary-color2),
    0 -12px var(--primary-color2), 0 -16px var(--primary-color2),
    -4px -12px var(--primary-color2), -8px -8px var(--primary-color2),
    -12px -4px var(--primary-color2), -4px -4px #fff, -8px -4px #fff,
    -4px -8px #fff, -4px 0 #fff, -8px 0 #fff, -12px 0 #fff;
}
.bubble.right::after {
  height: 4px;
  width: 4px;
  top: 84px;
  right: -8px;
  background: white;
  box-shadow: 4px -4px #fff, 4px 0 #fff, 8px 0 #fff, 0 -8px #fff,
    4px 4px var(--primary-color2), 8px 4px var(--primary-color2),
    12px 4px var(--primary-color2), 16px 4px var(--primary-color2),
    12px 0 var(--primary-color2), 8px -4px var(--primary-color2),
    4px -8px var(--primary-color2), 0 -4px #fff;
}
.bubble.bottom::after {
  height: 4px;
  width: 4px;
  bottom: -8px;
  left: 32px;
  box-shadow: 0 4px var(--primary-color2), 0 8px var(--primary-color2),
    0 12px var(--primary-color2), 0 16px var(--primary-color2),
    -4px 12px var(--primary-color2), -8px 8px var(--primary-color2),
    -12px 4px var(--primary-color2), -4px 4px #fff, -8px 4px #fff, -4px 8px #fff,
    -4px 0 #fff, -8px 0 #fff, -12px 0 #fff;
}
.bubble.left::after {
  height: 4px;
  width: 4px;
  top: 20px;
  left: -8px;
  background: white;
  box-shadow: -4px -4px #fff, -4px 0 #fff, -8px 0 #fff, 0 -8px #fff,
    -4px 4px var(--primary-color2), -8px 4px var(--primary-color2),
    -12px 4px var(--primary-color2), -16px 4px var(--primary-color2),
    -12px 0 var(--primary-color2), -8px -4px var(--primary-color2),
    -4px -8px var(--primary-color2), 0 -4px #fff;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 90deg;
  inherits: true;
}

.medal-box {
  border: 0.35rem solid;
  border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
  animation: borderRotate var(--d) linear infinite forwards;
  padding: 0.5rem 0.5rem 0 0.5rem;
}

@keyframes borderRotate {
	100% {
		--angle: 420deg;
	}
}

/* MEDAL */

.medal {
  display: flex;
}

.medal-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100px;
  border-radius: 100%;
  border: 2px solid transparent;
  border-color: currentColor;
  text-align: center;
  font-size: 16px;
  margin-right: 4px;
  color: #fff;
}
.medal-icon:before {
  content: "";
  z-index: -1;
  position: absolute;
  width: 50%;
  background-color: #b22b32;
  height: 1em;
  top: -0.4em;
}

.medal-icon[data-medal="G"] {
  border-color: #fec223;
  background: linear-gradient(
    135deg,
    #e7b120 0%,
    #e7b120 50%,
    #fec223 50%,
    #fec223 100%
  );
}
.medal-icon[data-medal="S"] {
  border-color: #9fa6ac;
  background: linear-gradient(
    135deg,
    #91979d 0%,
    #91979d 50%,
    #9fa6ac 50%,
    #9fa6ac 100%
  );
}
.medal-icon[data-medal="B"] {
  border-color: #ba765f;
  background: linear-gradient(
    135deg,
    #c0826d 0%,
    #c0826d 50%,
    #ba765f 50%,
    #ba765f 100%
  );
}

/* Congrat */
.congrats {
  position: relative;
  /* position: absolute; */
  /* top: -60px; */
  /* height: 100px; */
  padding: 20px 10px;
  text-align: center;
  margin: 0 auto;
  left: 0;
  right: 0;
  color: var(--primary-color2);
}

.congrats h1 {
  transform-origin: 50% 50%;
  font-size: 32px;
  font-family: "Sigmar One", cursive;
  cursor: pointer;
  z-index: 2;
  /* position: absolute; */
  top: 0;
  text-align: center;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.blob {
  height: 50px;
  width: 50px;
  color: #ffcc00;
  position: absolute;
  top: 45%;
  left: 45%;
  z-index: 1;
  font-size: 30px;
  display: none;
}

/* loading */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff 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);
  }
}
/* loading */

/* Wave loading */
.center-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.wave {
  width: 8px;
  height: 100px;
  background: linear-gradient(45deg, var(--primary-color1), #fff);
  margin: 10px;
  animation: wave 1s linear infinite;
  border-radius: 20px;
}
.wave:nth-child(2) {
  animation-delay: 0.1s;
}
.wave:nth-child(3) {
  animation-delay: 0.2s;
}
.wave:nth-child(4) {
  animation-delay: 0.3s;
}
.wave:nth-child(5) {
  animation-delay: 0.4s;
}
.wave:nth-child(6) {
  animation-delay: 0.5s;
}
.wave:nth-child(7) {
  animation-delay: 0.6s;
}
.wave:nth-child(8) {
  animation-delay: 0.7s;
}
.wave:nth-child(9) {
  animation-delay: 0.8s;
}
.wave:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes wave {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
/* Wave loading */

/* New effect btn */
.new-btn {
  position: relative;
  overflow: hidden;
  background: #eaeaea;
}

.new-btn::before {
  content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(to right, transparent, white, transparent);
	left: -100%;
	animation: newEffect 2s infinite;
}

/* Ribbon */
.ribbon {
  --f: 10px; /* control the folded part*/
  --r: 15px; /* control the ribbon shape */
  --t: 10px; /* the top offset */

  position: absolute;
  inset: 23px auto auto -5px;
  padding: 0 10px var(--f) calc(10px + var(--r));
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--f)),
    calc(105% - var(--f)) 100%,
    calc(100% - var(--f)) calc(100% - var(--f)),
    0 calc(100% - var(--f)),
    var(--r) calc(50% - var(--f) / 2)
  );
  box-shadow: 0 calc(-1 * var(--f)) 0 inset #0005;
  width: 135px;
  transform: translate(-8.3%) rotate(-53deg);
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;
}

.ribbon .rank-image {
  min-width: 40% !important;
}

/* progress */

#svg circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  stroke: #666;
  stroke-width: 4px;
}
#svg #bar {
  stroke: #FF9F1E;
}
.cont {
  display: block;
  height: 60px;
  width: 60px;
  margin: 0 auto;
  border-radius: 100%;
  position: relative;
}
.cont:after {
  position: absolute;
  display: block;
  height: 32px;
  width: 32px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  content: attr(data-pct)"%";
  border-radius: 100%;
  line-height: 32px;
  text-align: center;
  font-size: 12px;
}

/* plane button */
#challenge-register {
  --primary: #275efe;
  --primary-dark: #2055ee;
  --primary-darkest: #133fc0;
  --text: #fff;
  --text-opacity: 1;
  --success: #2b3044;
  --success-scale: 0.2;
  --success-opacity: 0;
  --border-radius: 7;
  --overflow: hidden;
  --rotate: 0;
  --plane-x: 0;
  --plane-y: 0;
  --plane-opacity: 1;
  --left-wing-background: var(--primary);
  --left-wing-first-x: 0;
  --left-wing-first-y: 0;
  --left-wing-second-x: 50;
  --left-wing-second-y: 0;
  --left-wing-third-x: 0;
  --left-wing-third-y: 100;
  --left-body-background: var(--primary);
  --left-body-first-x: 50;
  --left-body-first-y: 0;
  --left-body-second-x: 50;
  --left-body-second-y: 100;
  --left-body-third-x: 0;
  --left-body-third-y: 100;
  --right-wing-background: var(--primary);
  --right-wing-first-x: 50;
  --right-wing-first-y: 0;
  --right-wing-second-x: 100;
  --right-wing-second-y: 0;
  --right-wing-third-x: 100;
  --right-wing-third-y: 100;
  --right-body-background: var(--primary);
  --right-body-first-x: 50;
  --right-body-first-y: 0;
  --right-body-second-x: 50;
  --right-body-second-y: 100;
  --right-body-third-x: 100;
  --right-body-third-y: 100;
  display: block;
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 8px;
  min-width: 100px;
  text-align: center;
  margin: 1rem 0;
  line-height: 24px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  background: none;
  outline: none;
  color: var(--text);
  transform: rotate(calc(var(--rotate) * 1deg)) translateZ(0);
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#challenge-register .left, #challenge-register .right {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: var(--plane-opacity);
  transform: translate(calc(var(--plane-x) * 1px), calc(var(--plane-y) * 1px)) translateZ(0);
}
#challenge-register .left:before, #challenge-register .right:before, #challenge-register .left:after, #challenge-register .right:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: calc(var(--border-radius) * 1px);
  transform: translate(var(--x, 0.4%), var(--y, 0)) translateZ(0);
  z-index: var(--z-index, 2);
  background: var(--background, var(--left-wing-background));
  clip-path: polygon(calc(var(--first-x, var(--left-wing-first-x)) * 1%) calc(var(--first-y, var(--left-wing-first-y)) * 1%), calc(var(--second-x, var(--left-wing-second-x)) * 1%) calc(var(--second-y, var(--left-wing-second-y)) * 1%), calc(var(--third-x, var(--left-wing-third-x)) * 1%) calc(var(--third-y, var(--left-wing-third-y)) * 1%));
}
#challenge-register .left:after {
  --x: 0;
  --z-index: 1;
  --background: var(--left-body-background);
  --first-x: var(--left-body-first-x);
  --first-y: var(--left-body-first-y);
  --second-x: var(--left-body-second-x);
  --second-y: var(--left-body-second-y);
  --third-x: var(--left-body-third-x);
  --third-y: var(--left-body-third-y);
}
#challenge-register .right:before {
  --x: -0.4%;
  --z-index: 2;
  --background: var(--right-wing-background);
  --first-x: var(--right-wing-first-x);
  --first-y: var(--right-wing-first-y);
  --second-x: var(--right-wing-second-x);
  --second-y: var(--right-wing-second-y);
  --third-x: var(--right-wing-third-x);
  --third-y: var(--right-wing-third-y);
}
#challenge-register .right:after {
  --x: 0;
  --z-index: 1;
  --background: var(--right-body-background);
  --first-x: var(--right-body-first-x);
  --first-y: var(--right-body-first-y);
  --second-x: var(--right-body-second-x);
  --second-y: var(--right-body-second-y);
  --third-x: var(--right-body-third-x);
  --third-y: var(--right-body-third-y);
}
#challenge-register span {
  display: block;
  position: relative;
  z-index: 4;
  opacity: var(--text-opacity);
}
#challenge-register span.success {
  z-index: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  transform: rotate(calc(var(--rotate) * -1deg)) scale(var(--success-scale)) translateZ(0);
  opacity: var(--success-opacity);
  color: var(--success);
}

.tag {
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 0.375em;
  color: #4a4a4a;
  display: inline-flex;
  font-size: .75rem;
  height: 2em;
  justify-content: center;
  line-height: 1.5;
  padding-left: 0.75em;
  padding-right: 0.75em;
  white-space: nowrap;
  gap: 4px;
}


@keyframes newEffect {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@media screen and (max-width: 768px) {
  .congrats {
    width: 80dvw;
  }
}


.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 40px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch input:checked + .slider {
  background-color: #2196F3;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.switch .slider.round {
  border-radius: 34px;
}

.switch .slider.round:before {
  border-radius: 50%;
}