*{
    box-sizing: border-box;
}
.gemini-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 1px solid #aaa;
}
#searchBox {
    flex-grow: 1;         /* 残りの幅をすべて使う */
    border: none;         /* 本物の枠線を消す */
    background: transparent; /* 背景を透明にする */
    outline: none;        /* クリック時の青い線を消す */
    padding: 8px 0;
    font-size: 16px;      /* iPhoneでズームされないサイズ */
    line-height: 1.5;
    resize: none;
}
#main{
    padding-bottom: 250px;
}
/* ボタンやセレクトボックスの見た目を調整 */
#mode-select, #search {
    border: none;
    background: #fff;
    border-radius: 12px;
    padding: 4px 8px;
    margin-bottom: 4px; /* textareaの1行目と高さを合わせる微調整 */
}
#head{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;

}
#input-wrapper {
    display: flex;
    align-items: flex-end; /* 下揃え */
    width: 95%;
    max-width: 800px;
    background: #f0f0f0;  /* 枠内の背景色 */
    border: 1px solid #ddd;
    border-radius: 20px;   /* 角丸 */
    padding: 8px 12px;
    gap: 8px;
}
#setting-modal{
    display: none; /* 最初は隠す */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* 半透明の黒 */
    z-index: 1000; /* 入力バーより上に表示 */
}
#modal-content{
    background-color: white;
    margin: 20% auto; /* 上から20%の位置に表示 */
    padding: 20px;
    width: 80%;
    max-width: 300px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}