*{
    box-sizing: border-box;
}

body{
    background-color: rgb(226, 112, 129);
    display: grid;
    grid-template-rows: 1fr auto 3fr 1fr;
    min-height: 100vh;
    margin: 0;
}

header{
    background-color: rgb(117, 7, 24);
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 26px;
}

header img{
    max-width: 20%;
}

h1{
    margin: 0;
}

.wrapper_header{
    max-width: 960px;
    width: 100%;
    justify-self: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100%;
}

.hero{
    display: flex;
    background-color: rgb(62,0,0);
    object-fit: cover;
    min-height: 300px;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    justify-content: center;
}

.naslov h1{
    font-size: 28px;
    text-shadow: 2px 2px 5px black;
}

.linija{
    width: 50px;
    height: 5px;
    background-color: white;
    margin: 10px;
}

.logo{
    text-shadow: 2px 2px 5px black;
}

main{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    width: 100%;
    justify-self: center;
}

.card{
    margin-top: 25px;
    gap: 10px;
    background-color: rgb(62,0,0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.card:nth-child(3){
    border-top-right-radius: 5px;
}

.card:nth-child(1){
    border-top-left-radius: 5px;
}

.card img{
    max-height: 70%;
    object-fit: cover;
    border-radius: 5px;
}

a{
    text-decoration: none;
    color: white;
}

.text-lines{
    background-color: rgb(62,0,0);
    grid-column: 1/4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 10px;
    margin-bottom: 25px;
}

.slika img{
  max-width: 100%;
  height: 100%;
  border-radius: 5px;
}

.text-drzac{
    grid-column: 2/4;
    display: flex;
    align-items: center;
    margin-left: 17px;
}

footer{
    background-color: rgb(95, 13, 25);
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.wrapper_footer{
    max-width: 960px;
    width: 100%;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.footer-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reper{
    max-width: 960px;
    width: 100%;
    justify-self: center;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reper h2{
    background-color: rgb(117, 7, 24);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px black;
}


@media(max-width: 768px){
    body{
        grid-template-rows: 150px auto auto 150px;
    }
    main{
        grid-template-columns: 1fr 1fr;
    }
    .text-lines{
        grid-template-columns: 1fr 1fr;
        grid-column: 1/3;
    }
    .test-drzac{
        grid-column: 1/3;
    }
    main .card:nth-child(3){
        grid-column: 1/3;
    }
}

@media(max-width: 576px){
    body{
        grid-template-rows: 150px auto auto 150px;
    }
    main{
        grid-template-columns: 1fr;
    }
    .text-lines{
        grid-template-columns: 1fr;
        grid-column: 1/2;
    }
    .test-drzac{
        grid-column: 1/2;
    }
    main .card:nth-child(3){
        grid-column: 1/2;
    }
}