body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #000; /* Background for Vanta.js compatibility */
}
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    max-width: 1000px; /* Limit tab width */
    margin: 0 auto; /* Center tabs */
    border-radius: 10px; /* Rounded edges for tabs */
}
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}
.tab button:hover {
    background-color: #ddd;
}
.tab button.active {
    background-color: #ccc;
}
.tabcontent {
    display: none;
    padding: 12px 24px;
    border: 1px solid #ccc;
    border-top: none;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent for Vanta background */
    max-width: 1000px; /* Limit content width */
    margin: 0 auto; /* Center content */
    border-radius: 10px; /* Rounded edges */
}
.results {
    margin-top: 20px;
    padding: 12px 24px;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent for Vanta background */
    max-width: 1000px; /* Limit results width */
    margin: 20px auto; /* Center results */
    border-radius: 10px; /* Rounded edges */
}
.troop-tier {
    margin-bottom: 20px;
}
.troop-tier h3 {
    margin-bottom: 10px;
}
.troop-inputs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}
.troop-inputs label {
    display: block;
    margin-bottom: 5px;
}
.troop-inputs input[type="number"] {
    width: 100px;
}
.troop-inputs div {
    flex: 1;
    min-width: 200px;
}
input[type=number] {
    width: 200px;
}
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
}
.ui-accordion-header {
    cursor: pointer;
    padding: 10px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    border-radius: 5px;
}
.ui-accordion-content {
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 5px 5px;
}
.floating-navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}


/* Navbar styling */
/* Circle Button */
.menu-circle {
    background: #1e293b;
    color: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Menu Content (Centered) */
.menu-content {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Icon links */
.menu-content a {
    color: #f1f5f9;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s;
}

.menu-content a:hover {
    transform: scale(1.2);
}

/* Active: fade out circle, fade in menu */
.floating-navbar.active .menu-circle {
    opacity: 0;
    pointer-events: none;
}

.floating-navbar.active .menu-content {
    opacity: 1;
    pointer-events: auto;
}