* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    color: inherit;
    font-family: 'Dongle', sans-serif;
}


/* variables */
:root {
    --side-padding: 14px;
    --width: 1280px;
    --border-radius: 0.75rem;
    --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;


    --animation-primary: all .5s cubic-bezier(.7, 0, .3, 1);
    --animation-fast: all .3s cubic-bezier(.7, 0, .3, 1);
    --animation-smooth: all .7s cubic-bezier(.7, 0, .3, 1);
    --animation-slow: all .9s cubic-bezier(.7, 0, .3, 1);

    --section-padding: clamp(5em, 21vh, 12em);
    --container-padding: clamp(2.5em, 8vw, 8em);
    --gap-padding: clamp(1.5em, 4vw, 2.5em);
}

/* hide scrollbar */
::-webkit-scrollbar {
    width: 0;
}

.no-select {
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none;    /* For Firefox */
    -ms-user-select: none;
}

.hidden {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--side-padding);
    background-color: var(--color-background);
}

main {
    width: 100%;
    max-width: var(--width);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.font-light {font-weight: 300;}  
.font-bold {font-weight: 700;}


.counter p{
    cursor: pointer;
    transition: var(--animation-fast);
}

.counter p:hover {scale: .95;}

.counter-detail p:hover:nth-child(1) {
    scale: 1; 
    cursor: default;
}

.counter-detail p.blur {
    filter: blur(5px);
    opacity: 0.3;
    transition: var(--animation-fast);
}

  

.counter {
}




/* FLOAT IN */
.float-in {
    opacity: 0;
    transform: translateY(30px);
    animation: floatIn 0.5s ease-out forwards;
}
.float-in:nth-child(1) { animation-delay: 0s; }
.float-in:nth-child(2) { animation-delay: 0.05s; }
.float-in:nth-child(3) { animation-delay: 0.1s; }
.float-in:nth-child(4) { animation-delay: 0.15s; }
.float-in:nth-child(5) { animation-delay: 0.2s; }
.float-in:nth-child(6) { animation-delay: 0.25s; }

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FLOAT OUT */
.float-out {
    animation: floatOut 0.3s ease-in forwards;
}
.float-out:nth-child(1) { animation-delay: 0s; }
.float-out:nth-child(2) { animation-delay: 0.05s; }
.float-out:nth-child(3) { animation-delay: 0.1s; }
.float-out:nth-child(4) { animation-delay: 0.15s; }
.float-out:nth-child(5) { animation-delay: 0.2s; }
.float-out:nth-child(6) { animation-delay: 0.25s; }

@keyframes floatOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

#total-timer-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 100%;
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    transition: opacity 0.3s ease;
  }
  
  #total-timer-bar.visible {
    opacity: 1;
  }
  
  #total-timer-bar .bar {
    height: 100%;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0 12px #ffffff, 0 0 24px #ffffff, 0 0 36px #ffffff;
    transform-origin: center;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
  }
  
  
  

.pin-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pin-input {
    width: 1rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    text-align: center;
    color: white;
    text-shadow: 0 0 10px white; /* Makes the dots bigger and white */
    outline: none;
    font-weight: bold;
}

.pin-input:focus {
    border-color: white;
}


.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.2s ease-out;
}

.pin-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pin-input {
    width: 2em;
    font-size: 1.5em;
    text-align: center;
    padding: 0.3em;
    border: none;
    border-bottom: 2px solid #aaa;
    background: transparent;
    color: #333;
}


.login-cnt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #fffa;
    font-size: 4em;
    letter-spacing: -0.02em;
    text-shadow: 0 0 16px #fffa;
    mix-blend-mode: hard-light;
    line-height: 1em;
    min-height: 5em;

    white-space: nowrap;
}

 
#canvas { 
  width:100%;
  min-height:100%;
    position:relative;
  &::after{
    content:'';
    position:absolute;
    background: linear-gradient(45deg,  #edff2d 0%,#ff2bf7 43%,#3f14ff 79%,#14d0ff 100%);
    background-size: 200% 200%;
    animation: rotateGradient 10s linear infinite;
    backdrop-filter:blur(3px);
    mix-blend-mode:darken;
    opacity:.3;
    inset:0
  }
}
@keyframes rotateGradient {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}
