﻿ /* Ensure the background image covers the full height and repeats */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;

}




/* Set the background image to repeat and overlay with 50% transparency */
/*body {
    background-image: url('/images/chat-background.png');
    background-size: auto;*/ /* Keep the original size of the image */
    /*background-repeat: repeat;*/ /* Repeat the image across the screen */
    /*background-position: top left;*/ /* Start repeating from the top left */
    /* Add a semi-transparent white overlay to achieve 50% transparency effect */
    /*background-color: rgba(255, 255, 255, 1.0);*/ /* White overlay with 50% opacity */
    /*background-blend-mode: lighten;  Blend the background image with the color */
/*}*/

/* Apply background only to the chat page */
.chat-page {
    background-image: url('/images/BubbleChatBackgroundSmall.jpg');
    background-size: auto;
    background-repeat: repeat;
    background-position: top left;
    background-color: rgba(255, 255, 255, 1.0);
    /*height: 100%;*/
    margin: 0;
    padding: 0;
}

/* Chat messages area */
#chat-messages {
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 15px;
    /*background-color: rgba(255, 255, 255, 0.5);*/ /* Light transparent background */
    height: calc(100vh - 150px); /* Full height minus input area */
    display: block;
    width: 100%; /* Ensure the container takes full width */
}

/* Add smaller font for the message timestamp and ensure it appears below the message */
.message-time {
    font-size: 0.9rem; /* Smaller font size for the timestamp */
    color: rgba(0, 0, 0, 1.); /* Gray color for the timestamp */
    display: block; /* Ensure it appears on a new line */
    margin-top: 5px; /* Space between message and timestamp */
}

/* Ensure messages are block elements to take up full width of their parent */
.message {
    display: block; /* Forces each message to be on its own row */
    width: 100%; /* Ensures the message takes up full width of the parent */
}

/* Messages from the current user (right aligned) */
.current-user-message {
    text-align: left;
    background: linear-gradient(to right, #007bff, #0056b3); /* Blue gradient for current user */
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto; /* Push to the right */
    margin-top: 10px;
    max-width: 80%; /*Limit message width to 80% */
    word-wrap: break-word;
    white-space: pre-wrap;
   /* display: inline-block;*/
    float: right; /* Align to the right */
    /*display: block;  Ensure it takes full width */
    clear: both; /* Clears any floating elements to prevent side-by-side display */
    font-size: 1.3rem; /* Increase font size */
    box-shadow: 5px 8px 8px rgba(0, 0, 0, 0.6); /* Add shadow */
    position: relative; /* Ensure the pseudo-elements are positioned relative to this */
    z-index: 10; /* Ensure the main bubble stays on top */
    overflow: visible; /* Allow pseudo-elements to be visible outside */
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: flex-end; /* Align all children to the right */
}

    .current-user-message::before,
    .current-user-message::after {
        content: '';
        position: absolute;
        background: linear-gradient(to right, #007bff, #0056b3); /* Same color as the main bubble */
        border-radius: 50%; /* Make it circular */
        box-shadow: 5px 8px 8px rgba(0, 0, 0, 0.3); /* Add shadow to match */
        border: 2px solid #0056b3; /* Add border around the bubble */
        z-index: -1; /* Ensure the pseudo-elements go behind the main bubble */
    }

    .current-user-message::before {
        width: 15px;
        height: 15px;
        bottom: 8px;
        right: -8px; /* Position it just outside the main bubble */
    }

    .current-user-message::after {
        width: 10px;
        height: 10px;
        bottom: 4px;
        right: -15px; /* Position it slightly further out for a cascading effect */
    }

/* Messages from other users (left aligned) */
.other-user-message {
    text-align: left;
    background: linear-gradient(to right, #e9ecef, #d6d8db); /* Light gray gradient for other users */
    color: black;
    padding: 10px;
    border-radius: 10px;
    margin-right: auto; /* Push to the left */
    margin-top: 10px;
    max-width: 80%; /*Limit message width to 80% */
    float: left; /* Align to the left */
    word-wrap: break-word;
    white-space: pre-wrap;
    display: inline-block;
    /*display: block;  Ensure it takes full width */
    clear: both; /* Clears any floating elements to prevent side-by-side display */
    font-size: 1.3rem; /* Increase font size */
    box-shadow: 5px 8px 8px rgba(0, 0, 0, 0.6); /* Add shadow */
    position: relative; /* Ensure the pseudo-elements are positioned relative to this */
    z-index: 10; /* Ensure the main bubble stays on top */
    overflow: visible; /* Allow pseudo-elements to be visible outside */
}
    .other-user-message::before,
    .other-user-message::after {
        content: '';
        position: absolute;
        background: linear-gradient(to right, #e9ecef, #d6d8db); /* Same color as the main bubble */
        border-radius: 50%; /* Make it circular */
        box-shadow: 5px 8px 8px rgba(0, 0, 0, 0.3); /* Add shadow to match */
        border: 2px solid #b0b3b5; /* Add border around the bubble */
        z-index: -1; /* Ensure the pseudo-elements go behind the main bubble */
    }

    .other-user-message::before {
        width: 15px;
        height: 15px;
        bottom: 8px;
        left: -8px; /* Position it just outside the main bubble */
    }

    .other-user-message::after {
        width: 10px;
        height: 10px;
        bottom: 4px;
        left: -15px; /* Position it slightly further out for a cascading effect */
    }

/* Add smaller font for the message timestamp and ensure it appears below the message */
.current-message-time {
    float:right;
    font-size: 0.8rem; /* Smaller font size for the timestamp */
    color: white; /* Gray color for the timestamp */
    display: block; /* Ensure it appears on a new line */
   /* margin-top: 5px;  Space between message and timestamp */
}

.other-message-time {
    font-size: 0.8rem; /* Smaller font size for the timestamp */
    color: black; /* Gray color for the timestamp */
    display: block; /* Ensure it appears on a new line */
    /* margin-top: 5px; Space between message and timestamp */
}

/* Input area */
#chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    padding: 10px;
    border-top: 1px solid #ddd;
    font-size: 1.2rem; /* Increase font size */
}

/* Style for the plus button to make it round */
#plus-button {
    width: 45px; /* Set the width */
    height: 45px; /* Set the height */
    border-radius: 50%; /* Makes the button round */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Adjust icon size */
    margin-right: 10px;
}

/* Style for the send button to make it round */
#send-button {
    width: 45px; /* Set the width */
    height: 45px; /* Set the height */
    border-radius: 50%; /* Makes the button round */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Adjust icon size */
    margin-left: 10px;
}


.icon-container {
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: flex-end; /* Align items to the right */
    gap: 10px; /* Even space between each icon */
}

.icon-item {
    display: flex;
    margin-left: 20px;
    align-items: center; /* Center items inside each icon */
    justify-content: center;
}

.sync-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: green; /* Default color */
}

/* Color states */
.syncing {
    background-color: orange; /* Sync in progress */
}

.synced {
    background-color: green; /* Synced */
}


/* Style for the message image icon */
.message-image-icon {
    max-width: 100px; /* Limit the size of the icon */
    max-height: 100px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}


/* Modal styling for full image */
.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}



/* Logout button icon */
#logout-button {
    color: #dc3545; /* Red color */
    text-decoration: none;
    font-size: 1.5rem; /* Adjust the size of the icon */
    float:left;
}

    #logout-button:hover {
        color: #a71d2a; /* Darker red on hover */
    }

/* Settings button icon */
#settings-button {
    color: #6c757d; /* Grey color */
    text-decoration: none;
    font-size: 1.5rem; /* Adjust the size of the icon */
}

    #settings-button:hover {
        color: #343a40; /* Darker grey on hover */
    }

/* Bubbles button icon */
#bubbles-button {
    color: #0d6efd; /* Blue color */
    text-decoration: none;
    font-size: 1.5rem; /* Adjust the size of the icon */
}

    #bubbles-button:hover {
        color: #0a58ca; /* Darker blue on hover */
    }




/*image command zooming section*/
.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    touch-action: none; /* Prevent default touch actions like scrolling and pinch-zooming */
}

.full-image {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .full-image.zoomed {
        transform: scale(2); /* Adjust this value as needed for zoom level */
        cursor: zoom-out; /* Change cursor to indicate zoomed state */
    }


.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10000; /* Ensure the close button is above other modal elements */
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.enlarged-emoticon {
    font-size: 2em; /* Adjust as needed */
    line-height: 1.2;
}

.bubble-title {
    font-size: 18px;
    font-weight: bold;
    color: #0056b3;
    margin-left: 20px;
}



/*URL Stuff*/
/* URL Stuff */
.url-preview {
    text-decoration: none;
    display: inline-block; /* Prevent full-width block behavior, reducing space */
    margin: 5px; /* Reduce the margin around each tile */
}

.url-tile {
    width: 200px; /* Limit the tile width */
    max-width: 80%; /* Ensure responsiveness on smaller screens */
    background: linear-gradient(135deg, #4a4a4a, #1c1c1c);
    padding: 10px; /* Slightly reduce padding inside the tile */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .url-tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    }

.tile-image img {
    max-width: 50%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    margin-bottom: 5px; /* Slightly reduce space below the image */
}

.tile-title {
    font-size: 1.2rem; /* Adjust font size for compact view */
    font-weight: bold;
    margin: 5px 0; /* Reduce vertical margin */
    color: #ffffff;
}

.tile-description {
    font-size: 0.9rem; /* Slightly smaller text */
    color: #d1d1d1;
    margin: 5px 0; /* Reduce vertical margin */
}
