body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: url('https://img.freepik.com/free-vector/flat-nature-background_1308-20252.jpg') no-repeat center center fixed;
    background-size: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

p {
    margin: 5px !important;
}

#game {
    position: relative;
    height: 100vh;
    width: 100vw;
}

#stats {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* #score-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
} */


#score-box {
    font-size: 2rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0px 5px 15px rgba(255, 215, 0, 0.5);
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}


/* Left Sidebar Styling */
#upgrade-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    overflow-y: auto;
    color: white;
    z-index: 10;
}

#upgrade-sidebar h2 {
    text-align: center;
    font-size: 2rem;
    /* margin-bottom: 20px; */
}

/* Styling for each upgrade item */
.upgrade-item {
    display: flex;
    margin-bottom: 12px;
    background: rgba(170, 212, 166, 0.15);
    padding: 4px 16px;
    border-radius: 8px;
    align-items: center;
    cursor: pointer;
}



/* Custom Scrollbar for Upgrade Slider */
.upgrade-container::-webkit-scrollbar {
    width: 10px;
    /* Scrollbar width */
}

.upgrade-container::-webkit-scrollbar-track {
    background: linear-gradient(45deg, #111, #222);
    /* Dark gradient background */
    border-radius: 10px;
}

.upgrade-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6a00, #ff0055);
    /* Neon gradient effect */
    border-radius: 10px;
    border: 2px solid #222;
    /* Outer glow effect */
    box-shadow: 0 0 10px #ff0055;
}

.upgrade-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
    /* More intense color on hover */
    box-shadow: 0 0 15px #ff4500;
}

/* Optional: Smooth scrolling effect */
.upgrade-container {
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: #ff6a00 #111;
    /* Thumb & Track color */
    overflow-y: auto;
}





/* .upgrade-item:hover {
    background: rgba(226, 225, 159, 0.2);
} */

.upgrade-item {
    transition: all 0.2s ease-in-out;
}

.upgrade-item:hover {
    transform: scale(1.05);
    background: rgba(255, 223, 0, 0.2);
    box-shadow: 0px 0px 10px rgba(255, 223, 0, 0.3);
}



.upgrade-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.upgrade-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.upgrade-details h3 {
    margin: 5px;
    font-size: 1.2rem;
}

.cost {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffdf00;
}

.click-count {
    font-size: 2rem;
    color: #9ad4e4;
}

.upgrade-button {
    background: #ff4500;
    /* Orange-red button */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 10px;
}

.upgrade-button:hover {
    background: #ff6347;
    /* Lighter orange-red */
    transform: scale(1.1);
}

/* Scrollable container for upgrades */
#upgrade-sidebar {
    overflow-y: auto;
    /* height: calc(100vh - 50px); */
    /* Make sure the sidebar scrolls */
}

#click-area {
    position: absolute;
    top: 40%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
}

#click-image {
    width: 250px;
    height: 250px;
    cursor: pointer;
    transition: transform 0.1s;
    /* animation: float 4s ease-in-out infinite; */
    position: absolute;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

/* @keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0);
    }
} */

#click-image.clicked {
    transform: scale(0.8);
    /* Make the image bigger */
    /* animation: clickEffect 0.3s ease-out; Apply the animation */
    animation: popFloat 0.4s ease-in-out;
}

/* @keyframes spinEffect {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
} */

@keyframes popFloat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) translateY(-5px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}



/* Coin animation styling */
.coin {
    position: absolute;
    width: 70px;
    height: 70px;
    animation: coin-move 0.8s ease-out forwards;
}

/* Coin movement animation */
@keyframes coin-move {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(500%, -500%);
    }
}

/* Ensure that the coin moves smoothly */
.coin-animation {
    animation: coin-move 0.8s ease-out forwards;
}

/* Coins per second box styling */
#coins-per-second {
    display: none;
    font-size: 1rem;
    color: #ffdf00;
    position: absolute;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}


/* Alert styling */

.game-alert {
    position: fixed;
    top: 5%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #ffdf00;
    box-shadow: 0 0 20px rgba(255, 223, 0, 0.3);
    font-size: 24px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* message styling */

.game-message {
    position: fixed;
    top: 5%;
    left: 40%;
    width: 29%;
    /* transform: translate(-50%, -50%); */
    background: rgba(49, 49, 49, 0.9);
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid #8dee4c;
    box-shadow: 0 0 20px rgba(208, 255, 0, 0.411);
    font-size: 24px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}






/* Custom Confirm Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.confirm-box {
    background: linear-gradient(45deg, #222, #111);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 15px #ff0055;
    animation: fadeIn 0.3s ease-in-out;
}

.confirm-box h2 {
    margin-top: 0;
    color: #ff0055;
}

.confirm-box p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
}

.confirm-buttons button {
    background: #ff0055;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.confirm-buttons button:hover {
    background: #ff4500;
}

.confirm-buttons #confirm-no {
    background: #555;
}

.confirm-buttons #confirm-no:hover {
    background: #777;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



.reward-bird {
    position: absolute;
    width: 80px;
    transition: transform 4s linear;
    cursor: pointer;
}
