body {
    font-family: 'Arial', sans-serif;
    background-color: #222;
    color: #eee;
    display: flex;
    flex-direction: row;  /* Change to row to arrange containers horizontally */
    align-items: flex-start;  /* Align to the start of the flex container */
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.container1, .container2 {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 80px;  /* Added margin around the containers */
    display: flex;
    flex-direction: column;
    height: 80vh;  /* 높이를 뷰포트의 80%로 설정 */
    width: 50%; /* 두 컨테이너가 각각 화면의 절반을 차지하도록 설정 */
}


h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #FF6F61;
}

.chatBox {
    flex-grow: 1;  /* 채팅 박스가 남은 공간을 차지하도록 함 */
    overflow-y: auto;  /* 세로 스크롤을 활성화 */
    display: flex;
    flex-direction: column;
}

.message {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    max-width: 70%;
    width: fit-content;
}

.message.you {
    margin-left: auto;  /* 오른쪽으로 메시지를 밀어냄 */
    background-color: #FF6F61;
    color: #fff;
}

.message.translated {
    margin-right: auto;  /* 왼쪽으로 메시지를 밀어냄 */
    background-color: #444;
    color: #eee;
}

.input-area {
    display: flex;
    align-items: center;
    margin-bottom: 10px;  /* Added some margin between input areas */
    margin-top: auto;  /* 입력 영역을 아래로 밀어냄 */
}

input {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    outline: none;
    transition: box-shadow 0.2s;
}

input:focus {
    box-shadow: 0 0 5px #FF6F61;
}

button {
    background-color: #FF6F61;
    color: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #FF4F41;
}
