@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sansita+Swashed:wght@300..900&display=swap');

body {
    margin: 0px;
    background-color: #660000;
}

header h1 {
    background-image: url(img/mountains_logo.png);
    background-size: auto 80px;
    /* výška 80px, šířka automaticky v poměru */
    background-repeat: no-repeat;
    /* neopakovat obrázek */
    background-position: left top;
    /* umístění */
    padding: 25px 0px 0px 70px;
    /* obrázek na okraji prvku včetně paddingu */
    text-align: left;
    color: white;
}


header {
    border-bottom: 2px solid white;
}

nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
}

nav a {
    margin: 8px;
    text-decoration: none;
    color: white;
    border: 2px solid;
    border-radius: 6px;
    padding: 5px;
}

img {
    width: 100%;
    max-width: max-content;
}

article img {
    border: 2px solid;
    border-color: white;
}

section {
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
}

article {
    padding: 15px;
    flex: 1;
}

p {
    text-align: justify;
}

.bila-art article {
    background-color: white;
    margin: 10px;
}

footer{
    background-color: black;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  
}
footer a{
    padding: 15px 10%;
    text-decoration: none;
    color: white;
}

@media (max-width:798px) {
    nav a:hover {
        background-color: white;
        color: #660000;
        transition: 0.3s;
    }
}

@media (min-width:800px) and (max-width:1139px) {
    section.tablet-wrap {
        flex-direction: row;
        flex-wrap: wrap;
    }

    section.tablet-wrap article {
        flex-basis: 33.34%;
        /* po dvou (100% : 3 = 33.33%) */
    }

    .active {
        background-image: url(img/mountains_logo.png);
        background-position: left top;
        background-size: auto 90%;
        background-repeat: no-repeat;
    }

    nav a{
        border: none;
        
    }
    nav{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    header h1{
        display: flex;
        flex-direction: column;
        
        align-items: center;
    }
    .img-text p {
        display: none;
    }
}

@media(max-width:798px) {
    .img-text p {
        display: none;
    }
}

@media (min-width:1140px) {
    header .img-text {
        background-image: url(img/mountains.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        padding-bottom: 30%;
        color: white;
        padding: 6% 15% 26% 15%;
        /* horní a dolní padding v % ze šířky headeru určuje výšku obrázku */
        border-bottom: 3px ridge white;
        /* ridge - 3D rámeček - minimálně 3px */

    }

    .img-text p {
        padding: 5px 5%;
    }

    .top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: last baseline;
        padding: 5px 5%;
        border-bottom: 2px solid;
        border-color: white;
    }

    nav {
        flex-direction: row;

    }

    nav a {
        border: none;
    }

    section {
        flex-direction: row;
    }

    section div {
        display: flex;
    }

    .flex5 {
        flex: 5;
        display: flex;

    }

    .flex3 {
        flex: 3;
        display: flex;
       

    }
    .column{
        display: flex;
        flex-direction: column;
    }

    .flex2 {
        flex: 2;
        display: flex;
    }

    .flex1 {
        flex: 1;

    }
    .row2{
        display: flex;
        flex-direction: row;
    }

    nav a {
        background-size: auto 0%;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    nav a:hover {
        background-image: url(img/mountains_logo.png);
        background-position: left top;
        /* ze středu doleva */
        background-size: auto 90%;
        /* z 0% na 90% */
        transition: 1s;


    }

    .active {
        background-image: url(img/mountains_logo.png);
        background-position: left top;
        background-size: auto 90%;
        background-repeat: no-repeat;
    }
    .flex5 article {
        display: flex;
        flex-direction: row;
    }
}