body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #74ebd5, #9face6, #ff9a9e, #fad0c4);
    background-size: 300% 300%;
    animation: moveBackground 15s infinite linear;
}

@keyframes moveBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.chat-container {
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-window {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chat-message {
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.sent {
    align-self: flex-end;
    background: rgba(0, 123, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-message:hover {
    transform: scale(1.05);
}

.chat-input {
    display: flex;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    outline: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-input input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 20px;
    background: rgba(0, 123, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.2s;
}

.chat-input button:hover {
    background: rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

.chat-parameters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: #666;
    gap: 10px; /* Prevent overlapping if text gets truncated */
}

.parameter {
    flex: 1; /* Ensures even distribution of space */
    overflow: scroll;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.parameter strong {
    color: #333;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 100px; /* Prevent long text from overflowing */
    overflow:scroll;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    cursor: help; /* Indicate that the text is interactive */
}

.parameter strong:hover::after {
    content: attr(data-fulltext); /* Display the full text */
    position: absolute;
    top: 120%; /* Show tooltip below the text */
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.parameter strong:hover::after {
    opacity: 1; /* Show tooltip on hover */
    pointer-events: auto;
}

/* Timer styles */
.corner-timer {
    position: fixed;
    bottom: 50%;
    right: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 15s forwards;
}

/* Animation for showing and hiding the timer */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}