.slot {
    width: 40px;
    height: 40px;
    background: #8a8a8a;
    position: relative;
    border: 2px solid #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slot:hover {
    border-color: #c6c6c6;
    box-shadow: inset 0 0 6px rgba(255,255,255,0.4);
}

.mcui-item img {
    width: 32px;
    height: 32px;
}
.mcui-tooltip {
    display: none;
    position: absolute;
    background: #111;
    color: #fff;
    padding: 4px 6px;
    border: 1px solid #555;
    z-index: 2000;
    font-size: 12px;
    white-space: pre-line;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
}

#inventory {
    display: flex;
    justify-content: center;
    width: 100%;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(9, 40px);
    grid-template-rows: repeat(6, 40px);
    gap: 6px;
    width: fit-content;
    padding: 10px;
    background: #1a1a1a;
    border: 2px solid #555;
    margin: 0 auto; }
.watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    height: 65px; /* HEREEEEEEEE */
    width: 350px;
    background: url('https://assets.ppy.sh/user-profile-covers/9938020/c53c8d330ea57b8428ba877ac664601e692ac519e717836e62e5be7a17582a7c.png');
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    font-size: 12px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}
.watermark-left {
    position: fixed;
    bottom: 10px;
    left: 10px;
    height: 65px; /* HEREEEEEEEE */
    width: 262px;
    background: url('https://i.ibb.co/sdkCDzFD/q9pok1limzv71.jpg');
    background-size: cover;
    background-position: center -70px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    font-size: 12px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

.watermark-left-text {
    background: rgba(0, 0, 0, 0.7);     padding: 4px 10px;
    border-radius: 4px;
}

.watermark-text {
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 4px;
}
#bottom-bar {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 1000;
    height: 65px;
}

.watermark, .watermark-left {
    height: 65px;
    display: flex;
    align-items: center;
}

#scroller-container {
    flex: 1;
    height: 65px; /* HEREEEEEEEE */
    margin: 0 10px;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    background: #111;
    border: 2px solid #555; 
}


#scroller-track {
    display: flex;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

#scroller-track img {
    height: 100%;
    margin-right: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

#scroller-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-family: monospace;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    z-index:10;
}

#bg-settings {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

#bg-settings-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#bg-settings-btn:hover {
    background: white;
    transform: scale(1.1);
}

#bg-settings-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: #050203;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
}

#bg-settings-menu.hidden {
    display: none;
}

#bg-settings-menu label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #fff;
}

#bg-settings-menu select,
#bg-settings-menu input[type="text"] {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d2d;
    color: #fff;
}

#bg-custom-url {
    margin-top: 5px;
}

#bg-brightness {
    width: 100%;
    margin: 10px 0;
}