@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Kanit';
  src: url('../assets/fonts/Kanit/Kanit-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

  
@font-face {
  font-family: 'MPLUSRounded';
  src: url('../assets/fonts/MPLUSRounded1c-ExtraBold.ttf');
}

.fake-feed-item-container .feed-page-line,
.fake-feed-item-container .feed-page-line-workout-exercice
{
    width: 100% !important;
    left: 0;
}

.fake-feed-item-container .feed-page-line-header{

    padding: 10px 0;
    margin-left: -5px;
    padding-bottom: 0;

}

.fake-feed-item-container .feed-page-line-desc-container{

  margin-left: 0;

}

.loading-lazy::after{
  top: 0;
  left: 0;
  content: '';
  border-radius: 10px;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(62deg, var(--titleBackground1), var(--buttonBackground2), var(--titleBackground1), var(--buttonBackground2));
  animation: gradient-load-keyframes 6s ease infinite; 
  background-size: 400% 400%;   
}

.loading-lazy.loading-lazy-round{
  border-radius: 100vw;
}

.loading-lazy.loading-lazy-white{
  filter: grayscale(1) brightness(3);
}

.notifcenter-top-left-button-container{
  position: fixed;
  top: calc(15px + var(--sat) * 0.83);
  right: 13px;
  z-index: 9;
  transition: opacity 0.5s;
  width: fit-content;
}

.home-notifications-button{
  width: 30px;
  height: 30px;
  background-color: var(--color1);
}

.home-notifications-counter{

  width: 17px;
  height: 17px;
  max-width: 17px;
  max-height: 17px;
  background-color: var(--buttonBackground2);
  border-radius: 100px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: -5px;
  left: -4px;
  border: solid 3px var(--background1);

}

.home-notifications-counter p {

  font-size: 12px;

}

._AreYouSurePopup-content{
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  border-radius: 8px;
  padding: 25px 0;
  box-shadow: 0px 0px 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.alert-popup-p{
  max-width: 90%;
}

._AreYouSurePopup-content::before{
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--background1);
  opacity: 0.8;
  z-index: -1;
}

._SlidingPage{
  width: 100%;
  height: var(--screenHeight);
  max-height: var(--screenHeight);
  background-color: var(--background1);
}

._SlidingPageHeader{
  height: 30px;
}

._SlidingPageContent{
  width: 100%;
  display: flex;
  flex-direction: column;
  height: var(--screenHeight);
  box-sizing: border-box;
  justify-content: start;
  align-items: center;
  position: absolute;
  top: 0;
  padding-top: 40px;
}

._AreYouSurePopup-content .question{
  font-size: 20px;
  font-weight: 600;
  line-height: 22px;
  margin-bottom: 10px;
  width: 90%;
  position: relative;
}

._AreYouSurePopup-propositions{
  flex-direction: row;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  margin-top: 25px;
}

._AreYouSurePopup-propositions p{
  cursor: pointer;
  background-color: var(--buttonBackground1);
  padding: 5px 17px;
  border-radius: 6px;
  color: white;
}

.login-top-left-button{
  position: fixed;
  right: 10px;
  top: calc(var(--sat) * 0.8 + 10px);
  z-index: 3;
  background-color: black;
  padding: 8px 17px;
  padding-right: 19px;
  border-radius: 7px;
  box-shadow: 0px 0px 8px var(--buttonBackground1);
  color: white;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.3s;
}  

.login-top-left-button.subscribe{
  background-color: #18904e;
}

.login-top-left-button:hover{
  /* transform: scale(1.01); */
}

.profile-page .login-top-left-button{
  right: unset;
  left: 10px;
  z-index: 6;
}

.popup_exercices_perfs_perfcontainer.offset{
  top: -100%;
  position: inherit !important;
  transform: unset !important;
  height: fit-content;
}
.popup_exercices_perfs_perfcontainer.offset .popup_exercices_perfs_name{
  transform: translateY(-90%);
}
.popup_exercices_perfs_perfcontainer.offset .exerciceProgressTitle{
  margin-top: 0;
  transform: translateY(20px);
}

.exercice-progression-canvas-container{
  width: 92%;
  margin-left: 4%;
  height: 300px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.login-top-left-onyx-logo{
  width: 26px;
  aspect-ratio: 1/1;
  margin-right: 12px;
}


*{
    margin: 0;
    padding: 0;
    font-family: "Kanit";
    font-size-adjust: 0.5;
}

html{
    background-color: black;
}

.blackScreenFade{
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: black;
  transition: opacity 2s;
}

.loadingMask{
  position: fixed;
  width: 100vw;
  height: var(--screenHeight);
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: black;
  transition: opacity .1s;
}

.pagecontainer{
  margin-top: auto;
  display: flex;
  width: 100%;
  height: fit-content;
  align-items: center;
  justify-content:center;
  flex-direction: column;
}

button{
    border: none;
    color: white;
    background-color: black;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

button:hover{
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.619);
}

#view{
    position: absolute;
}

#viewcontainer{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Apply styles to all elements except inputs */
*{
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;  
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera, and Firefox */
}

input{
  -webkit-touch-callout: text; /* iOS Safari */
  -webkit-user-select: text; /* Safari */
  -khtml-user-select: text; /* Konqueror HTML */
  -moz-user-select: text; /* Old versions of Firefox */
  -ms-user-select: text; /* Internet Explorer/Edge */
  user-select: text; /* Non-prefixed version, currently supported by Chrome, Edge, Opera, and Firefox */
}

.noselect, img{
  -webkit-user-drag: none;
}

._MultiSelect-svg{
  width: 20px;
  aspect-ratio: 1/1;
  background-color: var(--color1);
  transition: transform .2s;
}

._MultiSelect-block{
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: solid 1px var(--color1);
  border-radius: 6px;
  box-sizing: border-box;
  padding: 5px 10px;
  position: relative;
}

._MultiSelect-svg{
  margin-left: 10px;
  position: absolute;
  right: 10px;
  top: 23%;
}

._MultiSelect-placeholder{
  font-size: 17px;
}

._MultiSelect-Items{
  transform-origin: top center;
  position: absolute;
  top: -2px;
  left: -1px;
  background-color: var(--background1);
  z-index: 5;
  width: calc(100% + 2px);
  padding: 5px;
  box-sizing: border-box;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border: solid 1px;
  border-top: none;
  transform: scaleY(0);
  transition: transform .1s;
  padding-top: 15px;
}

._MultiSelect-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-size: 17px;
  margin-bottom: 11px;
}

._MultiSelect-item-checkbox{
  width: 20px;
  height: 20px;
  background-color: white;
  border: solid 1px var(--background1);
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
}

._MultiSelect-item-checkbox::after{
  content: '';
  position: absolute;
  height: 100%;
  top: 5%;
  aspect-ratio : 1 / 1;
  border-radius: 3px;
  color: white;
  transition: color .2s;
}

._Switch{
  width: 37px;
  height: 18px;
}

._Switch-slider{
  width: 100%;
  height: 100%;
  background-color: var(--background1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

._Switch-slider::before{
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-color: var(--buttonBackground2);
  opacity: 0.5;
}

._Switch-round::before{
  content: '';
  width: 500%;
  height: 100%;
  display: block;
  background-color: var(--buttonBackground2);
  position: absolute;
  z-index: -1;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  right: 0;
  opacity: 0.7;
  filter: brightness(150%);
}

._Switch-round{
  height: 100%;
  aspect-ratio: 1/1;
  position: absolute;
  transition: left 0.2s;
  transform: translateX(0%);
  top: 0;
  left: 0;
}

._Switch-round::after{
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--color1);
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}

._SlideView{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  left: 100vw;
}

._TabView-headers{
  display: flex;
  position: relative;
}

._TabView-cursor{
  height: 3px;
  background-color: var(--color1);
  position: absolute;
  bottom: 0;
  border-radius: 5px;
}

._TabView-tabs{
  width: 100%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  white-space: nowrap;
  display: flex;
}

._TabView-tab{
  width: 100%;
  min-height: 10px;
  box-sizing: border-box;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

._TabView-header{
  text-align: center;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

*:focus {
  outline: none;
  box-shadow: none !important;
}

*::selection {
  background: #134ea75c; /* WebKit/Blink Browsers */
}
*::-moz-selection {
  background: #134ea75c; /* Gecko Browsers */
}





  /* LOADING */

  .wrapper_loader{
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
  }
  
  .loader{
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 102px;
    height: 40px;
    perspective: 150px;
  }
  
  .loader > div {
    height: 100%;
    width: 4px;
    background-color: var(--color1);
    filter: invert(10%);
    animation: flip 2.5s linear infinite;
  }

  @keyframes flip{
    to {
      transform: rotateX(360deg);
    }
  }
  
  .loader > div:nth-child(2){
    animation-delay: 0.1s;
  }
  
  .loader > div:nth-child(3){
    animation-delay: 0.2s;
  }
  .loader > div:nth-child(4){
    animation-delay: 0.3s;
  }
  .loader > div:nth-child(5){
    animation-delay: 0.4s;
  }
  .loader > div:nth-child(6){
    animation-delay: 0.5s;
  }
  .loader > div:nth-child(7){
    animation-delay: 0.6s;
  }
  .loader > div:nth-child(8){
    animation-delay: 0.7s;
  }
  .loader > div:nth-child(9){
    animation-delay: 0.8s;
  }
  .loader > div:nth-child(10){
    animation-delay: 0.9s;
  }
  .loader > div:nth-child(11){
    animation-delay: 1s;
  }
  .loader > div:nth-child(12){
    animation-delay: 1.1s;
  }
  .loader > div:nth-child(13){
    animation-delay: 1.2s;
  }
  .loader > div:nth-child(14){
    animation-delay: 1.3s;
  }
  .loader > div:nth-child(15){
    animation-delay: 1.4s;
  }

  .popup_clickBlocker{
    position: fixed;
    top: 0;
    width: 100vw;
    height: var(--screenHeight);
    background-color: rgba(0, 0, 0, 0.234);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  .onyxPopup{
    background-color:white;
    border: solid 1px black;
    position: absolute;
    padding: 20px;
    max-width: 90vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  .onyxPopup_text{
    padding: 20px;
    text-align: center;
    max-width: 90vw;
    margin-bottom: 15px;
  }

  .onyxPopupBtnContainer{
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .onyxPopupBtn{
    padding: 10px;
    background-color: black;
    border-radius: 5px;
    width: 20%;
    color: white;
    text-align: center;
    cursor: pointer;
  }


  /* TOAST */

  
.toast {
  margin-top: calc(var(--sat) / 1.5);
  position: fixed;
  top: 25px;
  right: 30px;
  border-radius: 12px;
  background-color: var(--buttonBackground2);
  padding: 8px 18px 10px 11px;
  box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 99999 !important;
}

.simple-backbutton{

  top: calc(2.5vh + var(--sat) * 0.83) !important;

}

#toastMessage{
  color: white !important;
}

.toast.active {
  transform: translateX(0%);
}

.toast .toast-content {
  display: flex;
  align-items: center;
}

.like-item-no-image div {

  width: 100% !important;
  height: 100% !important;
  border-radius: 100%;

}

.toast_check_img{
  width: 100%;
  height: 100%;
  margin-top: 1%;
  margin-left: 3%;
  background-image: url(../assets/img/check.svg);
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(100%);
}

.toast-content .check {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  background-color: #1dbc4d;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  /* border: solid 1px; */
  box-shadow: 0px 0px 4px #0000004d;
}

.toast-content .check.error{
  background-color: #bc1d1d;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin: 0 20px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
}

.message .text.text-1 {
  font-weight: 600;
  color: #333;
}

.toast .close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.all-exercices-main .close{

  top: calc(5px + var(--sat)) !important;

}

.toast .close:hover {
  opacity: 1;
}

.toast .progressToast {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;

}

.toast .progressToast:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: #1ca75b;
}

.toast .progressToast.error:before {
  background-color: #a71c1c;
}

.progressToast.active:before {
  animation: progressToast 3s linear forwards;
}

@keyframes progressToast {
  100% {
    right: 100%;
  }
}


.backBtn{
  position: fixed;
  margin-top:20px;
  margin-left:20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 999;
}

.backBtn_img{
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 600px) {

  #backBtn{
      margin-top:10px;
      margin-left:10px;
      width: 35px;
      height: 35px;
  }
  
}

#toastMessage{
  color: white;
}


.load-gradient-background {
  background: linear-gradient(62deg, var(--titleBackground1), var(--buttonBackground1), var(--titleBackground1), var(--buttonBackground1));
  animation: gradient-load-keyframes 6s ease infinite; 
  background-size: 400% 400%;    
}

@-webkit-keyframes gradient-load-keyframes{
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
     background-position: 0% 50%;
  }
}

@keyframes gradient-load-keyframes{
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
     background-position: 0% 50%;
  }
}

@keyframes textColorFade {
  0% {
    color: var(--color1);
  }
  100% {
    color: rgba(255, 255, 255, 0);
  }
}

.textColorFadeAnimation {
  animation: textColorFade 1s infinite alternate;
}

.clear-button{
  background-color: transparent;
  width: 0;
  padding: 0;
  margin: 0;
}

.clear-button:hover{
  box-shadow: unset !important;
}