
/* ============================================================
   POLSKAELITA.PL
   GREEN DARK 1.8.41 TEST

   pe_forum_background.css v5.0

   PELNE TLO FORUM — 3 GRAFIKI

   1. header-bg.png
   2. pe_forum_boki_wzor_v3.webp
   3. footer-bg.png

   Bez repeat-y.
   Bez poziomych laczen.
   Z plynna zmiana gora / srodek / dol.

   ============================================================ */


/* ============================================================
   01. PODSTAWA STRONY
   ============================================================ */

html {
    min-height: 100%;
    background-color: #050b0b;
}

html body {
    position: relative;

    isolation: isolate;

    min-height: 100vh;

    margin: 0;

    background-color: #050b0b !important;

    /*
       SRODKOWE TLO

       Jeden obraz dopasowany do calej wysokosci
       strony, bez powtarzania budynkow i postaci.
    */

    background-image:
        url(/images/greendark/pe_forum_boki_wzor_v3.webp) !important;

    background-position:
        center top !important;

    background-repeat:
        no-repeat !important;

    background-size:
        100% 100% !important;

    background-attachment:
        scroll !important;
}


/* ============================================================
   02. GORA FORUM — HEADER
   ============================================================ */

html body::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: clamp(650px, 49.6875vw, 954px);

    z-index: 0;

    pointer-events: none;

    background-image:
        url(/images/greendark/header-bg.png);

    background-position:
        center top;

    background-repeat:
        no-repeat;

    background-size:
        100% 100%;

    /*
       Dol obrazu stopniowo znika,
       przechodzac w srodkowe tlo.
    */

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 60%,
            rgba(0, 0, 0, .95) 67%,
            rgba(0, 0, 0, .65) 78%,
            rgba(0, 0, 0, .20) 91%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 60%,
            rgba(0, 0, 0, .95) 67%,
            rgba(0, 0, 0, .65) 78%,
            rgba(0, 0, 0, .20) 91%,
            transparent 100%
        );
}


/* ============================================================
   03. DOL FORUM — FOOTER
   ============================================================ */

html body::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;
    right: 0;

    height: clamp(360px, 31.5625vw, 606px);

    z-index: 0;

    pointer-events: none;

    background-image:
        url(/images/greendark/footer-bg.png);

    background-position:
        center bottom;

    background-repeat:
        no-repeat;

    background-size:
        100% 100%;

    /*
       Gorna krawedz stopki jest przezroczysta.
       Grafika pojawia sie stopniowo przed koncem forum.
    */

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .15) 14%,
            rgba(0, 0, 0, .55) 35%,
            rgba(0, 0, 0, .90) 60%,
            #000 78%,
            #000 100%
        );

    mask-image:
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .15) 14%,
            rgba(0, 0, 0, .55) 35%,
            rgba(0, 0, 0, .90) 60%,
            #000 78%,
            #000 100%
        );
}


/* ============================================================
   04. ZAWARTOSC FORUM PONAD TLEM
   ============================================================ */

html body > header {
    position: relative;
    z-index: 3;
}

html body > main {
    position: relative;
    z-index: 2;
}

html body > footer {
    position: relative;
    z-index: 2;
}


/* ============================================================
   05. NIE ZMIENIAMY WYGLADU PANELI

   Nie nadpisujemy:

   - .wrapper
   - .stable
   - .tborder
   - .post
   - .sidebar
   - .partners
   - .slider
   - .pe-footer

   Wszystkie te elementy zachowuja swoje CSS.
   ============================================================ */


/* ============================================================
   06. TABLETY I MNIEJSZE MONITORY
   ============================================================ */

@media screen and (max-width: 1100px) {

    html body::before {
        height: 700px;

        background-size:
            auto 100%;

        background-position:
            60% top;
    }

    html body::after {
        height: 450px;

        background-size:
            auto 100%;

        background-position:
            center bottom;
    }

}


/* ============================================================
   07. TELEFONY
   ============================================================ */

@media screen and (max-width: 700px) {

    html body {
        background-position:
            center top !important;

        background-repeat:
            no-repeat !important;

        background-size:
            100% 100% !important;
    }

    html body::before {
        height: 520px;

        background-size:
            auto 100%;

        background-position:
            64% top;
    }

    html body::after {
        height: 350px;

        background-size:
            auto 100%;

        background-position:
            center bottom;
    }

}


/* ============================================================
   KONIEC
   pe_forum_background.css v5.0
   POLSKAELITA.PL
   ============================================================ */
