/* Reset and font */
* { box-sizing: border-box; }

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    color: white;
    background-color: #000; /* optional fallback */
    background-image: url("https://mobs.ashish.top/dirt1.svg");
    background-repeat: repeat; /* repeats the image in both directions */
    background-size: 300px 300px; /* optional: size of each tile */
}

#authOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6); /* dark semi-transparent instead of white */
    z-index: 1000;
}

.authBox {
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
    border: 3px solid #ccc;
}

.authBox input {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #aaa;
    background: rgba(255,255,255,0.3);
    color: black;
}

.authBox button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #c77a2a;
    color: white;
    cursor: pointer;
}

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

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

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

/* BUTTONS */
.buttons {
    display: flex;
    gap: 10px;
}

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: 24px;
    height: 24px;
}

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

/* CHAT PANEL */
.chatPanel {
    flex: 2;
    display: flex;
    flex-direction: column;
    background: rgba(46,46,46,0.3); /* 30% opacity */
    border-radius: 14px;
    border: 3px solid rgba(36,36,36,0.5);
}

.chatPanel h2 { margin: 12px; }

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

/* SCROLLBAR */
#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 */
.message { margin-bottom: 6px; }
.name { color: #ffd49e; }

/* SEND BAR */
.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;
}

/* SIDE PANEL */
.sidePanel {
    flex: 1;
    background: rgba(46,46,46,0.3); /* semi-transparent */
    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;
}

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