body {
    margin: 0;
    height: 100vh;
    background-color: #0078d7;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    padding: 10px 10px 0;
    min-height: 100vh;
    align-items: center;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;

    background: url('img/background2.jpeg') no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.chat-container {
    flex: 1;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 150px;
}

.chat-window {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* width: 80%; */
    max-width: 600px;
    padding: 20px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    max-width: 92%;
    font-size: 18px;
}

.message.user {
    background-color: #ffffff;
    align-self: flex-end;
    border-radius: 6px;
    text-align: center;
    cursor: default;
}

.message.bot {
    align-self: flex-start;
}

.chat {
    min-height: 10px;
}

.user.chat {
    margin-left: 60px;
    border-radius: 20px 0 20px 20px;
    text-align: left;
}

.bot.chat {
    background-color: #cbceff;
    margin-right: 60px;
    align-self: flex-end;
    border-radius: 20px 20px 20px 0;
}

.input-container {
    background-color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px 15px 0 0;
}

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

.input-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    background: transparent;
    min-width: 50px;
}

.blue {
    padding: 10px 20px;
    background-color: #0078d7;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.quick-replies {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.quick-replies button {
    padding: 5px 10px;
    background-color: #3e63c2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    scale: 0.9;
}

.quick-replies .const {
    justify-content: flex-end;
    margin-left: auto;
}

.chat-window ibt {
    display: inline-block;
    padding: 0px 8px;
    background-color: #3e63c2;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0 2px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.chat-window ibt:hover {
    background-color: #2a4a8f;
}

.chat-window ibl {
    display: inline-block;
    padding: 2px 8px;
    background-color: #3e63c2;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0 2px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.chat-window ibl:hover {
    background-color: #2a4a8f;
}

.with-icon {
    position: relative;
    padding-right: 22px;
}

.with-icon::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c0 0 0 0 0 0s0 0 0 0s0 0 0 0c0 0 0 0 0 0l.3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: inherit;
}

.header {
    font-size: 30px;
}

.send-button.disabled {
    pointer-events: none;
    background: #474c58;
}

.send-button {
    user-select: none;
}

.tag-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    margin-right: 8px;
    cursor: default;
    user-select: none;
}

.tag-container.tag-hand {
    background: #e1d7ff;
    transition: transform 0.4s;
}

.tag {
    font-size: 14px;
    color: #333;
}

.close-tag {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    color: #999;
}

.close-tag:hover {
    color: #666;
}

.variable {
    display: flex;
}

.variable .blue {
    padding: 10px 10px;
}

.room-list .room {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 20px;
}

.trade {
    margin-bottom: 30px;
}

.trade .inner {
    display: flex;
    justify-content: space-between;
}

.right-panel {
    width: 50px;
    height: 100px;
    ;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    border-radius: 10px 0 0 10px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

.right-panel div {
    height: 50px;
    width: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-size: 100% 100% !important;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5001;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tag-container .tag {
    max-width: 17ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-container .items {
    max-height: 145px;
}