* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: url('https://source.unsplash.com/1600x900/?forest,mushrooms') no-repeat center center/cover;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    text-align: center;
}

canvas { position: absolute; top: 0; left: 0; z-index: -1; }

h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0px 0px 20px lime;
    animation: pulse 2s infinite alternate;
    color: #CFDBFF;
}

p {
    font-size: 1.3em;
    margin-bottom: 5px;
    animation: fadeIn 2s ease-in-out;
    color: #000;
}

.index-container {
    width: 65%;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-in-out;

}

.dis-not {
    width: 90%;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-in-out;
    color: #000;
    line-height: 0.5;
}

.footer {
    color: #000;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Chat Layout */
.chat-layout {
    display: flex;
    width: 95%;
    height: 85vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Sidebar */
.user-sidebar {
    width: 20%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px 0 0 15px;
    overflow-y: auto;
}

.user-sidebar h2 {
    text-align: center;
}

.user-sidebar ul {
    list-style: none;
    padding: 0;
}

.user-sidebar li {
    padding: 5px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    margin: 5px 0;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.2);
}

/* Chat Box */
.chat-container {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-in-out;

}

.chat-header {
    font-size: 0.5em;
    color: #20003d
}

.form-group {

    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-in-out;
    color: #000;
}

#chat-box {
    width: 80%;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 5px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.25);
}

/* Messages */
#messages {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100%;
    padding: 10px;
    list-style: none;
}

/* Message Styling */
#messages li {
    padding: 5px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: black;
    border-radius: 4px;
    margin-bottom: 3px;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Input & Buttons */
.message-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

#message {
    flex-grow: 1;
    padding: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

button {
    padding: 8px 12px;
    font-size: 14px;
    margin-left: 15px;
    border-radius: 5px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: white;
    cursor: pointer;
}

