/* ゼロからのROS入門シリーズ 共通スタイル */

/* フォント設定 */
.reveal {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 42px;
    font-weight: normal;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
    text-transform: none;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 画像設定 */
.reveal img {
    border: none;
    box-shadow: none;
}

/* 画像とテキストの横並びレイアウト */
.slide-layout-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.image-section {
    flex: 0 0 50%;
    margin-right: 0%;
}

.text-section {
    flex: 0 0 50%;
    text-align: left;
}

.image-section img {
    width: 100%;
    height: auto;
}

/* コードとテキストの横並びレイアウト */
.slide-layout-code {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    gap: 2%;
}

.slide-layout-code-image {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    gap: 2%;
}

/* 画像とコードの横並びレイアウト */
.slide-layout-image-code {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    gap: 2%;
}

.slide-layout-image-code .image-section {
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-layout-image-code .code-section {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
}

.slide-layout-image-code .code-section pre {
    flex: 1;
    display: flex;
    align-items: center;
}

/* コードハイライト */
mark.code-highlight-blue {
    background-color: rgba(0, 123, 255, 0.4);
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
}

mark.code-highlight-red {
    background-color: rgba(220, 53, 69, 0.4);
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
}

mark.code-highlight-green {
    background-color: rgba(40, 167, 69, 0.4);
    color: inherit;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 複数画像レイアウト */
.image-section.dual-images {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    height: 100%;
    justify-content: space-between;
}

.image-section.dual-images img {
    width: 100% !important;
    height: auto !important;
    max-height: 60vh !important;
    object-fit: contain !important;
}

.image-with-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0;
}

.image-caption {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

/* テキストのみの横並びレイアウト */
.slide-layout-text {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    gap: 2%;
}

.slide-layout-text .text-column {
    flex: 0 0 48%;
    text-align: left;
}

/* コードセクション設定 */
.code-section {
    flex: 0 0 45%;
}

.text-section {
    flex: 0 0 50%;
    text-align: left;
}

.code-section pre {
    width: 100%;
    font-size: 0.35em;
    line-height: 1.0em;
    margin: 0;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
}

.code-section code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}