@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    padding: 0px;
    margin: 0px;
}

/* body, header i footer */

body {
    margin: 0;
    font-family: "PT Sans", sans-serif;
    min-height: 100vh;
}

header,
footer {
    background-color: #111533;
    color: #ccc;
    text-align: center;
}

header {
    height: 100px;
    font-family: "Merriweather", serif;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* nav i nav a */

nav {
    background-color: #111533;
    font-family: "Merriweather", serif;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
}

nav a {
    color: #ccc;
    text-decoration: none;
    padding: 15px;
}

/* main, aside i section */

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

aside {
    height: 720px;
    width: 350px;
    background-color: #474B6B;
    color: #ffffff;
    padding: 20px;
    display: flex;
    align-items: center;
}

section {
    background-color: #959FEA;
    height: 720px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

/* section h1, h2, p, aside ul, img */

section h1,
h2 {
    font-family: "Merriweather", serif;
    margin: 20px 0 20px 20px;
    color: black;
}

aside ul {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

ul li {
    text-decoration: none;
    list-style-type: none;
}

img {
    display: flex;
    justify-content: left;
}

/* divovi */

.naslov {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.podnaslov {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec {
    display: flex;
    margin-left: 20px;
    width: 80%;
}

.sec2 {
    display: flex;
    margin-left: 20px;
    width: 80%;
}

.sec3 {
    display: flex;
    margin-left: 20px;
    width: 80%;
}

img {
    margin-top: 7px;
    margin-left: 20px;
}

@media only screen and (max-width:768px) {

    /* main, aside, section*/

    main{
        flex-wrap: wrap;
    }

    aside, section{
        width: 100vw;
    }

    aside{
        height: 350px;
    }

    section {
        min-width: 500px;
    }

    /* naslovi, podnaslovi */ 

    .naslov{
        margin-left: 1.7em;
    }
    
    .podnaslov{
        margin-left: 2em;
    }

    /* sectioni, tekst sectiona, slike sectiona */ 

    .sec {
        flex-direction: column-reverse;
    }

    .sec p {
        margin-top: 10px;
        margin-left: 2em;
    }

    .sec img{
        margin-left: 2em;
    }

    .sec2 {
        flex-direction: column-reverse;
    }

    .sec2 p {
        margin-top: 10px;
        margin-left: 2em;
    }
    .sec2 img {
        margin-left: 2em;
    }

    .sec3 {
        flex-direction: column-reverse;
    }

    .sec3 p {
        margin-top: 20px;
        margin-left: 2em;
    }

    .sec3 img {
        margin-left: 2em;
        max-width: 300px;
    }
}