/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* Import your custom font */
@font-face {
    font-family: 'Refinery 95';
    src: url('../font/refinery-95-regular.ttf') format('truetype');
}

/* Reset some browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling with garden-themed background */
body {
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
background: radial-gradient(circle at top, #1E293B, #020617);
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
    position: relative;
}

/* Background pattern overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,10 Q50,5 70,10 Q95,15 90,40 Q85,65 70,90 Q50,95 30,90 Q5,85 10,60 Q15,35 30,10 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 300px 300px;
    opacity: 0.3;
    z-index: -1;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100vw; /* Ensure the width does not exceed the viewport width */
    overflow-y: auto;
}

/* Centralize everything within the container */
.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 30px;
    transition: all 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    height: 100%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px;
}

/* Page title */
.page-title {
    font-family: 'Refinery 95', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Subtitle */
.subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 25px;
    max-width: 600px;
    line-height: 1.6;
}

/* Central image (logo) with enhanced styling */
.central-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    object-fit: cover;
    filter: drop-shadow(0px 0px 15px rgba(139, 195, 74, 0.7));
    transition: transform 0.3s ease;
}

.central-image:hover {
    transform: scale(1.05);
}

/* Input field styling with garden theme */
.user-input {
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    border: none;
    border-radius: 50px;
    outline: none;
    margin-bottom: 15px;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.user-input:focus {
    box-shadow: 0 5px 20px rgba(139, 195, 74, 0.4);
    transform: translateY(-2px);
}

.user-input::placeholder {
    color: #999;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: white;
}

.trust-badge i {
    margin-right: 8px;
    color: #FFEB3B;
}

/* Enhanced Button styling */
#generate-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8BC34A, #4CAF50);
    /* background: linear-gradient(45deg, #8BC34A, #4CAF50); */
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    margin: 10px 0 30px;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#generate-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(76, 175, 80, 0.4);
}

#generate-btn:hover:before {
    opacity: 1;
}

#generate-btn:active, #generate-btn.active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Text above images */
.image-instruction {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0 0 25px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Item selection section */
.item-selection {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

/* Limited time offer banner */
.limited-offer {
    background: linear-gradient(45deg, #FF9800, #F44336);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
    animation: pulse 2s infinite;
}

.limited-offer i {
    margin-right: 5px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    align-items: stretch;
    padding-bottom: 30px;
}

.image-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    transition: transform 0.3s ease;
    position: relative;
}

.image-grid > div:hover {
    transform: translateY(-5px);
}

.image-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.image-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 195, 74, 0.2), rgba(76, 175, 80, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover:before {
    opacity: 1;
}

.flex-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

.image-container:hover .flex-image {
    transform: scale(1.1);
}

.flex-image.active {
    animation: pulse 1.5s infinite;
}

.image-container.active {
    box-shadow: 0 0 25px rgba(139, 195, 74, 0.6);
    border-color: rgba(139, 195, 74, 0.6);
}

/* Descriptions for each image */
.image-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Badge for special items */
.item-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #FF9800, #F44336);
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Item stats */
.item-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.item-stat {
    display: flex;
    align-items: center;
}

.item-stat i {
    margin-right: 3px;
    color: #FFEB3B;
}

/* Error and warning messages */
#error-msg {
    font-size: 0.9rem;
    color: #F44336;
    margin-bottom: 15px;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #F44336;
    max-width: 350px;
    width: 100%;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
}

#warning-msg, #item-warning-msg {
    font-size: 0.9rem;
    color: #FF9800;
    text-align: center;
    background-color: rgba(255, 152, 0, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #FF9800;
    max-width: 350px;
    width: 100%;
    margin: 0 auto 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* User count and activity indicator */
.user-activity {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: white;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.user-activity i {
    margin-right: 8px;
    color: #4CAF50;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.live-dot:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: pulse 1.5s infinite;
    opacity: 0.7;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .image-grid {
        gap: 15px;
    }

    .image-grid > div {
        width: 150px;
    }

    .image-container {
        width: 150px;
        height: 150px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }

    .image-grid > div {
        width: 130px;
    }

    .image-container {
        width: 130px;
        height: 130px;
    }
}

.selectplatformtext {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

/* Sequence - -------------------------------------------------------------------------------------------------------------------------------- */
/* Sequence - --------------------------------------------------------------------------------------------------------------------------------- */
/* Sequence - --------------------------------------------------------------------------------------------------------------------------------- */
/* Sequence   --------------------------------------------------------------------------------------------------------------------------------- */
/* Sequence -  --------------------------------------------------------------------------------------------------------------------------------- */

/* Sequence box with garden theme */
.sequence-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 450px;
    height: 300px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 20px;
    opacity: 1;
    transition: all 0.5s ease-out;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .sequence-box {
        width: 95%;  /* Set width to 95% on mobile */
    }
}

.hidden {
    display: none;
}

/* Pulse animation for spooky elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1s infinite ease-in-out;
}


/* Platform buttons styling */
.platform-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.platform-button {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: linear-gradient(145deg, #8BC34A, #4CAF50);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 2em;
    color: white;
    position: relative;
    overflow: hidden;
}

.platform-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #4CAF50, #8BC34A);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.platform-button i {
    position: relative;
    z-index: 1;
}

.platform-button img {
    max-width: 60px;
    height: auto;
    position: relative;
    z-index: 1;
}

.platform-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.platform-button:hover:before {
    opacity: 1;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8BC34A, #4CAF50);
    animation: dotPulse 0.6s infinite alternate;
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
}

@keyframes dotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Adjust the size of the images to be visually appealing */
#search-image, #tick-image, #transferring-image, #success-tick-image {
    width: 100px;
    height: auto;
    margin: 15px 0;
    filter: drop-shadow(0 5px 15px rgba(139, 195, 74, 0.3));
    transition: transform 0.3s ease;
}

#search-image:hover, #tick-image:hover, #transferring-image:hover, #success-tick-image:hover {
    transform: scale(1.05);
}

#search-text, #verification-text, #connected-text, #username-transferring-text, #connecting-text, #transferring-text, #success-transfer-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Simple transition when showing elements */
.sequence-box {
    transition: opacity 0.5s ease-out;
}

/* Define a pop-in effect */
@keyframes popIn {
    0% {
        transform: scale(0.5); /* Start smaller */
        opacity: 0;            /* Start invisible */
    }
    100% {
        transform: scale(1);    /* Full size */
        opacity: 1;             /* Fully visible */
    }
}

/* Define a pop-out effect */
@keyframes popOut {
    0% {
        transform: scale(1);    /* Full size */
        opacity: 1;             /* Fully visible */
    }
    100% {
        transform: scale(0.5);  /* Shrink down */
        opacity: 0;             /* Fully invisible */
    }
}

/* Apply the pop-in animation */
.pop-in {
    animation: popIn 0.5s ease forwards;  /* Animation duration and easing */
}

/* Apply the pop-out animation */
.pop-out {
    animation: popOut 0.5s ease forwards;  /* Animation duration and easing */
}

.pop-in-pulse {
    animation: popIn 0.5s ease forwards, pulse 1s infinite ease-in-out;
}

/* Spinning animation for the loading cog */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinning-cog {
    width: 100px;
    height: 100px;
    margin: 20px 0;
    animation: spin 2s linear infinite;  /* Continuous spinning */
}

/* Styling for the transferring box image */
.box-image {
    width: 120px;
    height: auto;
    margin: 20px 0;
}


/* Spinning cog animation for username transferring */
#loading-username-image {
    width: 100px;
    height: auto;
    animation: spin 2s linear infinite;
}


/* Style for the verification cross */
.verification-cross {
    width: 100px;
    height: auto;
    margin: 20px 0;
}

/* Verify button styling */
#verify-btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #8BC34A, #4CAF50);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#verify-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

#verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

#verify-btn:hover:before {
    opacity: 1;
}


/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */
/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */
/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */
/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */
/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */
/* Balloons - floating upwards  --------------------------------------------------------------------------------------------------------------------------------- */

/* Floating leaves with garden theme */
.balloon {
    position: fixed;
    bottom: -50px;
    width: 40px;
    height: 40px;
    background-color: #8BC34A; /* Light green */
    border-radius: 0 50% 0 50%;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.1),
                0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    animation: float 12s ease-in-out infinite;
    transform: rotate(45deg);
}

.balloon.white {
    background-color: #4CAF50; /* Darker green */
    width: 30px;
    height: 30px;
    animation-duration: 15s;
    animation-delay: 2s;
}

/* Reflection effect */
.balloon::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 20px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.6); /* Simulated reflection */
    border-radius: 50%;
    transform: rotate(-20deg);
}

/* Knot at the bottom */
.balloon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: inherit;
    border-radius: 50%;
}




/* POP UP + announcemnt ------------------------------------------------------------------------------------------------ */
/* POP UP + announcemnt ------------------------------------------------------------------------------------------------ */
/* POP UP + announcemnt ------------------------------------------------------------------------------------------------ */
/* POP UP + announcemnt ------------------------------------------------------------------------------------------------ */
/* POP UP + announcemnt ------------------------------------------------------------------------------------------------ */


/* Popup box for claims */
#claim-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 15px;
    width: 280px;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(139, 195, 74, 0.3);
}

#claim-popup.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.popup-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 195, 74, 0.5);
    object-fit: cover;
}

.popup-content {
    flex-grow: 1;
}

#claim-username {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 5px;
    color: #333;
    display: flex;
    align-items: center;
}

#claim-username:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

#claim-message {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}


/* Glow effect for Halloween announcement */
.promo-strip {
    background-color: rgba(0, 0, 0, 0.6);
    color: #f97304; /* Bright orange */
    text-align: center;
    padding: 8px 0;
    font-family: 'Refinery 95', sans-serif;
    font-size: 15px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.promo-link {
    color: #ffecf3;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
}

.promo-link:hover {
    color: #f97304; /* Glow effect on hover */
    transform: scale(1.05);
}


/* Error message styling with Halloween colors */
#error-msg, #warning-msg, #item-warning-msg {
    font-size: 1rem;
    color: #e65c00; /* Darker orange for warnings */
    text-align: center;
    margin-bottom: 15px;
}
