@import "style.css";

#skill {

    display: flex;
    width: 100%;
    /* height: 44rem; */
    margin-top: 4rem;
 margin-bottom: 12rem;
 padding-bottom: 1rem;
}
#skill-h2 {
    
    padding: 1rem 0;
    letter-spacing: 0.5rem;
    word-spacing: 0.5rem;
    line-height: 2rem;
    margin-left: 0.4rem;
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    text-align: center;
    color: var(--color-neutraltext);

    font-family: "Reddit Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 1rem;
    font-style: normal;
}
.skill-div1 {
    width: 30%;
height: 100%;
}

/* .timeline {
    border: 2px solid var(--color-neutral5);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 100%;


    z-index: -1;
    background-color: var(--color-neutral5);
} */

/* .icons {
    display: flex;
    flex-direction: column;
    position: absolute;
    gap: 3rem;
    margin-top: 1rem;

}

.icons>svg {
    color: var(--color-neutral4);
    background-color: var(--color-neutral1);
    height: 2.5rem;
} */

.skill-div2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.skillbox {
    background-color: var(--color-neutral4);
    border-radius: 3rem;
    padding: 3rem;
    margin: 0.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    word-spacing: 0.4rem;
}

.skillbox>h2 {
    color: var(--color-neutral1);
}

.skillbox>small {
    color: var(--color-neutral1);
}

@media (min-width:0px) and (max-width:396px) {
    #skill {
        flex-direction: column;
    }

    .skillbox {
        margin-left: 4rem;
        padding: 1rem;
    }

    .skill-div2 {
        position: absolute;
    }
    .skill-div1{
        min-height: 34rem;
        max-width: 3rem;
    }

    .timeline {
        justify-content: left;
    }

    .timeline::before {
        content: "";
        height: 0;
        width: 0;
    }

    .timeline::after {
        content: "";
        height: 0;
        width: 0;
    }
}

/* css below  for new layout*/

#skill {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
 
  margin: auto;
}

/* ICON FLOW */
.skill-icons {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  flex: 0 0 80px;
  justify-content: center;
  align-items: center;

  max-width: 100%;
  overflow: visible;
  justify-content: space-between;
  padding: 0 1rem;
}

.icon {
  font-size: 1.6rem;
  cursor: pointer;
  position: relative;
  color: var(--color-neutral5);
}

/* TOOLTIP */
.icon::after {
content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -120%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 999;

  background: var(--color-neutraltext);
  color: var(--color-neutral1);
  padding: 6px 10px;
  border-radius: 6px;

  max-width: min(240px, calc(100vw - 2rem));
  white-space: normal;
  text-align: center;
}
/* .skill-icons .icon::after {
left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.75rem;
} */
/* .skill-icons .icon:nth-last-child(-n+3)::after {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 0.75rem;
  transform: translateY(-50%);
} */
.icon:hover::after {
  opacity: 1;
    font-family: "Reddit Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 1rem;
    font-style: normal;
    font-size: 1rem;
    color: var(--color-neutral1);
}

/* SUMMARY */
.skill-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  flex: 1;
  height: 100%;
}

.skillbox {
  background: var(--color-neutraltext);
  padding: 1rem;
  border-radius: 12px;

  /* width: 100%; */
  max-width: 100%;
  box-sizing: border-box;

}

.skillbox h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--color-neutral5);

   font-family: "Reddit Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 1rem;
    font-style: normal;
    font-size: 2rem;
}

.skillbox p {
  font-size: 0.85rem;
  color: var(--color-neutral1);

   font-family: "Reddit Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 1rem;
    font-style: normal;
    font-size: 1.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #skill {
    flex-direction: column;
  }

  .skill-icons {
    gap: 1.5rem;
    flex-direction: row;
    justify-content: center;
  }

/* .icon::after {
    top: 120%;
  } */

  .skill-summary {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
    .icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
  }
   .skill-div1 .icon::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.75rem;
  }
    .skill-div1 .icon:nth-last-child(-n+2)::after {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.75rem;
  }
}
@media (hover: none) and (pointer: coarse) {
  .icon::after {
    top: 120%;
    left: 2rem;
    transform: translateX(-50%);
  }

  .icon:active::after,
  .icon:focus-visible::after {
    opacity: 1;
  }
}

/* @media (max-width: 650px) {
  .skill-icons {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .icon::after {
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
  }

  .icon:active::after,
  .icon:focus::after {
    opacity: 1;
  }

} */
