@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yellowtail&display=swap');

@font-face {
  font-family: 'Poppins';
  src:
    url(assets/Poppins-Bold.ttf),
    url(assets/Poppins-Regular.ttf),
    url(assets/Poppins-Light.ttf)
  ;
  font-display: swap;
}

.yellowtail-regular {
  font-family: "Yellowtail", cursive;
  font-weight: 400;
  font-style: normal;
}

.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}


header#site-title{
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  background-color: #f3f4f8;
}

h1 {
  font-size: 1.5em;
  text-align: center;
}

.chartjs-tooltip-key {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
}

/* Dashboard - rueda de espacios vitales */

.rueda {
  display: flex;
  justify-content: space-between;
  padding: .5% 2% 0;
}
.rueda.fullScr{
  flex-direction: column;
  gap: 20px;
}

.rueda > div {
  background-color: #fefefe;
  border-radius: 25px;
  box-shadow: 0px 0px 30px -15px rgba(0, 0, 0, 0.2);
}
.rueda h2 {
    text-align: center;
    font-family: Poppins;
}


.rueda .rueda__grafico {
  width: 58%;
  height: max-content;
}

.rueda__grafico #fullScr {
  position: relative;
  top: -49px;
  left: 27px;
  width: 45px;
  height: 35px;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

#fullScr + svg {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 35px;
  height: 45px;
  top: 0;
  left: 25px;
  transform: translate(-42px, -60px);
}

.rueda .rueda__grafico.fullSCreen{
  width: 100%;
}

.rueda__datos.formulario{
  align-self: center;
}

canvas{
  border-radius: 25px;
}

.rueda__datos {
  height: 100%;
  width: 38%;
}

.nombre {
  display: flex;
  padding: 0 2%;
  position: relative;
  width: 100%;
}

#valores .nombre input {
  padding: 10px 0;
  font-size: 16px;
  color: #4d324d;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #fff;
  outline: none;
  background: #f3f4f8;
  border-radius: 10px 25px 25px 10px;
  padding-left: 10px;
  -moz-box-sizing: border-box; /* Firefox, other Gecko */
  box-sizing: border-box;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  max-width: 100%;
}

#valores .nombre input:focus ~ label,
#valores .nombre input:valid ~ label {
  top: -17px;
  left: 20px;
  color: #4d324d;
  font-size: 12px;
  font-weight: bold;
}

#valores .nombre label {
  top: 0px;
  left: 20px;
  padding: 10px 0;
  font-size: 16px;
  color: #000;
  pointer-events: none;
  transition: 0.5s;
  position: absolute;
}
  
.valores {
  display: flex;
  width: 100%;
}

form {
  display: flex;
  justify-content: space-between;
  margin: 5px 5%;
  align-items: center;
  flex-wrap: wrap;
  width: 95%;
}

#datos__etiqueta {
  justify-content: center;
  display: flex;
}
  
.input__output {
  align-items: center;
  display: flex;
}
  
.actualizar {
  margin: 0 5px 5px;
}

.actualizar button {
  display: block;
  width: 100%;
  border-radius: 20px;
  padding: 15px;
  border: 0px;
  box-shadow: 5px 5px 10px -10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 16px;
  font-family: Poppins;
  font-weight: 400;
}

button:nth-child(1) {
  margin: 0 0 5px;
  background-color: #4d324d;
  color: white;
  font-weight: bold;
}

button:nth-child(1):hover {
  background-color: #3f243f;
}

output {
  display: inline-block;
  position: relative;
  width: auto;
  color: #fff;
  line-height: 20px;
  text-align: center;
  border-radius: 3px;
  background: #4d324d;
  padding: 5px 10px;
  margin-left: 8px;
}

output:after {
  position: absolute;
  top: 8px;
  left: -6px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-right: 7px solid #4d324d;
  border-bottom: 7px solid transparent;
  content: "";
}

input[type="range"] {
  height: 10px;
  border-radius: 5px;
  background: #d7dcdf;
  outline: none;
  padding: 0;
  margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2c3e50;
  cursor: pointer;
  transition: 0.15s ease-in-out;
}

input[type="range"]:hover::-webkit-slider-thumb {
  background: #1abc9c;
}

input[type="range"]:active::-webkit-slider-thumb {
  transition: 0.35s ease-in-out;
  box-shadow: 0 0 20px -2px #2c3e50;
  background: #2c3e50;
}

input[type="range"]::-moz-range-thumb {
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #4d324d;
  cursor: pointer;
  transition: 0.15s ease-in-out;
  width: 20px;
}

input[type="range"]:hover::-moz-range-thumb {
  background: #1abc9c;
}

input[type="range"]:active::-moz-range-thumb {
  transition: 0.35s ease-in-out;
  box-shadow: 0 0 20px -2px #2c3e50;
  background: #2c3e50;
}

/* Fin dashboard - rueda de espacios vitales */

/*menu */

.hidden{
  max-height: 0; /* makes the element invisible due to no height */
  overflow: hidden; /* hides the visual overflow when the elements height is smaller then the contents height */
  transition: max-height 0.6s ease-out;
}

.active{
  max-height: 1000vh; /* insanely high value */
  transition: max-height 1s ease-in;
}

.menu__accion{
  height: 0;
}

.menu__accion input{
  right: -78.5%;
  top: -60px;
  width: 50px;
  height: 50px;
  opacity: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  cursor: pointer;
  position: relative;
}

.menu__accion input ~ span{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px; 
  transition: 
  transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  opacity 0.55s ease;
  top: -99px;
  right: -81%;
}

.menu__accion span:first-child{
  transform-origin: 0% 0%;
}
   
.menu__accion span:nth-last-child(2){
  transform-origin: 0% 100%;
}

.menu__accion input:checked ~ span{
  transform: rotate(-45deg) translate(0.5px, -0.5px);
  background: #232323;
  width: 35px;
  opacity: 1;
}
  
.menu__accion input:checked ~ span:nth-last-child(2){
  transform: rotate(0deg) scale(0.2, 0.2);
  opacity: 0;
}

.menu__accion input:checked ~ span:nth-last-child(3){
  background: #232323;
  width: 35px;
  transform: rotate(45deg) translate(1px, -3px);
}

#menu h3, h4 {
  text-align: center;
}
  
#menu form, #menu .ajustes__configuraciones--texto {
  margin: 0 5% 5px;
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
}

#menu:last-child{
  margin-bottom: 25px;
}

.menu.menu__accion-colores {
  margin: -5px 0 -10px;
}

@media (max-width: 768px) {
  div#full{
    display: none;
  }

  .rueda{
    flex-direction: column;
    gap: 30px;
  }

  .rueda__datos.formulario{
    width: 100%;
  }

  .rueda .rueda__grafico{
    width: 100%;
  }
}

@media (max-width: 450px) {
  div#full{
    display: none;
  }

  .rueda{
    flex-direction: column;
    gap: 30px;
  }

  .rueda__datos.formulario{
    width: 100%;
  }

  .rueda .rueda__grafico{
    width: 100%;
  }
}