/* =========================================
   1. ZÁKLADNÍ STYLY (TELEFON / MOBILE)
   ========================================= */
body {
    margin: 0;
}

header {
    background-color: black;
    display: flex;
    flex-direction: column;
}

h1 {
    color: white;
    text-align: center;
}

h1 strong {
    color: red;
}

header p {
    color: white;
    text-align: center;
}

header article {
    padding: 20px;
    display: flex;
    justify-content: center;
}

header article img {
    max-width: 100%;
    width: 90%;
}

/* Navigace - na mobilu pod sebou */
nav {
    display: flex;
    flex-direction: column;
}

nav a {
    padding: 10px;
    text-decoration: none;
    color: white;
    background-color: red;
    margin: 5px 100px; /* Výrazné okraje na mobilu pro úzká tlačítka */
    text-align: center;
}

/* Sekce a články - na mobilu pod sebou */
section {
    display: flex;
    flex-direction: column;
    background-color: grey;
}

section article {
    background-color: white;
    padding: 20px;
    margin: 5px;
    flex: 1;
}

section div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

section img {
    max-width: 100%;
    width: 100%;
}

ul {
    list-style: square;
    padding: 0px;
    list-style-position: inside;
}

.big article h1 {
    color: red;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px;
}

footer a {
    text-decoration: none;
    margin: 50px;
    color: white;
}

/* =========================================
   2. STYLY PRO TABLETY (min-width: 800px)
   ========================================= */
@media (min-width: 800px) {
    nav {
        flex-direction: row;
        justify-content: center;
    }

    nav a {
        margin: 5px 20px;
        padding: 5px 15px;
    }

    section {
        flex-direction: row;
    }
}

/* =========================================
   3. STYLY PRO DESKTOP (min-width: 1000px)
   ========================================= */
@media (min-width: 1000px) {
    header div.top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: last baseline; /* Opraveno z 'last baseline' na standardní 'baseline' */
        padding: 0 95px;
    }

    .prvni, .druhy {
        display: flex;
        flex-direction: row;
        background-color: grey;
        padding: 0 50px;
    }

    section article h1 {
        color: red;
    }

    section .big {
        flex: 2;
    }

    section .small {
        flex: 1;
    }

    /* Přerovnání pořadí prvků na velkém monitoru */
    .treti {
        order: 3;
    }

    .druha {
        order: 2;
    }
}