* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, sans-serif;
    background-color: #123e59;
}

h1, h2 {
    text-align: center;
    color: #004080;
}
h2 {
    margin-top: 10px;
    margin-bottom: 20px;
}

nav {
    background-color: #004080;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav ul {
    display: flex;
    gap: 20px;
    }

nav ul li a {
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    }

nav ul li a:hover,
nav ul li a.active {
    background-color: #0066cc;
    }

header{
    background: #808080;
    padding: 20px;
    text-align: center;
}

footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px;
}


main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #f4faff;
    border-radius: 8px;
}

section {
    margin-bottom: 20px;
    padding: 40px;
    border-bottom: 1px solid #d9d9d9;
}

section:last-of-type {
    border-bottom: none;
}

p::first-letter {
    color: red;
}

table {
    margin-top: 50px;
    padding: 8px;
    border: 5px solid #004080;
}

th, td {
    padding: 8px;
    border: 1px solid #004080;
}



.obrazkitekst {
    margin-right: 20px;
    max-width: 250px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s;
    float: inline-start;
}

.zoom:hover {
    transform: scale(1.3);
    cursor: zoom-in;
}

.menu {
    list-style-type: none;
    display: flex;
}

.menu li {
    position: relative;
}

.menu li a {
    color: #fff;
    padding: 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}


.podmenu {
    list-style-type: none;
    position: absolute;
    background-color: #0066cc;
    display: none;
}

.podmenu li a {
    white-space: nowrap;
}

.wyswietlpodmenu:hover .podmenu {
    display: block;
}

.menu li a:hover {
    background-color: #0066cc;
}

.podmenu li a:hover {
    background-color: #005bb5;
}

.gora {
    float: right;
    margin-top: 40px;
}

.kolo {

    position: relative;
    animation: ruch 5s linear infinite;
}

@media only screen and (max-width: 700px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    main {
        width: 95%;
    }

    .obrazkitekst {
        max-width: 80%;
    }
}

@keyframes ruch {
    0% {
        transform: translateX(-50px);
    }

    50% {
        transform: translateX(calc(100vw - 50px));
    }

    100% {
        transform: translateX(-50px);
    }
}