*{
    padding: 0;
    text-decoration: none;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: bold;
    background-image:  linear-gradient(rgba(0, 0, 0, 0.5), 
    rgba(0, 0, 0, 0.5))
      ,
      url('../image/bg-img.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.card-bg {
    background-image:  linear-gradient(rgba(0, 0, 0, 0.3), 
    rgba(0, 0, 0, 0.3))
      ,
      url('../image/bg-img.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.poppins-regular {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.custom-btn:hover {
    background-color: #FFA03B;
    opacity: 0.8;
    transition: opacity 0.15s ease-in-out;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    background-color: #FFB733;
    color: white;
    border: none;
    width: 50px;  /* Set equal width */
    height: 50px; /* Set equal height */
    border-radius: 50%; /* Makes the button circular */
    cursor: pointer;
    font-size: 20px;
    z-index: 100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Adds a slight shadow */
    transition: background-color 0.3s ease;
    display: flex; /* Use flexbox to center the arrow */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#scrollToTopBtn:hover {
    background-color: #FFA500; /* Slightly darken on hover */
}

#scrollToTopBtn .arrow-up {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white; /* Arrow color */
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem; /* Adjust as necessary */
    }
    h3 {
        font-size: 1.5rem;
    }
}

.group {
    position: relative;
    height: 30px;
    overflow: hidden;
    color: white;     
    border-bottom: 2px solid #FFA500;
    border-top: 2px solid #FFA500;
}

.text {
    position: absolute;
    margin: 5px 0;
    padding: 0;
    width: max-content;
    animation: my-animation 24s linear infinite;
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform:translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes fade-down {
    0% {
        opacity: 0;
        transform:translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

/* For mobile view (max-width: 768px) */
@media (max-width: 768px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }
    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

/* General carousel display */
.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-start,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

/* Display 3 cards per slide on larger screens (min-width: 768px) */
@media (min-width: 768px) {
    .carousel-inner .carousel-item-right.active,
    .carousel-inner .carousel-item-next,
    .carousel-item-next:not(.carousel-item-start) {
        /* Adjust the slide movement to show 3 cards, each taking up 33.33% */
        transform: translateX(33.33%) !important;
    }

    .carousel-inner .carousel-item-left.active,
    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start,
    .carousel-item-prev:not(.carousel-item-end) {
        /* Adjust to move left by 33.33% when sliding */
        transform: translateX(-33.33%) !important;
    }

    .carousel-item-next.carousel-item-start, 
    .active.carousel-item-end {
        /* Ensure no unwanted translation */
        transform: translateX(0) !important;
    }

    .carousel-inner .carousel-item-prev,
    .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-33.33%) !important;
    }
}

.card-body {
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
}

#table-hadir,
#table-no-absen {
    animation: scroll 60s linear infinite;
}

@keyframes scroll {
    to {
        transform: translateY(-50%)
    }
}