/* style.css (Complete Version) */

/* --- 1. ページ全体の基本スタイル --- */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    line-height: 1.6;
}

h1 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 0.5rem;
}

p {
    text-align: center;
    margin-top: 0;
    color: #5f6368;
}


/* --- 2. 操作パネルとなるカードUIのスタイル --- */
.card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 550px; /* カードの最大幅を少し広げました */
    text-align: center;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

input[type="file"] {
    margin-bottom: 20px;
    width: 100%;
}

button {
    background-color: #007bff;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* リサイズ用の幅・高さ入力欄のスタイル */
.settings {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.settings input[type="number"] {
    width: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}


/* --- 3. 結果表示エリアのスタイル --- */
#resultArea {
    margin-top: 30px;
    width: 100%;
}

#resultArea h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

/* 結果画像のスタイル (大きい画像もコンテナに収める) */
#resultArea img,
#resultArea canvas {
    max-width: 100%;
    height: auto;    /* 縦横比を維持 */
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}


/* --- 4. ダウンロードリンクのスタイル --- */
#downloadLink {
    display: inline-block;
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#downloadLink:hover {
    background-color: #218838;
}


/* --- 5. FFT用キャンバスレイアウトのスタイル --- */
.canvas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.canvas-container div {
    text-align: center;
    max-width: 100%;
}
