*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Bahnschrift, Arial, Helvetica, sans-serif;
}
body{
    background-color: oklch(88.5% 0.062 18.334);
    display: grid;
    grid-template-rows: 150px 300px auto 150px;
    min-height: 100dvh;
    margin: 0;
}
header{
    background-color: oklch(88.5% 0.062 18.334);
}
nav{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.wrapper_header{
    padding: 0 1rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
}
a{
    text-decoration: none;
    padding: 0.5rem;
    background-color: oklch(50.5% 0.213 27.518);
    color: oklch(97.1% 0.013 17.38);
    border-radius: 1rem;
}
h1{
    color: oklch(39.6% 0.141 25.723);
}
h2{
    color: oklch(97.1% 0.013 17.38);
    margin-top: 1rem;
    margin-left: 1rem;
}
.hero{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero_img.jpg');
    background-size: cover;
    box-shadow: 0 0 5px;
}
.inner-wrapper{
    max-width: 960px;
    width: 100%;
    justify-self: center;
    min-height: 100%;
}
main{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-self: center;
    max-width: 960px;
    width: 100%;
    color: oklch(39.6% 0.141 25.723);
    box-shadow: 0 0 5px;
    align-content: start;
}
.card{
    padding: 1rem;
    background-color: oklch(80.8% 0.114 19.571);
    margin: 1rem;
}
.text-lines{
    background-color: oklch(50.5% 0.213 27.518);
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1rem;
    color: oklch(97.1% 0.013 17.38);
    gap: 1rem;
}
.slika{
    background-image: url('main_img.jpg');
    background-size: cover;
    border-radius: 1rem;
    min-height: 7rem;
}
footer{
    background-color: oklch(25.8% 0.092 26.042);
    color: oklch(88.5% 0.062 18.334);
    box-shadow: 0 0 5px black;
}
.wrapper_footer{
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
    padding: 0 1rem;
}

/* Varijante .card stila */
.card.accent{
    background-color: oklch(70% 0.16 22);
    font-style: italic;
}
.card.light{
    background-color: oklch(91% 0.05 18);
    font-size: 0.95rem;
    color: oklch(30% 0.1 25);
}

/* Varijante .text-lines */
.text-lines.reversed{
    grid-template-columns: 2fr 1fr;
    background-color: oklch(39.6% 0.141 25.723);
}
.text-lines.reversed .slika{
    order: 2;
}
.text-lines.reversed .test{
    order: 1;
}
.text-lines.dark{
    background-color: oklch(25.8% 0.092 26.042);
    grid-template-columns: 1fr 2fr;
}

@media (max-width: 768px) {
    body{
        grid-template-rows: 150px auto auto 150px;
    }
    main{
        grid-template-columns: 1fr 1fr;
    }
    .text-lines,
    .text-lines.reversed,
    .text-lines.dark {
        grid-column: 1 / 3;
        grid-template-columns: 1fr 1fr;
    }
    .text-lines.reversed .slika,
    .text-lines.reversed .test {
        order: unset;
    }
    main .card:nth-child(3){
        grid-column: 1 / 3;
    }
}
@media (max-width: 600px) {
    main{
        grid-template-columns: 1fr;
    }
    .text-lines,
    .text-lines.reversed,
    .text-lines.dark {
        grid-column: 1 / 2;
        grid-template-columns: 1fr;
    }
    main .card:nth-child(3){
        grid-column: 1 / 2;
    }
}