@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0px;
}
nav a {
    text-decoration: none;
    color: black;
    padding: 10px;
    border-radius: 5px;
    transition: 1s;
    background-color: white;
    margin-bottom: 10px;
}
nav a:hover {
    background-color: white;
    color: black;
    border-radius: 5px; /* zaoblení rohů */
    transition: 1s; /* pomalejší najetí pozadí */
}
header {
    background-image: url('../img/header-mobile.jpg');
    background-size: cover; /* obrázek vyplní header a přebyek v jednom rozměru se ořízne */
    background-position: center center; /* umístěň horní částí, spodek se ořízne */
    padding-bottom: 30%;
}
header div {
    padding: 6px 10%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}
header h1 {color: white;}
nav {
    display: flex;
    flex-direction: column; /* pro mobily ve sloupci */
}
img {
    width: 100%; /* do plné šíře articlu */
    max-width: max-content; /* maximálně do šířky v jaké je obrázek uložen */
}

/* main - section, article */
section {
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
}
section.bila {
    background-color: white;
    color: black;
    text-align: justify;
}
section.tmava {
    background-color: rgb(54, 57, 63);
    color: white;
    text-align: justify;
}
.stred {text-align: center;}
article a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}
.odkaz-eshop {
    background-color: black;
    color: white;
    border-radius: 5px;
    transition: 1s;
    padding: 10px 12px;
    margin: 10px;
    display: inline-block;
}
.odkaz-eshop:hover {
    text-decoration: none;
    background-color: rgb(52, 177, 226);
    color: black;
    transition: 1s;
    border-radius: 5px;
}
section.tmava h1 {text-align: center;}
article {flex: 1;}
article.f2 {flex: 2;} /* 2x větší než normální šířka */
article.f3 {flex: 3;}
article.f4 {flex: 4;}
article.o2 {order: 2;}
article.o3 {order: 3;}
article.o4 {order: 4;}

ul {padding-right: 1em;}
ul.ctverec {list-style-type: square;} /* nečíslovaný seznam */
ul.kolecko {list-style-type: circle;}
ul.ctverecek {list-style-image: url('../img/ctverecek.png');}
ul.plus {list-style-image: url('../img/plus.png');}
ul.bez-odrazky {list-style-type: none;}
ol.roman-upper {list-style-type: upper-roman;} /* číslovaný seznam */
ol.roman-lower {list-style-type: lower-roman;}
ol.alpha-upper {list-style-type: upper-alpha;}
ol.alpha-lower {list-style-type: lower-alpha;}

section.mapa iframe {
    width: 100%;
    height: 400px;
    border: none;
}
.mapa {padding: 0px;}
.material-icons {
    margin-right: 5px;
    position: relative;
    top: 5px;
}
.doprostred {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1000px) {
   header {
       background-image: url('../img/header-pc.jpg');
       background-position: center center;
       padding-bottom: 30%;
   }
   section {flex-direction: row;}
   section.tmava article{border-right: 1px dotted rgba(255, 255, 255, 0.164);}
   section.tmava article:last-child{border-right: 0px;}
   article {padding: 15px;}
   nav {flex-direction: row;}/* pro PC v řádku */
   header div {
       flex-direction: row;
       align-items: baseline; /* zarovnání do roviny s nadpisem na linku */
       justify-content: space-between; /* mezera mezi */
   }
   nav a {
       background-color: transparent;
       color: white;
       margin: 1px;
   } 
}