
/* =====================================================
   alice_law_v10.css
   Alice Law Version 10
   © Han Erim
===================================================== */

/* Değişkenler */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary-color: #007bff;
    --secondary-color: #333;
    --background-color: #ffffff;
    --border-color: #ddd;
}

/* Genel ayarlar */
body {
    margin: 0;
    padding: 0 20px 20px 20px; /* top right bottom left */
    font-family: "Times New Roman", Georgia, Garamond, serif; /* eski görünüm */
    font-size: 18px; /* eski görünüm */
    line-height: 1.2;
    background-color: #1814148f; /* eski görünüm (istersen) */
}


#wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2px;
    background-color: var(--background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#wrapper[data-page="960"]{
    max-width: 800px;
}

/* Banner */
#banner {
    position: relative;
    width: 100%;
    margin-bottom: 0px;
    text-align: center;
}

#banner img {
    max-width: 100%;
    height: auto;
    display: block;   /* ← boşluğu kaldırır */

}

/* Heading 1 – Ana bölüm başlıkları */
h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 0 0;
    color: #000;
    font-family: "Times New Roman", Georgia, Garamond, serif;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    color: #181818;
    font-family: "Times New Roman", Georgia, Garamond, serif;
}

h3 {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

h4 {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin: 0;
}

h5 {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    margin: 0;
}

h6 {
    font-size: 18px;
    text-align: center;
    margin: 0;
}
/* Genel metin satırı */
.text {
    margin: 10px auto;
    padding: 15px;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--secondary-color);
    overflow-wrap: break-word;
    /* Uzun kelimeleri kır */
    box-sizing: border-box;
    /* Padding'i genişlik hesaplamasına dahil et */
    position: relative; /* sadece referans olur, davranışı değiştirmez */
}

.text p {
    margin: 0;
    /* Paragraflar arası boşluğu sıfırla */
}

.text .image-layer {
    position: absolute;
}

/* Link alanı */
/* Linklerin bulunduğu div'in zemin rengini beyaz yap */
.link {
    background-color: #ffffff;
    /* Beyaz zemin rengi */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    /* İçerik boşluğu */
    /* Hafif köşe yuvarlama (isteğe bağlı) */
}

.link1 {
    text-align: center;
    /* Ortalanır */
    font-weight: bold;
    /* Daha belirgin */
    margin-bottom: 0px;
    /* Diğer bağlantılardan ayrılması için boşluk */
    margin-top: 0px;
}

/* Önceki ve Sonraki bağlantılar (sağdan 30px içeride) */
.link2 {
    text-align: left;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 0px;
    margin-top: 0px;

    /* Asılı girinti efekti */
    text-indent: -125px;
    /* İlk satır sola daha yakın */
    padding-left: 125px;
    /* Diğer satırlar biraz içeride başlar */
}


/* Genel bağlantı stilleri */
.link a {
    text-decoration: none;
    /* Alt çizgi yok */
    color: #0033FF;
    /* Lacivert renk */
    font-weight: bold;
    /* Kalın yazı */
}

/* Bağlantı hover efekti: Lacivert alt çizgili */
.link a:hover {
    text-decoration: underline;
    /* Üzerine gelindiğinde alt çizgi */
    color: #0033FF;
    /* Lacivert renk aynı kalır */
}

/* Footer */
.footer {
    /* Sayfa genişliğiyle uyumlu */
    width: 100%;
    /* Mobilde tam genişlik */
    margin: 0 auto;
    /* Ortalanır */
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    /* Metni ortalar */
    white-space: normal;
    /* Satır düzenini yalnızca footer içindeki <br> etiketleri belirler */
    overflow-wrap: break-word;
    /* Uzun kelimeleri kırar */
    line-height: 1;
    /* Satır aralığı */
    font-size: 12px;
    /* Yazı boyutu */
    color: #6c757d;
    /* Gri renk */


}

@media (max-width: 768px) {
  .advert-float-top { display: none !important; }


    body { padding: 0 5px 5px 5px; }  /* mobilde daha dar */

    .footer {
        padding: 10px;
        font-size: 10px;
        max-width: 100%;
    }
}


.footer a {
    color: #007bff;
    /* Linklere mavi renk */
    text-decoration: none;
    /* Alt çizgiyi kaldır */
}

.footer a:hover {
    text-decoration: underline;
    /* Hover sırasında alt çizgi ekle */
}

/* Paragraflar */
.text-content {
    color: var(--secondary-color);
    margin: 0;
}

/* Mobil uyum */
@media (max-width: 768px) {
    #wrapper {
        max-width: 100%;
        padding: 10px;
    }

    .text {
        margin: 0 10px;
        padding: 10px;
    }
}

.single-cell {
    border: 1px solid #000;
    /* 1px siyah kenarlık */
    margin: 0 auto;
    /* Tablonun yatayda ortalanması */
}

.single-cell td {
    padding: 10px;
    /* İçerik boşluğu */
}

.single-cell caption {
    caption-side: bottom;
    padding-top: 0.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

.normal {
    border: 1px solid black;
    /* Dış çerçeve */
    text-align: center;
    /* Yazıları yatay ortalama */
    margin: 0 auto;
    /* Sayfanın ortasına alma */
    padding: 10px;
    /* İç boşluk */
    border-collapse: collapse;
    /* Hücre kenarlarını birleştir */
    border-spacing: 0;
    /* Satır aralığını sıfır yap */
}

.normal th,
.normal td {
    border: 1px solid black;
}

.normal td {
    padding: 0px;
    /* Daha az boşluk */
    text-align: center;
    /* Yatay ortalama */
    vertical-align: middle;
    /* Dikey ortalama */
}

.normal caption {
    caption-side: bottom;
    padding-top: 0.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Kesir çizgilerini düzeltme */
.normal hr {
    border: none;
    border-top: 1px solid black;
    margin: 0;
    /* Tüm boşlukları sıfırla */
    padding: 0;
    /* İç boşlukları sıfırla */
    width: 100%;
    height: 1px;
    /* Çizgiyi inceltmek için */
    line-height: 1;
    /* Satır yüksekliğini minimuma indir */
}


/* Üstteki ve alttaki yazıları çizgiye yaklaştırma */
.normal tr:nth-child(1) td {
    padding-bottom: 2px;
    /* Üst yazıyı aşağı çek */
}

.normal tr:nth-child(3) td {
    padding-top: 2px;
    /* Alt yazıyı yukarı çek */
}

/* Paragraf yüksekliğini sıfırlama */
.normal p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.video-box {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
    /* ← kritik satır */
    box-sizing: border-box;
}

/* Video element */
.video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #fff;
}


/* Reklam resmi */
/* =========================
   ADVERT BASE (KAPALI + KAPANMA)
   ========================= */
.advert-float-top{
    position: fixed;
    left: 50%;
    bottom: 90px;
    top: auto;
    transform: translateX(-50%) translateY(-12px);
    z-index: 9999;
    max-width: 320px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* default: görünürlük kapanması da gecikmesiz */
    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        visibility 0s linear 1.2s;   /* 👈 hide olurken gecikmeli kapansın */
}

.advert-float-top.showMe{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);

    /* show olurken visibility hemen açılsın */
    transition:
        opacity 1.2s ease,
        transform 1.2s ease,
        visibility 0s linear 0s;     /* 👈 anında görünür */
}

/* hideMe zorunlu değil ama istersen kalsın */
.advert-float-top.hideMe{
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-12px);

    /* visibility'yi HEMEN kapatma; 1.2s sonra kapat */
    visibility: hidden;
}


/* Görsel */
.advert-float-top .advert-img{
    width: 100%;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.65);
    border-radius: 6px;
}


/* Close (X) */
.advert-close{ 
    position: absolute;
    top: 8px;
    right: 8px;

    width: 24px;          /* 22 → 26 */
    height: 24px;
    line-height: 22px;    /* optik merkez için */

    text-align: center;
    font-size: 20px;      /* aynı kalsın (X zaten okunaklı) */
    font-weight: bold;
    cursor: pointer;

    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 5px;   /* 4 → 5, çok hafif */

    user-select: none;

    box-shadow: 0 1px 3px rgba(0,0,0,0.25); /* çok hafif derinlik */
}

.advert-close:hover{
    background: rgba(255,255,255,1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}


.advert-button{
  box-sizing: border-box;
  line-height: 1;
  height: 30px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  /* FLASH BEVEL HİSSİ */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),  /* üst ışık */
    inset 0 -1px 0 rgba(0,0,0,0.35),       /* alt gölge */
    0 2px 4px rgba(0,0,0,0.25);             /* dış gölge (hafif) */

  transition: filter 0.15s ease;
}

.advert-button:hover{
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    filter: brightness(1.08);
}


.advert-link-text{
    position: absolute;      /* konum yine absolute ama left/top JS verecek */
    font-size: 11px;
    color: #666;
    background: rgba(255,255,255,0);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;         /* link olacaksa pointer */
    z-index: 22;             /* butondan üstte */
}
.advert-link-text:hover{
    background: #fff;
    text-decoration: underline;
}

.advert-link-text:hover{
    background: #fff;
    text-decoration: underline;
}

/* KALIN ve NET ÇERÇEVE – kesin görünür */
.advert-float-top {
  padding: 0px;                 /* border ile resim arasına boşluk */
  background: #ffffff;           /* boşluk beyaz olsun */
  border: 1px solid #a5a4a4;        /* kalın çerçeve */
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);  /* çerçeveyi de belirgin yapar */
}

/* resmin kendi radius’u çerçeveyle uyumlu kalsın */
.advert-float-top img{
  border-radius: 8px;
}


.openClose {
    overflow: hidden;
    max-height: 1150px;
    /* Yaklaşık 3 satır */
    position: relative;
    transition: max-height 0.4s ease;

    margin: 5px auto;
    padding: 5px;
    max-width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--secondary-color);
    overflow-wrap: break-word;
    box-sizing: border-box;

}

.openClose a {
    color: #045894;
    text-decoration: underline;
}

.openClose.expanded {
    max-height: 2000px;
    /* Açıldığında sınırı genişletiyoruz */
}

.toggle-button {
    display: inline-block;
    margin-top: 0px;
    margin-left: 20px;
    color: #b30202;
    font-weight: bold;
    cursor: pointer;
}

.news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    background: #fff;
}

.goto_news {
    text-align: left;
}

#web_push {
    text-align: right;
    white-space: nowrap;
}

figure,
figcaption {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

figcaption {
    text-align: left;
}

.chapter-figure {
    margin: 0 auto;
    text-align: center;
}

.chapter-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.chapter-figure figcaption {
    margin-top: 0.5rem;
}

.formula {
    text-align: center;
}

.formula img {
    max-width: 100%;
    height: auto;
}

.formula-with-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 4vw, 24px);
}

.formula-with-label img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 65%;
    height: auto;
}

.formula-with-label span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.formula math {
    font-size: 1.05em;
}

.law {
    font-weight: bold;
    text-align: center;
}

.objections {
    font-style: italic;
}

.text-flush-bottom {
    padding-bottom: 0;
}

.text-flush-bottom .chapter-figure:last-child,
.chapter-figure-flush {
    margin-bottom: 0;
}

.chapter-figure-flush {
    margin-top: 0;
}

.chapter-figure-flush figcaption {
    margin-top: 0;
}

.figure-1-1-image {
    width: 402px;
    height: 202px;
}

.figure-1-4-image {
    width: 800px;
    height: 230px;
}

.figure-1-5-image {
    width: 960px;
    height: 430px;
}

.font-normal {
    font-weight: normal;
}

.text-center {
    text-align: center;
}

.law-left {
    text-align: left;
}


/* MathML eşitlikleri */
.math-text {
    display: inline-block;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 1.05em;
    font-style: italic;
    white-space: nowrap;
    color: #111;
}

.math-text sub {
    font-size: 0.75em;
    font-style: normal;
    line-height: 0;
    vertical-align: -0.25em;
}

.math-text sup {
    font-size: 0.75em;
    font-style: normal;
    line-height: 0;
    vertical-align: 0.45em;
}
