@font-face {
    font-family: promocyja;
    src: url('../fonts/promocyja.ttf');
}

body {
    margin: 0px;
    padding: 0px;
    background: url('../img/back-3d0303.png') #3d0303;
    color: #eb4e4e;
    font-size: 15px;       
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    display: flex;
    justify-content: center;         
}

.hlavicka {
    width: 50%;
    min-width: 700px;
    border-radius: 0px 0px 20px 20px;
    border: #3d0303 solid 5px;
    box-shadow: #a31616 2px 2px 1px;
    background: url('../img/back-3d0303.png') #3d0303;
    top: 0px;
    position: fixed;  
    height: 125px;
    transition: 1s;
    z-index: 3;    
}

header:hover .hlavicka {    
    box-shadow: #a31616 1px 1px 2px;
    height: 170px
}

header:hover  ~main section * {
    color: #3d0303;
    text-shadow: black 1px 1px 10px;
    transition: 5s;
    opacity: 0.5;
}

.nadpis {
    display: flex;
    justify-content: center;    
}


header img{
    border-radius: 50%;
    margin: 10px;
    height: 100px;
    width: 100px;
}


h1 {
    font: 4em promocyja;
    color: #a31616;    
    text-shadow: #eb4e4e 0px 0px 4px;
    margin: 0px;
    align-self: center; 
    transition: 10s;
}

h1:hover {
    color: rgb(0, 0, 0);
    text-shadow: #3d0303 2px 2px 15px;
    text-shadow: #a31616 0px 0px 5px;
    transition: 1s;
}

header ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: fixed;
    top: 0px;
    opacity: 0;
    transition: 0s;
    padding: 0px;
    margin: 0px;
}

header:hover ul {
    opacity: 1;
    position: relative;
    transition: 2s 0.5s;    
}

nav li {
    list-style-type: none;
    padding: 5px 15px;
    margin: 5px 10px;
    text-align: center;
    border-radius: 5px;
    font: bold 1em arial;
    color: #a31616;
    border: 3px solid #3d0303;
    box-shadow: #a31616 1px 1px 3px;
    transition: 3s;
}

nav li:hover {
    
    box-shadow: #3d0303 1px 1px 7px;
    color: #eb4e4e;
    text-shadow: #3d0303 2px 2px 5px;
    transition: 0.1s;
}

.aktualni{
    color: #3d0303;
    text-shadow: #a31616 0px 0px 5px;
    box-shadow: none;
    box-shadow: #3d0303 1px 1px 7px;
    transition: 1s;
}

main {
    display: flex;
    justify-content: center;
    padding: 20px 10%;
}

aside ul {
    padding: 5px;
    margin: 30px 15px;
}

aside {
    position: fixed;
    top: 200px;
    left: -235px;
    border: #3d0303 solid 3px;
    border-radius: 0px 15px 15px 0px;
    box-shadow: #a31616 1px 1px 1px;
    background: url('../img/back-3d0303.png') #3d0303;
    width: 230px;      
    padding: 0px 30px;
    transition: 2s;
    z-index: 3;
}

aside:hover{
    left: 0px;
    transition: 1s;
}

section {
    position: relative;
    transition: 1s;
    margin: 130px 0;
}


footer {
    position: fixed;
    bottom: 0px;
    right: 0px;    
    opacity: 0.5;
    border-radius: 15px 0px 0px 0px;
    border: #3d0303 solid 2px;
    background: url('../img/back-3d0303.png') #3d0303;
    transition: 2s;
    z-index: 3;
    padding: 0px 20px;
}

footer:hover {
    opacity: 1;
}

h2 {
    font: bold 2em arial;
    text-align: center;
    color: #a31616;
}

h3 {
    font: bold 1.5em arial;
    margin: 0px 0 0 10px;
    padding: 20px 0 0 0;
    color: #a31616;
    text-decoration: underline;
}

h4 {
    font: bold 1em arial;
    margin: 0px 0 0 10px;
    padding: 20px 0 0 0;
    color: #a31616;
    text-decoration: underline;
}

p {
    font: 1em times;
    text-align: justify;
    line-height: 1.5em;
}

#mag:hover {
    border-color: #29133d;
    color: #c3ca7e
}

#clovek:hover {
    border-color: #021d2e;
    color: #b1cbdb;
}

.tradice {
    font-style: italic;
    text-align: center;
}