body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: white;
    background-color: #007bff;
    padding: 10px 0;
    border-radius: 8px 8px 0 0;
    margin-top: 0;
}

.chat-box {
    overflow-y: scroll;
    max-height: 300px;
}

.message.sent, .message.received {
    margin-bottom: 10px;
    display: flex;
}

.message.sent .message-body, .message.received .message-body {
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.message.sent .message-body {
    background-color: #d6e6f5; /* 사용자가 보낸 메시지의 배경색 */
    margin-left: auto; /* 오른쪽 정렬 */
}

.message.received .message-body {
    background-color: #f2f2f2; /* 상대방이 보낸 메시지의 배경색 */
    margin-right: auto; /* 왼쪽 정렬 */
}


.message {
    margin-bottom: 10px;
}

.message-body {
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.input-box input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.input-box button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-box button:hover {
    background-color: #45a049;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-top: 20px; /* 이미지 위 여백 추가 */
}

.container {
    text-align: center; /* 컨테이너 안 요소들을 가운데 정렬 */
}

.birthdate-input, .birthtime-input {
    display: inline-block; /* 생년월일 입력란과 태어난 시간 입력란을 인라인 블록 요소로 변경 */
    margin-top: 20px; /* 위쪽 여백 추가 */
    text-align: left; /* 라벨과 입력 박스의 텍스트를 왼쪽 정렬 */
}

.birthdate-input label, .birthtime-input label {
    font-size: 18px;
    color: #333;
    margin-right: 10px;
    display: inline-block; /* 라벨을 인라인 블록 요소로 변경하여 줄 맞춤 */
    width: 100px; /* 라벨 너비 고정 */
}

.birthdate-input input[type="date"], .birthtime-input input[type="time"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    width: 200px; /* 입력 박스 너비 조정 */
}

.divider {
    border-top: 1px solid #ccc; /* 실선 추가 */
    margin-top: 20px; /* 위쪽 여백 추가 */
    margin-bottom: 20px; /* 아래쪽 여백 추가 */
}