@import url("https://fonts.googleapis.com/css?family=Inter:400,500,700,900&display=swap");

main {
  width: 100%;
  /* Ancho del contenedor al 100% del ancho del dispositivo */
  max-width: 1280px;
  /* Limita el ancho máximo a 1280px */
  margin-left: auto;
  margin-right: auto;
  font-family: Inter, sans-serif;
  position: relative;
}

*{  font-family: Inter, sans-serif;
padding: 0;
margin: 0;}

#webar {
  width: 100%;
  /* Ancho del contenedor del 100% del ancho del dispositivo */
  height: auto;
  /* Altura automática para mantener la proporción */
  max-width: 100%;
  /* Limita el ancho máximo al 100% del ancho del dispositivo */
  background-color: #000000;


}

canvas {
  width: 100%;
  height: 100%;
}

#fps {
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-align: left;
  color: #ffffff;
  position: absolute;
  width: 122px;
  height: 48px;
  top: 40px;
  left: 1120px;
  opacity: 0.75;
}

#image {
  overflow: hidden;
  width: 0;
  height: 0;
}

#reset-button {
  visibility: hidden;
  position: absolute;
  bottom: 142px;
  left: 40px;
  width: 40px;
  height: 40px;
  z-index: 1;
}

#reset-button:disabled {
  opacity: 0.5;
}

.import-message {
  position: absolute;
  bottom: 61px;
  width: 100%;
}

.import-message__inner span {
  font-weight: 700;
}

.import-message__inner {
  border-radius: 60px;
  background: #f5f5f5;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}

.inverted {
  filter: invert(100%);
}

table tbody tr td img{ border-radius: 50%;}

table tbody tr td a{  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 16px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
text-decoration: none;}



.button-4:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-4:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}

.button-4:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button-4:focus {
  outline: 1px transparent;
}

.button-4:before {
  display: none;
}

.button-4:-webkit-details-marker {
  display: none;
}

.controls {
  position: absolute;
  bottom: 140px;
  width: 100%;
  display: flex;
  justify-content: right;
  z-index: 1;
}

.controls+input[type="image"] {
  cursor: pointer;
}

input[type="image" i] {
  height: auto;
}

#rec-duration {
  position: absolute;
  bottom: 44px;
  left: 5px;
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.start-screen {
  width: 350px;
  height: 230px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #fff;
  top: calc(50% - 115px);
  left: calc(50% - 175px);
  text-align: center;
  position: absolute;
  z-index: 3;
}

.start-screen__title {
  color: #191428;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 40px auto 42px;
}

.start-screen__webcam {
  margin-bottom: 12px;
}

.start-screen__webcam label {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid #191428;
  background: #191428;
  display: inline-block;
  width: 164px;
  padding: 12px 0;
  cursor: pointer;
}

.start-screen__photo label {
  width: 164px;
  display: inline-block;
  color: #191428;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid #191428;
  background: #fff;
  padding: 12px 0;
  cursor: pointer;
}

.footer {
  overflow: hidden;
}

.technologies {
  display: flex;
  justify-content: center;
  height: 3.75em;
  /* 60px / 16px = 3.75em, assuming the base font size is 16px */
  margin: 0 3.4375em;
  /* 55px / 16px = 3.4375em, assuming the base font size is 16px */
  font-size: .5em !important;
  /* Base font size, can be adjusted */
}
input[type="image" i] {
  height: 60px;
  /* Cambia el tamaño para dispositivos más pequeños */
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .technologies {
    margin: 0 2em;
    /* Adjust the margin for medium screens */
  }
 
}

@media (max-width: 768px) {
  .technologies {
    height: auto;
    /* Adjust height for smaller screens */
    margin: 0 1em;
    /* Further adjust the margin for small screens */
  }

  input[type="image" i] {
    height: 40px;
    /* Cambia el tamaño para dispositivos más pequeños */
  }
}

@media (max-width: 480px) {
  .technologies {
    margin: 0 0.5em;
    /* Even smaller margin for very small screens */
  }

  input[type="image" i] {
    height: 30px;
    /* Cambia el tamaño para dispositivos más pequeños */
  }
}


.technology {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  text-align: center;
}

input[type="radio"] {
  display: none;
  margin: 0;
}

input[name="tech"]+label {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 5px;
}






input[name="tech"]:checked+label {
  text-shadow: 0 0 1px black;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -6px;
  cursor: default;
}

input[name="tech"]:checked+label:after {
  background: #191428;
  content: "";
  height: 2px;
  margin-top: 4px;
  width: 20px;
}

.categories {
  width: inherit;
  overflow-x: auto;
  font-size: 0.8125em;
  display: flex;
  height: auto;
  justify-content: left;
  margin: auto;
  padding: 1.625em 1em;
  white-space: nowrap;
}




.categories.categories-long {
  justify-content: normal;
  transition: 0.3s;
}

.categories-button__left {
  height: 40px;
  position: absolute;
  bottom: 62px;
  width: 96px;
  padding-left: 16px;
  background: linear-gradient(90deg, #fff 60.13%, hsla(0, 0%, 100%, 0));
  z-index: 2;
}

.categories-button__left-icon {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(51, 61, 83, 0.1);
}

.categories-button__right {
  height: 40px;
  position: absolute;
  bottom: 62px;
  width: 96px;
  right: 0;
  background: linear-gradient(270deg, #fff 60.13%, hsla(0, 0%, 100%, 0));
  z-index: 2;
}

.categories-button__right-icon {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(51, 61, 83, 0.1);
  transform: matrix(-1, 0, 0, 1, 0, 0);
  float: right;
  margin-right: 16px;
}

.category {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  text-align: center;
}

input[name="category"]+label {
  border: 1px solid transparent;
  border-radius: 60px;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
}

input[name="category"]:checked+label {
  border: 1px solid #191428;
  cursor: default;
}

.effects {
  white-space: nowrap;
  cursor: grab;
  position: relative;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 0;
}

.hairChange {
  position: absolute;
  margin: 0 auto;
  /* Esto centrará horizontalmente el elemento */
  height: auto;
  user-select: none;
  overflow-x: auto;
  white-space: nowrap;
  bottom: 134px;
  width: 50%;
  display: flex;
  z-index: 0;
  cursor: grab;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}


.effects-list {
  cursor: grab;
  user-select: none;
  display: flex;
  justify-content: center;
}

.effect-icon {
  width: 50px;
  height: 50px;
  border: 3px solid #e7e7e7;
  border-radius: 60px;
  padding: 3px;
  margin: 6px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .effect-icon {
    width: 40px;
    height: 40px;
    padding: 2.5px;
    margin: 5px;
  }
}

@media (max-width: 768px) {
  .effect-icon {
    width: 30px;
    height: 30px;
    border-width: 2px;
    padding: 2px;
    margin: 4px;
  }
}

@media (max-width: 480px) {
  .effect-icon {
    width: 32px;
    height: 32px;
    border-width: 2px;
    padding: 1.5px;
    margin: 3px;
  }
}


.effect-icon__border {


  margin: 0 0.25rem;

}

input[name="effect"]+.effect-icon__border {
  cursor: pointer;
}

input[name="effect"]:checked+.effect-icon__border {
  cursor: default;
}

.effect-control {
  margin: 0 auto 15px;
}

.effect-control__toggle {
  -webkit-appearance: none;
  appearance: none;
  background: #eef2f7;
  border-radius: 30px;
  cursor: pointer;
  height: 33px;
  outline: none;
  position: relative;
  transition: 0.4s;
  vertical-align: top;
  width: 60px;
}

.effect-control__toggle:checked {
  background-color: #4794fe;
}

.effect-control__toggle:after {
  background-color: #4794fe;
  border-radius: 50%;
  content: "";
  height: 28px;
  left: 3px;
  position: absolute;
  top: 2.5px;
  transform: translateX(0);
  transition: 0.4s;
  width: 28px;
}

.effect-control__toggle:checked:after {
  background-color: #fff;
  transform: translateX(calc(100% - 3px));
}

.effect-control__slider-container {
  width: 202px;
}

.effect-control__slider {
  background: linear-gradient(to right,
      #4794fe 0%,
      #4794fe 50%,
      #eef2f7 50%,
      #eef2f7 100%);
  border-radius: 30px;
  height: 4px;
  width: 100%;
  outline: none;
  transition: background 450ms ease-in;
  -webkit-appearance: none;

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
}

.hand-gestures-tip {
  top: calc(50% - 207px);
  left: calc(50% - 170px);
  padding: 40px 60px;
  position: absolute;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px 0 rgba(51, 61, 83, 0.1);
}

.hand-gestures-tip__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
  margin-bottom: 12px;
}

.hand-gestures-tip__subtitle {
  font-style: normal;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
}

.hand-gestures-tip__content {
  margin: 32px auto 32px 63px;
}

.hand-gestures-tip__content-item {
  align-items: center;
  display: flex;
  height: 20px;
  margin-bottom: 16px;
  text-align: center;
}

.hand-gestures-tip__content-item img {
  font-size: 16px;
  font-weight: 500;
  height: 20px;
  line-height: 19px;
  margin-right: 10px;
  width: 20px;
}

.hand-gestures-tip__button {
  background: #000;
  border-radius: 24px;
  border-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  line-height: 19px;
  text-align: center;
  width: 220px;
  cursor: pointer;
}

.hand-gestures {
  position: absolute;
  top: calc(74%);
  left: calc(50% - 125px);
  background: #000;
  color: #fff;
  margin: 0 auto 15px;
  padding: 8px 32px;
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  line-height: 22px;
  text-align: center;
  vertical-align: middle;
  width: 180px;
}

.hand-gestures img {
  margin-right: 12px;
}

.heart-rate {
  position: absolute;
  width: 130px;
  left: 495px;
  bottom: 156px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  padding: 8px 22px;
}

.heart-rate.heart-rate__analyse {
  width: 190px;
  left: 480px;
}

.test-ruler {
  position: absolute;
  bottom: 156px;
  left: 473px;
  width: 142px;
  background: #000000;
  padding: 8px 0 8px 32px;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: #ffffff;
}

/* Estilo base */
.popups {
  position: absolute;
  left: 50%; /* Centra horizontalmente */
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%); /* Centra horizontalmente */
}

/* Media query para dispositivos con ancho máximo de 768px */
@media only screen and (max-width: 768px) {
  popups {
    left: 50%; /* Centra horizontalmente */
    top: 10px; /* Ajusta la distancia superior */
  }
}

/* Media query para dispositivos con ancho máximo de 480px */
@media only screen and (max-width: 480px) {
  popups {
    left: 10px; /* Ajusta el posicionamiento horizontal */
    top: 10px; /* Ajusta la distancia superior */
    transform: none; /* Elimina la transformación de centrado horizontal */
  }
}

#tintes-table {    
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  font-family: Inter, sans-serif;
  position: relative;
  overflow-x: auto; /* Añade scroll horizontal para dispositivos pequeños */
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
  td, th {
    border: 1px solid #dddddd;
    padding: 12px 8px; /* Ajuste de padding para pantallas más pequeñas */
    font-size: 14px; /* Ajuste de tamaño de fuente para pantallas más pequeñas */
  }
}

@media (max-width: 480px) {

  tr:nth-child(even) {
border: none;  }
  #tintes-table {
    padding: 0 10px; /* Añade padding lateral para asegurar que la tabla no toque los bordes de la pantalla */
  }
  
  table, thead, tbody, th, td, tr {
    display: block; /* Permite que los elementos de la tabla se comporten como bloques */
  }
  
  th, td {
    box-sizing: border-box;
    width: 100%; /* Ajusta el ancho de las celdas al 100% del contenedor */
  }
  
  thead {
    display: none; /* Oculta el encabezado en pantallas pequeñas */
  }
  
  tr {
    margin-bottom: 15px; /* Añade espacio entre las filas */
  }
  
  td:nth-child(even) {
    border: #000;
    position: relative; /* Necesario para pseudo-elementos */
  }
  
  td::before {
    content: attr(data-label); /* Usa el atributo data-label para mostrar los encabezados */
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    text-align: left; /* Alinea los encabezados a la izquierda */
    font-weight: bold;
  }
}


.popup {
  opacity: 1;
  color: #191428;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px 0 rgba(51, 61, 83, 0.1);
  transition: all ease-in-out 0.5s;
}

.popup__hidden {
  opacity: 0;
}

.popup__bold {
  margin-right: 8px;
  font-weight: 700;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 2;
}

.hidden {
  display: none;
}

.start-screen__spinner {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 75px;
  left: 135px;
}

.start-screen__spinner div {
  animation: start-screen__spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.start-screen__spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  margin: -4px 0 0 -4px;
}

.start-screen__spinner div:nth-child(1) {
  animation-delay: -0.036s;
}

.start-screen__spinner div:nth-child(1):after {
  top: 63px;
  left: 63px;
}

.start-screen__spinner div:nth-child(2) {
  animation-delay: -0.072s;
}

.start-screen__spinner div:nth-child(2):after {
  top: 68px;
  left: 56px;
}

.start-screen__spinner div:nth-child(3) {
  animation-delay: -0.108s;
}

.start-screen__spinner div:nth-child(3):after {
  top: 71px;
  left: 48px;
}

.start-screen__spinner div:nth-child(4) {
  animation-delay: -0.144s;
}

.start-screen__spinner div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.start-screen__spinner div:nth-child(5) {
  animation-delay: -0.18s;
}

.start-screen__spinner div:nth-child(5):after {
  top: 71px;
  left: 32px;
}

.start-screen__spinner div:nth-child(6) {
  animation-delay: -0.216s;
}

.start-screen__spinner div:nth-child(6):after {
  top: 68px;
  left: 24px;
}

.start-screen__spinner div:nth-child(7) {
  animation-delay: -0.252s;
}

.start-screen__spinner div:nth-child(7):after {
  top: 63px;
  left: 17px;
}

.start-screen__spinner div:nth-child(8) {
  animation-delay: -0.288s;
}

.start-screen__spinner div:nth-child(8):after {
  top: 56px;
  left: 12px;
}

@keyframes start-screen__spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}