body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    background-image: url('barra.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    padding: 2px;
}

@keyframes flipAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(-1, 1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shineEffect {
    to {
        background-position: 200% 0;
    }
}

.logo-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('oro.jpg') black;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.shine {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: shineEffect 5s linear infinite;
}

.logo-image {
    width: 100px;
    height: auto;
    animation: flipAnimation 10s infinite, brightnessTransition 10s infinite;
    animation-delay: 5s;
}

@keyframes brightnessTransition {
    0% {
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5);
    }

    10% {
        box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.7);
    }

    20% {
        box-shadow: 0 0 15px 6px rgba(255, 255, 255, 0.9);
    }

    30% {
        box-shadow: 0 0 20px 8px rgba(255, 255, 255, 1);
    }

    40% {
        box-shadow: 0 0 25px 10px rgba(255, 255, 255, 1.2);
    }

    50% {
        box-shadow: 0 0 30px 12px rgba(255, 255, 255, 1.5);
    }

    60% {
        box-shadow: 0 0 25px 10px rgba(255, 255, 255, 1.2);
    }

    70% {
        box-shadow: 0 0 20px 8px rgba(255, 255, 255, 1);
    }

    80% {
        box-shadow: 0 0 15px 6px rgba(255, 255, 255, 0.9);
    }

    90% {
        box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.7);
    }

    100% {
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5);
    }
}

.navigation {
    position: relative;
    background: url('oro.jpg');
    background-size: 100% auto;
    padding: 0px;
    box-shadow: 0px 2px 10px rgba(200, 200, 200, 0.5);
    animation: brightnessTransition 20s infinite alternate;
    width: 100%;
    height: 100%;
    z-index: 1;
    z-index: 991;
}


@keyframes brightnessTransition {
    0% {
        filter: brightness(110%);
        background-position: 0% 0%;
    }

    10% {
        filter: brightness(115%);
        background-position: 25% 0%;
    }

    20% {
        filter: brightness(120%);
        background-position: 50% 25%;
    }

    30% {
        filter: brightness(130%);
        background-position: 75% 50%;
    }

    40% {
        filter: brightness(140%);
        background-position: 100% 75%;
    }

    50% {
        filter: brightness(150%);
        background-position: 100% 100%;
    }

    60% {
        filter: brightness(140%);
        background-position: 75% 100%;
    }

    70% {
        filter: brightness(130%);
        background-position: 50% 75%;
    }

    80% {
        filter: brightness(120%);
        background-position: 25% 50%;
    }

    90% {
        filter: brightness(115%);
        background-position: 0% 25%;
    }

    100% {
        filter: brightness(110%);
        background-position: 0% 0%;
    }
}

.navigation ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    z-index: 998;
}

.navigation li {
    position: relative;
    z-index: 999;
}

.navigation a {
    color: white;
    text-decoration: none;
    text-shadow: 0 0 6px black;
    font-weight: bold;
    -webkit-text-stroke: 0.5px black;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1001;
}

    .navigation a:hover {
        color: black;
        text-shadow: 0 0 8px white;
        -webkit-text-stroke: 0.1px black;
        transform: scale(1.5);
    }
    

#login-message {
    display: none;
    background-color: #4caf50;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

#container {
    display: flex;
    height: 100vh; 
}

#users-container {
    width: 20%; 
    max-width: 200px; 
    min-width: 150px; 
    overflow-y: auto; 
    background-color: #f9f9f9; 
    border-radius: 8px 0 0 8px; 
}

#chat-container {
    width: 80%;
    height: 80%;
    max-width: calc(100% - 20px);
    overflow-y: auto;
}

#chat-title {
    padding: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 8px 8px 0 0;
}

#chat-history {
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    margin-bottom: 120px; 
}

#input-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 90%;
    padding: 20px;
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    background-color: #fff;
    height: 100px;
    box-sizing: border-box;
}

#message-input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    font-size: 16px;
    line-height: 1.5;
}

#send-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

    #send-button:hover {
        background-color: #0056b3;
    }
.sender-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.user-message {
    text-align: left;
    background-color: #F5F5DC;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.response-message {
    text-align: left;
    background-color: #DCF8C6;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    margin-left: auto;
    margin-right: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 90%;
}
.sender-info, .message-date {
    display: inline-block; 
    vertical-align: middle; 
}

.sender-info.vendedor, .message-date {
    display: inline-block;
    vertical-align: middle;
}

.sender-info {
    text-align: left;
    font-weight: bold;
    margin-right: auto;
}

    .sender-info.vendedor {
        color: red;
        font-size: 12px;
    }

.message-date {
    text-align: right;
    font-weight: bold;
    float: right;
    font-size: 10px;
    margin-top: 13px;
}
.popup-image {
    max-width: 40%; 
    max-height: auto; 
    width: auto; 
    height: auto; 
    display: block; 
    margin-bottom: 10px; 
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
}