body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    margin: 0;
    color: #eee;
    padding-top: 20px; /* Add some space at the top */
    position: relative; /* Needed for absolute positioning of background */
    overflow-y: auto; /* Allow scrolling if content exceeds viewport */
}

.background {
    position: fixed; /* Fixed position to cover the whole viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('yues.webp'); /* Set background image */
    background-size: cover;
    background-position: center;
    filter: blur(5px); /* Apply blur effect */
    z-index: -1; /* Place behind other content */
}

.container {
    text-align: center;
    background-color: rgba(51, 51, 51, 0.9); /* Semi-transparent background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative; /* Position relative to stay above background */
    z-index: 1; /* Ensure it's above the background */
    max-width: 600px; /* Limit container width */
    width: 95%; /* Make it responsive */
}

h1, h2 {
    color: #ffdd57; /* A yellowish color for titles */
}

.stats p {
    font-size: 1.2em;
    margin: 5px 0;
}

.click-area {
    margin: 20px 0;
}

#clickable-image {
    width: 200px;
    height: auto;
    cursor: pointer;
    border: 4px solid #ffdd57;
    border-radius: 8px;
    transition: transform 0.1s ease-in-out;
}

#clickable-image:active {
    transform: scale(0.95);
}

.controls {
    margin-top: 15px;
    display: flex; /* Use flexbox for buttons */
    justify-content: center; /* Center buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 10px; /* Add space between buttons */
}

.controls button {
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    background-color: #ffdd57;
    color: #333;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-grow: 0; /* Prevent buttons from stretching */
    min-width: 100px; /* Minimum width for buttons */
}

.controls button:hover {
    background-color: #ffeb8a;
}

#upgrades-list {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 15px;
    text-align: left;
}

.upgrade {
    background-color: #444;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade span {
    flex-grow: 1;
    margin-right: 10px;
}

.upgrade button {
    padding: 5px 10px;
    background-color: #5cb85c; /* Green buy button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upgrade button:hover:not(:disabled) {
    background-color: #4cae4c;
}

.upgrade button:disabled {
    background-color: #666;
    cursor: not-allowed;
}