/* ==========================================================================
   PC - identyczny jak Twój oryginał, nic nie zmienione
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes blood-pulse {
    0% { box-shadow: 0 0 15px red; }
    50% { box-shadow: 0 0 40px darkred; }
    100% { box-shadow: 0 0 15px red; }
}

body {
    background-image: url("niebo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #000;
    font-family: "Courier New", Courier, monospace;
    color: white;
    margin: 0;
    min-height: 100vh;
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.tekstgora {
    font-size: 30px;
    color: red;
    text-shadow: 2px 2px black;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.outer-box {
    width: 550px;
    height: 750px;
    background: black;
    border: 5px double #333;
    margin: 0 auto 40px auto;
    position: relative;
    overflow: hidden;
}

.customgff {
    width: 400px;
    height: auto;
    display: block;
}

.gif-holder {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.inner-box {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 520px;
    background: #4d0000;
    border: 2px solid #ff0000;
    padding: 10px;
    z-index: 2;
}

.gif-side {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.gif-sideright {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.customowe-gif {
    width: 300px;
    height: auto;
    filter: contrast(1.2) brightness(0.8) sepia(0.3);
    border: 1px solid #333;
}

.gif-downsite {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 100;
    opacity: 0.7;
}

.custom-gif {
    width: 88px;
    height: 31px;
    transition: 0.3s;
}

.custom-gif:hover {
    filter: none;
    transform: scale(1.1);
}

.gif-side p, .gif-sideright p {
    font-size: 12px;
    color: red;
    text-shadow: 2px 2px black;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    animation: glitch 0.2s infinite;
}

.pressure-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
    text-transform: none;
}

.pressuretop-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 40px;
    line-height: 1.4;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
    text-transform: none;
}


/* NAPRAWA DLA MOBILNYCH - WYMUSZENIE UKŁADU */
@media screen and (max-width: 768px) {
    /* Ustawiamy kontener główny jako zwykły blok */
    .outer-box {
        position: relative !important;
        margin: 20px auto !important;
        width: 90% !important;
        height: auto !important;
        min-height: 400px !important;
    }

    /* Ustawiamy wewnętrzny box z tekstem jako blok */
    .inner-box {
        position: relative !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }

    /* Wyłączamy absolutne pozycjonowanie dla gifów, żeby weszły w naturalny obieg */
    .gif-holder, .gif-side, .gif-sideright {
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
        display: block !important;
        margin: 10px auto !important;
    }
}
/* Ostateczne wymuszenie responsywności */
@media screen and (max-width: 768px) {
    /* Wymuszamy na iPhone, aby traktował boxy jako elastyczne */
    .outer-box, .inner-box, .gif-side, .gif-sideright {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        position: relative !important;
        float: none !important;
        display: block !important;
        height: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    /* Zapewniamy, że obrazki nie będą większe niż 90% ekranu */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}