:root {
    --text-color: #ffffff;
}

/* ========Typing======== */
#typing-text {
    color: var(--text-color);
    border-right: 3px solid var(--text-color); /* Simulasi kursor yang berkedip */
    white-space: nowrap;
    font-weight: 700;
    width: max-content;
    display: inline-block; /* Menjaga elemen inline-block */
    min-height: 80px; /* Tinggi minimum untuk menjaga ruang */
    line-height: 80px; /* Menjaga konsistensi tinggi baris */
    font-size: 3.6rem; /* Ukuran font */
    font-family: "Arial", sans-serif; /* Font yang diinginkan */
    overflow: hidden; /* Menyembunyikan teks yang mungkin meluber */
}

@media (max-width: 580px) {
    #typing-text {
        min-height: 60px; 
        line-height: 60px;
        font-size: 3rem;
    }
}

@keyframes blink {
    0%,
    100% {
        border-color: transparent;
    }
    50% {
        border-color: var(--text-color);
    }
}

#typing-text {
    animation: blink 0.7s steps(2) infinite; /* Efek berkedip untuk kursor */
}

/* ======scrolling====== */
.scorlling {
    /* border: 1px solid slategray; */
    width: 100%;
    position: relative;
    height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0)
    );
}

.scorlling .item {
    width: 150px;
    height: 100%;
    border-radius: 6px;
    position: absolute;
    left: max(calc(150px * 6), 100%);
    max-width: 1536px;
    animation-name: scrollleft;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes scrollleft {
    to {
        left: -150px;
    }
}

.scorlling .item1 {
    animation-delay: calc(20s / 6 * (6 - 1) * -1);
}
.scorlling .item2 {
    animation-delay: calc(20s / 6 * (6 - 2) * -1);
}
.scorlling .item3 {
    animation-delay: calc(20s / 6 * (6 - 3) * -1);
}
.scorlling .item4 {
    animation-delay: calc(20s / 6 * (6 - 4) * -1);
}
.scorlling .item5 {
    animation-delay: calc(20s / 6 * (6 - 5) * -1);
}
.scorlling .item6 {
    animation-delay: calc(20s / 6 * (6 - 6) * -1);
}

/* ====== scrolling2 ====== */
.scorlling2 {
    /* border: 1px solid slategray; */
    width: 100%;
    position: relative;
    height: 150px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 1) 20%,
        rgba(0, 0, 0, 1) 80%,
        rgba(0, 0, 0, 0)
    );
}

.scorlling2 .item {
    width: 150px;
    height: 100%;
    border-radius: 6px;
    position: absolute;
    right: max(calc(150px * 7), 100%);
    max-width: 1536px;
    animation-name: scrollright;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes scrollright {
    to {
        right: -150px;
    }
}

.scorlling2 .item1 {
    animation-delay: calc(20s / 7 * (7 - 1) * -1);
}
.scorlling2 .item2 {
    animation-delay: calc(20s / 7 * (7 - 2) * -1);
}
.scorlling2 .item3 {
    animation-delay: calc(20s / 7 * (7 - 3) * -1);
}
.scorlling2 .item4 {
    animation-delay: calc(20s / 7 * (7 - 4) * -1);
}
.scorlling2 .item5 {
    animation-delay: calc(20s / 7 * (7 - 5) * -1);
}
.scorlling2 .item6 {
    animation-delay: calc(20s / 7 * (7 - 6) * -1);
}
.scorlling2 .item7 {
    animation-delay: calc(20s / 7 * (7 - 7) * -1);
}
