@import url('https://fonts.googleapis.com/css2?family=Barlow&display=swap');

body {
    margin: 0px;
    background-color: maroon;
    color: white;
    font-family: "Barlow", sans-serif;
}

.top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 60px;
    border-bottom: 3px solid white;
}

.name {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.name img {
    width: 20%;
    max-width: max-content;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

nav a {
    color: white;
    padding: 10px;
    margin: 10px 20px;
    text-decoration: none;
}

/*
#vobraz {
    width: 100%;
    max-width: max-content;
    border-top: solid white 3px;
    border-bottom: solid white 3px;
}
*/

#veta {
    padding: 10% 0px 40% 0px;
    background-image: url(Img/mountains.jpg);
    background-size: cover;
    background-position: top left;
}

#veta h2 {
    padding-left: 10%;
}

section {
    padding: 10px 5%;
    display: flex;
    flex-direction: row;
}

section article {
    color: black;
    text-align: justify;
    padding: 10px 15px;
}

section img {
    display: block;
    width: 100%;
    max-width: max-content;  
}

.první {
    border-top: 3px solid white;
}

.první article {
    background-color: white;
    margin: 5px;
}

#flex2 {
    flex: 2;
}

#flex1 {
    flex: 1;
}

#flexík2 {
    flex: 2;
}

.druhá article {
    padding: 0px;
    margin: 5px;
    border: 3px solid white;
}

.druhá h1 {
    text-align: center;
    background-color: rgb(59, 54, 54);
    color: white;
    margin: 0px;
    padding: 5px;
}

.třetí article {
    flex: 1;
    background-color: white;
    margin: 5px;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: black;
    padding: 10px 0px;
}

@media (max-width:1000px) {
    body {
        background-color: #660000;
    }

    .top {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
    }

    #vobraz {
        display: none;
    }

    nav a {
        border: 2px solid white;
        border-radius: 5px;
        align-self: stretch;
        text-align: center;
    }

    section {
        flex-direction: column;
    }
}