body {
    font-family: Arial, sans-serif;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    height: 100vh;
    margin: 0;
    background-color: #f0f8ff;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* width: 60%;
    height: 60%; */
    /*max-width: 500px;*/
    padding: 50px 60px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    justify-content: center;
    /* Horizontally center */
    align-items: center;
    /* Vertically center */
    max-width: 90%;
}

.popup-text {
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    text-align: center;
}

.popup-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s;
}

.popup-button:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

.button-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.super-main-content {
    position: relative;
    /* Remove centering from the main content */
    display: block;
    padding: 20px;
    /* Keep normal layout */
}

.super-main-content.blur {
    filter: blur(8px);
    /* Blurs the background when popup is active */
    pointer-events: none;
    /* Makes background content unclickable */
}

.tab-container {
    display: flex;
    border-bottom: 1px solid #a9a9a9;
    background-color: #d3d3d3;
    /* Color for the space with no tabs */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Make sure tabs are above other content */
}

.tab-container-container {
    display: flex;
    margin-left: 5px;
}

.tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    /* More padding */
    cursor: pointer;
    background-color: #a9a9a9;
    /* Inactive tab color */
    /*border: 1px solid #696969;*/
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: 8px;
    margin-right: 2px;
    /* Small gap between tabs */
    margin-bottom: -1px;
}

.tab.active {
    background-color: #f0f8ff;
    /* Active tab color same as background */
    color: #000;
}

.tab-icon {
    font-size: 18px;
    margin-right: 8px;
}

.main-content {
    margin-top: 28px;
    /* padding: 28px; */
}

.container {
    text-align: center;
    position: relative;
    width: calc(100% - 310px);
    /* Adjust width to account for the fixed upgrades section */
    height: 100vh;
    /* This makes sure the container takes the full viewport height */
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 28px;
    margin-bottom: 28px;
}

#role-title {
    font-size: 36px;
    margin-bottom: 5px;
}

#role-desc {
    margin-top: 5px;
    font-size: 20px;
}

.resource {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#click-btn {
    width: 200px;
    height: auto;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.1s ease;
}

#click-btn:active {
    transform: rotate(-10deg);
}

/* Fix for upgrades section positioning */
.upgrades {
    position: fixed;
    /* Change to fixed to keep it anchored */
    margin-top: 43px;
    margin-bottom: 15px;
    right: 10px;
    top: 20px;
    width: 300px;
    /* Adjust width to accommodate content */
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    /* Optional: Add shadow for better visibility */
    .upgrade:not(:last-child) {
        margin-bottom: 5px;
    }
}

.upgrade {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #aaa;
    /* margin-bottom: 10px; */
    background-color: #ccc;
    /* Initially greyed out */
    cursor: not-allowed;
    opacity: 0.5;
}

.upgrade-icon {
    width: 50px;
    /* Placeholder size */
    height: 50px;
    /* Placeholder size */
    background-color: #ddd;
    margin-right: 10px;
}

.upgrade-info {
    flex: 1;
    text-align: left;
}

.upgrade-count {
    width: 40px;
    text-align: center;
    font-weight: bold;
}

.upgrade.enabled {
    background-color: #fff;
    cursor: pointer;
    opacity: 1;
}