/* SPLASH SCREEN */
#splashScreen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease-out;
}

#splashScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    z-index: 3;
    animation: fadeInUp 1s ease;
    position: relative;
    min-height: 300px; /* Add fixed height to prevent jumping */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-content h1 {
    font-size: 48px;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(140, 156, 141, 0.5);
}

.splash-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-top: 10px;
}

.fermentation-fact {
    max-width: 80%;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.058);
    border-radius: 10px;
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    min-height: 80px; /* Prevent fact from collapsing when button appears */
}

#splashCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Place it between background and bubbles */
  pointer-events: none; /* Allow clicks to pass through */
}

/* BUBBLES ANIMATION */
.bubbles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.splash-btn {
    position: absolute; /* Take button out of normal flow */
    bottom: -60px; /* Position below content */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    font-size: 18px;
    background: #00000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.8s ease-out;
    min-width: 120px;
    border: #ccc 2px dashed;
}

.splash-btn.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.splash-btn:hover {
    background: #45a049;
    transform: translateX(-50%) scale(1.05);
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    animation: bubbleRise linear infinite;
    opacity: 0.6;
}

.bubble:nth-child(odd) {
    background: rgba(33, 150, 243, 0.3);
}

.bubble:nth-child(3n) {
    background: rgba(255, 152, 0, 0.3);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


