/* Custom styles */
body {
    font-family: 'Lilita One', cursive;
}

.platform-btn.selected {
    border-color: #eab308;
    /* yellow-500 */
    background-color: rgba(234, 179, 8, 0.1);
}

.platform-btn.selected span {
    color: #facc15;
    /* yellow-400 */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

/* Stars Animation */
.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png') repeat top center;
    z-index: -1;
}

.stars {
    z-index: 0;
    background-size: 1000px 1000px;
    animation: move-stars 50s linear infinite;
}

.stars2 {
    z-index: 1;
    background-size: 1500px 1500px;
    animation: move-stars 100s linear infinite;
}

.stars3 {
    z-index: 2;
    background-size: 2000px 2000px;
    animation: move-stars 150s linear infinite;
}

@keyframes move-stars {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

/* Custom Bounce for Generator Item */
@keyframes bounce-custom {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(5%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-custom {
    animation: bounce-custom 2s infinite;
}

/* Text Stroke Utility */
.stroke-black {
    -webkit-text-stroke: 1.5px black;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* Body blur when popup is active - 20% blur effect */
body.popup-active {
    overflow: hidden;
}

body.popup-active > *:not(#ios-popup) {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

#ios-popup,
#ios-popup * {
    filter: none !important;
}

/* iOS Popup Styles */
#ios-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: center;
}

.popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.popup {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
    text-align: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.gif-container {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.instruction-gif {
    width: 100%;
    height: auto;
    display: block;
}

.instruction-text {
    color: #000000;
    font-family: 'Lilita One', cursive;
    font-size: 1.25rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0 0.5rem;
}
