/* formátování obecné */
* {
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    font-family: "Calibri","sans-serif";
    color: black;
    font-size: 1em;
}

h1 {
	font-size: 1.4em;
    margin-bottom: 1ex;
    padding-top: 1ex;
    color: gold;
}

h2 {
	font-size: 1.2em;
    margin-top: 1ex;
    margin-bottom: 0.5ex;
}
h3 {
    margin-top: 0.5ex;
    margin-bottom: 0.2ex;
    color: gold;
}
h4 {
    margin-top: 0.2ex;
}

#cist {
    color: gold;  
    margin: 20 0;
}

#dulezite {
    color: red;
}

#koro {
    color: red;
}

#PS {
    color: red;
}

a {
    color: black;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
	color: darkblue;
	text-decoration: underline;
}

a:focus {
	outline:none;
}

p{line-height: 150%}

header {
    text-align: center;
  
}

header img {
    text-align: center;
    width: 100%;
    vertical-align: middle;
}

nav ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
    
}

section li{
    margin: 0px 30px;
}

nav li {
    border-top: 1px solid lightgoldenrodyellow;
    border-bottom: 1px solid lightgray;
    padding: 0px;
	font-size: 1.2em;
}

nav li a {
	text-align: left;
	padding: 0.5em;
	color:white;
	display: block;
	font-weight:  bold;
	text-decoration: none;
}

nav li a:hover {
	background-color: rgb(243, 207, 6);
    color: white;
    text-decoration: none;
}

nav li.selected-item  {
	border-bottom: none;
}

nav li.selected-item a,
nav li.selected-item a:hover {
	color: gold;
	background: #fff;
}

main {
    padding: 0px 15px;
}

footer p{
    text-align: center;
    font-size: 0.8em;
}



/* layout nejdřív pro mobily */
body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content 1fr min-content;
    
}

header {
    grid-column: 1;
    grid-row: 1;
}

nav { /* menu */
    grid-column: 1;
    grid-row: 2;
    background-color: gold;    
}

main { /* obsah */
    min-height: 300px;
    grid-column: 1;
    grid-row: 3;
    background-color: white;
}

footer {
    min-height: 50px;
    grid-column: 1;
    grid-row: 4;
    background-color: white;
}

#doporucene img{
    height: 100px;
    margin: 5px 10px;
}


/* layout pro tablety */
@media all and (min-width: 461px) {
    body {
        grid-template-columns: 180px 1fr; 
        grid-template-rows: min-content 1fr min-content;
        font-size: 1.1em;
    }

    header {
        grid-column: 1/3; 
        grid-row: 1;
    }

    nav { /* menu */
        grid-column: 1;
        grid-row: 2/4;
        z-index: 500;                               /*musím ho dostat nad main */
        box-shadow: 5px 0px 8px lightgray;
    }

    main { /* obsah */
        grid-column: 2;
        grid-row: 2;
        z-index: 2;
        padding: 0px 30px;
    }

    footer { 
        grid-column: 2/3;
        grid-row: 3;
    }

    h1{
        font-size: 1.6em;
    }
    h2{
        font-size: 1.3em;
    }
    
    
    
}

/* layout pro velke displeje */
@media all and (min-width: 1025px) {
    body {
        grid-template-columns: 250px 1fr;
        font-size: 1.2em;
    }
    header {
        max-height: 250px;
        
    }   

    #doporucene img{
        height: 180px;
        margin: 10px 20px;
    }
    h1{
        font-size: 2em;
    }
    h2{
        font-size: 1.6em;
    }
    
    
}