html {
    scroll-behavior: smooth;

}

header {
    background-color: black;
    margin: 0px;

}

.top h1 {
    margin: 0px;
    color: white;
    padding: 5px 5%;
}

b {
    color: rgb(255, 217, 1);
}

ul {
    padding: 5px 5%;
}

.icon {
    color: rgb(142, 127, 43);
    display: flex;
    justify-content: center;

}

ul .nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0px;
}

li {
    margin: 5px;

}

li a {
    text-decoration: none;
    color: white;
}

img {
    max-width: max-content;
    width: 100%;
}

.active {
    color: rgb(255, 217, 1);
}

section {
    padding: 20px 5%;
}

article {
    padding: 15px 3%;
    flex: 1;

}

article h1 {
    text-align: center;
}

article p {
    text-align: justify;
}

footer {
    background-color: black;
    color: white;
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width:1000px) {

    .nav a.active:hover,
    .nav a:hover {
        color: rgb(255, 217, 1);
    }

    header img {
        position: relative;
        top: 30px;
        box-shadow: 20px 10px #8888;

    }

    .top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 5%;
        flex-direction: row;
    }

    .nav {
        flex-direction: row;
        display: flex;
    }

    section {
        display: flex;
        flex-direction: row;
    }

    .flex2 {
        flex: 2;
        display: flex;
    }

    .flex1 {
        flex: 1;
        display: flex;
    }

    .poradi2 {
        order: 2;
    }
}

@media (min-width:801px) and (max-width:999px) {
    header img {
        position: relative;
        top: 30px;
        box-shadow: 20px 10px #8888;

    }

    section {
        display: flex;
        flex-direction: row;
    }

    .poradi2{
        order: 2;
    }


}

@media (max-width:800px) {
    header img {
        display: none;
    }
}