/* Section for skills */

#skills-section {
    margin-top: 0;
    margin-bottom: 4rem;
    /* background-color: #74baa00f; */
    /* border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb; */

    background: linear-gradient(270deg, #bde5dc0e, #a7c0ba16, #d8f5ee08);
    background-size: 180% 180%;
    animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

.scrolling-wrapper{
    display: flex;
    justify-content: left;

    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;

    padding: 0.75rem;
    margin: auto;

    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.25) 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.25) 100%);
}

.scrolling-content {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.scrolling-wrapper:hover .scrolling-content {
    animation-play-state: paused;
}

.skills-subsection {
    display: flex;
    flex-direction: column-reverse;
    /* background-color: bisque; */
    margin: 0.5rem 1rem;
    padding: 1rem;
}

.skills-items-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 1rem 0.5rem 0;
}

.skills-subsection h3{
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #5E5E5E;
}

.skills-subsection p {
    display: none;
    color: #5E5E5E;
    font-size: 0.9rem;
}


.skill-item img {
    max-width: 4.5rem;
    max-height: 4.5rem;
    margin: 0.5rem 0 0.5rem 0;
}

.skill-item p {
    text-align: center;

}


#skills-works-congtainer {
    width: 100vw;
    margin: auto;
    margin-bottom: 5rem;
}

#skill-section {
    background-color: rgba(255, 255, 255, 0.386); border-radius: 2rem; margin-bottom: 1rem;
}

/* Animation to scroll items */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


@media (min-width:768px) {

    .skills-subsection h3 {
        font-size: 1.2rem;
    }

    .skills-subsection p {
        font-size: 1rem;
    }
}

@media (min-width:992px) {
    .skills-subsection h3 {
        font-size: 1.2rem;
    }

    .skills-subsection p {
        font-size: 1rem;
    }
}

@media (min-width:1200px) {

    .skills-subsection h3 {
        font-size: 1.2rem;
    }

    .skills-subsection p {
        font-size: 1rem;
    }
}

@media (min-width:1350px) {
    .scrolling-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .scrolling-content {
        animation: none;
    }

    .scrolling-content > .skills-subsection:nth-last-child(-n + 4){
        display: none;
    }

    .scrolling-content {
        margin: auto;
    }
}
