*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --temno-sina: #0E284F;
  --svetlo-sina: rgb(55, 148, 255);
  text-wrap: pretty;
  a{
    text-decoration: none;
    text-align: center;
  }
}

.wrapper{
    height: 100svh;
    width: 100%;
    padding-block-end: 0.5rem;
    display: grid;
    grid-template-rows: 80svh 19svh;
}

#glavna-slika{
    min-height: 100%;
    background-image: url("/vremeeza/img/print.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.ispis{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    padding-inline: 5%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;

    h1{
        color: white;
        text-transform: uppercase;
    }

    span{
        color: var(--svetlo-sina)
    }

    a{
        text-decoration: none;
        color: white;
        padding: 0.75rem 1.5rem;
        border: 1px solid white;
        border-radius: 8px;
        background-color: var(--temno-sina);
        transition: all 0.3s ease-out;
    }

    a:hover, a:active{
        transform: scale(1.1);
        background-color: var(--svetlo-sina);
    }
}


.cards{
    width: 95%;
    max-width: 1200px;
    margin-inline: auto;
    padding-block-start: .75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.35);
    background-blend-mode: multiply;
    cursor: pointer;

    h2{
        font-size: 1.25rem;
        color: white;
        text-transform: uppercase;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    a{
        text-decoration: none;
        color: inherit;
    }

    .nevidliv{
        visibility: hidden;
    }
}

.card:hover{
    transform: translateY(-0.5rem);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

a:nth-child(1) .card{
    background-image: url("/vremeeza/img/web-design.webp");
}

a:nth-child(2) .card{
    background-image: url("/vremeeza/img/print.webp");
}

a:nth-child(3) .card{
    background-image: url("/vremeeza/img/paragliding.webp");
}

a:nth-child(4) .card{
    background-image: url("/vremeeza/img/SpecijalnaPonudaMala.webp");
}

@media only screen and (max-width: 600px) {
    .wrapper{
        grid-template-rows: 85svh 14svh;
    }

    .ispis h1{
        font-size: 1rem;
    }

    .ispis a{
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border: 1px solid white;
        border-radius: 8px;
        background-color: var(--temno-sina);
        transition: all 0.3s ease-out;
    }

    .card h2{
        font-size: 3vw;
    }

    .cards{
        gap: 1rem;
        padding-block-end: 0.5rem;
    }
}