:root {
    --primary-color: #2c3e50;
    --secondary-color: #ecf0f1;
    --accent-color: #3498db;
    --discord: #5865f2;
    --github: #000000;
    --patreon: #ff424d;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--primary-color);
    padding: 20px 0;
    color: var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

h1 {
    margin: 0;
    color: var(--secondary-color);
}

h2 {
    margin: 0;
}

.button-container {
    display: flex;
    gap: 10px;
}

.cta {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    border-radius: 13px;
}

.cta:hover {
    background-color: #2980b9;
}

.features, .team, .info {
    margin-top: 50px;
}

.module-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Add space between categories */
}

.category-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px 5px 0 0; /* Round top corners */
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, background-color 0.3s ease;
    background-color: var(--secondary-color);
}

.category.active .category-content {
    max-height: 500px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.category:not(.active) .category-header {
    border-radius: 5px; /* Round all corners when closed */
}

.category.active .category-header {
    border-radius: 5px 5px 0 0; /* Round only top corners when open */
}

.module {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.module.implemented {
    color: var(--primary-color);
}

.module.planned {
    color: gray; /* Change text color to gray */
    pointer-events: none; /* Disable click events */
    opacity: 0.5; /* Optionally reduce opacity to visually indicate disabled state */
    cursor: not-allowed; /* Change cursor to indicate not clickable */
    text-decoration: none; /* Remove underline */
}

.category.active .module {
    color: var(--secondary-color);
}

.module:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category.active .category-content .module:last-child {
    border-radius: 0 0 5px 5px;
}

.custom-tooltip {
    position: absolute;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
}
.module:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.links a.discord {
    background-color: var(--discord);
    color: var(--secondary-color);
}

.links a.github {
    background-color: var(--github);
    color: var(--secondary-color);
}

.links a.patreon {
    background-color: var(--patreon);
    color: var(--secondary-color);
}

.links a.patreon:hover {
    background-color: rgba(255, 66, 77, 0.5); /* Adjusted patreon color */
    color: var(--secondary-color); /* Text color on hover */
}

.links a.discord:hover {
    background-color: rgba(88, 101, 242, 0.5); /* Discord color */
    color: var(--secondary-color); /* Text color on hover */
}

.links a.github:hover {
    background-color: rgba(0, 0, 0, 0.5); /* GitHub color */
    color: var(--secondary-color); /* Text color on hover */
}

/* Modal styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative; 
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; } 
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; } 
    to { opacity: 0; }
}

.modal.fade-out {
    animation: fadeOut 0.5s forwards;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.patreon.disabled {
    color: gray; /* Change text color to gray */
    pointer-events: none; /* Disable click events */
    opacity: 0.5; /* Optionally reduce opacity to visually indicate disabled state */
    cursor: not-allowed; /* Change cursor to indicate not clickable */
    text-decoration: none; /* Remove underline */
}

.discord.disabled {
    color: gray; /* Change text color to gray */
    pointer-events: none; /* Disable click events */
    opacity: 0.5; /* Optionally reduce opacity to visually indicate disabled state */
    cursor: not-allowed; /* Change cursor to indicate not clickable */
    text-decoration: none; /* Remove underline */
}

.disabled.cta {
    color: gray; /* Change text color to gray */
    pointer-events: none; /* Disable click events */
    opacity: 0.9; /* Optionally reduce opacity to visually indicate disabled state */
    cursor: not-allowed; /* Change cursor to indicate not clickable */
    text-decoration: none; /* Remove underline */
}

.info {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 50px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    text-align: center;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.info p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info .links {
    margin-top: 20px;
}

.info .links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.info .links a:hover {
    background-color: #2980b9;
}

.category.disabled {
    opacity: 0.5; /* Adjust opacity to visually gray out */
    pointer-events: none; /* Disable pointer events to prevent interaction */
}

h2#moduleCounterLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5em;
    margin-bottom: 20px;
}

h2#moduleCounterLabel #moduleCounter {
    font-size: 0.6em;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 10px 15px;
    border-radius: 5px;
}
