@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Raleway&display=swap');

body {
    color: white;
    font-family: 'Raleway', sans-serif;
    background-color: #131424;
    margin: 0px;
}
header {
    padding: 15px 5%;
    width: 90%;
}
div#top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}
div#name {
    text-align: left;
}
strong {
    color: white;
}
header h1 {
    color: #c5bece;
    font-size: 28px;
}
header h2 {
    font-size: 18px;
}
nav {
    display: flex;
    flex-direction: row;
}
nav a {
    text-decoration: none;
    color: white;
    padding: 15px;  
}
nav a.this-page {
    background-color: #c5bece;
}
nav a:hover{
    background-color: #c5bece;
    transition: 2s;
}
header img {
    width: 100%;
    border-top: 2px solid #c5bece;
    object-fit: cover;
}
section {
    display: flex;
    flex-direction: row;
    padding: 10px 10%;
}
article a {
    color: white;
    border: white 1px solid;
    border-radius: 2px;
    padding: 8px;
    margin-left: 10px;
    text-decoration: none;
    align-self: flex-end;      
    justify-self: flex-end;  
    margin-top: auto;
}
article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #4f6389;
    padding: 20px;
    margin: 5px;
    flex: 1;
}
.flex2 {
    flex: 2;
}
section h1 {
    padding-left: 15px;
}
section p {
    padding: 0px 15px;
    display: block;
}
article img {
    width: 100%;
    max-width: max-content;
}
.Jedna {
    background-color: rgb(199, 173, 187);
}
.Dva {
    background-color: #4f6389;
}
.Tři {
    background-color: rgb(199, 173, 187);
}
footer {
    text-align: center;
    padding: 10px;
}
@media (max-width: 1000px){
    header img {
        order: 2;
    }
    
    header h1 {
        text-align: center;
        order: 1;
    }
    
    header h2 {
        display: none;
    }

    div#top {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        text-align: center;
    }

    .Jedna {
        flex-direction: column;
    }

    .Dva {
        flex-direction: column;
    }

    .Tři{
        flex-direction: column;
    }
}