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);
    cursor: pointer;
}

a {
    text-decoration: none;
    color: white;
    padding: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 10px;
    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;
    padding: 3%;
    font-weight: bolder;
    letter-spacing: 0.5px;
    word-spacing: 1px;
    font-family: 'DM Serif Display', serif;
}

.ramka {
    background-color: rgb(119, 116, 116);
    color: white;
    justify-content: center;
    border-radius: 10px;
    margin: 60px auto;
    width: max-content;
}

.ramka h2 {
    padding: 30px;
    font-family: 'DM Serif Display', serif;
}

@media screen and (max-width: 1024px) {
    .ramka {
        margin: 40px 20px;
        width: auto;
    }
}


p {
    font-size: 22px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    margin: 0 40px 60px;
}

.rodzaje_cery {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    gap: 20px;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 0 20px;
    gap: 60px;
}

@media screen and (max-width: 1024px) {
    .rodzaje_cery {
        flex-direction: column;
    }
}

.element {
    text-align: center;
    padding: 40px 20px;
    border: 2px solid rgb(119, 116, 116);/* Dodane właściwości border */
    background-color: white;
    border-radius: 10px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    align-items: stretch; /* Zmienione z 'center' na 'stretch' */
    justify-content: space-between;
    padding-bottom: 70px;
}

.element h3 {
    font-family: 'DM Serif Display', serif;
    text-transform: uppercase;
    font-size: 30px;
    flex: 1;
}

.element ol {
    text-align: center;

}

.element ol li {
    font-size: 22px;
    text-transform: none;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    padding: 6px;
    margin-top: 10px;
}

.definicje {
    margin: 0 20px 60px;
}

@media screen and (max-width: 1024px) {
    .definicje {
        margin: 0 20px 10px;
    }
}

.definicje dt {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 0 30px 45px;
}

.definicje dd {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;;
    text-align: center;
    margin-inline-start: 0;
    padding: 0 15px 45px 15px;
}

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;
    font-family: 'DM Serif Display', serif;
    height: 4vh; /* Ustawienie wysokości na 100% widoku (viewport height) */
}


.logo:hover {
    color: inherit;
    background: none;
}

li {
    min-width: 250px;
}

li:hover {
    background: transparent;
}

a {
    padding: 15px 20px;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
}

.logo {
    outline-offset: -20px;
}