
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #eaf8ff;
    font-family: Georgia, serif;
}

img {
    max-width: 100%;
}

.grid-container {
    display: grid;

    grid-template-columns: 1fr 2fr;

    grid-template-areas:
        "header header"
        "nav section"
        "article aside"
        "footer footer";

    gap: 10px;

    width: 90%;
    margin: 20px auto;
}

header,
nav,
section,
article,
aside,
footer {
    border: 2px solid black;
    padding: 20px;
}

header {
    grid-area: header;

    min-height: 20vh;

    background-image: linear-gradient(blue, cyan);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 3em;
}

header h4 {
    font-size: 1.2em;
}

nav {
    grid-area: nav;
    background-color: #3ca9c5;

    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    width: 80%;
}

nav li {
    margin: 15px 0;
}

nav a {
    display: block;

    text-decoration: none;
    text-align: center;

    background-color: #9dd8f7;
    color: #003b5c;

    padding: 12px;
    border-radius: 15px;

    font-weight: bold;
    font-size: 1.1em;
}

nav a:hover {
    background-color: #0077b6;
    color: white;
}
section {
    grid-area: section;
    background-color: lightblue;

    display: flex;
    gap: 10px;
}

.kartica {
    width: 33.33%;
}

.slika {
    position: relative;
}

.slika img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.slika h2 {
    position: absolute;

    top: 10px;
    left: 0;

    width: 100%;

    text-align: center;

    color: white;
    background-color: rgba(0,0,0,0.5);

    padding: 5px;
}

.kartica p {
    text-align: justify;
    margin-top: 5px;
}
article {
    grid-area: article;
    background-color: #9dd8f7;
}

article p {
    text-align: justify;
    margin-bottom: 15px;
}

article video {
    width: 100%;
}

aside {
    grid-area: aside;
    background-color: #3ca9c5;
}

aside h2,
aside h3 {
    margin-bottom: 20px;
}

.citat {
    background-color: white;

    border-radius: 15px;

    padding: 15px;
    margin: 15px 0;

    text-align: center;

    font-style: italic;
    font-size: 1em;
}
footer {
    grid-area: footer;

    background-color: #0077b6;

    min-height: 10vh;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

footer img {
    width: 50px;
    height: 50px;
}
.tema {
    padding: 10px;
}

.tema h2 {
    text-align: center;
    margin-bottom: 10px;
}

.tema p {
    text-align: justify;
}

.kontakt-section {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.profilna-slika {
    max-width: 200px;
    border-radius: 20px;
}

@media screen and (max-width: 768px) {

    body {
        background-color: lightgreen;
    }

    .grid-container {
        width: 95%;

        grid-template-columns: 1fr;

        grid-template-areas:
            "header"
            "nav"
            "section"
            "article"
            "aside"
            "footer";
    }

    section {
        flex-direction: column;
    }

    .kartica {
        width: 100%;
    }

    nav ul {
        width: 100%;
    }

    .kontakt-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



    @media screen and (max-width: 480px) {

    body {
        background-color: yellow;
    }

    nav {
        background-color: #ff4d4d;
    }

    section {
        background-color: #ff6666;
    }

    article {
        background-color: #ff8080;
    }

    aside {
        background-color: #ff9999;
    }

    footer {
        background-color: #cc0000;
    }

    header {
        background-image: linear-gradient(darkred, red);
    }

    header h1 {
        font-size: 1.7em;
        text-align: center;
        color: white;
    }

    header h4 {
        color: white;
    }
}

    .grid-container {
        width: 100%;
        margin: 0;
    }

    header h1 {
        font-size: 2em;
        text-align: center;
    }

    header h4 {
        font-size: 1em;
    }

    nav a {
        font-size: 1em;
    }

    .slika img {
        height: 180px;
    }

    .citat {
        font-size: 0.9em;
    }

    footer {
        gap: 15px;
    }

    footer img {
        width: 40px;
        height: 40px;
    }

