/* Ogólne style dla strony */
body {
    font-family: 'Annie Use Your Telescope', 'Arial', sans-serif;
    color: #2a3e5a; /* Ciemniejszy niebieski dla spójności */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: center; /* Wyśrodkowanie dla całego tekstu na stronie */
}

/* Ogólne style dla menu */
nav ul li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: block;
    color: #fff; /* Biały dla lepszej czytelności na banerze */
}

/* Styl dla tekstu w menu (np. Strona Główna) */
nav ul li a.menu-text {
    padding: 5px 10px;
}

/* Styl dla grafik w menu */
nav ul li a.menu-image img {
    width: 100px;
    height: auto;
    min-width: 100px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

nav ul li a.menu-image:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(2px 2px 6px rgba(255, 111, 97, 0.8));
}

/* Ukrycie "Strona Główna" na stronie głównej */
body.home .menu-item-home {
    display: none; /* Ukrywa link "Strona Główna" tylko na stronie głównej */
}

/* Nagłówek z grafiką w tle */
header {
    background-image: url('/wp-content/themes/skrzat-i-elf/assets/images/header-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 20px;
    text-align: center; /* Wyśrodkowanie tekstu w nagłówku */
    border-bottom: 3px solid #a3c9e0;
    position: relative;
    min-height: 200px;
    width: 100%;
    background-color: #f0f0f0;
box-sizing: border-box; /* Dodaj tę linię */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Nakładka dla lepszej czytelności (opcjonalna) */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Wyśrodkowanie menu poziomego */
    margin: 20px 0;
    text-align: center; /* Wyśrodkowanie tekstu w menu */
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

/* Podmenu */
nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #d6eaf8;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
    text-align: center; /* Wyśrodkowanie tekstu w podmenu */
}

nav ul li:hover > ul {
    display: block;
}

nav ul ul li {
    margin: 5px 0;
}

nav ul ul li a {
    color: #4a90e2;
    text-shadow: none;
    font-weight: bold;
}

nav ul ul li a:hover {
    color: #2a6db0; /* Ciemniejszy niebieski zamiast koralowego */
}

/* Style sklepu WooCommerce */
.woocommerce-shop, .woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Annie Use Your Telescope', 'Arial', sans-serif;
    text-align: center; /* Wyśrodkowanie tekstu w sklepie */
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center; /* Wyśrodkowanie w komórkach gridu */
}

.billing-details, .order-review {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    text-align: center; /* Wyśrodkowanie w sekcjach billing i order */
}

.game-banner {
    background: #4CAF50;
    color: #fff;
    text-align: center; /* Wyśrodkowanie tekstu i obrazu */
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

.game-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Wyśrodkowanie obrazu w banerze */
}

.game-widget {
    background: #f0f8e6;
    padding: 10px;
    border-radius: 5px;
    text-align: center; /* Wyśrodkowanie tekstu w widżecie */
    border: 2px dashed #d6eaf8;
}

.become-seller, .privacy-policy, .return-form, .terms {
    max-width: 600px;
    margin: 20px auto;
    text-align: center; /* Wyśrodkowanie tekstu w tych sekcjach */
}

.become-seller form, .return-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center; /* Wyśrodkowanie formularzy */
}

#cookie-notice {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #333;
    color: #fff;
    padding: 10px;
    text-align: center; /* Wyśrodkowanie tekstu w powiadomieniu */
    z-index: 1000;
}

#cookie-notice button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0 5px;
    text-align: center; /* Wyśrodkowanie tekstu w przyciskach */
}

#cookie-notice button:hover {
    background: #45a049;
}

/* Responsywność */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        text-align: center; /* Wyśrodkowanie w responsywnym widoku */
    }
    .game-banner {
        padding: 10px;
        text-align: center; /* Wyśrodkowanie w responsywnym widoku */
    }
    nav ul {
        flex-direction: column;
        text-align: center; /* Wyśrodkowanie w trybie mobilnym */
    }
    nav ul li {
        margin: 10px 0;
    }
    nav ul li a.menu-image img {
        width: 75px;
        margin: 0 auto; /* Wyśrodkowanie obrazków menu w trybie mobilnym */
    }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1A73E8; /* Jasnoniebieski kolor tła */
    color: #fff; /* Biały tekst */
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px; /* Lekko zaokrąglone rogi */
    transition: background-color 0.3s ease; /* Płynna zmiana koloru */
}

.btn:hover {
    background-color: #FF4500; /* Czerwony kolor przy najechaniu */
}
	
header h1 a {
    margin: 0;
    font-size: 2.5em; /* Z Twojego kodu, linia 64 */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    text-decoration: none; /* Usuwa podkreślenie linku */
}

header h1 a:hover {
    color: #ddd; /* Lekki efekt hover */
}
	
@media (max-width: 768px) {
    header h1 a {
        font-size: 1.5em; /* Mniejszy rozmiar na telefonie */
        white-space: nowrap; /* Zapobiega zawijaniu tekstu */
    }
}