* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #edb200;
    display: grid;
    grid-template-rows: 120px 350px auto 120px;
    min-height: 100vh;
}

header {
    background-color: #111;
    color: white;
    display: flex;
    align-items: center;
}

.wrapper_header {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav {
    font-size: 14px;
}

.hero {
   background-color: #3b3b3b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 213, 5);
    text-align: center;
}

.hero h1 {
    font-size: 32px;
}


main {
    max-width: 1000px;
    width: 100%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: rgb(0, 0, 0);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    color: white;
}

.card:hover {
    transform: scale(1.03);
}

.card h3 {
    margin-bottom: 10px;
    color: #d2d4d5;
}


.slika img {
    width: 100%;
    border-radius: 10px;
}

.test_drzac {
    grid-column: 2 / 4;
     background-color: #3b3b3b;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.line {
    background-color: #ffcc00;
    padding: 10px;
    border-radius: 6px;
}


footer {
    background-color: #111;
    color: white;
    display: flex;
    align-items: center;
}

.wrapper_footer {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media (max-width: 768px) {

    main {
        grid-template-columns: 1fr 1fr;
    }

    .test_drzac {
        grid-column: 1 / 3;
    }

    main .card:nth-child(3) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 600px) {

    main {
        grid-template-columns: 1fr;
    }

    .test_drzac {
        grid-column: 1 / 2;
    }

    .wrapper_header,
    .wrapper_footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}