body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #16253D;
    color: #E0E0E0;
}

/* Persistent Bottom Sheet Style */
#bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #6aa0d9;
    /* 深いグレイッシュグリーン */
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#bottom-sheet.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#bottom-sheet.close {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

/* 投稿ボックスに落ち着いたテーマカラーを適用 */
.post-box {
    background-color: #16253D;
    /* 元の背景色 */
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-bottom: 2px solid #16253D;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Adjust images inside post boxes */
.post-box img {
    width: 100%;
    /* 横幅いっぱいに表示 */
    height: 300px;
    /* 高さは一律150px */
    object-fit: cover;
    /* 画像の領域を埋めるようにして、必要ならトリミング */
    border-radius: 12px;
    /* 角を丸くする */
    margin-top: 10px;
    /* 上部に少し間隔を設ける */
}

.custom-bg-blue {
    background-color: #6aa0d9;
    /* ボトムシートの背景色 */
}

.custom-submit-btn {
    background-color: #004085;
    /* Submitボタンの背景色 */
}

.custom-submit-btn:hover {
    background-color: #003366;
    /* Submitボタンのホバー時の背景色 */
}

/* Image preview styling */
#imagePreview {
    display: flex;
    justify-content: center;
    /* 画像を中央に配置 */
    align-items: center;
    /* 画像を縦中央に配置 */
    overflow: hidden;
    /* 領域を超える部分を隠す */
    height: calc(1.5 * 150px);
    /* 現在の高さの1.5倍、例として150pxを基準にして計算 */
    width: 100%;
    /* 横幅を領域いっぱいにする */
    border-radius: 8px;
    /* 角を少し丸く */
}

#imagePreview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* 横幅いっぱいにし、縦横比を保ちながら中心に合わせる */
    object-position: center;
    /* 画像の中心を基準に表示 */
}

/* Gratitude input text area styling */
#gratitudeInput {
    color: #2c3e50;
    /* 濃いグレー */
    background-color: #f0f4f8;
    /* 明るい背景色 */
    border: 1px solid #b0bec5;
    /* 薄めのグレーに変更 */
    border-radius: 6px;
    /* 角を少し丸めて柔らかい印象に */
}

/* Gratitude input text area styling */
#gratitudeInput {
    color: #2c3e50;
    /* 濃いグレー */
    background-color: #f0f4f8;
    /* 明るい背景色 */
    border: 1px solid #b0bec5;
    /* 薄めのグレーに変更 */
    border-radius: 6px;
    /* 角を少し丸めて柔らかい印象に */
}

/* Close Button Styling */
#closeButton {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
}