* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #fcae24;
    --dark-purple: #2F0A63;
    --grey: #66626C;
}

html {
    font-family: 'Lato', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

p {
    line-height: 130%;
    letter-spacing: 0.03rem;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}


h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

h3 {
    font-weight: 900;
    color: var(--yellow);
    font-size: 2.8rem;
    line-height: 2.6rem;
}

section p {
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #49444f;
}

.arw {
    margin-left: 0.3rem;
    width: 2.5rem;
    height: 0.7rem;
    transition: width 0.3s ease-out, margin-left 0.3s ease-out;
}

/* GORE SU PODESAVANJA IZ MAIN */


header {
    background: url('../static/vectors/cover.svg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    height: 50vh;
}

.cover {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    margin: 0 auto;
    width: 84%;
}

.cover h1 {
    margin-top: 7vh;
    color: var(--yellow);
    font-size: 2.6rem;
    line-height: 2.5rem;
    cursor: default;
}

.cover p {
    color: white;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    margin-top: 1.5vh;
}

main {
    margin: 6vh auto;
    display: flex;
    flex-direction: column;
    width: 84%;
    height: auto;
    margin-bottom: 14vh;
    user-select: none;
}

.category {
    height: 10vh;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.category h2, .category p {
    color: #DDD;
}

hr {
    height: 50%;
    width: 100%;
    border: none;
    border-bottom: #DDD 0.12rem solid;
}

.category h2 {
    padding-right: 1vw;
    line-height: 80%;
    align-self: flex-end;
    font-size: 3rem;
}

.category p {
    padding-left: 1vw;
    line-height: 80%;
    font-size: 1.3rem;
    white-space: nowrap;
    font-weight: 600;
}

.card-grid {
    margin: 5vh 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    column-gap: 2vw;
    row-gap: 2vw;
}

.card {
    height: 26vh;
    padding: 1.2rem 2rem;
    background-color: white;
    border-radius: 0.8rem;
    box-shadow: 0 0 0.5rem 0.1rem rgba(47, 10, 99, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

.card-name {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.2s ease-out;
}

.card-line {
    width: 30%;
    height: 1.2vh;
    margin-bottom: 1.5vh;
    border-bottom: var(--yellow) 0.12rem solid;
    transition: width 0.6s ease-out, border-color 0.2s ease-out;
}

.card-link {
    justify-self: center;
    font-size: 1.1rem;
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 0.5vh;
    transition: color 0.2s ease-out;
}

.card:hover {
    background-color: var(--dark-purple);
    color: white;
    transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

.card:hover .card-line {
    width: 40%;
    border-color: white;
    transition: width 0.6s ease-out, border-color 0.2s ease-out;
}

.card:hover .card-name {
    color: white;
    transition: color 0.2s ease-out;
}

.card:hover p {
    color: white;
    transition: color 0.2s ease-out;
}

.card:hover img {
    filter: brightness(1000%);
    transition: filte 0.2s ease-out;
}

.card:hover .card-link {
    color: white;
    transition: color 0.2s ease-out;
}

.card-link:hover .arw {
    margin-left: 0.2rem;
    width: 4rem;
    transition: width 0.3s ease-out, margin-left 0.3s ease-out;
}

@media (max-aspect-ratio: 16/10) and (orientation: landscape) {
    
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-aspect-ratio: 12/10) and (orientation: landscape) {
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1080px) and (orientation: landscape) {

    header {
        height: 60vh;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h3, .cover h1 {
        font-size: 26px;
        line-height: 26px;
    }

    .cover p, section p {
        font-size: 15px;     
    }

    .card {
        height: 34vh;
    }

    .card-name {
        font-size: 18px;
    }

    .card-link {
        font-size: 12px;
    }
}

@media (orientation: portrait) {

    header {
        height: 45vh;
    }

    .cover h1 {
        width: 100%;
        margin-top: 4vh;
        text-align: center;
        font-size: 3rem;
        line-height: 3rem;
    }

    .cover p {
        width: 94%;
        text-align: center;
        margin: 1vh auto;
        font-size: 2rem;
    }

    main {
        margin: 0 auto;
        width: 90%;
        margin-bottom: 16vh;
    }

    .category {
        height: 7vh;
    }

    .category h2 {
        font-size: 3rem;
    }

    .category p {
        font-size: 1.6rem;
    }

    .card-grid {
        grid-template-columns: repeat(1, 1fr);
        margin: 3vh 0;
        row-gap: 3vh;
    }

    .card {
        height: auto;
        padding: 2rem 3rem;
    }

    .card-name {
        font-size: 3rem;
    }

    .card p {
        font-size: 2rem;
        margin-bottom: 6vh;
    }

    .card-link {
        font-size: 2rem;
    }

    .card .arw {
        margin-left: 0.8rem;
        width: 4rem;
        height: 1rem;
    }

    .card:active {
        background-color: var(--dark-purple);
        color: white;
        transition: color 0.2s ease-out, background-color 0.2s ease-out;
    }
    
    .card:active .card-line {
        width: 40%;
        border-color: white;
        transition: width 0.6s ease-out, border-color 0.2s ease-out;
    }
    
    .card:active .card-name {
        color: white;
        transition: color 0.2s ease-out;
    }
    
    .card:active p {
        color: white;
        transition: color 0.2s ease-out;
    }
    
    .card:active img {
        filter: brightness(1000%);
        transition: filte 0.2s ease-out;
    }
    
    .card:active .card-link {
        color: white;
        transition: color 0.2s ease-out;
    }
    
    .card:active .arw {
        margin-left: 0.2rem;
        width: 4rem;
        transition: width 0.3s ease-out, margin-left 0.3s ease-out;
    }
}