/* style.css */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* スクロール禁止 */
    height: 100%;
}

#container {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

#upload-section {
    flex: 0 0 auto; /* 固定高さ */
    padding: 1em;
    box-sizing: border-box;
}

#viewer {
    flex: 1 1 auto; /* 残りのスペースを占有 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

#tiffCanvas {
    flex: 1 1 auto; /* 画像が余白なく広がるよう設定 */
    width: 100%; /* 横幅を親要素に収める */
    height: calc(100% - 60px); /* ボタン領域を除いた高さ */
    object-fit: contain; /* アスペクト比を保持 */
    background-color: #f0f0f0; /* 背景色 */
}

#controls {
    flex: 0 0 auto; /* 固定高さ */
    width: 100%; /* 横幅を親要素に収める */
    text-align: center; /* ボタンを中央揃え */
    padding: 10px 0; /* 上下の余白 */
    background-color: #ffffff; /* ボタン背景色 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 上部の薄い影 */
    position: fixed; /* スマホ対応で固定 */
    bottom: 0;
}
