/* 全体レイアウト */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #b6dff8;
    padding-top: 70px;
    padding-bottom: 50px;
}

/* チャットルームタイトル */
h1, h2, h3 {
    text-align: center;
    font-weight: 300;
}

/* チャットログのスタイル */
#chat-log {
    width: 60%;
    margin: 20px auto;
    padding: 10px;
    background: #252525;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

/* メッセージブロック */
.chat-message {
    padding: 10px;
    border-bottom: 1px solid #444;


}

/* 表情アイコン */
.expression-icon {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
}

/* ユーザー情報 */
strong {
    color: #f1f1f1;
}

.timestamp {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
}

/* メッセージ本文 */
p {
    margin: 5px 0;
    line-height: 1.5;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #b6dff8;
    text-decoration: none;
    margin: 0 10px;
}

/* メッセージ送信フォーム */
form {
    text-align: center;
    margin-top: 20px;
}

textarea {
    width: 60%;
    height: 80px;
    background: #333;
    color: #b6dff8;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 5px;
}

button {
    background-color: #444;
    color: #b6dff8;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #666;
}

.icon-list {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央寄せ */
    justify-content: center;
    gap: 10px;
    width: 100%; /* 親要素全体の幅を取る */
    margin: 0 auto; /* 横方向中央寄せ */
}


/* アイコン選択エリア */
.icon-list-container {
    display: flex;
    justify-content: center; /* 横方向の中央寄せ */
    align-items: center; /* 縦方向の中央寄せ */
    width: 100%; /* 親要素全体の幅を取る */
    margin: 0 auto; /* 横方向中央寄せ */
}

#icon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* アイコンを中央に配置 */
    gap: 10px;
}
.void{
    text-align: center;
}


#selected-icon-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

#selected-icon {
    width: 50px; /* アイコンのサイズ */
    height: 50px; /* アイコンのサイズ */
    object-fit: cover;
}

#icon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* アイコン間のスペース */
}

.icon-item {
    cursor: pointer;
    width: 50px; /* アイコンのサイズ */
    height: 50px; /* アイコンのサイズ */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.icon-item:hover {
    border-color: #007bff; /* ホバー時の境界線色 */
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アイコンが枠にぴったり収まるように */
}

p{
    text-align: center;
}