.nama {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* video {
    object-fit: cover;
} */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

body {
    height: 100%;
    opacity: 5;
    transition: opacity 2s ease-in-out;
}

section {
    background: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.UI {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.ui1 {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: auto; */
    flex-direction: column;
    /* height: 100%; */
}

.head1,
.head2 {
    position: relative;
    transform: translateY(-50%);
    align-items: center;
    text-align: center;
    letter-spacing: 0.7rem;
    color: #f5f5f5;
    font-style: italic;
    font-size: 4vw;
    font-family: "Kanit", "Lucida Sans Regular", "Lucida Grande",
        "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
    font-weight: 600;
    opacity: 0;
}

.head1 {
    margin-top: auto;
    line-height: 30%;
    animation: fadeIn 1.5s forwards 0.1s;
}
.head2 {
    font-style: italic;
    line-height: 20%;
    animation: fadeIn 1.5s forwards 0.5s;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}
.container {
    --uib-size: 70px;
    --uib-color: rgb(255, 255, 255);
    --uib-speed: 2.5s;
    --uib-dot-size: calc(var(--uib-size) * 0.18);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--uib-size);
    height: var(--uib-dot-size);
    margin-top: 0;
}
@media (max-width: 1280px) {
    .container {
        --uib-size: 70px;
    }
    /* .head1, .head2 {
        font-size: 5vw;
    } */
}
@media (max-width: 1100px) {
    .container {
        --uib-size: 70px;
    }
    /* .head1, .head2 {
        font-size: 5vw;
    } */
}
@media (max-width: 768px) {
    .container {
        --uib-size: 65px;
    }
    .head1, .head2 {
        font-size: 6vw;
    }
}
@media (max-width: 540px) {
    .container {
        --uib-size: 60px;
    }

    .head1, .head2 {
        font-size: 8vw;
    }
}
@media (max-width: 480px) {
    .container {
        --uib-size: 55px;
    }

    .head1, .head2 {
        font-size: 10vw;
    }
}

.dot {
    position: absolute;
    top: calc(50% - var(--uib-dot-size) / 2);
    left: calc(0px - var(--uib-dot-size) / 2);
    display: block;
    height: var(--uib-dot-size);
    width: var(--uib-dot-size);
    border-radius: 50%;
    background-color: var(--uib-color);
    animation: stream var(--uib-speed) linear infinite both;
    transition: background-color 0.3s ease;
}

.dot:nth-child(2) {
    animation-delay: calc(var(--uib-speed) * -0.2);
}

.dot:nth-child(3) {
    animation-delay: calc(var(--uib-speed) * -0.4);
}

.dot:nth-child(4) {
    animation-delay: calc(var(--uib-speed) * -0.6);
}

.dot:nth-child(5) {
    animation-delay: calc(var(--uib-speed) * -0.8);
}

@keyframes stream {
    0%,
    100% {
        transform: translateX(0) scale(0);
    }

    50% {
        transform: translateX(calc(var(--uib-size) * 0.5)) scale(1);
    }

    99.999% {
        transform: translateX(calc(var(--uib-size))) scale(0);
    }
}
