#messages {
    text-align: center;
    padding-bottom: 150px;
}

#messages .container {
    padding: var(--height-medium-large);
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    width: 100%;
    display: flex;
    margin-bottom: var(--height-medium);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.received {
    text-align: left;
    justify-content: flex-start;
}

.sent {
    text-align: right;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.content {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sent .content {
    text-align: right;
    align-items: flex-end;
}

.received .content {
    align-items: flex-start;
}

.message_content {
    margin-bottom: var(--height-small);
    width: auto;
    clear: both;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 12px 16px;
    max-width: 80%;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
}

.sent .message_content {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(0, 191, 255, 0.15));
    border-color: rgba(30, 144, 255, 0.3);
}

.received .message_content {
    background: linear-gradient(135deg, rgba(241, 68, 127, 0.15), rgba(255, 95, 168, 0.1));
    border-color: rgba(241, 68, 127, 0.3);
}

#textbox_container {
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#textbox {
    position: fixed;
    bottom: 20px;
    right: 0;
    min-width: calc(100vw - 800px);
    max-width: 70vw;
    width: calc(100vw - 250px);
    display: flex;
    gap: 8px;
    padding: 0 20px;
}

#textbox input[type=text] {
    width: calc(100% - 140px);
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
    margin: 0px;
    font-size: 16px;
    color: var(--text-light);
    padding: 0 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#textbox input[type=text]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

#textbox button {
    width: 120px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(241, 68, 127, 0.8), rgba(255, 95, 168, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-weight: bold;
    margin-left: 0px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#textbox button:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(0, 191, 255, 0.7));
    border-color: rgba(30, 144, 255, 0.4);
    box-shadow: 0 8px 32px rgba(30, 144, 255, 0.3);
}

.invite {
    display: flex;
    flex-flow: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 15px;
    float: left;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
}

.sent .invite {
    float: right;
}

.content .date {
    line-height: 70px;
    font-size: 12px;
    opacity: 0.7;
}

.invite .item {
    width: 300px;
    max-width: 50vw;
    margin-right: 15px;
    border-radius: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.invite .pf {
    height: 50px;
    width: 50px;
}

@media screen and (max-width: 1300px) {
    #messages .container {
        padding: var(--height-medium);
    }
}

@media screen and (max-width: 1000px) {
    .invite .secondary {
        display: block;
    }

    .invite .primary {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    #textbox {
        width: calc(100vw - 100px);
        min-width: none;
        max-width: none;
    }
    #textbox button {
        width: 80px;
    }
}

@media screen and (max-width: 700px) {
    .message .pf {
        display: none;
    }

    .message_content, .content {
        width: auto;
    }
}