/* Authentic MooMoo.io Typography & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hammersmith One', sans-serif;
    font-size: 13px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    /* Authentic MooMoo Grass Green with Subtle Grid Texture */
    background-color: #5b8731;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

a {
    color: #a56dc8;
    text-decoration: none;
}

a:hover {
    color: #795094;
}

/* Authentic Top Bar Elements */
#youtuberOf {
    position: absolute;
    top: 16px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    z-index: 20;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

#topRightBar {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

#partyButton {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
}

#partyButton:hover {
    transform: scale(1.05);
    color: #7ee559;
}

.topBarBtn {
    background-color: #8c52ff;
    color: #fff;
    border: none;
    outline: none;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: 0px 3px #6532cb;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.1s ease;
}

.topBarBtn:hover {
    background-color: #7c40f0;
}

.topBarBtn:active {
    transform: translateY(2px);
    box-shadow: 0px 1px #6532cb;
}

.pulseBadge {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-weight: bold;
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.08); }
}

/* Main Menu Overlay (Exact MooMoo styling) */
#mainMenu {
    background-color: rgba(0, 0, 0, 0.35);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 10px;
}

#menuContainer {
    text-align: center;
    max-width: 560px;
    margin: auto;
}

/* Authentic MooMoo 3D Extruded Title */
#gameName {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 96px;
    margin-bottom: -5px;
    text-shadow:
        0 1px 0 #c4c4c4,
        0 2px 0 #c4c4c4,
        0 3px 0 #c4c4c4,
        0 4px 0 #c4c4c4,
        0 5px 0 #c4c4c4,
        0 6px 0 #c4c4c4,
        0 7px 0 #c4c4c4,
        0 8px 0 #c4c4c4,
        0 9px 0 #c4c4c4;
    color: #fff;
    letter-spacing: 2px;
}

#menuCardHolder {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Authentic MooMoo .menuCard / .adMenuCard */
.menuCard {
    vertical-align: top;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    display: inline-block;
    width: 320px;
    padding: 18px;
    background-color: #fff;
    -webkit-box-shadow: 0px 7px #c4c4c4;
    -moz-box-shadow: 0px 7px #c4c4c4;
    box-shadow: 0px 7px #c4c4c4;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Compact Launcher Card */
.compactCard {
    width: 390px !important;
    max-width: 95vw;
    padding: 22px 24px;
    border-radius: 6px;
    box-shadow: 0px 8px #c4c4c4;
    background-color: #fff;
    margin: 0 auto;
    box-sizing: border-box;
}

.cardHeaderRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f2f2f2;
}

.cardTitle {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 20px;
    color: #4A4A4A;
    letter-spacing: 0.5px;
}

.versionBadge {
    background: #8c52ff;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px #6532cb;
}

.compactField {
    margin-bottom: 14px;
}

.fieldLabelRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fieldLabel {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #888;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.inlineQuickPills {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 0 !important;
}

.inlineQuickPills .pill {
    padding: 2px 7px;
    font-size: 11px;
    background: #ececec;
    color: #555;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 1px #d5d5d5;
}

.inlineQuickPills .pill:hover {
    background: #dfdfdf;
}

.inlineQuickPills .pill.active {
    background: #7ee559;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 1px #5db53d;
}

.fieldActionBtn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: bold;
    color: #8c52ff;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.1s;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
}

.fieldActionBtn:hover {
    color: #6532cb;
    background-color: #f3edff;
}

.compactSelect {
    font-size: 15px !important;
    padding: 9px 12px !important;
    margin-bottom: 0 !important;
    border-radius: 4px;
    background-color: #f0eeee;
    box-shadow: inset 0 -2px 0 #dedede;
    border: 1px solid #e0dede;
    width: 100%;
}

.compactInfo {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 2px;
}

.playActionRow {
    margin-top: 18px;
    margin-bottom: 14px;
}

.enterGameBtn {
    font-size: 24px !important;
    padding: 12px !important;
    border-radius: 5px;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0px 5px #5db53d !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
    background-color: #7ee559 !important;
}

.enterGameBtn:hover {
    background-color: #72d94d !important;
}

.enterGameBtn:active {
    transform: translateY(2px) !important;
    box-shadow: 0px 2px #5db53d !important;
}

.compactFooterRow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f2f2f2;
    font-size: 12px;
}

.footerDivider {
    color: #ccc;
    font-size: 10px;
}

.footerLink {
    color: #777;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.1s;
}

.footerLink:hover {
    color: #333;
    text-decoration: underline;
}

.footerLinkBtn {
    background: none;
    border: none;
    color: #777;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.footerLinkBtn:hover {
    color: #333;
}

.badgeOrange {
    background: #ff9f43;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.menuHeader {
    font-size: 24px;
    color: #4A4A4A;
    margin-bottom: 8px;
    text-align: center;
}

.menuSubText {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
}

.menuText {
    font-size: 13px;
    color: #4A4A4A;
    line-height: 1.45;
    margin-bottom: 10px;
}

/* Authentic MooMoo Form Controls */
.menuSelect {
    text-align: center;
    font-size: 16px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border: none;
    outline: none;
    box-sizing: border-box;
    color: #4A4A4A;
    background-color: #e5e3e3;
    width: 100%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    box-shadow: inset 0 -3px 0 #d0cece;
    cursor: pointer;
}

.menuSelect:focus {
    background-color: #dedede;
}

/* Authentic MooMoo Buttons */
.menuButton {
    text-align: center;
    font-size: 23px;
    padding: 8px;
    box-sizing: border-box;
    color: #fff;
    background-color: #7ee559;
    width: 100%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 4px #5db53d;
    transition: background-color 0.1s, transform 0.1s, box-shadow 0.1s;
    display: block;
    text-decoration: none;
    border: none;
}

.menuButton:hover {
    background-color: #6fc94e;
    color: #fff;
}

.menuButton:active {
    transform: translateY(2px);
    box-shadow: 0px 2px #5db53d;
}

/* Mod Collection Button Variant */
.menuButton.modBtn {
    background-color: #8c52ff;
    box-shadow: 0px 4px #6532cb;
    font-size: 19px;
    padding: 7px;
    position: relative;
}

.menuButton.modBtn:hover {
    background-color: #7c40f0;
}

.menuButton.modBtn:active {
    transform: translateY(2px);
    box-shadow: 0px 2px #6532cb;
}

.modBadge {
    background: #ffb703;
    color: #222;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
    font-weight: bold;
}

.menuButton.discordBtn {
    background-color: #5865F2;
    box-shadow: 0px 4px #4752c4;
    font-size: 20px;
}

.menuButton.discordBtn:hover {
    background-color: #4752c4;
}

/* Quick Select Pills */
#quickPills {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pill {
    padding: 5px 12px;
    background: #e5e3e3;
    color: #555;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0px 2px #d0cece;
}

.pill:hover {
    background: #d8d8d8;
}

.pill.active {
    background: #7ee559;
    color: #fff;
    box-shadow: 0px 2px #5db53d;
}

/* Changelog Display Box */
#changelogBox {
    background-color: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 12px;
    height: 185px;
    overflow-y: auto;
    font-family: monospace, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    text-align: left;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cardFooter {
    text-align: center;
    padding-top: 4px;
}

/* Timeline & Guide Card */
#guideCard {
    max-height: 380px;
}

#versionList {
    max-height: 165px;
    overflow-y: auto;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fafafa;
}

.versionItem {
    padding: 7px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 13px;
    color: #4A4A4A;
    transition: background 0.1s;
}

.versionItem:last-child {
    border-bottom: none;
}

.versionItem:hover {
    background-color: #f0f0f0;
}

.versionItem.selected {
    background-color: #7ee559;
    color: #fff;
}

.versionItem .vDate {
    font-size: 12px;
    opacity: 0.85;
}

#altServer {
    margin-top: 12px;
    text-align: center;
}

#altServer .menuText {
    font-size: 13px;
    color: #999;
}

/* Mod Collection Modal */
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modalBox {
    width: 480px;
    max-width: 95%;
    padding: 24px;
    position: relative;
    box-shadow: 0px 9px #888;
    animation: modalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modalClose:hover {
    color: #ff4757;
}

.modalBadgeRow {
    text-align: center;
    margin-bottom: 16px;
}

.comingSoonBadge {
    background-color: #ffb703;
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.8px;
    display: inline-block;
}

.modalContent p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 12px;
}

.featureList {
    background: #f7f5fc;
    border: 1px solid #e5daf8;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    text-align: left;
}

.featureItem {
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.4;
}

.featureItem:last-child {
    margin-bottom: 0;
}

/* Authentic MooMoo Bottom Tabs */
#linksContainer1 {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #fff;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 0 4px 0 0;
    z-index: 20;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

#linksContainer2 {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-color: #fff;
    text-align: right;
    font-size: 16px;
    padding: 8px 14px;
    border-radius: 4px 0 0 0;
    z-index: 20;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.menuLink {
    font-size: 16px;
    color: #a56dc8;
    text-decoration: none;
    cursor: pointer;
}

.menuLink:hover {
    color: #795094;
}

/* Custom Scrollbars like MooMoo guideCard */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@media (max-width: 980px) {
    #gameName {
        font-size: 75px;
    }
    #mainMenu {
        align-items: flex-start;
    }
    #menuContainer {
        margin: 50px 0 30px 0;
    }
    #linksContainer1, #linksContainer2 {
        position: static;
        display: inline-block;
        border-radius: 4px;
        margin: 10px 5px 0 5px;
    }
}

/* Feature Button Row & Texture Pack Button */
.featureButtonRow {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.menuButton.featureBtn {
    font-size: 14px;
    padding: 7px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featureBadge {
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
}

.topBarBtn.textureBtn {
    background-color: #ff9f43;
    box-shadow: 0px 3px #d97d26;
}

.topBarBtn.textureBtn:hover {
    background-color: #f38d2b;
}

.topBarBtn.textureBtn:active {
    box-shadow: 0px 1px #d97d26;
}

.menuButton.textPackBtn {
    background-color: #ff9f43;
    box-shadow: 0px 4px #d97d26;
}

.menuButton.textPackBtn:hover {
    background-color: #f38d2b;
}

.menuButton.textPackBtn:active {
    transform: translateY(2px);
    box-shadow: 0px 2px #d97d26;
}

/* Mod Collection UI & Interactive Showcase */
.modInfoBox {
    font-size: 11px;
    color: #555;
    background: #e5e3e3;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: -6px;
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.35;
    word-break: break-word;
    box-shadow: inset 0 -2px 0 #d0cece;
}

.modTag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    margin-right: 4px;
}
.modTagStart { background: #2ed573; }
.modTagEnd { background: #3742fa; }
.modTagVersion { background: #ff4757; }
.modTagReq { background: #e67e22; }

.modGrid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 4px;
}
.modGrid::-webkit-scrollbar {
    width: 6px;
}
.modGrid::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}
.modCardItem {
    background: #f7f7f7;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: left;
    transition: all 0.15s ease;
}
.modCardItem:hover {
    border-color: #8c52ff;
    background: #faf8ff;
}
.modCardItem.active {
    border-color: #2ed573;
    background: #f1fff4;
}
.modCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.modCardTitle {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}
.modCardAuthor {
    font-size: 11px;
    color: #777;
}
.modCardDesc {
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.3;
}
.modCardFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.modSelectBtn {
    background: #8c52ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.1s;
    box-shadow: 0 2px #6532cb;
}
.modSelectBtn:hover {
    background: #763cd4;
}
.modSelectBtn.active {
    background: #2ed573;
    box-shadow: 0 2px #26af5f;
}

