
@font-face {
    font-family: 'Refinery 95';
    src: url('refinery-95-regular.ttf') format('truetype');
}

* {
    font-family: 'Refinery 95', sans-serif;
}

body {
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 0;
}

html,
body {
    overflow-x: hidden;
    /* max-width: 100vw; */
    width: 100vw;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffd1e1, #ffffff);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 95%;
    margin: 0 auto;
    padding: 20px;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

img.logo {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    height: auto;
}

.user-input {
    padding: 10px;
    font-size: 16px;
    font-family: 'Refinery 95', sans-serif;
    border: 2px solid #ff99cc;
    border-radius: 25px;
    outline: none;
    margin-bottom: 5px;
    width: 100%;
    max-width: 350px;
    transition: border-color 0.3s ease;
    text-align: left;
}

.user-input:focus {
    border-color: #ff69b4;
}

.error-input {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

#generate-btn {
    font-weight: 600;
    padding: 12px 25px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #ff66b2, #ff4081);
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(255, 102, 178, 0.4);
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: auto;
    max-width: 200px;
    text-align: center;
}

#verify-btn {
    font-weight: 600;
    padding: 12px 25px;
    font-size: 1.1rem;
    background: #F15249;
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(255, 102, 178, 0.4);
    cursor: pointer;
    margin-bottom: 20px;
    width: auto;
    max-width: 200px;
    text-align: center;
    animation: buttonPulse 1.5s infinite;
}

#generate-btn:hover {
    background-color: #ff4081;
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.7);
    transform: scale(1.1);
}

.image-instruction {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}

/* Mobile: 2 items per row */
@media (max-width: 767px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3 items per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PC and larger: 5 items per row */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.item-container {
    text-align: center;
}

.item-container img {
    width: 100%;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.item-container img.selected {
    box-shadow: 0 0 30px 10px rgba(255, 102, 178, 0.9);
}

.item-title {
    font-size: 18px;
    color: #333;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

.error-items {
    color: red;
    font-size: 15px;
    margin-top: 10px;
    font-weight: bold;
}





.sequence-box-topHeader {
    display: flex;
        /* flex-direction: column; */
        align-items: center;
        justify-content: center;
        text-align: center;
        /* width: 450px; */
        padding: 10px 20px;
        gap: 19px;
        font-weight: bold;
        background-color: #fff;
        border: 2px solid #ff99cc;
        border-radius: 25px;
        margin-top: 20px;
        opacity: 1;
        transition: opacity 0.5s ease-out;
        z-index: 2;
}
.sequence-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 450px;
    height: 260px;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #ff99cc;
    border-radius: 25px;
    margin-top: 20px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    z-index: 2;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes buttonPulse {

    0%,
    100% {
        transform: scale(1);
        /* opacity: 1; */
    }

    50% {
        transform: scale(1.1);
        /* opacity: 0.8; */
    }
}

@keyframes dots {

    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 3px;
    background-color: #ff69b4;
    /* Pink color */
    border-radius: 50%;
    /* Circle shape */
    animation: dots 1.5s infinite;
}

#dot1 {
    animation-delay: 0s;
}

#dot2 {
    animation-delay: 0.2s;
}

#dot3 {
    animation-delay: 0.4s;
}



div#secondSection {
    height: 90%;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}

div#thirdSection {
    height: 90%;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;

}

div#fourthSection {
    height: 90%;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
}


.select-platform-section {
    text-align: center;
    /* margin-top: 30px; */
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.platform-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 102, 178, 0.7);
}

.platform-button {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-color: #ff66b2;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 102, 178, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.6em;
    color: white;
}

#firstSection {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#nextSteps {
    display: none;
}

#secondSection {
    display: flex;
}

#thirdSection {
    display: none;
}

#fourthSection {
    display: none;
    /* display: flex; */
    /* z-index: 100000000 !important; */
}

#fifthSection {
    display: none;
}

#sixthSection {
    display: none;
}

#seventhSection {
    display: none;
}

#eighthSection {
    display: none;
}



.scale-in {
    animation: scaleIn 0.5s forwards;
}

.scale-out {
    animation: scaleOut 0.5s forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0);
        opacity: 0;
    }
}


@keyframes rotateAnimation {
    0% {
        transform: rotate(0deg);
        /* Start at 0 degrees */
    }

    100% {
        transform: rotate(360deg);
        /* End at 360 degrees (full circle) */
    }
}

/* Apply the animation to the image */
.rotate-image {
    animation: rotateAnimation 2s linear infinite;
    /* 4s duration, smooth, repeat forever */
}



@media (max-width: 600px) {
    .sequence-box {
        width: 90%
    }

    .platform-buttons {
        transform: scale(.89);
    }

    .container {
        width: 95%;
    }
}


@media (min-width: 601px) and (max-width: 1024px) {
    .sequence-box {
        width: 90%
    }

    .platform-buttons {
        transform: scale(.89);
    }

    .container {
        width: 95%;
    }

}

@media (min-width: 1025px) {

    .container {
        width: 85%;
    }

}


.innerContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}



#claim-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 10px;
    width: 250px;
    z-index: 10;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#claim-popup img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#claim-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

#claim-message {
    margin: 0;
}



.balloon {
    position: fixed;
    bottom: -50px;
    /* Start below the viewport */
    width: 60px;
    height: 80px;
    background-color: pink;
    /* Default color */
    border-radius: 50% 50% 45% 45%;
    /* Balloon shape */
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.1),
        /* Inner shadow for depth */
        0 5px 10px rgba(0, 0, 0, 0.2);
    /* Outer shadow for float effect */
    z-index: 1;
    /* Ensure the balloons are behind content */
    animation: float 8s ease-in-out infinite;

}

/* White balloon */
.balloon.white {
    background-color: white;
}

/* 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%;
}

/* Balloon string */
.balloon .string {
    position: absolute;
    bottom: -80px;
    left: 50%;
    width: 2px;
    height: 80px;
    background-color: #999;
    transform-origin: top;
    /* Fixes string detachment by anchoring its top */
    transform: translateX(-50%) rotate(0deg);
    animation: sway 2s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(50vh) translateX(0);
    }

    100% {
        transform: translateY(-120vh) translateX(-10px);
        /* Moves straight up and off the screen */
    }
}

/* Swaying string */
@keyframes sway {
    0% {
        transform: translateX(-50%) rotate(0deg);
        /* Keeps the string centered */
    }

    50% {
        transform: translateX(-50%) rotate(5deg);
        /* Gentle sway */
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Custom Css FOR TRS */
#nextSteps {
    position: relative;
}
#top_header {
    position: absolute;
    top: -160px;
    opacity: 0;
}
#top_header img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed pink;
}
/* Custom Css FOR TRS */