@import url('https://fonts.googleapis.com/css2?family=Carattere&family=Poppins:wght@500&display=swap');

body, html {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    background: url('background.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

/* Title with Pulse Effect */
.title {
    font-family: 'Carattere', cursive;
    color: #ffd700;
    font-size: clamp(50px, 15vw, 100px);
    text-align: center;
    line-height: 0.9;
    padding: 20px 10px;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    animation: smoothPulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes smoothPulse {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.15);
    }
    100% { 
        transform: scale(1);
    }
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: 10px;
    margin-left: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
}

/* Social Icons */
.social-links .social-icon i {
    color: white;
    font-size: clamp(30px, 8vw, 40px);
    text-decoration: none;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.social-links .social-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.5);
}

/* Dex Screener Icon */
.social-links .dex-icon {
    width: clamp(35px, 8vw, 45px);
    height: clamp(40px, 8vw, 50px);
    margin-top: -6px;
    margin-left: -3px;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.social-links .dex-icon:hover {
    transform: scale(1.2);
    filter: brightness(1.5);
}

/* CA Box */
.ca-box {
    background-color: #fff;
    color: #004d00;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: clamp(14px, 3vw, 16px);
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 1);
    transition: 0.3s;
    width: fit-content;
    max-width: 90vw;
    margin-top: 10px;
    margin-left: -25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-box:hover {
    background-color: #ffd700;
    color: #004d00;
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 1);
}

.ca-box i {
    margin-left: 8px;
}

/* Info Boxes */
.info-box, .info-box2 {
    background: rgba(255, 255, 255, 0.2);
    padding: clamp(12px, 3vw, 30px);
    border-radius: 25px;
    text-align: center;
    width: 90%;
    max-width: 900px;
    margin: 20px auto;
}

.info-box h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(20px, 5vw, 24px);
    color: #ffd700;
    margin-bottom: 8px;
}

.info-box p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.3;
}

.info-box2 p {
    font-size: clamp(14px, 3vw, 17px);
    line-height: 1.5;
}

.gallery-title {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.gallery-container {
     max-width: 800px; 
            margin: 0 auto;
            padding: 20px;
            position: relative;
        }


        .gallery {
            width: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        /* This maintains 3:2 aspect ratio */
        .gallery::before {
            content: "";
            display: block;
            padding-top: 66.67%; /* 3:2 aspect ratio (height = 0.6667 × width) */
        }

        .gallery-track {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            transition: transform 0.3s ease-in-out;
        }

        .gallery-slide {
            min-width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #fff;
        }

        .gallery-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.8);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #333;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .gallery-nav:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-50%) scale(1.1);
        }

        .prev {
            left: 20px;
        }

        .next {
            right: 20px;
        }

        .gallery-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .dot.active {
            background: white;
        }

        @media (max-width: 768px) {
            .gallery-container {
                max-width: 600px;
            }

            .gallery-nav {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .gallery-container {
                max-width: 400px;
            }


            .gallery-nav {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
        }

/* How to Buy Section */
.how-to-buy {
    font-size: clamp(32px, 8vw, 48px);
    color: #ffd700;
    font-family: 'Luckiest Guy', cursive;
    text-align: center;
    transform: scale(1) rotate(0deg);
    transition: transform 1s ease-in-out;
}

@keyframes pulseTilt {
    0% { transform: scale(1) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(-3deg); }
}

.how-to-buy.pulsing {
    animation: pulseTilt 3s infinite;
}

.how-to-buy1 {
    max-width: 90%;
    margin: 0 auto;
}

.buy-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1b1c2c;
    padding: 20px;
    margin: 15px 0;
    border-radius: 20px 20px 0px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.2s ease-in-out;
    text-align: center;
}

@media (min-width: 768px) {
    .buy-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.buy-step:hover {
    transform: scale(1.05);
}

.step-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
}

@media (min-width: 768px) {
    .step-icon {
        margin: 0 15px 0 0;
    }
}

.buy-content {
    text-align: center;
}

@media (min-width: 768px) {
    .buy-content {
        text-align: left;
    }
}

h3 {
    font-size: clamp(16px, 4vw, 18px);
    margin: 0;
}

.buy-content p {
    font-size: clamp(12px, 3vw, 14px);
    margin: 5px 0;
}

.download-btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
}

.download-btn:hover {
    background-color: #ffdb4d;
}

.arrow-roadmap {
    width: clamp(300px, 60vw, 500px); /* Responsive width */
    height: clamp(300px, 60vw, 500px); /* Responsive height */
    margin-top: clamp(-80px, -15vw, -120px);
    z-index: -1;
    position: absolute; /* Ensure proper layering */
    left: 0;
}

/* Media query for very small screens */
@media screen and (max-width: 480px) {
    .arrow-roadmap {
        width: 250px;
        height: 250px;
        margin-top: -60px;
    }
}

/* Media query for larger screens */
@media screen and (min-width: 1400px) {
    .arrow-roadmap {
        width: 600px;
        height: 600px;
        margin-top: -140px;
    }
}

:root {
    --pub-green: #15803d;
    --pub-gold: #fbbf24;
    --foam-white: #ffffff;
    --path-color: #86efac;
}

.pub-container {
    max-width: min(800px, 90%);
    margin: 40px auto;
    position: relative;
    padding: clamp(15px, 3vw, 20px);
    background: rgba(0, 0, 0, 0.4);
    border-radius: clamp(8px, 2vw, 16px);
    backdrop-filter: blur(5px);
    overflow-x: hidden;
}

.titlegame {
    text-align: center;
    color: var(--pub-gold);
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.subtitle {
    text-align: center;
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.arrow-roadmap {
    width: clamp(300px, 60vw, 500px);
    height: clamp(300px, 60vw, 500px);
    margin-top: clamp(-80px, -15vw, -120px);
    z-index: -1;
    position: absolute;
    left: 0;
}

.pub {
    position: relative;
    background: rgba(21, 128, 61, 0.2);
    border-radius: clamp(8px, 2vw, 12px);
    padding: clamp(15px, 3vw, 20px);
    margin: 0 0 clamp(40px, 8vw, 60px) clamp(60px, 10vw, 80px);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: clamp(100px, 20vw, 120px);
    border: 1px solid rgba(134, 239, 172, 0.2);
}

.pub:hover:not(.locked) {
    transform: translateX(10px);
    background: rgba(21, 128, 61, 0.3);
    border-color: rgba(134, 239, 172, 0.4);
}

.pub.locked {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.pub.unlocked {
    background: rgba(21, 128, 61, 0.4);
    box-shadow: 0 0 20px rgba(134, 239, 172, 0.2);
}

.pub-glass {
    position: absolute;
    left: clamp(-45px, -8vw, -60px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(30px, 5vw, 40px);
    height: clamp(45px, 8vw, 60px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--pub-green);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(134, 239, 172, 0.2);
}

.beer-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--pub-gold);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.pub.unlocked .beer-liquid {
    height: 80%;
    animation: fillBeer 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.foam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--foam-white);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pub.unlocked .foam {
    opacity: 1;
    animation: showFoam 0.5s ease forwards;
    animation-delay: 1s;
}

.pub-content {
    padding-left: clamp(15px, 3vw, 20px);
}

.pub-name {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--foam-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

.pub-description {
    color: #e5e9eb;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.milestone-number {
    position: absolute;
    right: clamp(15px, 3vw, 20px);
    top: clamp(15px, 3vw, 20px);
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    color: var(--pub-gold);
    opacity: 0.7;
}

.final-pub .pub-glass {
    border-color: var(--pub-gold);
}

.final-pub.unlocked .pub-glass {
    animation: glow 2s infinite alternate;
}

.completion-message {
    display: none;
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, var(--pub-green), #0d9488);
    color: white;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.25rem;
    animation: party 2s infinite alternate;
}

/* Animations */
@keyframes fillBeer {
    from {
        height: 0;
    }
    to {
        height: 80%;
    }
}

@keyframes showFoam {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px var(--pub-gold),
                   0 0 20px var(--pub-gold);
    }
    to {
        box-shadow: 0 0 30px var(--pub-gold),
                   0 0 40px var(--pub-gold);
    }
}

@keyframes party {
    from { box-shadow: 0 0 20px var(--pub-gold); }
    to { box-shadow: 0 0 40px var(--pub-green); }
}

/* Media Queries */
@media screen and (max-width: 480px) {
    .pub {
        margin-left: 40px;
    }
    
    .pub-glass {
        left: -35px;
    }

    .arrow-roadmap {
        width: 250px;
        height: 250px;
        margin-top: -60px;
    }
}

@media screen and (min-width: 1400px) {
    .pub-container {
        max-width: 1000px;
    }
}
footer {
    color: white;
    text-align: center;
    padding: clamp(23px, 4vw, 28px);
    font-family: 'Poppins', sans-serif;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 2px solid #ffd700;
    margin-top: 40px;
}

footer p {
    font-size: clamp(14px, 3vw, 17px);
    margin: 0;
}
