/* Globals */

:root {
  --container: 69.375rem;
  --fs-88: 5.5rem;
  --fs-72: 4.5rem;
  --fs-48: 3rem;
  --fs-40: 2.5rem;
  --fs-32: 2rem;
  --fs-24: 1.5rem;
  --fs-18: 1.125rem;
  --fs-16: 1rem;
  --fs-12: 0.75rem;
  --br-20: 1.25rem;
  --br-10: 0.635rem;
  --default-lh: 1;
  --lh-55: 1.55;
  --h-size-200: 12.5rem;
  --h-size-100: 6.25rem;
  --w-size-174: 10.875rem;
  --w-size-100: 6.25rem;
  --w-size-32: 2rem;
  --w-size-60: 3.75rem;
  --m-top-150: 9.375rem;
  --m-top-60: 3.75rem;
  --m-bot-100: 6.25rem;
  --m-bot-60: 3.75rem;
  --m-top-40: 2.5rem;
  --m-top-20: 1.25rem;
  --m-bot-80: 5rem;
  --m-bot-20: 1.25rem;
  --bot-40: 2.5rem;
  --gap-tb-40: 2.5rem;
  --gap-tb-20: 1.25rem;
  --gap-lr-25: 1.5625rem;
  --transition: 250ms ease-in-out;
  --animation: animate 16s linear infinite;
  --text-white: hsl(0, 0%, 80%);
  --def-blue: hsl(222, 47%, 11%);
}

.wrapper {
  gap: var(--gap-tb-40);
  margin-inline: auto;
  max-width: var(--container);
  width: calc(100% - var(--w-size-32));
}

/* Components */

.header {
  align-items: center;
  display: flex;
  gap: 0;
  justify-content: space-between;
}

.nav-icons {
  align-items: center;
  display: flex;
  font-size: var(--fs-24);
  gap: var(--gap-lr-25);
}

.header-text {
  font-size: var(--fs-40);
  font-size: clamp(var(--fs-12), var(--fs-12) + 5vw, var(--fs-48));
}

.container {
  margin-bottom: var(--m-bot-100);
  margin-top: var(--m-top-60);
}

.box {
  align-items: center;
  border: 1px solid pink;
  border-radius: var(--br-10);
  display: flex;
  height: var(--h-size-200);
  position: relative;
  width: auto;
}

/* .html-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(12, 78%, 54%, 0.05); 
    z-index: -1;
    border-radius: var(--br-10);
  } */

.icon {
  display: flex;
  font-size: var(--fs-48);
  justify-content: center;
  margin-inline: auto;
}

.label {
  background-color: hsla(12, 78%, 54%, 0.8);
  border-radius: var(--br-20);
  color: var(--text-white);
  font-size: var(--fs-12);
  font-weight: 700;
  padding: 1px 10px;
  position: absolute;
  top: 20px;
}

.progress-bar {
  background-color: rgba(255, 192, 203, 0.5);
  border-radius: 5px;
  bottom: 30px;
  height: 9px;
  left: 50%;
  position: absolute;
  translate: -50%;
  width: 80%;
}

.progress-bar div {
  border-radius: 5px;
  height: 9px;
  width: 0%;
}

.progress-bar div span {
  align-items: center;
  background-color: var(--def-blue);
  border-radius: 20%;
  color: white;
  display: flex;
  float: right;
  font-size: var(--fs-12);
  height: 40px;
  justify-content: center;
  margin-right: -30px;
  margin-top: -15px;
  padding-bottom: 2px;
  width: 40px;
}

.html-pb {
  animation: html-pb 10s linear forwards;
}

.css-pb {
  animation: css-pb 10s linear forwards;
}

.sass-pb {
  animation: sass-pb 10s linear forwards;
}

.tailwind-pb {
  animation: tailwind-pb 10s linear forwards;
}

.javascript-pb {
  animation: javascript-pb 10s linear forwards;
}

.react-pb {
  animation: react-pb 10s linear forwards;
}

.python-pb {
  animation: python-pb 10s linear forwards;
}

.java-pb {
  animation: java-pb 10s linear forwards;
}

@keyframes html-pb {
  100% {
    width: 80%;
  }
}

@keyframes css-pb {
  100% {
    width: 70%;
  }
}

@keyframes sass-pb {
  100% {
    width: 60%;
  }
}

@keyframes tailwind-pb {
  100% {
    width: 50%;
  }
}

@keyframes javascript-pb {
  100% {
    width: 50%;
  }
}

@keyframes react-pb {
  100% {
    width: 30%;
  }
}

@keyframes python-pb {
  100% {
    width: 20%;
  }
}

@keyframes java-pb {
  100% {
    width: 10%;
  }
}

.html {
  background-color: hsla(12, 78%, 54%, 0.5);
}

.css {
  background-color: hsla(222, 87%, 57%, 0.5);
}

.sass {
  background-color: hsla(330, 51%, 62%, 0.5);
}

.tailwind {
  background-color: hsla(198, 93%, 61%, 0.5);
}

.javascript {
  background-color: hsla(53, 93%, 56%, 0.5);
}

.react {
  background-color: hsla(193, 95%, 69%, 0.5);
}

.python {
  background: linear-gradient(
    295deg,
    hsla(48, 100%, 57%, 0.5) 46%,
    rgba(60, 123, 171, 0.8) 59%
  );
}

.java {
  background-color: hsla(358, 85%, 54%, 0.5);
}

footer {
  align-items: center;
  bottom: 0;
  display: flex;
  height: var(--h-size-100);
  justify-content: center;
  position: fixed;
  text-align: center;
  width: 100%;
}

/* Media Query */

@media (max-width: 56.2em) {
  .header {
    display: flex;
    flex-direction: column;
  }

  .nav-icons {
    margin-bottom: var(--m-bot-20);
  }

  .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--m-top-20);
  }

  .wrapper {
    width: calc(100% - var(--w-size-100));
  }
}

@media (max-width: 37.5em) {
  .container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-top: var(--m-top-40);
    gap: var(--gap-tb-20);
  }

  .box:last-child {
    margin-bottom: var(--m-bot-20);
  }
}
