p, li {
    text-align: justify;
    text-justify: inter-word;
}

.w-fit {
    width: fit-content;
}

.wrapper {
    text-decoration: none;
    color: black;
    padding: 1rem;
}

.wrapper:hover {
    background-color: rgb(208, 200, 200);
    border-radius: 0.5rem;
}

nav>ul {
    list-style: none;
    padding: 0;
}

nav>ul>a {
    text-decoration: none;
    color: #000;
}

a:first-child  li {
    border-top: 1px solid linear-gradient(to right, #000 0%, #4d4b4b 100%);
}

a>li {
    padding: 10px 0 10px 16px;
    border-left: 8px solid #000;
    border-bottom: 1px solid linear-gradient(to right, #000 0%, #4d4b4b 100%);
    background: linear-gradient(to right, #000 0%, #4d4b4b 100%) left center/0% 100% no-repeat;
    transition: background-size 0.4s, color 0.4s;
}

a>li.active {
    --p: 100%;
    background-size: 100% 100%;
    color: #fff;
}

a>li:active {
    --p: 100%;
    background-size: 100% 100%;
    color: #fff;
}


/* Flip Card */
.flip-card {
    background-color: transparent;
    width: 80px;
    height: 80px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: transparent;
}

.flip-card-back {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ededed;
    transform: rotateY(180deg);
}

.p-header {
    padding: 1rem;
}

.p-main {
    padding: 1rem;
}

.flip-card-front>img {
    width: 80px;
    height: 80px;
}

.bg-tech {
    background-color: #4d4b4b;
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    a>li:hover {
        --p: 100%;
        background-size: 100% 100%;
        color: #fff;
    }

    .h-main {
        min-height: 100vh !important;
    }

    .p-header {
        padding: 5rem 3rem 5rem 3rem;
    }

    .p-main {
        padding: 0 3rem 5rem 3rem;
    }

    .scrollable {
        width: 300px;
        height: 200px;
        overflow: scroll;
    }

    .scrollable::-webkit-scrollbar {
        display: none; /* Untuk menyembunyikan scrollbar pada WebKit browser */
    }

    .scrollable {
        -ms-overflow-style: none;  /* Untuk Internet Explorer dan Edge */
        scrollbar-width: none;  /* Untuk Firefox */
    }

    section:first-child {
        padding-top: 5rem;
    }

    .flip-card {
        background-color: transparent;
        width: 100px;
        height: 100px;
        perspective: 1000px;
    }

    .flip-card-front>img {
        width: 100px;
        height: 100px;
    }
}
