body {
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    font-family: 'Courier New', Courier, monospace;
    color: #000;
}
h2 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}
button {
    padding: 10px 20px;
    background-color: #ddd;
    border: 2px solid #000;
    cursor: pointer;
}
button:hover {
    background-color: #bbb;
}
canvas, video {
    display: block;
    margin: 10px auto;
    border: 3px solid black;
}
#chatbox {
    border: 1px solid black;
    padding: 10px;
    height: 300px;
    background-color: white;
    overflow-y: scroll;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-family: inherit;
}
#cameraContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.cameraWrapper {
    position: relative;
    width: 640px;
    height: 480px;
}

#videoFeed, #overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 480px;
    border: 3px solid black;
}

#overlay {
    pointer-events: none;
    z-index: 2;
}

#message {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
}

#proceedButton {
    display: block;
    margin-top: 10px;
}

.chatbot-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #f0f0f0;
    border: 2px solid black;
    font-family: 'Courier New', monospace;
    z-index: 100;
}

#chatbotHeader {
    background-color: #ddd;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-bottom: 1px solid black;
}

.chatbot-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.hidden {
    max-height: 0;
    overflow: hidden;
    padding: 0;
}


#chatbox {
    border: 1px solid black;
    height: 150px;
    background-color: white;
    overflow-y: scroll;
    padding: 5px;
    font-size: 14px;
}

#userInput {
    padding: 4px;  /* Reduce padding */
    font-size: 14px;  /* Adjust text size */
    height: 25px;  /* Set a fixed smaller height */
    width: calc(100% - 20px); /* Ensures it doesn't overflow */
    border: 1px solid black;
    font-family: 'Courier New', monospace;
}

#sendMessageButton {
    padding: 5px;
    cursor: pointer;
}
.chatbot-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: black;
}

