body, html {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0; /* Light grey background */
}

.chat-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* White background for the container */
}

.chat-box {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background: #e9eff1; /* Soft blue background */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sender-label {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 4px;
}

.message {
    position: relative;
    margin: 5px;
    padding: 10px;
    border-radius: 20px;
    color: white;
    max-width: 75%;
    display: flex;
    flex-direction: column;
}

.user {
    background-color: #f9e79f; /* Light pastel yellow */
    color: #4a4e69; /* Dark blue-gray for good contrast */
    margin-left: auto; /* Ensures alignment to the right */
    border-radius: 20px 20px 0 20px; /* Styled for right alignment */
}



.system {
    background-color: #00bcd4; /* Cyan for the system */
    margin-right: auto; /* Ensures alignment to the left */
    border-radius: 20px 20px 20px 0; /* Styled for left alignment */
}

.input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #cccccc;
}

.input-area input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #f4f4f4;
    color: #333;
}

.input-area button {
    padding: 10px 15px;
    font-size: 16px;
    color: #fff;
    background-color: #5cb85c; /* Green for the button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.input-area input:focus, .input-area button:focus {
    outline: none;
}

.input-area input:focus {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
}

.chat-title {
    padding: 10px 20px;
    text-align: center;
    background-color: #2ecc71; /* Lighter, softer green */
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-box {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background: #e9eff1; /* Soft blue background */
    border-radius: 0 0 8px 8px; /* Adjust to remove top rounding */
}

.intro-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-container img{
    width: 50%;
    min-width: 300px;
}

/* Styles for the loading screen */
#loadingScreen {
    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;
    color: white;
    z-index: 1000;
    font-size: 25px;
    text-align: center;
}

.hide {
    display: none;
}

.fa-spinner {
    font-size: 48px; /* Size of the spinner */
    color: #3498db; /* Color of the spinner */
}
