/* ===================================================================
   ファイル名: led.css
   説明: 全画面表示で右向き90度(rotate)の文字を、枠内に表示して
         top/left 操作で連続スクロールさせるためのスタイル
   バージョン: 1.7.1
   最終更新日: 2025-09-22
   修正内容:
   - 速度0の静止表示用スタイル #disp_static を追加。
     transform を使用して、回転させた状態で上下左右中央に配置する。
   =================================================================== */

.controls button,
.template-button {
    /* ★★★ アイコンがきれいに見えるように調整 ★★★ */
    min-width: 40px; /* ボタンの最小幅を設定 */
    padding: 8px 10px; /* 横の余白を少し広げる */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    font-size: 14px; /* アイコンサイズの基準 */
    line-height: 1; /* アイコンの縦位置を中央に */
}
/* ★★★★★ 新しい改行ボタン用のスタイルを追加 ★★★★★ */
#line-break-toggle-btn {
    background-color: #6c757d; /* オフの時の色 (グレー) */
    border-bottom: 3px solid #5a6268;
}
#line-break-toggle-btn.active {
    background-color: #28a745; /* オン(アクティブ)の時の色 (グリーン) */
    border-bottom: 3px solid #218838;
}

#play-btn,
#font-decrease-btn,
#font-increase-btn {
    background-color: #007bff;
    border-bottom: 3px solid #0056b3;
}
#play-btn:hover, #font-decrease-btn:hover, #font-increase-btn:hover {
    background-color: #0069d9;
}
#play-btn:active, #font-decrease-btn:active, #font-increase-btn:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
    box-shadow: none;
}

#bg-color-btn, #text-color-btn {
    border-bottom: 3px solid #4a4e53;
}
#bg-color-btn:hover, #text-color-btn:hover { background-color: #5a6268; }
#bg-color-btn:active, #text-color-btn:active {
    transform: translateY(2px); border-bottom-width: 1px; box-shadow: none;
}

#font-size-display { display:inline-block; vertical-align:middle; padding:0 5px; color:#333; font-weight:bold; }

/* 全画面コンテナ */
#fullscreen-container {
    display: none;
    position: fixed;
    inset: 0;
    background-color: #000;
    z-index: 9999;
    overflow: hidden;
}

/* スクロール用トラック（JSが生成） */
#led-scroll-track {
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* 各テキスト要素（2つ）：
   - 見た目は rotate(90deg) で右向きに回転
   - 位置は JS で制御 */
/* 各テキスト要素： */
.led-item {
    position: absolute; /* JSで制御しやすくするため追加 */
    top: 0;
    left: 50%;
    /* ★★★★★ 修正箇所 ★★★★★ */
    transform-origin: center; /* 回転の中心を要素の中心に設定 */
    transform: translateX(-50%) rotate(90deg); /* 中央揃えと回転 */
    /* ★★★★★★★★★★★★★★★ */
    white-space: pre; /* 改行を維持 */
    font-family: monospace;
    letter-spacing: 2px;
    pointer-events: none;
    will-change: transform, top;
}

/* 既存の #fullscreen-text の初期色（JS上書きあり）*/
#fullscreen-text { color: #00ff00; }


/* ★★★ 以下を追記 ★★★ */
/* 速度0の静止表示用スタイル (IDで指定) */
#disp_static {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 回転の中心を要素自身の中心に設定 */
    transform-origin: center center;
    /* Y軸方向に-50%, X軸方向に-50%移動後、90度回転させることで中央揃えを実現 */
    transform: translate(-50%, -50%) rotate(90deg);
    white-space: pre;
    font-family: monospace;
    letter-spacing: 2px;
    pointer-events: none;
}