* {
    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: 55vh;
}

.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;
    width: 100vw;
    height: auto;
    margin-bottom: 14vh;
    user-select: none;
}

main section {
    width: 50%;
}

.text-btn {
    position: relative;
    z-index: 4;
    margin: 5vh 0;
    color: white;
    background-color: var(--yellow);
    padding: 2vh 2.8vw 2vh 3vw;
    font-size: 1.1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03rem;
    border-radius: 0.6rem;
    border: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.text-btn .arw {
    margin-left: 0.5rem;
    width: 2.5rem;
    height: 0.8rem;
    transition: width 0.3s ease-out, margin-left 0.3s ease-out;
}

.text-btn:hover {
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease-out;
}

.text-btn:hover .arw {
    margin-left: 1rem;
    width: 3rem;
    transition: width 0.3s ease-out, margin-left 0.3s ease-out;
}

.det-wrap {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
}

.grid-btn {
    width: 80%;
    display: flex;
    margin-left: 7%;
}

.img-wrap {
    align-self: flex-end;
    transform: translateY(10%);
    position: relative;
    display: flex;
    overflow: visible;
    justify-content: center;
    align-items: flex-end;
}

strong {
    font-weight: 900;
}

.sixty {
    height: 60vh;
}

.seventy {
    height: 75vh;
}

.eighty {
    height: 80vh;
}

.ninety {
    height: 90vh;
}

.hundred {
    height: 100vh;
}

.img-wrap img {
    max-height: 110%;
    min-width: 70%;
    object-fit: contain;
    justify-self: flex-end;
}

/* DOLE SU JE ZA DETAILS */

.indicator {
    align-self: center;
    justify-self: center;
    position: relative;
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 50%;
    background-color: var(--yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    cursor: pointer;
}

.line {
    position: absolute;
    min-width: 1rem;
    min-height: 0.2rem;
    border-radius: 0.2rem;
    background-color: white;
}

.plus::after {
    content: '';
    position: absolute;
    min-width: 1rem;
    min-height: 0.2rem;
    border-radius: 0.2rem;
    background-color: white;
    transform: rotate(90deg);
}

.detail {
    position: relative;
    z-index: 3;
    margin-top: 2vh;
    width: 80%;
    display: grid;
    grid-template-columns: 5% 95%;
    row-gap: 2vh;
    column-gap: 2vw;
}

.question {
    grid-row: 1 / span 1;
    grid-column: 2 / span 1;
}

.answer {
    grid-row: 2 / span 1;
    grid-column: 2 / span 1;
}

.detail h4 {
    cursor: pointer;
    color: var(--yellow);
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
}

.show {
    max-height: 100vh;
    opacity: 1;
    animation-delay: 0.2s;
    transition: max-height 0.7s ease-out 0.2s, opacity 0.4s ease-out 0.2s;
}

.hide {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.detail hr {
    height: 0.3rem;
    width: 90%;
    border: none;
    border-bottom: 0.15rem var(--yellow) solid;
    grid-row: 2 / span 1;
    grid-column: 2 / span 1;
    align-self: end;
}

.detail p {
    margin-bottom: 3vh;
    user-select: all;
}

.detail p::selection {
    background: var(--yellow);
    color: var(--dark-purple);
}


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

    header {
        height: 60vh;
    }

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

    .detail h4 {
        font-size: 17px;
        margin: 2vh 0;
    }

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

    .det-wrap {
        width: 60%;
    }
    
    .img-wrap {
        width: 40%;
    }

    .detail {
        width: 90%;
    }

    .text-btn {
        margin: 5vh 0 7vh 7%;
        padding: 2.4vh 4vw 2.4vh 4vw;
        font-size: 13px;       
    }
    
    .text-btn .arw {
        margin-left: 1rem;
        width: 3rem;
        height: 1rem;
    }
}

@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 {
        width: 100%;
        margin: 6vh auto;
        flex-direction: column-reverse;
        width: 100vw;
        margin-bottom: 14vh;
    }

    main section {
        width: 100%;
    }

    .grid-btn {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        width: 90%;
    }

    .text-btn {
        justify-self: start;
        margin: 5vh 0 5vh 0;
        padding: 2vh 8vw;
        font-size: 1.8rem;
    }

    .text-btn .arw {
        display: inline;
        margin-left: 1rem;
        width: 4rem;
        height: 1rem;
    }

    .det-wrap {
        align-items: center;
    }

    .img-wrap {
        height: auto;
    }

    .img-wrap img {
        width: 90%;
        justify-self: center;
    }

    .indicator {
        height: 2.5rem;
        width: 2.5rem;
        margin-right: 2vw;
    }

    .line {
        min-width: 1.5rem;
        min-height: 0.3rem;
    }

    .plus::after {
        min-width: 1.5rem;
        min-height: 0.3rem;
    }

    .detail {
        width: 90%;
        columns: 5% 90%;
    }

    .detail h4 {
        font-size: 2.4rem;
    }

    .detail p {
        width: 95%;
        font-size: 2rem;
    }

    .show {
        transition: max-height 0.4s ease-out 0.1s, opacity 0.4s ease-out 0.1s;
    }
    
    .hide {
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    }
}


