/* If you are someone who randomly saw this style.css in dev tools, the huge 900 line mess is because of me taking this style right from craft.darkmax.int.yt because of my laziness.*/

* { box-sizing: border-box; }

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    color: white;
    background-color: #000;
    background-image: url("https://mobs.ashish.top/dirt1.svg");
    background-repeat: repeat;
    background-size: 150px 150px;
    background-position: 0 0;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0,0,0);
    image-rendering: pixelated;
    transform: scale(1);
}

#authOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
}

.authBox {
    background: rgba(46,46,46,0.8);
    padding: 30px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
    border: 4px solid rgba(0, 0, 0, 0.5);
}

.authBox input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.4);
    background: rgba(46,46,46,0.3);
    color: white;
}

.authBox button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0.2); 
    background: #c77a2a;
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.1s;
}

.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: rgba(58,43,31,0.3);
    border-bottom: 3px solid #2a1e14;
}

.title h1 {
    margin: 0;
    font-size: 24px;
}

#online {
    color: #7dff7d;
    font-size: 14px;
}

.buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.buttons a {
    display: flex;
    text-decoration: none;
}

button {
    border-radius: 10px;
    border: 3px solid #9b5e1f;
    background: #c77a2a;
    color: white;
    cursor: pointer;
    padding: 8px 14px;
}

.discordBtn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865F2;
    border: 3px solid #404eed;
}

.discordBtn img {
    width: 30px;
    height: 30px;
}

.mainPanel {
    display: flex;
    gap: 0;
    height: calc(100vh - 70px);
    padding: 20px;
}

.chatPanel {
    flex: 0 0 65%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    background: rgba(46,46,46,0.3); 
    border-radius: 14px;
    border: 3px solid rgba(36,36,36,0.5);
}

.chatPanel h2 { margin: 12px; }

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    font-size: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

#messages::-webkit-scrollbar { width: 12px; }
#messages::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
#messages::-webkit-scrollbar-thumb { background: #c77a2a; border-radius: 10px; border: 3px solid rgba(0,0,0,0.1); }

.message { margin-bottom: 6px; }
.name { color: #ffd49e; }

.sendBar { display: flex; border-top: 3px solid rgba(36,36,36,0.5); }

#msgInput {
    flex: 1;
    padding: 12px;
    border: none;
    background: rgba(30,30,30,0.3);
    color: white;
    border-radius: 0 0 0 10px;
}

#sendBtn {
    width: 100px;
    border-radius: 0 0 10px 0;
}

.sidePanel {
    flex: 1;
    min-width: 200px;
    background: rgba(46,46,46,0.3); 
    border-radius: 14px;
    border: 3px solid rgba(36,36,36,0.5);
    padding: 12px;
}

.card {
    background: rgba(58,58,58,0.3);
    padding: 12px;
    border-radius: 10px;
    border: 3px solid rgba(42,42,42,0.5);
    margin-bottom: 10px;
}

@media (max-width: 800px) {
    .mainPanel { flex-direction: column; }
}

.calcCard input{

width:100%;

padding:10px;

margin-top:6px;

border-radius:10px;

border:3px solid #2a2a2a;

background:#1c1c1c;

color:white;
}

.rarityRow{

display:flex;

flex-wrap:wrap;

gap:6px;

margin-top:8px;
}

.rarityBtn{

padding:6px 10px;

border-radius:10px;

border:3px solid rgba(0,0,0,0.45);

font-weight:700;

cursor:pointer;

transition:transform 0.1s;
}

.rarityBtn:hover{

transform:scale(1.05);
}

.rarityBtn.active{

border:3px solid white;
}


.common{background:#7EEF6D;}
.unusual{background:#FFE65D;}
.rare{background:#4d52e3;color:white;}
.epic{background:#861FDE;color:white;}
.legendary{background:#DE1F1F;color:white;}
.mythic{background:#1fdbde;}
.ultra{background:#ff2b75;color:white;}
.super{background:#2bffa3;}
.eternal{background:#EEEEEE;color:black;}

#craftBtn{

margin-top:8px;

width:100%;

padding:10px;

border-radius:10px;

border:3px solid #0f7d45;

background:#14c96b;

color:white;

font-weight:700;
}

#calcOutput{

margin-top:8px;

font-size:14px;

text-align:center;
}

#resizer {
    width: 10px;
    cursor: col-resize;
    transition: background 0.2s;
    background: rgba(0,0,0,0.0);
}

#resizer:hover {
    background: rgba(199, 122, 42, 0.5);
}

button, #pingBtn {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
}

.movable-window {
    display: none;
    position: absolute;
    top: 150px;
    left: 100px;
    width: 300px;
    background: rgba(58, 43, 31, 0.95);
    border: 4px solid #2a1e14;
    border-radius: 12px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.window-header {
    padding: 10px;
    cursor: move;
    background: #2a1e14;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

#closeChangelog {
    background: #c77a2a;
    border: none;
    padding: 2px 8px;
    font-size: 12px;
}

.window-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
}

.window-content p {
    margin: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4px;
}

#changelogBtn {
    background-color: #7EEF6D;
    color: white;              
    border: 3px solid rgba(0, 0, 0, 0.45);
}

#changelogBtn.active {
    border: 3px solid white;
}

* { 
    box-sizing: border-box; 
    -webkit-text-stroke: 2px black;
    paint-order: stroke fill;
}

#deleteModal {
    display: none; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    background: rgba(0, 0, 0, 0.8); 
    
    z-index: 9999; 
    
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#deleteModal > div {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #555;
    text-align: center;
    color: white;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

#deleteModal button {
    margin: 10px 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}

#confirmDelete {
    background-color: #8B0000;
    color: white;
}

#cancelDelete {
    background-color: #555;
    color: white;
}

#aboutBtn {
    background: #4A90E2;
    border: 3px solid #2860A4;
}

#serverCodesBtn {
    background: #9b59b6;
    border: 3px solid #8e44ad;
}
#serverCodesBtn.active {
    border: 3px solid white;
}

#codesTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

#codesTable th, #codesTable td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 6px;
    text-align: center;
}

#codesTable th {
    background: rgba(0, 0, 0, 0.6);
    color: #c77a2a;
    font-weight: bold;
}

#codesTable td:first-child {
    font-weight: bold;
    color: #eee;
}

.code-cell {
    font-family: monospace;
    cursor: pointer;
    color: #7dff7d;
    transition: background 0.2s, transform 0.1s;
}

.code-cell:hover {
    background: rgba(125, 255, 125, 0.2);
    transform: scale(1.05);
}

.code-cell.empty {
    color: #555;
    cursor: default;
}

.code-cell.empty:hover {
    background: transparent;
    transform: none;
}

#codesWindow .window-content {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b38b6d #1e1e1e;
}

#codesWindow .window-content::-webkit-scrollbar {
    width: 8px;
}

#codesWindow .window-content::-webkit-scrollbar-track {
    background: #2d2319; /* Deep brown track */
    border-radius: 10px;
}

#codesWindow .window-content::-webkit-scrollbar-thumb {
    background: #b38b6d; /* Lighter wood thumb */
    border-radius: 10px;
    border: 2px solid #2d2319;
}

#codesWindow .window-content::-webkit-scrollbar-thumb:hover {
    background: #d2a679;
}

.resizer-corner {
    width: 16px;
    height: 16px;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #b38b6d 50%);
}

.zoom-overlay {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.zoom-content {
    pointer-events: auto;
    background: #0f172a;
    color: #cbd5e1;
    padding: 12px 20px;
    border: 2px solid #334155;
    border-radius: 4px;
    box-shadow: 0 4px 0px #000;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zoom-content b {
    color: #7dff7d;
}

.zoom-content button {
    background: #334155;
    color: #7dff7d;
    border: 1px solid #7dff7d;
    padding: 4px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    transition: all 0.1s ease;
}

.zoom-content button:hover {
    background: #7dff7d;
    color: #0f172a;
    transform: translateY(-1px);
}

@keyframes borderPulse {
    0% { border-color: #334155; }
    50% { border-color: #7dff7d; }
    100% { border-color: #334155; }
}

.zoom-content {
    animation: borderPulse 2s infinite;
}

@media (max-width: 768px) {
    .mainPanel {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    #resizer {
        display: none;
    }

    .chatPanel, .sidePanel {
        flex: 1 1 auto !important;
        width: 100%;
        max-width: 100%;
        height: 500px;
        border-right: none;
        border-bottom: 2px solid #334155;
    }

    .topbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }

    .topbar .buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .topbar h1 {
        font-size: 16px;
        text-align: center;
    }

    .rarityRow {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .rarityBtn {
        padding: 12px 5px;
        font-size: 11px;
    }

    .zoom-content {
        width: 90%;
        font-size: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    input[type="number"], #msgInput {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body, html {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative;
    }

    .mainPanel {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 15px;
        display: block;
        box-sizing: border-box;
    }

    .chatPanel, .sidePanel {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        flex: none !important;
        margin: 0 0 15px 0;
    }

    .chatPanel {
        height: 300px;
    }

    #messages {
        height: 180px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .sidePanel {
        height: auto;
        padding: 12px;
    }

    .card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .topbar {
        height: auto;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .topbar .buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .rarityRow {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        width: 100%;
        box-sizing: border-box;
    }

    .rarityBtn {
        width: 100%;
        padding: 10px 2px;
        font-size: 10px;
        box-sizing: border-box;
    }

    input, #msgInput, #petalAmount, #luckPercent {
        font-size: 16px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #resizer {
        display: none !important;
    }

    .movable-window {
        width: 94vw !important;
        left: 3vw !important;
        top: 20px !important;
        position: fixed;
    }

    .zoom-overlay {
        width: 90%;
        top: 5px;
    }

    .zoom-content {
        width: 100%;
        padding: 8px;
        font-size: 11px;
        flex-direction: column;
        text-align: center;
        box-sizing: border-box;
    }
}

#resizer2 {
    width: 10px;
    cursor: col-resize;
    transition: background 0.2s;
    background: rgba(0,0,0,0.0);
}

#resizer2:hover {
    background: rgba(199, 122, 42, 0.5);
}

#resizer3 {
    width: 10px;
    cursor: col-resize;
    transition: background 0.2s;
    background: rgba(0,0,0,0.0);
}

#resizer3:hover {
    background: rgba(199, 122, 42, 0.5);
}
#runBatchBtn {
    background: #861FDE;
    border: 3px solid #6a18b1;
    color: white;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
}

#runBatchBtn:active {
    transform: scale(0.98);
}

#batchOutput {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    min-height: 60px;
}

@media (max-width: 768px) {
    #resizer2 {
        display: none !important;
    }
}

.batch-input-styled {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 10px;
    border: 3px solid #2a2a2a;
    background: #1c1c1c;
    color: white;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
}

#batchPanelWindow {
    display: none;
    flex-direction: column;
    min-width: 200px;
    background: rgba(46,46,46,0.3); 
    border-radius: 14px;
    border: 3px solid rgba(36,36,36,0.5);
    padding: 12px;
}

@keyframes wiggle {
    0%, 7% { transform: rotateZ(0); }
    15% { transform: rotateZ(-15deg); }
    20% { transform: rotateZ(10deg); }
    25% { transform: rotateZ(-10deg); }
    30% { transform: rotateZ(6deg); }
    35% { transform: rotateZ(-4deg); }
    40%, 100% { transform: rotateZ(0); }
}
.wiggle-animation { 
    animation: wiggle 2s linear infinite; 
}

button:hover, 
.authBox button:hover, 
.rarityBtn:hover, 
.discordBtn:hover, 
#runBatchBtn:hover,
.settingsBtn:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

button:active, 
.authBox button:active, 
.rarityBtn:active, 
.discordBtn:active, 
#runBatchBtn:active,
.settingsBtn:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

#settingsBtn {
    background: #666 !important;
    border: 3px solid #444 !important;
    color: white !important;
    -webkit-text-stroke: 2px black;
}

#settingsBtn:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

#resizer2, #resizer3 {
    display: block !important;
    width: 10px;
    min-width: 10px;
    cursor: col-resize;
    background: rgba(0,0,0,0.1); 
    transition: background 0.2s;
    flex-shrink: 0;
}

#resizer2:hover, #resizer3:hover {
    background: rgba(199, 122, 42, 0.5);
}


.mainPanel {
    gap: 0;
}

#xpPanelWindow {
    background: rgba(46,46,46,0.3); 
    border-radius: 14px;
    border: 3px solid rgba(36,36,36,0.5);
    padding: 12px;
}

/* mobs.css */

.mainPanel {
    overflow-y: auto;
}

.mobContainer {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding-bottom: 40px;
}

.mobCard {
    background: rgba(46,46,46,0.45);
    border: 3px solid rgba(36,36,36,0.7);
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.12s ease;
    backdrop-filter: blur(2px);
}

.mobCard:hover {
    transform: scale(1.02);
}

.mobImageWrapper {
    width: 100%;
    height: 140px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    margin-bottom: 12px;
}

.mobImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.mobPlaceholder {
    width: 80px;
    height: 80px;
    opacity: 0.15;
    border: 3px dashed white;
    border-radius: 12px;
}

.mobName {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
    word-break: break-word;
}

.mobKills {
    text-align: center;
    font-size: 18px;
    color: #ffd49e;
}

#searchInput {
    width: 280px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 3px solid rgba(0,0,0,0.4);
    background: rgba(46,46,46,0.5);
    color: white;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
}

#searchInput::placeholder {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .mobContainer {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    #searchInput {
        width: 100%;
    }

    .buttons {
        width: 100%;
    }
}

.watermark {
    position: fixed;
    bottom: 14px;
    right: 18px;

    font-size: 18px;
    opacity: 0.18;

    color: white;

    pointer-events: none;
    user-select: none;

    z-index: 9999;
}
