/* Styl popupu */


.download-icons img {
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease-in-out;
}

.download-icons img:hover {
    transform: scale(1.1);
}

/* NAZWA GRY */
.game-title {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* BANER */

.game-banner {

    position: relative;
    width: 70%;
    height: 70vh;
    margin: 0 auto;
    background: url('/wp-content/uploads/2024/12/Ghostly-Escape.webp') no-repeat center/cover;

}
/* Ikony IOS ANDROID */
.download-icons
{
    position: absolute;
        bottom: 10%;
        right: 10%;
        display: flex;
        gap: 10px;
}

/* Ikona informacji */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
}

.info-icon {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 40px;
    height: 40px;
    background: url('/wp-content/uploads/2024/12/info.webp') no-repeat center/cover;
    display: flex;
    align-items: center; 
    border-radius: 50%; /* Upewnij się, że przycisk pozostaje okrągły */
    animation: pulse 1.5s infinite ease-in-out; /* Stosuje animację pulsowania */
}


.info-icon:hover{

    background-color: white;
}


/* IOS / Android Ikony */

.download-icons {
    display: flex;
    gap: 15px; /* Odstęp między ikonami */
    justify-content: flex-end; /* Ustawienie pozycji w kontenerze */
    margin-top: 20px;
}

.download-icons a {
    display: inline-block;
    width: 170px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease; /* Animacja skalowania */
}

.download-icons a.ios-button {
    background-image: url('/wp-content/uploads/2024/12/IOSButton.webp');
}

.download-icons a.android-button {
    background-image: url('/wp-content/uploads/2024/12/android.webp');
}

/* Efekt hover */
.download-icons a:hover {
    transform: scale(1.1); /* Powiększa ikonę przy najechaniu */
}

/* Ukrywanie tekstu (dla dostępności) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* Ekrany poniżej 1024px */
@media (max-width: 1024px) {
    .game-banner {
        width: 90%; /* Zmniejszamy szerokość banera */
        height: 60vh; /* Dostosowujemy wysokość */
    }

    .game-title {
        font-size: 2.5rem; /* Zmniejszamy rozmiar tekstu */
        right: 10%; /* Dostosowujemy pozycję */
    }

    .info-icon {
        top: 5%; /* Przesuwamy wyżej */
        right: 5%; /* Przesuwamy bliżej */
    }

    .download-icons {
        bottom: 5%; /* Więcej miejsca nad ikonami */
        right: 5%;
    }

    .download-icons a {
        width: 120px;
        height: 80px; /* Zmniejszamy ikony */
    }
}

/* Ekrany poniżej 768px (tablety i telefony) */
@media (max-width: 768px) {
    .game-banner {
        height: 50vh; /* Jeszcze mniejsza wysokość */
    }

    .game-title {
        font-size: 2rem;
        right: 10%; /* Przesuwamy bliżej */
        top: 45%; /* Dostosowujemy pozycję pionową */
    }

    .info-icon {
        width: 30px;
        height: 30px;
        top: 5%; /* Jeszcze bliżej krawędzi */
        right: 5%;
    }

    .download-icons a {
        width: 100px;
        height: 70px; /* Mniejsze ikony na małych ekranach */
    }
}

/* Ekrany poniżej 480px (telefony) */
@media (max-width: 480px) {
    .game-banner {
        height: 40vh; /* Minimalna wysokość na telefonach */
    }

    .game-title {
        font-size: 1.5rem; /* Najmniejszy rozmiar tekstu */
        top: 40%; /* Dopasowanie pozycji */
    }

    .download-icons a {
        width: 80px;
        height: 60px; /* Najmniejsze ikony */
    }
}

/* ===== SINGLE BANNER ===== */

.single-app-banner {
    height: 160px; /* niski wąski baner */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.single-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

/* ===== SCREENSHOTS ===== */

.screenshot-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.screenshot-slide img {
    height: 220px;
    border-radius: 8px;
}

/* ===== TABS ===== */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #eee;
}

.tab-btn.active {
    background: #111;
    color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===== CERTIFICATES ===== */

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-item {
    padding: 10px 15px;
    border-radius: 6px;
    background: #f2f2f2;
    color: #000;
}

.single-app-banner .download-icons {
    left: 10%;
    right: auto;
}

/* Wyśrodkowanie sekcji CERTYFIKATY */
.app-certificates {
    text-align: center;
    padding: 80px 20px;
}

.app-certificates h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.app-certificates .cert-grid {
    display: flex;
    justify-content: center; /* wyśrodkowanie */
    flex-wrap: wrap;
    gap: 20px; /* odstęp między certyfikatami */
}

.app-certificates .cert-item {
    background: #f5f5f5; /* opcjonalnie delikatny kolor tła */
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 500;
}

/* Wyśrodkowanie przycisków regulaminu / polityki */
.app-docs .tabs {
    display: flex;
    justify-content: center; /* wyśrodkowanie przycisków */
    margin-bottom: 30px;
    gap: 15px; /* odstęp między przyciskami */
}

.app-docs .tab-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background: #0073e6;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.app-docs .tab-btn.active,
.app-docs .tab-btn:hover {
    background: #005bb5;
}