@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background-color: #171717;
    color: white;
    font-family: "Inter", Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #55ACEE;
}

#countDisplay {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.75rem;
    transition: transform 120ms cubic-bezier(.22,1,.36,1), color 120ms;
    color: white;
    line-height: 1;
}

#countDisplay.bump {
    transform: scale(1.18);
    color: #55ACEE;
}

#bumpBtn {
    padding: 0.65rem 2.25rem;
    font-size: 1rem;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 600;
    background-color: #55ACEE;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms;
}

#bumpBtn:hover  { background-color: #0051ff; }
#bumpBtn:active { background-color: #0040cc; transition: none; }

/* poll indicator */
#pollIndicator {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

#pollDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background-color: #f44336;
    transition: background-color 300ms;
}

#pollIndicator.ok    { color: #4caf50; }
#pollIndicator.ok    #pollDot { background-color: #4caf50; }
#pollIndicator.error { color: #f44336; }
#pollIndicator.error #pollDot { background-color: #f44336; }
