/* --- Podstawowe style (light mode) --- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
}

/* WYRÓŻNIONY AKAPIT */
wy {
    color: #000;
    background: #3fd35c;   /* zielone tło */
    padding: 4px 4px;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block; /* dopasuje się do 2 linii */
}

header {
    position: relative;
    padding: 20px;
    background-color: #000;
    text-align: center;
}


header h1 {
    margin: 0;
    background-color: #000;
}

nav {
    padding: 0;
    background-color: #000;
    display: flex;
    flex-wrap: wrap; /* pozwala linkom zawijać się w razie potrzeby */
}

nav a {
    margin-right: 10px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #000;                 /* czarny tekst */
    background-color: #3fd35c;  /* zielony przycisk */
    padding: 8px 14px;          /* wysokość i trochę szerokości */
    border-radius: 6px;         /* zaokrąglenie */
    display: inline-block;      /* szerokość wg tekstu */
    font-weight: bold;
    transition: 0.2s ease;
}

nav a:hover {
    background-color: #2fb94c;  /* ciemniejszy zielony */
    text-decoration: none;
}


main {
    /*padding: 20px;*/
    padding: 0;
    min-height: 400px; /* przykładowa wysokość */
}

footer {
  /*padding: 15px 20px; */
    background-color: #000;
    text-align: center;
}

/* Przycisk dark mode */
header button#darkModeToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Dark mode --- */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}


body.dark-mode header,
body.dark-mode footer {
    background-color: #000;
}

body.dark-mode nav {
    background-color: #2c2c2c;
}

body.dark-mode nav a {
    color: #000;
    background-color: #3fd35c;
}

body.dark-mode nav a:hover {
    background-color: #2fb94c;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
    color: #ffffff;
}

body.dark-mode a {
    color: #a0cfff;
}

body.dark-mode button#darkModeToggle {
    color: #f0f0f0;
}

/* === WSZYSTKIE LINKI JAKO ZIELONE PRZYCISKI === */
a {
    color: #000;
    background-color: #3fd35c;
    padding: 8px 14px;      /* trochę wyższe od tekstu */
    border-radius: 6px;
    display: inline-block; /* szerokość wg tekstu */
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

a:hover {
    background-color: #2fb94c;
    text-decoration: none;
}

/* dark mode – dalej zielone */
body.dark-mode a {
    color: #000;
    background-color: #3fd35c;
}

body.dark-mode a:hover {
    background-color: #2fb94c;
}

/* --- Menu pionowe na bardzo wąskich ekranach (telefony) --- */
@media screen and (max-width: 500px) {
    nav {
        flex-direction: column; /* pionowo */
        align-items: flex-start;
    }

    nav a {
        margin: 8px 0; /* odstęp między linkami */
    }
}

/* link wróć */
.header-link {
    position: absolute;
    left: ;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;

    background: #4CAF50;   /* ten sam zielony */
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;

    font-weight: bold;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;

    transition: background 0.2s, transform 0.2s;
}

.header-link:hover {
    background: #45a049;
    transform: translateY(-50%) translateX(-4px);
}