:root {

  --dark-bg: #1d1e22;
  --dark-text: #f5f6f7;
  --color-pp: steelblue;
  --color-psoe: firebrick;
  --color-vox: green;
  --color-bg: #d2ddec;
  --color-text: #2a3748;
  --otros: 43;
  --psoe: 110;
  --pp: 137;
  --vox: 60;
  --sum-otros: var(--otros);
  --sum-psoe: var(--psoe);
  --sum-pp: var(--pp);
  --sumapsoe: calc(var(--sum-otros) + var(--sum-psoe));
  --sumapp: calc(var(--sum-otros) + var(--sum-psoe) + var(--sum-pp));
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 2rem; 
    font-family: system-ui, sans-serif;
    text-align: center;

      background-color: var(--color-bg);
      color: var(--color-text);
}
main, section, article {
    max-width: 60rem;
    margin-inline: auto;
}

  
  @media (prefers-color-scheme: dark) {
    body {

      background-color: var(--dark-bg);
      color: var(--dark-text);
    }
  }

h1 {
  font-size: 200%;
}

h2 {
  font-size: 150%;
}
  
ul {
  display: block;
  /*text-align: center;*/
}

li {
  display: block;
  /*text-align: center;*/
}

table {
  margin-left: 0;
  margin-right: auto;
}

td {
  min-width: 350px;
}

.center {
  text-align: center;
}
.texto {
  text-align: left;
  font-size: 120%;
  line-height: 1.5;
}

.margin {
  margin-top: 50px;
  margin-bottom: 25px;
}

.bold {
  font-weight: bold;
}

.lower {
  margin-bottom: 5px;
}


  /* RESET STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  
  .chart-skills {
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
  }
  
  .chart-skills *,
  .chart-skills::before {
    box-sizing: border-box;
  }
  
  
  /* CHART-SKILLS STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  
  .chart-skills {
    position: relative;
    width: 700px;
    height: 350px;
    overflow: hidden;
  }
  
  .chart-skills::before,
  .chart-skills::after {
    position: absolute;
  }
  
  .chart-skills::before {
    content: '';
    width: inherit;
    height: inherit;
    border: 90;
    border-bottom: 10px;
    border-top-left-radius: 700px;
    border-top-right-radius: 700px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
  
  .chart-skills::after {
    content: '350 Escaños';
    left: auto%;
    bottom: 10px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .chart-skills li {
    position: absolute;
    top: 100%;
    left: 0;
    width: inherit;
    height: inherit;
    border: 90px solid;
    border-top: none;
    border-bottom-left-radius: 350px;
    border-bottom-right-radius: 350px;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    animation-fill-mode: forwards;
    animation-duration: .4s;
    animation-timing-function: linear;
  }
  
  .chart-skills li:nth-child(1) {
    z-index: 4;
    border-color: gray;
    animation-name: rotate-one;
  }
  
  .chart-skills li:nth-child(2) {
    z-index: 3;
    border-color: var(--color-psoe);
    animation-name: rotate-two;
    animation-delay: .4s;
  }
  
  .chart-skills li:nth-child(3) {
    z-index: 2;
    border-color: var(--color-pp);
    animation-name: rotate-three;
    animation-delay: .8s;
  }
  
  .chart-skills li:nth-child(4) {
    z-index: 1;
    border-color: var(--color-vox);
    animation-name: rotate-four;
    animation-delay: 1.2s;
  }
  
  .chart-skills span {
    position: absolute;
    font-size: .85rem;
    backface-visibility: hidden;
    animation: fade-in .4s linear forwards;
  }
  
  .chart-skills li:nth-child(1) span {
    top: 5px;
    left: 10px;
    transform: rotate(calc(-1*var(--otros)*18deg/35));
  }
  
  .chart-skills li:nth-child(2) span {
    top: 20px;
    left: 10px;
    transform: rotate(calc(-1*var(--sumapsoe)*18deg/35));
    animation-delay: .4s;
  }
  
  .chart-skills li:nth-child(3) span {
    top: 18px;
    left: 10px;
    transform: rotate(calc(-1*var(--sumapp)*18deg/35));
    animation-delay: .8s;
  }
  
  .chart-skills li:nth-child(4) span {
    top: 10px;
    left: 10px;
    transform: rotate(-180deg);
    animation-delay: 1.2s;
  }
  
  
  /* ANIMATIONS
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  
  @keyframes rotate-one {
    100% {
    transform: rotate(calc(var(--otros)*18deg/35));
      /**
       * 12% => 21.6deg
       */
    }
  }
  
  @keyframes rotate-two {
    0% {
    transform: rotate(calc(var(--otros)*18deg/35));
    }
    100% {
    transform: rotate(calc(var(--sumapsoe)*18deg/35));
      /**
       * 32% => 57.6deg 
       * 57.6 + 21.6 => 79.2deg
       */
    }
  }
  
  @keyframes rotate-three {
    0% {
      transform: rotate(calc(var(--sumapsoe)*18deg/35));    
    }
    100% {
    transform: rotate(calc(var(--sumapp)*18deg/35));
      /**
       * 34% => 61.2deg 
       * 61.2 + 79.2 => 140.4deg
       */
    }
  }
  
  @keyframes rotate-four {
    0% {
      transform: rotate(calc(var(--sumapp)*18deg/35));
    }
    100% {
      transform: rotate(180deg);
      /**
       * 22% => 39.6deg  
       * 140.4 + 39.6 => 180deg
       */
    }
  }
  
  @keyframes fade-in {
    0%,
    90% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes item-height {
    0% { height: 0; opacity: 0; }
    100% { height: calc(2% * var(--val)); opacity: 1; }
}



  .simple-bar-chart{
    --line-count: 10;
    --line-color: currentcolor;
    --line-opacity: 0.25;
    --item-gap: 2%;
    --item-default-color: #060606;
    max-width: 45rem;
    margin-inline: auto;
    
    height: 10rem;
    display: grid;
    grid-auto-flow: column;
    gap: var(--item-gap);
    align-items: end;
    padding-inline: var(--item-gap);
    --padding-block: 1.5rem; /*space for labels*/
    padding-block: var(--padding-block);
    position: relative;
    isolation: isolate;
    border: 1px solid;
    border-style: dashed;

    margin-bottom: 30px;
  }
  
  .simple-bar-chart::after{
    content: "";
    position: absolute;
    inset: var(--padding-block) 0;
    z-index: -1;
    --line-width: 1px;
    --line-spacing: calc(100% / var(--line-count));
    background-image: repeating-linear-gradient(to top, transparent 0 calc(var(--line-spacing) - var(--line-width)), var(--line-color) 0 var(--line-spacing));
    box-shadow: 0 var(--line-width) 0 var(--line-color);
    opacity: var(--line-opacity);
  }
  .simple-bar-chart > .item{
    height: calc(2% * var(--val));
    background-color: var(--clr, var(--item-default-color));
    position: relative;
    animation: item-height 2s ease forwards
  }
  @keyframes item-height { from { height: 0 } }
  
  .simple-bar-chart > .item > * { position: absolute; text-align: center }
  .simple-bar-chart > .item > .label { inset: 100% 0 auto 0 }
  .simple-bar-chart > .item > .value { 
    inset: auto 0 100% 0; 
    font-weight: bold;
    font-size: 1em;
  }

.simple-bar-chart > .item:hover {
    opacity: 0.9;
    transform: scaleX(1.15);
}

@media (max-width: 1000px) {
  .chart-skills {
    width: 450px;
    height: 225px;
  }

  
  .chart-skills li {
    border: 55px solid;
    border-top: none;
  }
}


@media (max-width: 600px) {
  .chart-skills {
    width: 350px;
    height: 175px;
  }

  
  .chart-skills li {
    border: 45px solid;
    border-top: none;
  }
}


@media (max-width: 400px) {
  .chart-skills {
    width: 200px;
    height: 100px;
  }

  
  .chart-skills li {
    border: 30px solid;
    border-top: none;
  }
}