/* Posun kotvy pro #pXXXX odkazy kvůli fixní hlavě */
[id^="p"] {
    scroll-margin-top: 45px; /* Výška fixní hlavičky */
}

/* Úplně tenký proužek úplně nahoře */
.above {
    background: #444547;
    background: -moz-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #444547), color-stop(100%, #2f2f31));
    background: -webkit-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -o-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -ms-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: linear-gradient(to bottom, #444547 0, #2f2f31 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444547', endColorstr='#2f2f31', GradientType=0);
    font-size: 13px;
    border-bottom: 0px solid #3399FF;
    height: 10px;
    display: block;
    -webkit-box-shadow: inset 0px 1px 0 #757575;
    -moz-box-shadow: inset 0px 1px 0 #757575;
    box-shadow: inset 0px 1px 0 #757575;
    margin: auto;
}

/* box okolo searchu v headeru */
.searchback {
    /* background-color: #005896; */
    padding: 14px;
    -webkit-box-shadow: inset 0px 1px 0 #004474, 0 0 1px #33a0ed;
    -moz-box-shadow: inset 0px 1px 0 #004474, 0 0 1px #33a0ed;
    box-shadow: inset 0px 0px 0 #004474, 0 0px 0 #33a0ed;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    text-shadow: 0px 1px 0px #004474;
}

/* hlavní obsah panelu pod hlavičkou */
div#content {
    background: #fff;
    padding: 10px 10px;
    -moz-border-radius-bottomright: 4px;
    border-bottom-right-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-left-radius: 4px;
    -webkit-box-shadow: 0 5px 9px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 5px 9px rgba(0,0,0,0.1);
    box-shadow: 0 5px 9px rgba(0,0,0,0.1);
}

/* horní tmavá lišta s menu (FAQ, Kontaktujte nás...) */
.nav-main {
    background: #444547;
    background: -moz-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #444547), color-stop(100%, #2f2f31));
    background: -webkit-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -o-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -ms-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: linear-gradient(to bottom, #444547 0, #2f2f31 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444547', endColorstr='#2f2f31', GradientType=0);
    font-size: 11px;
    border: 1px solid #000;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 4px 9px 4px 9px;
    -webkit-box-shadow: inset 0px 1px 0 #757575;
    -moz-box-shadow: inset 0px 1px 0 #757575;
    box-shadow: inset 0px 1px 0 #757575;
    position: sticky;
    top: 0px;
    z-index: 10;
}
@media (max-width: 700px) {
    .nav-main {
        position: sticky;
        top: 0px;
        z-index: 10;
    }
}

ul#nav-breadcrumbs {
    background-color: #f8f8f8;
    padding: 5px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    border: 1px solid #E6E6E6;
    -webkit-box-shadow: inset 0px 1px 0 #FFF;
    -moz-box-shadow: inset 0px 1px 0 #FFF;
    box-shadow: inset 0px 1px 0 #FFF;
    text-shadow: 0px 1px 1px #FFFFFF;
    margin-top: 15px;
}

ul#nav-main li a {
    color: #ccc;
    text-shadow: 0px 1px 1px #000;
}
ul#nav-main li a:hover {
    color: #FFFFFF;
    text-shadow: 0px 1px 1px #000;
}

/* titulek sekcí typu "Statistiky" apod. */
.stats {
    background: #444547;
    background: -moz-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #444547), color-stop(100%, #2f2f31));
    background: -webkit-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -o-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -ms-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: linear-gradient(to bottom, #444547 0, #2f2f31 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444547', endColorstr='#2f2f31', GradientType=0);
    border-top: 1px solid black;
    text-shadow: 0px 1px 0px #000;
    -moz-border-radius: 4px 4px 0 0;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    border-radius: 4px 4px 0 0;
    -webkit-box-shadow: inset 0px 1px 0 #757575;
    -moz-box-shadow: inset 0px 1px 0 #757575;
    box-shadow: inset 0px 1px 0 #757575;
    clear: both;
    font-weight: bold;
    margin-top: 20px;
    padding: 0px 6px 2px 15px;
    margin-bottom: -22px;
    position: relative;
    line-height: 4;
    color: #fff;
    font-size: 1.1em;
}
.stats a {
    color: #fff;
}
.statsblock {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    -moz-border-radius-bottomright: 4px;
    border-bottom-right-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-left-radius: 4px;
    margin-bottom: 4px;
    text-shadow: 0px 1px 0px #FFF;
    height: auto;
}

ul#nav-footer {
    background-color: #f8f8f8;
    padding: 5px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    border: 1px solid #E6E6E6;
    -webkit-box-shadow: inset 0px 1px 0 #FFF;
    -moz-box-shadow: inset 0px 1px 0 #FFF;
    box-shadow: inset 0px 1px 0 #FFF;
    text-shadow: 0px 1px 1px #FFFFFF;
}

button.button.button-search {
    border-color: #C7C3BF;
    background-color: #E9E9E9;
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #E9E9E9 100%);
    background-image: linear-gradient(to bottom, #FFFFFF 0%,#E9E9E9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#E9E9E9',GradientType=0 );
    box-shadow: 0 0 0 1px #FFFFFF inset;
    -webkit-box-shadow: 0 0 0 1px #FFFFFF inset;
    color: #D31141;
    line-height: 1.5;
}
a.button.button-search-end {
    background-color: #E9E9E9;
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #E9E9E9 100%);
    background-image: linear-gradient(to bottom, #FFFFFF 0%,#E9E9E9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#E9E9E9',GradientType=0 );
    box-shadow: 0 0 0 1px #FFFFFF inset;
    -webkit-box-shadow: 0 0 0 1px #FFFFFF inset;
    color: #D31141;
    line-height: 1.5;
    border-color: #C7C3BF;
}

.search-box {
    margin-top: 4px;
    margin-left: 5px;
}
.search-results li {
    color: #fff;
}
.search-results li:hover,
.search-results li.active {
    background-color: #eee;
    color: #000;
}

/* dropdown menučky u loginu apod. */
.dropdown-contents-cp {
    background: #ebebeb;
    box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
}
.dropdown-contents-cp {
    z-index: 2;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 3px;
    position: relative;
    max-height: 300px;
}
.dropdown-contents-scp {
    z-index: 2;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 3px;
    position: relative;
    max-height: 300px;
    background-color: #ebebeb;
    left: -90px;
}
.cp-pointer.pointer-inner {
    border-color: #ebebeb transparent;
}
.cp-pointer.pointer {
    border-color: #000000 transparent;
}

h4 {
    border-bottom: 1px solid #CCCCCC;
    color: #115098;
    margin-bottom: 3px;
}
h5 {
    margin-bottom: 26px;
    font-size: 1.7em;
    width: 68%;
    line-height: 1.2;
}

/* tlačítko "Nové téma" apod. */
a.postbutton {
    /* background: #444547; */
    background: #ECEDEE;
    background: -moz-linear-gradient(top, #ECEDEE 0, #cdcdcd 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ECEDEE), color-stop(100%, #cdcdcd));
    background: -webkit-linear-gradient(top, #ECEDEE 0, #cdcdcd 100%);
    background: -o-linear-gradient(top, #ECEDEE 0, #cdcdcd 100%);
    background: -ms-linear-gradient(top, #ECEDEE 0, #cdcdcd 100%);
    background: linear-gradient(to bottom, #ECEDEE 0, #cdcdcd 10%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ECEDEE', endColorstr='#cdcdcd', GradientType=0);
    -webkit-box-shadow: inset 0px 1px 0 #757575;
    -moz-box-shadow: inset 0px 1px 0 #757575;
    box-shadow: inset 0px 1px 0 #757575;
    color: #BC2A4D;
    float: left;
}
a.postbutton {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    font-family: "Open Sans", "Droid Sans", Verdana, Arial, Helvetica;
    line-height: 2;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
}
a.postbutton:hover {
    color: #BC2A4D;
}
.postbutton {
    color: #000;
    background-color: #FAFAFA;
    background-image: url("./images/bg_button.gif");
    border: 1px solid #666666;
    padding: 1px;
}

/* hlavičky panelů ve fóru */
.head {
    background: #444547;
    background: -moz-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #444547), color-stop(100%, #2f2f31));
    background: -webkit-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -o-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: -ms-linear-gradient(top, #444547 0, #2f2f31 100%);
    background: linear-gradient(to bottom, #444547 0, #2f2f31 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444547', endColorstr='#2f2f31', GradientType=0);
    border: 1px solid black;
    text-shadow: 0px 1px 0px #000;
    color: #fff !important;
    padding: 8px 6px 7px;
    font-size: 10px;
    -moz-border-radius: 4px 4px 0 0;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    border-radius: 4px 4px 0 0;
    -webkit-box-shadow: inset 0px 1px 0 #757575;
    -moz-box-shadow: inset 0px 1px 0 #757575;
    box-shadow: inset 0px 1px 0 #757575;
    font-weight: bold;
}

.postbuttons {
    border-color: #C7C3BF;
    background-color: #E9E9E9;
    background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #E9E9E9 100%);
    background-image: linear-gradient(to bottom, #FFFFFF 0%,#E9E9E9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#E9E9E9',GradientType=0 );
    box-shadow: 0 0 0 1px #FFFFFF inset;
    -webkit-box-shadow: 0 0 0 1px #FFFFFF inset;
    color: #D31141;
}

.panels {
    background-color: #f8f8f8;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #E6E6E6;
    margin-bottom: 5px;
    margin-top: 10px;
    margin-left: 5px;
}

li.row a {
    color: #444;
}

i.fa.fa-users {
    font-size: 25px;
    padding-right: 5px;
    padding-left: 5px;
    margin-top: 20px;
}
p.whois {
    margin-left: 40px;
    margin-top: -40px;
}
i.fa.fa-birthday-cake {
    font-size: 25px;
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 10px;
    padding-top: 10px;
}
p.bday {
    margin-left: 40px;
    margin-top: -30px;
}
p.statistics {
    margin-left: 40px;
    margin-top: -30px;
}
i.fa.fa-pie-chart {
    font-size: 25px;
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 10px;
    padding-top: 10px;
}
i.fa.fa-sign-in {
    font-size: 25px;
    padding: 0 8px;
    top: 7px;
    position: relative;
}
@media (max-width: 700px) {
    i.fa.fa-sign-in { top: 40px; }
}

/* layout těla stránky */
#page-body {
    float: left;
    width: 100%;
    margin-right: -260px;
}
#page-body-main {
    float: left;
    width: 75%;
    margin-right: -260px;
}
.page-body-inner {
    margin-right: 260px;
}
.sidebar {
    float: right;
    width: 250px;
}
#page-footer {
    clear: both;
}

@media (max-width: 1000px) {
    #page-body,
    .page-body-inner {
        width: auto;
        float: none;
        margin-right: 0;
    }
    .sidebar {
        margin: 0 auto;
        clear: both;
        float: none;
    }
}

@media (min-width:701px) and (max-width: 1024px) {
    .row .pagination {
        margin-top: 2px;
    }
}

/* mobilní úprava hran hlavičky */
@media (max-width: 700px) {
    .headerbar {
        border-bottom: none;
        box-shadow: none;
        -webkit-box-shadow: none;
    }
}

/* roztažení boxů na mobilu */
@media (max-width: 700px) {
    .forabg,
    .forumbg,
    .stats,
    .statsblock {
        margin: 0 -10px;
    }
}
@media (max-width: 700px) {
    .stats {
        margin: 0px -10px -21px -10px;
    }
}

/* tlačítka, inputy */
a.button1,
input.button1,
input.button3,
a.button2,
input.button2 {
    height: 28px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 3px;
    border-color: #AAAAAA !important;
}
textarea.inputbox {
    border-radius: 3px;
}
input {
    height: 22px;
    border-radius: 3px;
}
.inputbox {
    padding-left: 6px;
    padding-right: 6px;
}

a.postbutton {
    font-size: 11px !important;
    border-radius: 3px !important;
    -webkit-box-shadow: initial !important;
    -moz-box-shadow: initial !important;
    box-shadow: initial !important;
    border: solid 1px #AAAAAA !important;
}
.button {
    font-size: 11px;
    border-radius: 3px;
    -webkit-box-shadow: initial;
    -moz-box-shadow: initial;
    box-shadow: initial;
    /* height: 28px; */
}
.search-box .inputbox {
    height: 28px;
}
.search-box {
    margin-top: 0 !important;
    border-radius: 3px 0px 0px 3px;
}
.button-search-end {
    padding: 0px 5px;
}
.button.dropdown-trigger.dropdown-select {
    height: 22px;
    line-height: 21px;
    border: solid 1px #AAAAAA;
}
.button.button.button-search {
    height: 28px;
    border-radius: 0px;
}
a.button.button-search-end {
    line-height: 27px !important;
    height: 26px;
    border-radius: 0px 3px 3px 0px;
}
a.button.button-search-end2 {
    line-height: 27px !important;
    height: 22px;
    border-radius: 0px 3px 3px 0px;
}

.post-reputation.neutral {
    height: 24px;
    line-height: 21px;
    border: solid 1px #AAAAAA;
}
.post-reputation.positive {
    height: 24px;
    line-height: 21px;
    border: solid 1px #AAAAAA;
}
.post-reputation.negative {
    height: 24px;
    line-height: 21px;
    border: solid 1px #AAAAAA;
}

.button.button-icon-only {
    height: 22px !important;
    line-height: 22px;
    border: solid 1px #AAAAAA;
}
.action-bar .pagination .button {
    height: 22px;
}

/* Titulek témat ve výpisu */
h3.topictitle {
    display: inline;
    text-transform: none;
    border: none;
    background: transparent;
}

/* utilita pro čtečky */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===== Footer – přístupné tap-targety ===== */
#page-footer .copyright p.footer-row a[href*="phpbb"] {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
}
#page-footer .copyright .footer-row[role="menu"] {
    text-align: center;
    margin: 6px 0;
}
#page-footer .copyright .footer-row[role="menu"] a.footer-link {
    display: inline-block;
    padding: 8px 10px;  /* menší na desktopu */
    border-radius: 6px;
    text-decoration: none;
}
#page-footer .copyright .footer-row[role="menu"] a.footer-link:hover,
#page-footer .copyright p.footer-row a[href*="phpbb"]:hover {
    background: rgba(0,0,0,.05);
}
#page-footer .copyright .footer-row[role="menu"] a.footer-link:focus-visible,
#page-footer .copyright p.footer-row a[href*="phpbb"]:focus-visible {
    outline: 2px solid rgba(0,0,0,.28);
    outline-offset: 2px;
}

/* mobilní patička – větší tap-targety */
@media (max-width: 900px) {
    #page-footer .copyright .footer-row[role="menu"] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 12px;
    }
    #page-footer .copyright .footer-row[role="menu"] .footer-sep {
        display: none;
    }
    #page-footer .copyright .footer-row[role="menu"] a.footer-link {
        padding: 14px 16px;
        margin: 2px 0;
    }
    #page-footer .copyright p.footer-row a[href*="phpbb"] {
        padding: 12px 14px;
    }
}
/* duplicita kvůli některým šablonám, necháváme */
@media (max-width: 768px){
    .page-footer .copyright .footer-row[role="menu"]{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 6px;
    }
    .page-footer .copyright .footer-row[role="menu"] .footer-link{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 6px 12px;
        border-radius: 6px;
        text-decoration: none;
        line-height: 1.2;
    }
    .page-footer .copyright .footer-row[role="menu"] .footer-link:hover,
    .page-footer .copyright .footer-row[role="menu"] .footer-link:focus-visible{
        outline: 2px solid rgba(0,0,0,.15);
        outline-offset: 2px;
    }
}
@media (max-width: 768px){
    .page-footer .copyright .footer-row[role="menu"] .footer-sep{
        display:none;
    }
}

/* ===== Reklamní placeholdery (rezervace místa pro Adsense) ===== */

.ad-slot,
.phpbb-ads-banner,
#phpbb-ads-top,
.adsbygoogle {
    display: block;
    width: 100%;
    min-height: 120px; /* desktop 728x90 -> rezerva */
}
@media (max-width: 768px) {
    .ad-slot,
    .phpbb-ads-banner,
    #phpbb-ads-top,
    .adsbygoogle {
        min-height: 250px; /* mobilní 320x100/250 */
    }
}
#banner-top,
.ad-top,
.phpbb_ad_top {
    min-height: 120px;
}
#banner-top,
.phpbb-ads-banner,
.adsbygoogle {
    display: block;
    width: 100%;
    min-height: 120px;
}
@media (max-width: 768px) {
    #banner-top,
    .phpbb-ads-banner,
    .adsbygoogle {
        min-height: 250px;
    }
}

/* ===== Globální pozadí stránky přes body::before ===== */

html {
    background: transparent !important;
}
body{
    position: relative;
    isolation: isolate; /* aby ::before šlo "pod" obsah ale nepod html */
    background: transparent !important;
    color:#536482;
}
body::before{
    content:"";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            #000 0,
            rgba(0,0,0,.85) 40%,
            rgba(0,0,0,0) 100%
        ),
        url("/styles/mypower-new/theme/images/background.webp"),
        #000;
    background-size: auto, cover, auto;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center top, center top, center top;

    transform: translateZ(0);
}
@media (max-width: 1024px){
    body::before{ display:none; }
    html,
    body{ background:#000 !important; }
}

/* ===== Pagination styling ===== */

/* sjednocení vzhledu, tap-targetů, rámečků atd. */
.pagination,
.row .pagination{
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* základní box pro čísla stránek i šipky */
.pagination .button,
.pagination a,
.pagination span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;      /* >=24px kvůli PSI */
    padding: 0 6px;
    line-height: 1;
    border: 1px solid #B8B8B8;
    border-radius: 4px;
    background: #F5F5F5;
    color: #222;
    text-decoration: none;
    box-sizing: border-box;
}

/* hover / focus */
.pagination a:hover,
.pagination a:focus-visible{
    background: #E9E9E9;
    color: #111;
    border-color: #8C8C8C;
    outline: 2px solid transparent;
}

/* aktivní stránka (current) */
.pagination span.current,
.pagination .active > span{
    background: #2f2f31;
    color: #fff;
    border-color: #222;
    font-weight: 700;
}

/* šipky předchozí/další */
.pagination .arrow a{
    color: #000 !important;
    border: 1px solid #AAAAAA;
    border-radius: 4px;
}
.pagination .arrow a:hover,
.pagination .arrow a:focus{
    border-color: #888 !important;
}

/* jemně větší cíle na mobilu */
@media (max-width: 768px){
    .pagination,
    .row .pagination{
        gap: 6px;
    }
    .pagination .button,
    .pagination a,
    .pagination span,
    .row .pagination .button,
    .row .pagination a,
    .row .pagination span{
        min-width: 32px;
        min-height: 32px;
        padding: 0 8px;
    }
}
