body{
    margin: 0;
    background-color: #660000;
    color: white;
}
img{
    width: 100%;
    max-width: max-content;
}
.header{
    border-bottom: 2px solid white;
    display: flex;
    flex-direction: column;
    padding: 2% 7% 1%;
}
header{
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid white;
}
header h2{
    padding: 5% 0 0 7%;
}
main{
    padding: 3% 7%;
    display: flex;
    flex-direction: column;
}
header h1{
    display: flex;
    background-image: url(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;
    font-size: 3em;
    margin: 0;
}
.nadpis{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
header img{
    width: 9em;
}
nav{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}
nav a{
    text-decoration: none;
    color: white;
    border: 2px solid white;
    border-radius: 7px;
    padding: 5px 0;
    text-align: center;
}
nav a:hover, .actual{
    color: #660000;
    background-color: white;
}
ol{
    list-style-type: upper-alpha;
}
main article{
    background-color: white;
    color: black;
    padding: 10px;
}
footer{
    background-color: black;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 7%;
}
footer article{
    margin: 0;
}
.texty article{
    gap: 35px;
    display: flex;
    flex-direction: column;
}
.texty p{
    margin: 0;
}
main h1{
    font-size: 1.5em;
    margin: 20px 0;
}
.vpravo{
    flex: 1;
    display: flex;
}
.flex3, .flex1, .vpravo{
    margin: 20px 0;
}
.flex2{
    margin-bottom: 20px;
}
article{
    border-radius: 5px;
}
.photos article {
    padding: 0px;
    background-color: transparent;
    text-align: center;
}
.photos article img {
    border: 2px solid white;
    display: flex
} 
.galery article {
    flex: 0 0 25%; /* 4 vedle sebe */
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    justify-content: center;
    background-color: transparent;
  }
  .galery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .galery article img {
    max-width: 100%;
    min-width: 250px;
    height: auto;
    border: 2px solid white;
  }
  @media (max-width: 1024px) {
    .galery article {
      flex: 0 0 33.3333%; /* 3 na řádek */
    }
  }
  @media (max-width: 768px) {
    .galery article {
      flex: 0 0 50%; /* 2 na řádek */
    }
  }
  @media (max-width: 480px) {
    .galery article {
      flex: 0 0 100%; /* 1 na řádek */
    }
  }


.mapa article{
    background-color: transparent;
    border: 2px solid white;
    box-sizing: border-box;
    padding: 0;
    margin: 0 10px;
    display: flex;
}
.odkaz{
    padding-top: 15%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border: 2px solid white;
}
.odkaz a{
    background-color: black;
}

.img-text{
    display: none;
}
header{
    border-bottom: 2px solid transparent;
}
@media(min-width: 800px){

    nav{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .actual {
        background-image: url(mountains_logo.png);
        background-position: left top;
        background-size: auto 90%;
        background-repeat: no-repeat;
        background-color: transparent;
        color: white;
      }
      nav a{
        padding: 0 20px;
        border: 2px solid transparent;
        background-position: center bottom;
        
      }
      nav a:hover {
        background-image: url(mountains_logo.png);
        background-position: left top; /* ze středu doleva */
        background-size: auto 90%;     /* z 0% na 90% */
        transition: 1s;
        background-position: left top;
        background-repeat: no-repeat;
        background-color: transparent;
        color: white;
    }
    article{
        border-radius: 3px;
    }
}

@media (min-width:800px) and (max-width:1200px){
    .img {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }
    .img article {
        flex-basis: 33.34%; /* po dvou (100% : 3 = 33.33%) */
      }
      .photos{
        display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      }
      .photos div{
        flex-basis: 50%;
      }
      .photos div article{
        margin: 10px;
      }
}
@media(min-width: 1200px){
    .flex3, .flex1, .vpravo, .flex2{
        margin: 0;
    }
    .img-text{
        background-image: url(mountains.jpg);
        padding-bottom: 30%;
        background-position: center center;
        background-size: cover;
    }
    header{
        display: flex;
        flex-direction: column;
    }
    .header{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    nav{
        flex-direction: row;
        height: max-content;
    }
    nav a {
        background-size: auto 0%;
        background-position: center bottom;
        background-repeat: no-repeat;
        padding: 0 20px;
    }
    header img{
        width: 13em;
    }
    nav a:hover {
        background-image: url(mountains_logo.png);
        background-position: left top; /* ze středu doleva */
        background-size: auto 90%;     /* z 0% na 90% */
        transition: 1s;
        background-color: transparent;
        color: white;
    }
    section{
        display: flex;
        flex-direction: row;
    }
    .flex2{
        flex: 2;
    }
    .flex1{
        flex: 1;
    }
    footer{
       padding: 20px 13%;
    }
    section div{
        display: flex;
        flex-direction: column;
    }
    main article{
        flex: 1;
    }
    .img{
        display: flex;
        flex-direction: row;
    }
    .img article{
        padding: 3px;
    }
    .vpravo:first-child article{
        margin: 10px;
    }
    .vpravo:last-child article{
        margin: 10px;
    }
    .flex3{
        display: flex;
        flex: 3;
    }
    .flex3 article{
        margin: 10px;
    }

    .dolni{
        display: flex;
        flex-direction: row;
    }
    .dolni article{
        margin: 10px;
    }
    article{
        border-radius: 0;
    }
    .img-text{
        display: block;
    }
    .photos article{
        margin: 10px;
    }
}

/*

.dolni .flex1:last-child article{
        margin-left: 10px;
    }

    .dolni .flex2 article{
        margin-right: 10px;
    }
    .margin{
        margin-left: 10px;
        margin-right: 10px;
    }
*/