@import url('https://fonts.googleapis.com/css2?family=Festive&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0px;
}

header {
    padding: 0% 5% 40px 5%;
    background-color: #353044;
}
        
h1 {
    font-family: "Festive", cursive;
    color: white;
    font-size: 48px;
}

h2, p {
    font-family: "Montserrat", sans-serif;
    color: white;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 0px 15px;
}

.top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 0px 20px 0px;
}

header img {
    width: 100%;
    max-width: max-content;
}

section {
    display: flex;
    flex-direction: row;
    padding: 0% 5%;
}

article {
    margin: 15px;
    flex: 1;
}

article h2 {
    color: black;
    text-align: center;
}

article p {
    color: black;
    text-align: justify;
}

article img {
    width: 100%;
    max-width: max-content;
}

.tmava {
    background-color: #353044;
}

li {
    font-family: "Montserrat", sans-serif;
}

.flex2 {
    flex: 2;
}

.flex1 {
    flex: 1;
}

@media (max-width: 1280px) {
    .top {
        flex-direction: column;
        padding: 0px 5% 15px 5%;
    }
    
    .name {
        padding: 10px 15px;
    }

    nav a {
        background-color: white;
        color: black;
        border-radius: 3px;
        padding: 10px;
        margin: 10px;
    }
}

@media (max-width: 800px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    section {
        flex-direction: column;
    }
}
