/* fail: style.css */

/* Prevent scrolling when loading screen or mobile menu is active */
.no-scroll {
    overflow: hidden;
}

/* Ells Cafe Loading Animation */
#loadingScreen {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.ells-loading-container {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    position: relative;
}

.ells-loading-cup {
    width: 32px;
    height: 22px;
    background: white;
    border-radius: 0 0 16px 16px;
    position: absolute;
    bottom: 0;
    left: 4px;
    box-shadow: 0 0 0 3px #bc1823;
}

.ells-loading-cup:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 14px;
    border-radius: 0 10px 10px 0;
    background: white;
    box-shadow: 0 0 0 3px #bc1823;
    right: -8px;
    top: 1px;
}

.ells-loading-steam {
    position: absolute;
    width: 30px;
    height: 20px;
    left: 5px;
    top: -15px;
    display: flex;
    justify-content: space-between;
}

.ells-loading-steam span {
    width: 6px;
    height: 0;
    background: white;
    border-radius: 8px;
    animation: steam 1.5s infinite;
}

.ells-loading-steam span:nth-child(2) {
    animation-delay: 0.2s;
}

.ells-loading-steam span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes steam {
    0% {
        height: 0;
        opacity: 0;
    }

    25% {
        height: 10px;
        opacity: 1;
    }

    100% {
        height: 20px;
        opacity: 0;
    }
}

/* Loading Text and Tagline */
.ells-loading-text span {
    opacity: 0;
    display: inline-block;
}

.ells-loading-tagline {
    opacity: 0;
}

/* Coffee Pattern Background */
.coffee-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#bc1823 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Coffee bean floating animation */
.coffee-beans-container1 {
    position: absolute;
    width: 100%;
    height: 100%;
}

.coffee-bean1 {
    position: absolute;
    width: 30px;
    height: 40px;
    background-color: rgba(188, 24, 35, 0.3);
    border-radius: 50% 50% 50% 0;
    filter: blur(2px);
    opacity: 0.6;
    animation: float 15s infinite linear;
}

.coffee-bean1:nth-child(1) {
    top: 10%;
    left: 10%;
    transform: rotate(45deg);
    animation-duration: 17s;
    animation-delay: 0s;
}

.coffee-bean1:nth-child(2) {
    top: 20%;
    right: 20%;
    transform: rotate(120deg);
    animation-duration: 21s;
    animation-delay: 2s;
}

.coffee-bean1:nth-child(3) {
    bottom: 30%;
    left: 15%;
    transform: rotate(70deg);
    animation-duration: 19s;
    animation-delay: 4s;
}

.coffee-bean1:nth-child(4) {
    bottom: 10%;
    right: 25%;
    transform: rotate(20deg);
    animation-duration: 23s;
    animation-delay: 6s;
}

.coffee-bean1:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: rotate(90deg);
    animation-duration: 25s;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form focus effects */
.form-group {
    position: relative;
    overflow: hidden;
}

.form-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #bc1823;
    transition: width 0.3s ease;
}

input:focus~.form-indicator {
    width: 100%;
}

/* Submit button pulse effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(188, 24, 35, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(188, 24, 35, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(188, 24, 35, 0);
    }
}

#joinButton:hover {
    animation: pulse 1.5s infinite;
}