* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: lightgray;
}

.grid {
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas:
        "header header header"
        "nav section section"
        "article article aside"
        "footer footer footer";
    grid-gap: 10px;
}

header {
    grid-area: header;
    height: 20vh;
    background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQOPbqlZiyE7hYcSAkb_U9EPT63Z4SSubxTu8kv_lSGmRA515Dr699tDH8&s=10");
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    padding-top: 5vh;
}

nav {
    grid-area: nav;
    background-color: lightseagreen;
    padding: 10px;
}

nav a {
    display: block;
    background-color: teal;
    color: white;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 8px;
}

section {
    grid-area: section;
    background-color: lightblue;
    padding: 15px;
}

article {
    grid-area: article;
    background-color: cadetblue;
    padding: 15px;
}

aside {
    grid-area: aside;
    background-color: skyblue;
    padding: 15px;
}

footer {
    grid-area: footer;
    height: 10vh;
    background-color: steelblue;
    text-align: center;
    padding: 10px;
}

footer img {
    width: 40px;
    max-width: 100%;
}

footer a {
    color: white;
    margin: 5px;
}

img {
    max-width: 100%;
}

video {
    width: 70%;
    max-width: 100%;
}

.tri {
    display: flex;
    gap: 10px;
}

.tri div {
    width: 33%;
    background-color: white;
    padding: 8px;
}

.tri img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.tri h3 {
    text-align: center;
}

.moja-slika {
    width: 180px;
}

/* tablet */
@media screen and (max-width: 900px) {
    body {
        background-color: lightyellow;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header header"
            "nav nav"
            "section section"
            "article aside"
            "footer footer";
    }

    nav a {
        display: inline-block;
    }

    .tri {
        display: block;
    }

    .tri div {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* mobitel */
@media screen and (max-width: 600px) {
    body {
        background-color: lightpink;
    }

    .grid {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "nav"
            "section"
            "article"
            "aside"
            "footer";
    }

    nav a {
        display: block;
    }

    .tri {
        display: block;
    }

    .tri div {
        width: 100%;
        margin-bottom: 10px;
    }

    video {
        width: 100%;
    }
}