/* MAIN CSS FOR YEMALLA WORLD */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; font-family: 'Courier New', monospace; }

/* FULLSCREEN BACKGROUND IMAGE */
.background-tree {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-size: cover;
    background-position: center;

    /* default background image (kept in CSS so initial paint is covered) */
    background-image: url('../images/background-tree.jpg');
    transition: opacity 1s ease;
    will-change: opacity;
    pointer-events: none;
}

/* CLICK BUTTON */
.enter-button {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.8);
    padding: 28px 56px;
    min-width: 60px;
    min-height: 20px;
    border: 2px solid black;
    font-size: 20px;
    cursor: pointer;
    animation: pop 1.5s infinite ease-in-out;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 60;
}

/* Apple-like button style applied after second click */
.enter-button.apple {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f8f8f8 0%, #e6e6e6 100%);
    color: #000;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
    animation: none;
    transform: translateX(-50%) scale(1);
    transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 120ms ease, filter 120ms ease;
}

.enter-button.apple:hover {
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.6);
}

.enter-button.apple:active {
    transform: translateX(-50%) scale(0.98);
    filter: brightness(0.98);
}

@keyframes pop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.07); }
    100% { transform: translateX(-50%) scale(1); }
}

.come-button {
    position: absolute;
    bottom: 12%;
    left: 50%;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

/* CENTERED TEXT (HIDDEN UNTIL CLICK 2) */
.welcome-text {
    position: absolute;
    top: 35%;
    width: 100%;
    text-align: center;
    font-size: 45px;
    color: white;
    font-weight: bold;
    text-shadow: 3px 3px 0 black;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.show { opacity: 1; }

/* Two-layer setup: .bg1 and .bg2 stack and crossfade via opacity */
.bg1 { opacity: 1; }
.bg2 { opacity: 0; }


/* ORBITING TEXT CIRCLE */
@keyframes spin {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

.top-text {
position: fixed;
bottom: 2%;
left: 50%;
transform: translateX(-50%);
text-align: center;
width: auto;
font-size: 9px;
letter-spacing: 0.12em;
color: rgb(0, 0, 0);
z-index: 99999;
pointer-events: none;
font-family: Arial, sans-serif;
font-weight: 400;
}