* {
    font-family: Tahoma, sans-serif;
    font-size: 11pt;
    margin: 0 auto;
    padding: 0;
}

/* HEADER */

header {
    width: 100%;
    height: 250px;
    background-image: url(slike/zaglavlje.jpg);
    background-size: cover;
}

/* NAV */

nav,
nav ul,
nav li {
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0.3em;
    gap: 3em;
}

nav ul,
nav li,
nav a {
    text-decoration: none;
    color: #275070;
    font-weight: bold;
}

.link {
    position: relative;
    width: fit-content;
    cursor: pointer;
    letter-spacing: 1px;
}

.link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #3b79a9;
    transition: 0.35s;
}

.link:hover {
    color: #3b79a9;
}

.link:hover::before {
    width: 100%;
}

/* SECTION */

section {
    min-height: 50vh;
    border-top: solid 2px #275070;
}

/* ARTICLE */

.mreza article {
    grid-area: art;
    background-color: #d1e2ef;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.mreza article h1 {
    font-size: 15px;
    color: #275070;
    padding: 10px;
    margin-left: 5em;
    margin-top: 10px;
}

.mreza article h2 {
    font-size: 20px;
    color: #275070;
    padding: 10px;
    margin-left: 3.7em;
}

.mreza article p {
    padding: 10px;
    margin-left: 5em;
    width: 90%;
}

.mreza article a {
    text-decoration: none;
    color: #79a93b;
    font-weight: bold;
}

/* ASIDE */

aside {
    grid-area: side;
    background-color: #3b79a9;
    width: 330px;
    height: 575px;
    display: flex;
    flex-direction: column;
}

aside h2 {
    color: #fff;
    padding: 10px;
    margin-top: 6px;
    font-size: 15px;
}

aside ul,
li {
    margin: 5px 0 0 10px;
    line-height: 20px;
}

/* FOOTER */

footer {
    height: 80px;
    background-color: #275070;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

footer a {
    color: #79a93b;
}

/* KARTE */

.karte {
    background-color: #d1e2ef;
    display: flex;
    flex-direction: row;
}

.karte article {
    width: 100%;
}

.karte article h1 {
    font-size: 25px;
    color: #275070;
    padding: 10px;
    margin-left: 4.2em;
    margin-top: 8px;
}

.karte article h2 {
    font-size: 20px;
    color: #275070;
    padding: 10px;
    margin-left: 5.2em;
    margin-top: 8px;
}

.karte aside {
    width: 400px;
}

.karte aside h2 {
    font-size: 18px;
    margin-top: 4px;
}

.karte aside ul,
li {
    margin: 0 0 0 0.8em;
}

/* IMG */

.mreza article img {
    width: 620px;
    height: 40%;
    margin-left: auto;
    margin-right: 50px;
    margin-top: 70px;
}

.karte img {
    width: 280px;
    height: 300px;
    margin-right: 4em;
}

.img {
    display: block;
    margin-left: 2em;
    margin-top: 2em;
}

img:hover {
    transition: .3s ease;
    transform: scale(1.1);
}

/* GRID */

.mreza {
    display: grid;
    grid-template-rows: repeat(2, 150px);
    grid:
        "art art side side"
        "art art side side";
}

/* HAMBURGER */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    width: 100%;
    cursor: pointer;
    padding: 15px;
    position: fixed;
    top: 0;
    padding-left: 44%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #275070;
    transition: all 0.3s ease;
}

/* MEDIA QUERY */
@media only screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav {
        display: none;
        position: fixed;
        height: 200px;
        top: 55px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        z-index: 1;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1em;
        padding: 0;
    }
    
    nav li {
        margin: 10px 0;
    }
    
    .menu-toggle:checked ~ nav {
        display: block;
    }
    
    .menu-toggle:checked + .hamburger .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked + .hamburger .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .hamburger .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* HEADER */

    header {
        height: 200px;
        background-size: cover;
        background-position-x: 22.2%;
        background-repeat: no-repeat;
    }

    /* GRID, ARTICLE, ASIDE */

    .mreza {
        display: flex;
        flex-direction: column;
    }

    .mreza article {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .mreza article h1 {
        margin-left: 3em;
    }

    .mreza article h2 {
        margin-left: 2.2em;
    }

    .mreza article p {
        margin-left: 3em;
        width: 75%;
    }

    .mreza article img {
        width: 60%;
        height: auto;
        margin: 20px auto;
        order: 2;
    }

    img:hover {
        transition: .3s ease;
        transform: scale(1.1);
    }

    .mreza aside {
        display: flex;
        flex-direction: column;
        order: 3;
        width: 100%;
        max-height: 320px;
    }

    /* KARTE */

    .karte {
        flex-direction: column;
    }

    .karte article h1 {
        margin-left: 2em;
    }

    .karte article h2 {
        margin-left: 2.5em;
    }

    .karte article p {
        margin-left: 3em;
        width: 75%;
    }

    .karte aside {
        max-height: 320px;
        width: 100%;
        order: 1;
    }

    .karte article {
        order: 2;
    }

    .karte .img {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 2em;
        margin: 20px 10% 50px 0;
    }

    .karte img {
        width: 60%;
    }
}