@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Parkinsans:wght@300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

header {
    background-color: rgb(159, 43, 45);
    padding: 10px 8%;
}

body {
    margin: 0;
    font-family: 'Noto Sans Display', 'Open Sans', Arial, Helvetica, sans-serif;
}

section {
    padding: 10px 8%;
}

nav a {
    padding: 10px;
    margin: 10px;
    text-decoration: none;
    color: white;
    margin-bottom: 0;
}

nav p {
    padding-bottom: 0;
    margin-bottom: 0;
}

article {
    background-color: rgb(229, 229, 229);
    
}

img {
    width: 100%;
    max-width: max-content;
}

#KoloKoloMlýnský {
    border-radius: 100%;
    background-color: rgb(159, 43, 45);
    text-align: center;
    padding: 45px;
    font-size: 2em;
    color: white;
    position: absolute;
    right: 36%;
    top: 25%;
}

p strong {
    color: rgb(159, 43, 45);
}

p a {
    text-decoration: none;
    color: rgb(106, 9, 11);
}

h1 {
    color: rgb(159, 43, 45);
    font-family: "Open Sans";
}

h1.pedink {
    padding: 0px 8%;
}

div.obrazek article {
    padding: 15px;
}

footer {
    text-align: center;
    background-color: rgb(159, 43, 45);
    padding: 5px;
    margin-top: 20px;
    color: white;
}

::selection {
    background-color: rgb(159, 43, 45);
    color: white;
}

@media(min-width: 860px) {
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        padding-bottom: 0;
    }

    nav img {
        width: 50px;
    }

    img#nadpis {
        height: 120px;
    }

    nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-auto-flow: row;
        grid-auto-rows: 1fr;
        grid-auto-columns: 1fr;
    }

    a#aktiv {
        background-color: rgb(106, 9, 11);
        border-radius: 10px 10px 0px 0px;
        padding-bottom: 20px;
    }

    section {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
        grid-auto-flow: row;
    }

    section#rozbor {
        grid-template-columns: 1fr;
    }

    #idk {
        display: flex;
        flex-direction: row;
    }

    .flex1 {
        flex: 1;
        background-color: transparent;
    }

    .flex2 {
        flex: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .obrazek {
        grid-column: span 3;
    }

    div#griddy {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-auto-flow: row;
    }

    #rozborImg {
        grid-column: span 4;
        padding: 20px;
        text-align: center;
        border-radius: 0px 8px 8px 0px;
    }

    #povidani {
        grid-column: span 8;
        text-align: justify;
        padding: 15px;
        border-radius: 8px 0px 0px 8px;
    }

    #info3 {
        grid-column: span 12;
        padding: 19px;
    }

    #rating {
        position: absolute;
        right: 18%;
        top: -10%;
        bottom: 0%;
    }

    #hlasy {
        position: absolute;
        right: 37%;
        top: 35%;
        color: rgb(159, 43, 45);
    }

    div.top {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 20px;
        grid-auto-flow: row;
        background-color: rgb(229, 229, 229);
    }

    div#prvni {
        grid-column: span 8;
    }

    div#druhy {
        grid-column: span 4;
    }

    section#pindik {
        grid-gap: 0px;
    }

    div#info1 p {
        padding: 0;
        margin: 5px;
    }

    div#info2 p {
        padding: 0;
        margin: 5px;
    }

    div#idk {
        padding: 25px;
    }

    #videosák {
        background-color: rgb(192, 192, 192);
    }
}

@media(max-width: 860px) {
    nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 10px;
    }

    header {
        text-align: center;
        padding: 10px 10%;
    }

    section {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .obrazek {
        grid-column: span 1;
    }

    div.top {
        grid-template-columns: 1fr;
    }

    #KoloKoloMlýnský, #hlasy {
        display: none;
    }

    div#sms img {
        width: 30%;
    }

    article {
        padding: 0px 10px;
    }
}