/* Styl bazowy dla strony */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: auto;
    max-width: 1800px;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;

}
    a {
    color: #289DB9;
}


a:hover {
    color: #2FB9DB;
}

header {
    position: relative;
    padding-bottom: 20px;
}

header::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

hgroup h1 {
    font-size: 1.4em;
    line-height: 1em;
}

hgroup h2 {
    text-transform: uppercase;
    font-size: 0.8em;
    line-height: 1em;
}

img {
    float: left;
    margin: 20px 10px 10px 0px;
   
}

/* Kontener na wszystkie elementy strony */
.wrapper {
    width: 75%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Nagłówek */
header {
    background-color: white;
    padding: 10px;
    text-align: center;
    color: #3F5965;
    font-size: 2em;
}

/* Główna zawartość strony i panel boczny */
.main-content {
    display: flex;
    flex-grow: 1;
}

/* Główna zawartość */
.content {
    flex-basis: 70%;
    padding: 20px;
}

/* Panel boczny */
.sidebar {
    flex-basis: 30%;
    background-color: #e9ecef;
    padding: 20px;
    font-size: 1.3em;
}

.sidebar ul li {
    margin-bottom: 1em;
}

/* Stopka */
footer {
    background-color: #2c3e50;
    padding: 10px;
    text-align: center;
    color: white;
    font-size: 1em;
}

/* Media query dla urządzeń o szerokości ekranu mniejszej niż 768px */
@media screen and (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .content, .sidebar {
        flex-basis: auto;
        padding: 10px;
    }

    .wrapper {
        width: 95%;
    }

    img {
        float: none; /* Usunięcie właściwości float */
        margin: 20px auto; /* Wyśrodkowanie obrazka */
        display: block;
    }

    header, footer {
        padding: 5px;
    }
   
}

/* --- Stylizacja tabel --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    font-size: 1em;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table thead th {
    background-color: #f2f2f2;
    font-weight: bold;
}

table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

table tbody tr:hover {
    background-color: #f1f7ff;
}
