@import url('https://fonts.googleapis.com/css2?family=Honk&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Open+Sans:ital@0;1&display=swap');

body {
  background-image: url(zObrázky/background.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0px;
}

header {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

header h1 {
    text-align: center;
    color: white;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-size: 5em;
}

header h1, header a {
    line-height: 30px;
}

header a {
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-family: "Pacifico", cursive;  
    font-size: 24px;
    color: white;
}

header a:hover {
    transform: scale(1.25);
    transition: 500ms;
}

.Linky {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

article {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

main {
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    flex-direction: column;
    transition: 1s;
    background-color: rgba(83, 83, 83, 0.6);
    border-radius: 10%;
    text-align: center;
    text-decoration: none;
    max-width: fit-content;
    position: relative;
    margin: 30px;
}

a nav {
    color: black;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    filter: grayscale(0.9);
    box-shadow: -5px 5px 10px 10px rgba(255, 255, 255, 0.119);
}

nav img {
    width: 250px;
    height: 150px;
    border-radius: 10% 10% 0% 0%;
    filter: grayscale(1.5);
}

nav h2 {
    color: white;
    margin: 15px;
}

a nav:hover {
    transform: scale(1.25);
    filter: none;
    box-shadow: 5px -5px 10px 10px rgba(214, 92, 214, 0.712);
}

@media (max-width: 940px) {
    body {
        background-image: none;
        background: linear-gradient(0deg, rgba(0,0,0,1) 8%, rgba(38,13,66,1) 27%, rgba(45,19,74,1) 45%, rgba(69,33,107,1) 72%);  
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    .name {
        display: flex;
        flex-direction: column;
        line-height: 69px;
    }

    .Linky {
        flex-direction: column;
    }

    .Linky a {
        padding: 10px 0px;
    }

    header h1 {
        color: rgba(0, 0, 0, 0.85);
    }

    header a {
        color: rgba(255, 255, 255, 0.85);
    }

    nav h2 {
        color: rgba(255, 255, 255, 0.85);
    }

    nav h2:hover {
        color: white;
    }

    nav {
        flex-direction: column;
    }
    a nav {
        box-shadow: -5px 5px 10px 10px rgba(50, 17, 104, 0.39);
    }
    a nav:hover {
        box-shadow: 5px -5px 10px 10px rgba(114, 60, 214, 0.575);
    }
    
    #zleva {
        animation-name: slideLeft;
        animation-duration: 1.5s;
    }

    @keyframes slideLeft {
        from {transform: translateX(-200%);}
    }

    #zprava {
        animation-name: slideRight;
        animation-duration: 1.5s;
    }

    @keyframes slideRight {
        from {transform: translateX(200%);}
    }
}