
@media (min-width: 1000px) {
    /* more than 800px */
    .tools{
        flex: grow;
        width: 400px;
    }


    .tb1{
        display: none;
    }
    .tb2{
        display: block;
    }
}

@media (max-width: 999px) {
    /* less than 800px */
    .tools{
        display: none;
        width: 100%;
    }
    .toolcontent{
        width: 100%;
    }
    .tb1{
        display: block;
    }
    .tb2{
        display: none;
    }
    #footerholder{
        margin-bottom: 80px;
    }
}



.toolcontent{
    padding-bottom: 50px;
}


#showa{
    display: none;
}

.fnlpage {
    display: flex;

}

.fnltext {
    position: relative;
    text-align: left;

}

.tools {
    flex: 0 0 550px;
    height: calc(100vh);
    overflow: auto;
    position: sticky;
    top: 0px;
    transition: flex 0.25s;
    text-align: left;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #eee;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 95%, rgba(0,0,0,0));


}

.searchfilterx{
    
    flex: 0 0 275px;
    padding: 20px;
    flex: 0 0 500px;
    height: calc(100vh);
    overflow: auto;
    position: sticky;
    top: 0px;
    transition: flex 0.25s;
    text-align: left;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #eee;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 95%, rgba(0,0,0,0));


}

.styled-scrollbars {
    /* Foreground, Background */
    scrollbar-color: #bbb #eee;
}
.styled-scrollbars::-webkit-scrollbar {
    width: 10px; /* Mostly for vertical scrollbars */
    height: 10px; /* Mostly for horizontal scrollbars */
}
.styled-scrollbars::-webkit-scrollbar-thumb { /* Foreground */
    background: #bbb;
}
.styled-scrollbars::-webkit-scrollbar-track { /* Background */
    background: #eee;
}

.tb1{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.fnlinner{
    padding: 20px;
}

.fnltoolbox ul{
    background-color: #FFE6CC;
    /* align-content: center; */
    display: flex;
    list-style-type: none;
    margin: 0px ;
    /* padding: 0px 16px; */

}

.tb2 ul{
    flex-direction: row-reverse;
}
.fnltoolbox ul li{
    align-self: center;
    cursor: pointer;
    padding: 18px 10px 10px 10px;
    position: relative;
    top: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    margin-bottom: 1px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 10px 15px 10px 0;
    background-color: rgba(255,255,255,0.6);

}

.fnltoolbox ul li:hover {
    background-color: #FFD9B3;
}

#video, #giris{
    display: none;
}

#video iframe{
    width: 100%;
    aspect-ratio: 16 / 9;
}


.clearfix::after {
    content: "";
    clear: both;
    display: table;
}


.fnltext{
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
}

.notp{
    padding-bottom: 10px;
}

.notp em{
    font-style: normal;
    font-weight: bold;
    color: #555;
}



.advanced{
    vertical-align: bottom;
    height: 45px;
    width: 45px;
    display: inline-block;
    background-color: #fff;

}

.advanced input{
    display: block;
    width: 20px;
    height: 17px;
    position: absolute;
    margin: 0;
    cursor: pointer;

    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */

    -webkit-touch-callout: none;
}

.advanced a{
    padding: 14px 0 11px 12px;
    display: inline-block;
}


.advanced span{
    display: block;
    width: 20px;
    height: 3px;
    margin-bottom: 4px;
    position: relative;

    background: #cdcdcd;

    z-index: 1;

    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
        opacity 0.55s ease;
}

.advanced span:first-child{
    transform-origin: 0% 0%;
}
.advanced span:nth-last-child(2){
    transform-origin: 0% 100%;
}
.advanced input:checked ~ span{
    opacity: 1;
    transform: rotate(-45deg) translate(5px, -5px);
}
.advanced input:checked ~ span:nth-last-child(3){
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}
.advanced input:checked ~ span:nth-last-child(2){
    transform: rotate(45deg) translate(-4px, -7px);
}




#booklistdd{
    text-align: left;
    display: none;
    padding: 10px 50px 10px 20px;
    position: relative;
    background: rgb(204,204,204);
    background: linear-gradient(0deg, rgba(204,204,204,1) 82%, rgba(221,221,221,1) 100%);
    box-shadow: 0 6px 10px -4px rgba(0,0,0,.35);     /* shadow below only */
}

#chapterheads{
    max-height: calc(50vh);
    overflow: auto;
    text-align: left;
    display: none;
    padding: 10px 50px 10px 20px;
    line-height: 1.86;
    background: rgb(204,204,204);
    background: linear-gradient(0deg, rgba(204,204,204,1) 82%, rgba(221,221,221,1) 100%);
    box-shadow: 0 6px 10px -4px rgba(0,0,0,.35);     /* shadow below only */
}


.menuclose{
    font-size: 25px !important;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}


.verseheader{
    font-family: 'Oswald';
    color: #777;
    font-weight: 100;
    margin: 0;
    font-size: 31px;
    padding: 10px 0 0 0;
    line-height: 1;
}

#rehberbas{
    height: 300px;
    background-image: url(/assets/images/rehber.jpg);
    background-size: cover;
}

#rehber{
    padding-top: 40px;
}

.rrinner{
    padding: 0 20px 50px 20px;
}
#rehber p{
    font-size: 17px;
    line-height: 1.7;
}
#rehber h1{
    font-family: 'Oswald';
    color: #777;
    font-weight: 100;
    margin: 0;
    font-size: 31px;
    padding: 30px 0 0 0;
    line-height: 1;
}

#rehber h2{
    font-family: 'Oswald';
    color: #777;
    font-weight: 100;
    margin: 0;
    font-size: 25px;
    padding: 30px 0 10px 0;
    line-height: 1;    
}

#rehber h2:first-child{
    padding-top: 0;
}
#rehberright{
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background-color: #eee;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 95%, rgba(0,0,0,0));
    width: 400px;
    padding: 100px 0 0 0;
    text-align: left;
}

.nav{
    font-size: 13px;
    color: #777;
    font-weight: bold;
}

#rehberright p{
    padding: 5px 0 0 0;
    margin: 0;
}

#rehberright a{
    font-weight: normal;
}
#rehberright a.selected{
    font-weight: bold;
}

.fnlinner table {
    border-collapse: collapse;
    margin-bottom: 20px;
}
.fnlinner tr:nth-of-type(odd) {
    background: #eee;
}
.fnlinner td, .fnlinner th {
    padding: 6px;
    border: 1px solid #ccc;
    text-align: left;
    min-width: 180px;
    vertical-align: top;
}

/* Rehber maps/diagrams: "Tam ekran" button and full-screen viewer (main.js) */
.akkit-figure {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.akkit-tamekran {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}
.akkit-tamekran:hover {
    background: rgba(0, 0, 0, .85);
}
.akkit-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: #111;
}
.akkit-viewer-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #222;
    color: #fff;
    font-size: 15px;
}
.akkit-viewer-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.akkit-viewer-bar button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #444;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.akkit-viewer-bar button:hover {
    background: #666;
}
.akkit-viewer-area {
    position: relative;
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}
.akkit-viewer-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* margin: auto centres a pinched-down image without clipping a large one */
.akkit-viewer.zoomed .akkit-viewer-area {
    overflow: auto;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: grab;
    touch-action: pan-x pan-y;                /* pinch is handled in main.js */
}
.akkit-viewer.zoomed .akkit-viewer-area img {
    flex-shrink: 0;
    margin: auto;
    max-width: none;
    max-height: none;
}
body.akkit-viewer-open {
    overflow: hidden;
}

/* Video filling the content width at 16:9 (404 page) */
.video16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin-bottom: 30px;
}
.video16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Rehber main page: Konu Dizini and ABC Dizini at the top (makale.php) */
.rehber-dizinler {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 30px 0;
}
a.rehber-dizin {
    flex: 1 1 260px;
    display: block;
    padding: 18px 20px 18px 70px;
    position: relative;
    background: #f5f5f0;
    border-left: 5px solid #ff9933;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}
a.rehber-dizin:hover {
    background: #eeeee5;
}
a.rehber-dizin i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #ff9933;
}
a.rehber-dizin strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    font-size: 24px;
    line-height: 1.2;
}
a.rehber-dizin span {
    display: block;
    font-size: 15px;
    color: #666;
    font-weight: normal;
}

/* Konu Dizini (konu.php) */
.konu-harfler {
    font-size: 18px;
    line-height: 2;
    word-spacing: 6px;
}
ul.konu {
    margin: 4px 0 18px 0;
    padding-left: 20px;
}
ul.konu li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ABC Dizini (abc.php) */
.abc-kelimeler {
    line-height: 2;
}
.abc-ozet {
    color: #555;
}
.abc-ayetler h3 {
    margin: 18px 0 6px 0;
}
.abc-ayetler p {
    margin: 0 0 4px 0;
    line-height: 1.5;
}
.abc-ayetler p a {
    display: inline-block;
    min-width: 60px;
    font-weight: bold;
}
.abc-sayfalar {
    margin-top: 20px;
    line-height: 2;
    word-spacing: 4px;
}

/* "Kutsal Kitap Rehberi'nde" box above search results (fnRehberSearchBox) */
.rehberbulunan {
    background: #f5f5f0;
    border-left: 4px solid #ff9933;
    padding: 10px 15px;
    margin: 0 0 25px 0;
}
.rehberbulunan h3 {
    margin: 0 0 6px 0;
}
.rehberbulunan summary {                  /* the click-to-open heading (<details>) */
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    line-height: 1.4;
    color: #333;
}
.rehberbulunan summary span {
    color: #888;
    font-size: 85%;
}
.rehberbulunan summary:hover {
    color: #000;
}
.rehberbulunan[open] summary {
    margin-bottom: 8px;
}
.rehberbulunan ul {
    margin: 0;
    padding-left: 18px;
}
.rehberbulunan li {
    margin-bottom: 6px;
    line-height: 1.4;
}
.rehberbulunan li span {
    color: #888;
    font-size: 85%;
}
.rehberbulunan small {
    color: #666;
}

/* Tables rebuilt from the AKKİT PDFs (Rehber) */
.fnlinner table.akkit {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
}
.fnlinner table.akkit td, .fnlinner table.akkit th {
    min-width: 60px;
}
.fnlinner table.akkit th {
    background: #555;
    color: #fff;
    font-weight: bold;
}
.fnlinner table.akkit th.section {
    background: #ddd;
    color: #333;
}

/* Phones: wide Rehber tables become one card per row (main.js adds
   .akkit-cards and data-label); smaller tables keep scrolling sideways. */
@media (max-width: 700px) {
    .fnlinner table.akkit {
        font-size: 13px;
    }
    .fnlinner table.akkit-cards,
    .fnlinner table.akkit-cards tbody,
    .fnlinner table.akkit-cards tr,
    .fnlinner table.akkit-cards td,
    .fnlinner table.akkit-cards th.section {
        display: block;
        width: auto;
        min-width: 0;
    }
    .fnlinner table.akkit-cards tr:first-child {
        display: none;                          /* the column names are on each card */
    }
    .fnlinner table.akkit-cards tr {
        margin-bottom: 12px;
        border: 1px solid #ccc;
        background: #fff;
    }
    .fnlinner table.akkit-cards td {
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 6px 8px 6px 42%;
    }
    .fnlinner table.akkit-cards td::before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: calc(42% - 16px);
        font-weight: bold;
        color: #666;
    }
    .fnlinner table.akkit-cards td:first-child {   /* the row's name: card title */
        padding-left: 8px;
        font-weight: bold;
        background: #f3f3f3;
    }
    .fnlinner table.akkit-cards td:first-child::before,
    .fnlinner table.akkit-cards td:empty {
        display: none;
    }
    .fnlinner table.akkit-cards td::before {
        overflow-wrap: anywhere;                /* long column names wrap, never overlap */
    }
}

/* Tablets and phones: the Rehber sidebar goes under the article */
@media (max-width: 999px) {
    .fnlpage {
        flex-wrap: wrap;
    }
    .fnltext {
        flex: 1 1 100%;
        min-width: 0;
    }
    #rehberright {
        width: 100%;
        flex: 0 0 100%;
        padding-top: 30px;
        -webkit-mask-image: none;
    }
}
