/* Resetowanie domyślnych ustawień przeglądarki */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* Nagłówek */
header {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

/* Nawigacja */
nav {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Sekcja Wstępu */

.intro h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.1em;
    color: #555;
}


.intro {
    display: flex; /* Ustawienie elementów obok siebie */
    align-items: center; /* Wyśrodkowanie w pionie */
    gap: 20px; /* Odstęp między tekstem a obrazkiem */
    text-align: center;
    padding: 50px 20px;
    background: #fff;
}

.intro .container {
    flex: 1; /* Tekst zajmie dostępne miejsce */
}

.image-container img {
    max-width: 100%; /* Obrazek nie przekroczy swojego kontenera */
    height: auto; /* Zachowanie proporcji */
}



/* Sekcja Funkcjonalności */
.features {
    background: #f0f0f0;
    padding: 50px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9em;
    color: #555;
}

/* Sekcja z animacją samochodu */
.car-animation {
    background: #ddd;
    padding: 20px 0;
    margin-top: 30px;
    overflow: hidden;
}

.road {
    width: 100%;
    height: 60px;
    background: #666;
    border-top: 5px solid #444;
    border-bottom: 5px solid #444;
    position: relative;
}

.car {
    font-size: 2.5em;
    position: absolute;
    top: 10px;
    left: -100px; /* Start poza ekranem */
    animation: drive 5s linear infinite;
    transform: scaleX(-1); /* Obrót samochodu w poziomie */
}

@keyframes drive {
    0% {
        left: -100px;
    }
    100% {
        left: 100%;
    }
}

/* Strona z artykułami */

/* Kontener główny */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 20px;
}

/* Menu boczne */
.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.sidebar-title {
    color: #0078D7; /* Zmieniamy kolor nagłówka */
    font-size: 1.5em;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px; /* Każdy temat zaczyna się od nowej linii */
}

.sidebar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block; /* Sprawia, że każdy temat zajmuje pełną szerokość */
}

.sidebar a:hover {
    color: #0078D7; /* Kolor tekstu po najechaniu */
}


/* Obszar treści */
.content {
    flex: 1;
    padding: 20px;
}

/* Artykuły */
.article {
    display: none;
}

.article h2 {
    margin-top: 0;
}

/* Pokazywanie aktywnego artykułu */
.article.active {
    display: block;
}

/* Stopka */
footer {
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

/* Zwiększenie rozmiaru ikon */
.fas {
    font-size: 30px;
    color: #0078D7;
    margin-right: 10px;
    vertical-align: middle;
}