* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Korekce velikosti odsazení pro vývoj */
    /* outline: 1px solid rgba(255, 0, 0, 0.185); */
}

html {
    background: #000;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

h1, h2, p, a {
    text-align: center;
    font-family: "Megrim", sans-serif;
    color: lightblue;
    text-decoration: none;
}


/* header  */

header {
    position: fixed;
    border-top: 20px solid rgba(0, 128, 0, 0.384);
    z-index: 2;
    width: 100%;
    padding: 0px 20px 20px 20px;
    margin: 0 0 50px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.sign {
    margin-top: 10px;
    text-align: left;
    font-size: 40px;
    transition: color 0.3s ease;
    color: rgb(0, 138, 184);
}

.sign:hover {
    color: rgba(0, 100, 0, 0.8);
    font-weight: bold;
}

nav {
    padding: 20px;
}

ul {
    list-style: none;
    text-decoration: none;
}

.nav li {
    text-align: right;
    padding: 2px;
    margin-bottom: 2px;
    transition: background 0.5s ease;
    border-radius: 8px 0 0 8px;
}

.nav li:hover {
    background: linear-gradient(
        90deg,
        rgba(0, 100, 0, 0) 0%,
        rgba(0, 100, 0, 0.7) 25%,
        rgba(0, 100, 0, 0.8) 50%,
        rgba(0, 100, 0, 0.8) 100%
    );
}

.nav a {
    padding-left: 30px;
    transition: color 0.3s ease;
    font-size: 24px;
}

.nav a:hover {
    color: black;
    font-weight: bold;
}


/* article  */

article {
    z-index: 3;
    max-width: 60%;
}

article h1, h2 {
    margin-bottom: 20px;
    color: rgb(67, 189, 230);
}

article h1 {
    font-size: 34px;
}

article h2 {
    margin-top: 30px;
}

article p {
    margin-bottom: 20px;
    text-align: left;
    font-size: larger;
    color: lightgray;
}

article a:hover {
    color: orange;
}


/* article projekty */

.project {
    margin: 40px 0 80px 0;
}

.project_photos {
    width: 100%;
    max-width: 100%;
    border-top: 1px solid rgba(31, 31, 31, 0.651);;
    border-radius: 12px;
    margin-bottom: 10px;
}


/* contact*/

.contact {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.contact_list {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    /* padding: 30px 0; */
    font-size: 30px;
}

img {
    position: relative;
    z-index: 1;
}


/* footer  */

footer {
    margin-top: 60px;
    padding: 16px;
}

footer p {
    text-align: right;
}


/* Speciální kksina kvůli signu */

@media (max-width: 1000px) {
    .sign {
        font-size: 30px;
    }
}

/* Mobily */

@media (max-width: 800px) {
    
    .sign {
        font-size: 36px;
    }

    header {
        position: static;
        padding-right: 0;
    }

    article {
        max-width: 85%;
    }

    nav li {
        border-bottom: 1px solid rgba(255, 0, 0, 0.397);
    }

    .contact_list {
        flex-direction: column;
    }

    .contact_list li,
    .contact_list li a{
        padding: 20px;
    }
}