/* Customize the chat interface */
#chatBox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #2C5282;
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #F7FAFC;
    margin-bottom: 10px;
    margin-top: 10px;
}

.chat-unavailable {
    color: black;
    background-color: lightgrey;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 1.2em;
    width: 100%;
    box-sizing: border-box;
}

.userMessage, .gptResponse {
    color: #2d3748;
    background-color: #E2E8F0;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    max-width: 80%;
    word-wrap: break-word;
    align-self: flex-end;
    text-align: left;
}

.gptResponse {
    background-color: #CBD5E0;
    align-self: flex-start;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

#userInput {
    flex-grow: 1;
    margin-right: 10px;
    resize: none;
    overflow-y: auto;
    min-height: 38px;
    max-height: 114px;
    line-height: normal;
}

.chat-controls {
    display: flex;
    align-items: center;
}

#send-button {
    white-space: nowrap;
    background-color: green;
    color: white;
}

#send-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

#userInput:disabled {
    background-color: #f0f0f0;
    color: #a0a0a0;
}

.loading-message {
    font-style: italic;
    color: #888;
    animation: pulsate 1.5s ease-in-out infinite;
}

@keyframes pulsate {
    0% { background-color: #CBD5E0; }
    50% { background-color: #E2E8F0; }
    100% { background-color: #CBD5E0; }
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%; /* This ensures that the container takes up full width */
}

.left {
    flex: 1.5; /* Keeping it at 1.5 but let's adjust basis, grow, and shrink */
    flex-basis: 60%; /* Adjust this value to control initial width of .left */
    flex-grow: 1;
    flex-shrink: 1;
    padding: 2%;
    border: 1px solid black;
}

.right {
    flex-basis: 40%; /* Adjust this to control initial width of .right */
    flex-grow: 1;
    flex-shrink: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left, .right {
    height: 100vh;
}

.left iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chat-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.overlay-content {
    width: 80%;
    max-width: 1200px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
}

.overlay-message {
    display: none;
}

.blinking-cursor {
    font-weight: bold;
    color: black;
    animation: blinkingCursor 0.8s infinite;
}

@keyframes blinkingCursor {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
