body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow-y: auto;
    cursor: pointer;
}

#game-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 95vw;
    margin-top: 5vh;
}

.main-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 40%;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px #555;
    font-weight: bold;
}

img {
    width: 250px;
    height: auto;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

img:active {
    transform: scale(0.95);
}

#counter-container {
    margin-top: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px #555;
    font-weight: bold;
    text-align: center;
}

#counter-container p {
    margin: 5px 0;
}

#prestige-button {
    background-color: #9c27b0;
    color: white;
    border: 2px solid #ba68c8;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    text-shadow: 1px 1px 3px #000;
    transition: background-color 0.3s, transform 0.2s;
}

#prestige-button:hover {
    background-color: #7b1fa2;
    transform: scale(1.05);
}

#prestige-button:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
    border-color: #666;
    transform: none;
}

#right-panel {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

#tabs-container {
    display: flex;
}

.tab-button {
    flex-grow: 1;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: #1a1a1a;
    color: #888;
    border: 2px solid #333;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    transition: background-color 0.3s, color 0.3s;
    outline: none;
}

.tab-button.active {
    background-color: #2a2a2a;
    color: #fff;
}

.tab-content {
    display: none;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px #444;
}

#upgrades-list, #achievements-list, #cursors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upgrade-item {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    gap: 15px;
}

.upgrade-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #000;
    border-radius: 5px;
}

.upgrade-info {
    flex-grow: 1;
}

.upgrade-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.upgrade-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.buy-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.buy-button:hover:not(:disabled) {
    background-color: #45a049;
}

.buy-button:disabled {
    background-color: #555;
    color: #aaa;
    cursor: not-allowed;
}

#achievement-popup {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -150%);
    background-color: #3a4a3a;
    color: #fff;
    padding: 15px 30px;
    border-radius: 0 0 10px 10px;
    border: 2px solid #4CAF50;
    border-top: none;
    z-index: 1000;
    text-align: center;
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#achievement-popup.show {
    transform: translate(-50%, 0);
}

#achievement-popup p {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
}

#achievement-popup h4 {
    margin: 5px 0 0 0;
    font-size: 1.3rem;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.5s, background-color 0.5s;
}

.achievement-item.unlocked {
    opacity: 1;
    background-color: #3a4a3a;
    border-color: #4CAF50;
}

.achievement-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.achievement-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.achievement-item .unlocked-text {
    margin-top: 10px;
    font-weight: bold;
    color: #4CAF50;
    display: none;
}

.achievement-item.unlocked .unlocked-text {
    display: block;
}