body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Modal styles */
.gift-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
    z-index: 1000;
}
.gift-modal-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.gift-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}
.gift-item {
    text-align: center;
    margin: 10px;
}
.gift-item img {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

/* Overlay styles */
.gift-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.gift-overlay img {
    width: 100%;
    height: 100%;
}

.chat-room {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Background gradient or image */
.chat-room::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
    background: url('/assets/chatrooms/background-1.jpg') no-repeat center center;
    filter: brightness(0.5);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.header {
    background: rgba(0, 0, 0, 0.3); /* Transparent background with slight black tint */
    padding: 10px 20px; /* Add more padding for spacing */
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: white; /* White text for contrast */
    position: fixed; /* Fixes the header at the top */
    top: 0; /* Position at the top */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure it stays on top */
    backdrop-filter: blur(10px); /* Optional blur effect behind */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow to add depth */
    
    /* Text outline effect (optional) */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5); /* Subtle stroke */
    text-stroke: 1px rgba(0, 0, 0, 0.5); /* Standard */

    /* Text shadow for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Subtle shadow for contrast */
}

.room-info {
    padding-top:50px;
    position: relative;
    text-align: center;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.room-info .host-avatar {
    position: relative;
    width: 50px; /* Adjust size as needed */
    height: 50px;
    margin-bottom: 5px;
    z-index: 1;
}

.room-info .host-avatar .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffd700; /* Gold color for the host */
    z-index: 1;
}

.room-info h2 {
    margin: 5px 0;
    font-size: 16px;
    color: #fff;

    /* Text shadow for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Shadow for contrast */
}

.room-info p {
    color: #888;
    font-size: 12px;
    /* Text shadow for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Shadow for contrast */
}

.room-info .sound-waves-1 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3); /* Golden glow */
    animation: pulse 1.5s infinite;
    z-index: -1;
}

/* Pulse animation for sound waves */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.room-info .sound-waves-2 {
    position: absolute;
    width: 100%;
    height: 4px;  /* Adjust height for line appearance */
    background: linear-gradient(to right, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0)); /* Golden color with fade */
    animation: pulseWave 1.5s infinite ease-in-out;
    z-index: -1;  /* Ensure it stays behind the avatar */
    border-radius: 2px;
}

.sound-wave-line:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: 0s;
}
.sound-wave-line:nth-child(2) {
    transform: rotate(45deg);
    animation-delay: 0.1s;
}
.sound-wave-line:nth-child(3) {
    transform: rotate(90deg);
    animation-delay: 0.2s;
}
.sound-wave-line:nth-child(4) {
    transform: rotate(135deg);
    animation-delay: 0.3s;
}
.sound-wave-line:nth-child(5) {
    transform: rotate(180deg);
    animation-delay: 0.4s;
}
.sound-wave-line:nth-child(6) {
    transform: rotate(225deg);
    animation-delay: 0.5s;
}
.sound-wave-line:nth-child(7) {
    transform: rotate(270deg);
    animation-delay: 0.6s;
}
.sound-wave-line:nth-child(8) {
    transform: rotate(315deg);
    animation-delay: 0.7s;
}

@keyframes pulseWave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.user-slots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 15px;
}
.user-slot {
    text-align: center;
    font-size: 12px;
    width: 70px;
    height: 70px;
    position: relative;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.user-slot.my-seat {
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 3px;
}

.user-slot span {
    margin-top: 5px; /* Add some space between the image and text */
    
    font-color: #FFFFFF;
    color: #FFFFFF;

    /* Text shadow for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Shadow for contrast */
}
.user-slot img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.user-slot.empty {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #555;
}
.user-slot.empty span {
    position: absolute;
    font-size: 12px;
    color: #333;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);

    /* Text outline effect */
    -webkit-text-stroke: 1px white; /* Chrome, Safari */
    text-stroke: 1px white; /* Standard */
    
    /* Text shadow for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Shadow for contrast */

}

/* Dialog Styles */
.dialog {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.dialog-content h2 {
    margin-top: 0;
}

/* Left align the text in lists */
ul {
    text-align: left;
    padding-left: 20px;
}

.dialog-content button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

.dialog-content button:hover {
    background-color: #45a049;
}

.chat-history {
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    max-height: 250px;
}

.chat-history .message {
    margin-bottom: 5px;
}

.chat-history .message span {
    display: block;
    font-weight: bold;
}

.chat-history .message p {
    margin: 5px 0 0;
}

.message.gift {
    border: 2px solid gold;
    border-radius: 10px;
    padding: 8px;
    margin: 5px 0;
    background-color: #fff9e6; /* Light gold background */
    color: #333; /* Text color */
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* Glow effect */
}

.footer {
    background: rgba(0, 0, 0, 0);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    position: sticky;
    bottom: 0;
    width: 95%;
    z-index: 1;
}

.chat-box {
    flex: 1;
    position: relative;
}
.chat-box input {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}
.chat-box input:focus {
    border-color: #4caf50;
}
.button {
    padding: 10px 10px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}
.button:hover {
    background: #45a049;
}

/* User Profile Modal */
.user-profile-modal {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    width: 300px;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
}

.user-profile-modal .modal-content {
    position: relative;
}

.user-profile-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.user-profile-modal .user-info {
    text-align: center;
}

.user-profile-modal .user-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-profile-modal h2 {
    margin: 0;
    font-size: 20px;
}

.user-profile-modal p {
    margin: 5px 0;
    font-size: 14px;
}

.host-avatar .avatar-frame {
    position: absolute;
    top: -13px;
    left: -14px;
    width: 170%; /* Same size as the avatar */
    height: 170%;
    border-radius: 50%; /* Match the avatar's shape */
    z-index: 1;
    pointer-events: none; /* Ensure the frame doesn't interfere with interactions */
}

.user-slot .avatar-frame {
    position: absolute;
    top: -15px;
    width: 110%; /* Same size as the avatar */
    height: 110%;
    border-radius: 50%; /* Match the avatar's shape */
    z-index: 1;
    pointer-events: none; /* Ensure the frame doesn't interfere with interactions */
}