.text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: large;
    z-index: 1;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html {
    background: linear-gradient(135deg, #3d8bc7 0%, #473e38 45%, #473e38 55%, #cc3d38 100%);
}

.logo {
    width: 300px;
    height: auto;
    display: block;
    image-rendering: pixelated;
    cursor: pointer;
    transform-origin: center center;
    transition: all 0.3s ease-in-out;
}

.logo.spinning {
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) 1;
}

.logo:hover{
    transform: scale(1.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* centered container where bubbles will be positioned (initially hidden behind logo) */
#textContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* behind logo by default */
    display: flex;
    width: auto;
    pointer-events: none;
}

/* bubble style */
.textBox {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    cursor: default;
    user-select: none;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease, opacity 200ms ease;
    transform: translate(-50%, -50%) scale(0.01);
    opacity: 0;
    pointer-events: none;
}

.textBox:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.22);
}

.text {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-align: center;
}

/* layering control: logo must be above by default */
.logo {
    position: relative;
    z-index: 4;
}

/* when revealed, bring bubbles above logo and enable pointer events */
/* revealed: bubbles scale up but remain behind logo (logo has higher z-index) */
#textContainer.revealed {
    z-index: 5; /* still behind logo */
}

#textContainer.revealed .textBox {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}