body {
    background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url("../images/Background.png"); /**/
    background-size: cover; /*Background obrazok na celu stranku, bez opakovania ak by obrazok bol prilis maly natiahne sa tak aby udrzal Aspect ratio*/
    background-attachment: fixed; /*Pozadie sa nebude hybat ked scrollujeme cez stranku*/
    background-repeat: no-repeat; /*Zaisti ze sa obrazok nebude opakovat ak by bol prilis maly */
    
}

h1 {
    display: flex; /*"Aktivujeme" flexbox*/
    justify-content: center; /*Horizontalne vycentrujeme*/
    color: rgb(0, 0, 0); /*Farba pisma*/
}

header {
    display: flex;
    align-items: center;  /*Vycentruje itemi verticalne*/
    justify-content: center; 
    padding: 10px 20px; /*Miesto okolo textu ktore nebude prekrite inym elementov mozme zadat staticku hodnotu napriklad 20px alebo v % ktore sa positaju podla zariadenia na ktorom je stranka zobrazena*/
    height: 80px; /*Vyska headeru*/   
}

header > a {
    position: absolute; /*Specifikujeme absolutnu poziciu kotvy v headeri, kezde pre header pouzivame flexbox, potrebujem takto specifikovat ked chcem logo v lavo hore*/
    left: 10px; /*10px od laveho kraja*/  
}

header nav ul {
    gap: 30px; /**medzera medzi elementami*/
}

header nav ul li {
    background-color: beige; /*Farba pozadia*/
    border-radius: 18px; /*Zakrivenie ramu*/
    border-color: burlywood; /*Farba ramu*/
    border-width: 5px; /*Sirka ramu*/
    border-style:solid; /*Stil ramu*/
}

header a img {
    width: 64px; /*Syrka elementu*/
    height: 64px; /*Vyska elementu*/
    border-style: none; 
}

a {
    font-weight: bold; /*Hrube pismo*/
    font-size: 105%; /*Scalovanie velkosti pisma*/
    color: black; /*Farba pisma*/
}

a:visited{
    color:black;
}

a:hover{
    cursor: grab; /*Zmena cursoru pri ukazani na link*/
}

p {
    color:rgb(0, 0, 0);
}

img{
    border-style: solid;
    border-color: burlywood;
    border-width: 10px;
}

mark {
    font-weight: bold; 
    font-style: italic; /*Kurzivne pismo*/
    background-color: burlywood;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav li {
    display: inline-table; /*Zobrazenie list item horizontalne a nie verticalne ako je default*/
    padding: 2%; 
}

section ul{
    display: flex;
    justify-content: center;
}

section li {
    display: inline-table; /*Zobrazenie list item horizontalne a nie verticalne ako je default*/
    padding: 2%; 
}

footer ul{
    display: flex;
    justify-content: center;
}

footer li {
    display: inline-table; /*Zobrazenie list item horizontalne a nie verticalne ako je default*/
    padding: 2%; 
}


.item {
    display: flex;
    justify-self: center;
    align-items: center; 
    justify-content: center;
    gap: 20px;           
    max-width: 800px; 
}

section ol li strong{
    font-size: 130%;
}

.item img {
    width: 400px;
    height: auto;
    transition: transform 0.5s ease; /*"Animacia pre transform, 0.5s hovori o case ako dlho trva transformacia a ease o style (konzistentna rychlost, spomalenie na zaciatku, na konci etc.) */
}


.item img:hover {
    transform: scale(1.05) ; /*Transformacia pri hover na img, velkost obrazku sa zmeni na 105%*/

}

.item:nth-child(even) { /*pre class item, kazne n dieta listu(upresnime v zatvorke)*/
    flex-direction: row-reverse; /*Otocenie poradia elementov vo flexboxe*/
}

article {
    max-width: 800px;    
    margin: 0 auto;       
    text-align: center; /*Zarovnanie textu horizontalne na stred*/
    padding: 20px;
}

dl {
    max-width: 800px;    
    margin: 0 auto;       
    text-align: center;   
    padding: 20px;
}

.two-columns {
    display: grid; /*Usporiadanie elementov do gridu/tabulky*/
    grid-template-columns: auto 700px; /*Ucrenie poctu a sirky stlpcou v gride*/
    gap: 40px;
    align-items: start; 
    justify-content: center;
    margin: 0;
}

.two columns h2 {
    grid-column: 1 / -1; /*Nastavenie pozicie elementu v gride - stlpec*/
    justify-self: center;
    margin-bottom: 20px; 
}
.two-columns dl{
    grid-column: 1; 
    grid-row: 2; /*Nastavenie pozicie elementu v gride - Riadok*/
    text-align: left;
}

.two-columns aside {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
}


.two-columns .image-map {
    grid-column: 2;
    grid-row: 2 / span 2; /*Span 2 nastavi ze tento element zaberie 2 verticalne miesta v gride*/
    width: 700px;
    max-width: 100%;
    height: auto;
}

section h2 {
    display: flex;
    justify-content: center;
}


section audio {
    display: flex;
    justify-content: center;
}

aside {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(134, 72, 0, 0.7);
    border-left: 4px solid burlywood;
    border-radius: 5px;
}

.image-map{
    width: 700px;
    height: auto;
    max-width: 100%;
}

.audio{
    display: flex;
    flex-direction: column;
    align-items: center;
}

video{
    border-style: solid;
    border-color: burlywood;
    border-width: 10px;
    max-width: 700px;
}

.video{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

figure{
    text-align: center;
}

.gallery-item{
    max-width: 350px; 
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05) ;

}

.image-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-source {
    font-size: 90%;
    opacity: 0.8;
}

.flow {
    margin:auto;
    max-width: 900px;
}
.flow img {
    width: 600px;
    margin: 0 15px;
    float: left;
}
.table_of_images img{
    width: 400px;
    transition: transform 0.5s ease;
}
.table_of_images img:hover{
    transform: scale(1.1);
}