body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    animation: background-shift 10s ease-in-out infinite alternate;
    user-select: none;
    cursor: none;
}

.countdown-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0a0a0a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: pulse 1.5s ease-in-out infinite alternate;
    overflow: hidden;
}

.corner-label {
    position: absolute;
    top: 75px;
    left: -24px;
    background-color: white; 
    color: black;
    font-weight: 600;
    letter-spacing: 4px;
    padding: 6px 30px;
    border-radius: 5px;
    transform: rotate(-45deg);
    transform-origin: top left;
    z-index: 2;
}

#countdown-title {
    font-size: 2.5em;
    letter-spacing: 2px;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

#countdown-digits {
    display: flex;
    gap: 10px;
    font-size: 3em;
}

.time-unit {
    text-align: center;
    font-weight: bold;
    background-color: #222;
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    animation: flicker 1s ease-in-out infinite alternate;
}

#target-date-label {
    font-size: 1em;
    margin-top: 20px;
    color: #ddd;
}

/* Tambahkan efek pulsasi pada elemen waktu */
.time-unit.pulsate {
    animation: pulsate 1s ease-in-out infinite alternate;
}

/* Tambahkan efek warna merah ketika waktu hampir habis */
.time-unit.warning {
    animation: blink 0.5s ease-in-out infinite alternate;
    color: #ff5757;
}

@keyframes pulsate {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes blink {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes background-shift {
    0% { background-color: #000; }
    25% { background-color: #111; }
    50% { background-color: #222; }
    75% { background-color: #333; }
    100% { background-color: #000; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { text-shadow: 0 0 0 #fff; }
    50% { text-shadow: 0 0 5px #fff; }
    100% { text-shadow: 0 0 0 #fff; }
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

#custom-cursor {
    position: absolute;
    width: 100px; 
    height: 100px; 
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 80%); /* Warna latar belakang bulet */
    border-radius: 50%; 
    pointer-events: none;
    z-index: 9999;
    animation: pulseCursor 1s infinite;
}
@keyframes pulseCursor {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
    75% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Styling Setting Button */
#settings-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: block;
    width: 50px; 
    height: 50px; 
    background-color: #333;
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease;
    text-align: center;
    line-height: 55px;
}

#settings-link i {
    font-size: 24px;
    color: #fff; 
    transition: transform 0.3s ease;
}

#settings-link:hover {
    transform: scale(1.1); 
    background-color: #007bff; 
}

#settings-link i:hover {
    color: #fff; 
}