/* =============================
   MODERN DARK ALT STYLE
============================= */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #1c1c1c, #2b2b2b);
    color: #e0e0e0;
    padding: 20px;
    line-height: 1.6;
}

/* Nagłówki */
h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffb347;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

h3 {
    color: #ff784f;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Paragrafy */
p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Obrazy */
img {
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.03);
}

/* Linki */
a {
    color: #fff;
    background: linear-gradient(90deg, #ff784f, #ffb347);
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    background: linear-gradient(90deg, #ffb347, #ff784f);
    transform: translateY(-2px);
}

/* Przycisk i submit */
button,
input[type="submit"] {
    background: linear-gradient(90deg, #ff784f, #ffb347);
    color: #1c1c1c;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(90deg, #ffb347, #ff784f);
    transform: translateY(-2px);
}


/* Listy */
aside ul, aside ol {
    text-align: center;
    padding-left: 0; /* usuwa wcięcie domyślne */
    list-style-position: inside; /* lista wewnątrz elementu, aby ładnie wyglądała */
}

/* Dodatkowe odstępy między elementami listy */
aside li {
    margin-bottom: 8px;
}

ul, ol {
    color: #e0e0e0;
    margin-left: 25px;
    margin-bottom: 15px;
	
}



/* Nawigacja */
nav p {
    text-align: center; /* wyśrodkowanie wszystkich linków */
    margin: 0;
    padding: 0;
}

p a {
    margin: 0 12px;
    font-weight: 600;
    color: #ffb347;
    transition: all 0.3s ease;
	
}

p a:hover {
    color: #ff784f;
    transform: translateY(-1px);
}

/* =============================
   WYŚRODKOWANIE CAŁEJ TREŚCI
============================= */

/* Wyśrodkowanie całego body */
body {
    display: flex;
    flex-direction: column;
    align-items: center; /* wyśrodkowanie poziome */
    text-align: center;  /* wyśrodkowanie tekstu */
}

/* Główne kontenery */
main {
    display: flex;
    flex-direction: column; /* kolumnowo, wszystko w centrum */
    align-items: center;
    width: 100%;
}

/* Artykuł i sidebar */
article, aside {
    display: flex;
    flex-direction: column;
    align-items: center; /* wyśrodkowanie treści w kolumnie */
    margin-bottom: 30px;
}

/* Sekcje w sidebarze */
aside section {
    margin-bottom: 20px;
}

/* Listy */
ul, ol {
    text-align: center;  /* wyśrodkowanie wszystkich list */
    padding-left: 0;
    list-style-position: inside;
}

/* Nawigacja */
nav p {
    text-align: center; /* wyśrodkowanie linków */
}

/* Przycisk */
button,
input[type="submit"] {
    display: block;
    margin: 20px auto; /* wyśrodkowanie przycisków */
}

/* Obrazy */
img {
    display: block;
    margin: 15px auto; /* wyśrodkowanie obrazów */
}
/* Responsywność */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h3 { font-size: 1.2rem; }
    img { width: 100%; height: auto; }
    form { padding: 20px; }
}
