body {
    margin: 0%;
    padding: 0%;
    display: flex;
    min-height: 100vh; /* Ustawienie minimalnej wysokości na 100% widoku (viewport height) */
    flex-direction: column;
}

h1 {
    font-size: 40px;
    font-family: 'DM Serif Display', serif;
    letter-spacing: 2px;
    text-align: center;
    margin: 0%;
    padding: 2%;
}

header {
    background-color: rgb(119, 116, 116);
    color: white;
    margin: 0px;
    padding: 20px;
}

ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}

@media screen and (max-width: 1024px) {
    ul {
        display: block;
    }
}

@media screen and (max-width: 1024px) {
    nav li {
        margin: 20px 0;
    }
}

@media screen and (max-width: 1024px) {
    nav li a {
        padding: 10px 20px;
    }
}


li {
    font-size: 22px;
    text-transform: uppercase;
    font-family: 'DM Serif Display', serif;
    letter-spacing: 1px;
    padding: 10px;
}

a:hover {
    background-color: white;
    color: rgb(119, 116, 116);
    border-radius: 10px;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: white;
    padding: 15px;
    font-size: 26px;
}

.focus {
    background-color: white;
    color: rgb(119, 116, 116);
    border-radius: 10px;
}

.focus li {
    list-style-type: none;
    padding: 15px;
}

.focus a {
    text-decoration: none;
    color: rgb(119, 116, 116);/* Kolor tekstu */
    padding: 10px;
}

h2 {
    text-transform: uppercase;
    font-size: 25px;
    text-align: center;
    margin: 60px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    word-spacing: 1px;
    font-family: 'DM Serif Display', serif;
}

p {
    font-size: 22px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    margin: 0 40px 60px;
}

@media screen and (max-width: 1024px) {
    p {
        margin: 0 20px 40px;
    }
}

.menudrugie ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
    flex-wrap: wrap;
    margin: 0;
}

.menudrugie p {
    margin: 0;
}

.menudrugie li {
    padding: 0;
}

@media screen and (max-width: 1200px) {
    .menudrugie {
        flex-direction: column;
    }
}

@media screen and (max-width: 640px) {
    .menudrugie ul {
        margin: 0
    }
}


.menudrugie ul li {
    flex: 1; /* Równa szerokość dla wszystkich elementów li */
    text-align: center; /* Wyśrodkuj tekst w li */
    flex-basis: 33%;
    padding: 0 15px;
}

.menudrugie ul li p {
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
    text-transform: none;
}

.menudrugie {
    border-top: 2px solid rgb(119, 116, 116);/* Dodaj ramkę */
    padding: 2px; /* Dodaj wypełnienie wewnątrz ramki */
    flex: 1;
    margin: 0 20px 40px;
}

.menudrugie h3 {
    margin: 60px 0;
    font-family: 'DM Serif Display', serif;
}

.last {
    border-top: 2px solid rgb(119, 116, 116);/* Dodaj ramkę */
    padding-top: 60px;
}

.experts {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 20px 0;
    gap: 20px;

}

@media screen and (max-width: 640px) {
    .experts {
        flex-direction: column;
    }
}

.expert {
    text-align: center;
    position: relative; /* Dodane dla pozycjonowania notatki */
}

.expert img {
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.expert-info {
    opacity: 0;
    position: absolute;
    bottom: -50px; /* Odległość od dolnej krawędzi zdjęcia */
    left: 50%; /* Centrowanie w poziomie */
    transform: translateX(-50%); /* Centrowanie w poziomie */
    background-color: rgb(119, 116, 116);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 260px; /* Szerokość notatki */
    text-align: center;
    margin-top: 30px;
    transition: all 0.3s ease-in-out;
}

.expert:hover img {
    transform: scale(1.1);
}

.expert:hover .expert-info {
    opacity: 1;
    margin-bottom: 30px;
}

.expert-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: white;
    text-transform: uppercase;
    font-family: 'DM Serif Display', serif;
}

.expert-info p {
    font-size: 20px;
    margin: 0;
    color: white;
    letter-spacing: 0.5px;
    padding-bottom: 20px;
}

footer {
    background-color: rgb(119, 116, 116);
    padding: 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center; /* Dodane, aby wyśrodkować treść poziomo */
    text-transform: uppercase;
    color: white;
    font-size: 26px;
    height: 4vh; /* Ustawienie wysokości na 100% widoku (viewport height) */
    font-family: 'DM Serif Display', serif;
}


.logo:hover {
    color: inherit;
    background: none;
}

@media screen and (max-width: 1024px) {
    .experts {
        flex-direction: column;
        gap: 60px;
    }
}

@media screen and (max-width: 1024px) {
    .menudrugie ul {
        flex-direction: column;
    }
}

li {
    min-width: 250px;
}


a {
    padding: 15px 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
}

.logo {
    outline-offset: -20px;
}