body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to right, #1c92d2, #f2fcfe);
    overflow: hidden;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0 0 20px;
    color: #333;
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(to right, #f953c6, #b91d73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#game {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

#info p {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    margin: 0;
    color: #333;
    font-weight: bold; /* Make score text bold */
}

#info .icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

#tapArea {
    width: 100%;
    height: 400px;
    background: #eee;
    border: 2px dashed #ccc;
    position: relative;
    overflow: hidden;
}

.coin {
    width: 50px;
    height: 50px;
    position: absolute;
    cursor: pointer;
    animation: fall linear infinite;
}

@keyframes fall {
    from { transform: translateY(-50px); }
    to { transform: translateY(450px); }
}

.increment {
    position: absolute;
    font-weight: bold;
    color: red;
    animation: moveUp 1s ease-out;
    z-index: 10; /* Ensure increment is visible */
}

@keyframes moveUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

#mobile-menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: fixed;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #ccc;
    padding: 10px 0;
}

#mobile-menu button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1em;
    color: #333;
    cursor: pointer;
}

#mobile-menu button i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* Ensure elements are clickable on mobile */
@media (max-width: 600px) {
    button {
        padding: 10px 20px;
        font-size: 14px;
    }

    #tapArea {
        height: 80vh;
    }
}

/* Update increment position in CSS */
.increment {
    position: absolute;
    animation: fadeOut 1s forwards;
    font-size: 18px;
    color: red;
}

.increment.score {
    top: -30px; /* Adjust position above the coin */
}

.increment.bonus {
    top: -30px; /* Adjust position above the coin */
    color: gold;
}

/* Button styles */
button {
    background-color: #4caf50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}

button:hover {
    background-color: white;
    color: black;
    border: 2px solid #4caf50;
}


/* Add styles for progress bar */
#progress-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background: #4caf50;
    transition: width 0.5s;
}

.referral-btn {
    display: block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 1.2em;
    color: white;
    background: linear-gradient(45deg, #1c92d2, #099ab7);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.referral-btn i {
    margin-right: 10px;
}

.referral-btn:hover {
    background: linear-gradient(45deg, #1c92d2, #69eacb);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
