@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
	background-color: black; /* black background*/
    color: grey;
}

/* THREE.JS CANVAS LAYER */
#magic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2; /* above honey-fill */
    pointer-events: none; /* allows clicks to pass through */
}
/* UI OVERLAY */
.playground {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
}

.bottomPosition {
    text-align: center;
    margin-bottom: 50px;
}

.minText {
    font-size: 14px;
}

.logo {
    width: 150px;
    height: 150px;
}

/* FALLING CROWNS */
.falling-crown {
    position: fixed;
    top: -10%;
    width: 40px;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    z-index: 5;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(120vh) rotate(360deg);
    }
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 600px) {
    .logo {
        width: 100px;
        height: 100px;
    }

    .special {
        font-size: 28px;
        line-height: 1.2;
    }

    .minText {
        font-size: 12px;
    }

    .bottomPosition {
        margin-bottom: 25px;
    }
}

/* Apply ONLY when on a mobile device AND device is sideways */
@media screen and (max-height: 500px) and (orientation: landscape) {

    .bottomPosition {
        display: flex;
        flex-direction: column;
        align-items: flex-start;     /* Push contents to the left */
        justify-content: flex-start;
        padding-left: 1px;          /* 15 Move away from edge */
        transform: scale(0.5);       /* 0.8 Reduce overall size */
        transform-origin: top left;  /* Keep scaling anchored left */
    }

    .logo {
        width: 140px !important;     /* Control logo size in landscape */
        height: auto;
        margin-bottom: 10px;
    }

    .special {
        font-size: 1.4rem !important;  /* 1.4  Reduce text size */
        text-align: left;
    }

    .special .minText {
        font-size: 1rem !important;
    }
}



/* Honey drip container */
#honey-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Each honey drip */
.honey-drip {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tail: stretchable, rounded top */
.honey-tail {
    width: 12px;
    background-image: url('rjmpics/honey-drop.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    transform-origin: top center;
    border-radius: 50% 50% 0 0; /* rounded top */
}

/* Blob: fully round, bottom visible */
.honey-blob {
    width: 50px;
    height: 50px;
    background-image: url('rjmpics/honey-blob.png');
    background-size: contain; /* ensure full PNG is visible */
    background-repeat: no-repeat;
    background-position: center bottom; /* align blob bottom */
    margin-top: -10px; /* overlap with tail */
}

/* Honey fill behind crowns & UI but above particles */
#honey-fill-wrapper {
    position: cover;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    z-index: 1; /* below canvas */
}
#honey-fill {
	clip-path: url(#honey-clip);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(100%);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#honey-fill-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;   
    z-index: 2;
    pointer-events: none;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

