
body {
    margin: 0;
    padding: 0;
    background-color: #C20315;
    height: 100vh;
    font-family: "masqualero-stencil";
}

.side-tree {
    position: fixed;
    width: 408px;
    height: 937px;
    z-index: 1;
    pointer-events: none;
}

.left-tree {
    left: 0;
    top: 0;
}

.right-tree {
    right: 0;
    bottom: 0;
    position: fixed;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    z-index: 5;
    position: relative;
}

.title-wrapper h1 {
    text-align: center;
    font-size: min(6vw, 90px);
    font-weight: 400;
    color: #D1B265;
    margin-bottom: 0px;
    margin-top: 44px;
    line-height: 1.0;
    position: relative;
}

.articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: center;
    justify-items: center;
    width: 100%;
    z-index: 5;
    position: relative;
}


.article {
    max-width: 390px;
    margin-bottom: 20px;
}

.article .article-figure {
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.article .article-figure:hover img,
.article .article-figure:focus img {
    transform: scale(1.05);
}

.article img {
    width: 100%;
    display: block;
    object-fit: contain;
    transition: all .5s linear;
}

.article h3 {
    margin: 10px 0 20px;
    color: #D1B265;
    font-size: min(1.7vw, 28px);
    font-weight: 400;
    font-family:"masqualero";
    transition: color .5s linear;
}

.article .article-link {
    color: #D1B265;
    text-decoration: none;
}

.article .article-link:hover h3, .article-link a:focus h3 {
    color: #a88836;
}

/* gestures */

.gestures-section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 50px auto;
    box-sizing: border-box;
}

.gestures-stars {
    position: absolute;
    pointer-events: none;
    top: 0px;
    width: 100%;
    height: 100%;
}

.gestures-title {
    position: relative;
    text-align: center;
    font-size: min(6vw, 62px);
    font-weight: 400;
    color: #D1B265;
    line-height: 1.0;
    margin: 0 auto 40px auto;
}

.gestures-wrapper {
    background: url('img/golden-bg.jpg') repeat-y;
    background-size: cover;
    padding: 80px 55px;
}

.gestures-container {
    background: url('img/gestures-bg.jpg') repeat-y;
    background-size: cover;
    padding: 20px 20px;
}

.gestures {
    font-family: "Cormorant", serif;
    list-style-type: none;
}

.gesture-item {
    position: relative;
    margin-bottom: 30px;
}

.gesture-item::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -40px;
    background-image: url('img/icon-stars.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 35px;
    height: 40px;
}

.gesture-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    margin: 0 auto 10px auto;
}

.gesture-text {
    font-size: 24px;
    line-height: 1.4;
    margin: 0;
}

.logo-gz {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* zvjezdice */

.tree-stars .art-zvjezdice,
.global-stars .art-zvjezdice,
.gestures-stars .art-zvjezdice {
    position: absolute;
    width: 20px;
    height: 20px; 
    background-image: url("img/blink-zvjezdica-zl.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.title-stars {
    position: absolute;
    pointer-events: none;
}

.global-stars {
    top: -80px;
    left: 50%;
    width: 500px;
    height: 260px;
    transform: translateX(-50%);
}

.global-stars .art-zvjezdice,
.gestures-stars .art-zvjezdice {
    position: absolute;
    width: 28px;
}

.global-stars .art-zvjezdice:nth-child(1),
.gestures-stars .art-zvjezdice:nth-child(1) { top: 33px; left: 5%; }
.global-stars .art-zvjezdice:nth-child(2),
.gestures-stars .art-zvjezdice:nth-child(2) { top: 35px; left: 35%; }
.global-stars .art-zvjezdice:nth-child(3),
.gestures-stars .art-zvjezdice:nth-child(3) { top: 40px; left: 70%; }
.global-stars .art-zvjezdice:nth-child(4),
.gestures-stars .art-zvjezdice:nth-child(4) { top: 32px; right: 5%; }
.global-stars .art-zvjezdice:nth-child(5),
.gestures-stars .art-zvjezdice:nth-child(5) { top: 58px; left: 33%; }
.global-stars .art-zvjezdice:nth-child(6),
.gestures-stars .art-zvjezdice:nth-child(6) { top: 31px; left: 60%; }
.global-stars .art-zvjezdice:nth-child(7),
.gestures-stars .art-zvjezdice:nth-child(7) { top: 35px; left: 45%; }
.global-stars .art-zvjezdice:nth-child(8),
.gestures-stars .art-zvjezdice:nth-child(8) { top: 60px; left: 75%; }
.global-stars .art-zvjezdice:nth-child(9),
.gestures-stars .art-zvjezdice:nth-child(9) { top: 62px; right: 7%; }
.global-stars .art-zvjezdice:nth-child(10), 
.gestures-stars .art-zvjezdice:nth-child(10) { top: 50px; left: 48%; }


.tree-stars {
    position: fixed;
    width: 200px; 
    height: 700px;
    pointer-events: none;
    z-index: 10;
}

.left-stars {
    top: 10%;
    left: 0%;
}

.right-stars {
    top: 35%;
    right: 0%;
}

.tree-stars .art-zvjezdice {
    position: absolute;
    width: 20px;
    content: url(img/blink-zvjezdica-zl.png);
}

.left-stars .art-zvjezdice:nth-child(1) { top: 0%; left: 1%; }
.left-stars .art-zvjezdice:nth-child(2) { top: 11%; left: 42%; }
.left-stars .art-zvjezdice:nth-child(3) { top: 51%; left: 3%; }
.left-stars .art-zvjezdice:nth-child(4) { top: 75%; left: 35%; }
.left-stars .art-zvjezdice:nth-child(5) { top: 80%; left: 7%; }
.left-stars .art-zvjezdice:nth-child(6) { top: 95%; left: 50%; }
.left-stars .art-zvjezdice:nth-child(7) { top: 99%; left: 16%; }
.left-stars .art-zvjezdice:nth-child(8) { top: 100%; left: 5%; }
.left-stars .art-zvjezdice:nth-child(9) { top: 87%; left: 51%; }
.left-stars .art-zvjezdice:nth-child(10) { top: 103%; left: 50%; }

.right-stars .art-zvjezdice:nth-child(1) { top: 10%; right: 20%; }
.right-stars .art-zvjezdice:nth-child(2) { top: 50%; right: 60%; }
.right-stars .art-zvjezdice:nth-child(3) { top: 80%; right: 40%; }
.right-stars .art-zvjezdice:nth-child(4) { top: 13%; right: 47%; }
.right-stars .art-zvjezdice:nth-child(5) { top: 35%; right: 70%; }
.right-stars .art-zvjezdice:nth-child(6) { top: 52%; right: 5%; }
.right-stars .art-zvjezdice:nth-child(7) { top: 24%; right: 50%; }
.right-stars .art-zvjezdice:nth-child(8) { top: 59%; right: 78%; }
.right-stars .art-zvjezdice:nth-child(9) { top: 81%; right: 98%; }
.right-stars .art-zvjezdice:nth-child(10) { top: 79%; right: 64%; }

.blink1, .blink2, .blink3 {
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}

.blink1 { animation-name: blink1; animation-duration: 5s; }
.blink2 { animation-name: blink2; animation-duration: 6s; }
.blink3 { animation-name: blink3; animation-duration: 7s; }


@media (min-width: 1800px) {

    .title-wrapper {
        margin-top:70px;
    }

    /*
    .container {
        height: calc(100vh - 395px);
    }
    */
}

@media (min-width: 2100px) {

    .title-wrapper {
        margin: 114px 0 64px;
    }
}

@media (max-width: 1599px) {

    .title-wrapper {
        margin-top: 50px;
    }

    .title-wrapper h1 {
        font-size: 60px;
        color: #D1B265;
    }
}

@media (max-width: 1440px) {
    .title-wrapper {
        margin-top: 80px;
    }

    /*
    .container {
        height: calc(100vh - 200px);
    }*/
}

@media (max-width: 1100px) {
    .gestures-wrapper {
        padding: 50px;
    }

    .gestures-container {
        padding: 15px 15px;
    }

    .gestures {
        padding-left: 35px;
    }

    .gesture-title {
        font-size: 28px;
    }

    .gesture-text {
        font-size: 22px;
    }

    .gesture-item::before {
        left: -35px;
        width: 30px;
        height: 34px;
    }

    .logo-gz {
        max-width: 300px;
    }
}


@media(max-width: 900px) {

    .articles {
        grid-template-columns: 1fr;
    }

    .article img {
        height: 18vh;
    }

    .title-wrapper {
        margin-top: 20px;
    }

    /* .side-tree {
        display: none;
    } */
}

@media (min-width: 768px) and (max-width: 900px) {

    .title-wrapper {
        margin: 86px;
    }

    .title-wrapper h1 {
        font-size: 93px;
    }
    
    .container {
        margin-top: 26px;
        /*height: calc(100vh - 583px);*/
    }

    .articles {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
    }

    .side-tree {
        width: 200px;
        height: 400px;
    }

    .right-tree {
        position: fixed;
    }

}


@media (max-width: 767px) {

    body {
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .title-wrapper {
        margin: 185px 20px 100px;
    }

    .title-wrapper h1 {
        font-size: 45px;
    }

    .container {
        width: 100%;
        padding: 0;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
    }
    
    .articles {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
        max-width: 400px;
        padding: 0;
        align-items: center;
    }

    .article {
        max-width: 100%;
        width: 100%;
    }

    .article img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .article h3 {
        font-size: clamp(20px, 5vw, 26px);
        text-align: center;
    }

    .gestures-wrapper {
        padding: 30px;
    }

    .gestures-container {
        padding: 10px 10px;
    }

    .gestures {
        padding-left: 25px;
    }

    .gesture-title {
        font-size: 22px;
    }

    .gesture-text {
        font-size: 18px;
    }

    .gesture-item::before {
        left: -25px;
        width: 25px;
        height: 28px;
    }

    .logo-gz {
        max-width: 250px;
    }

    .side-tree {
        display: none !important;
    }

    .tree-stars{
        display: none !important;
    }

    .global-stars {
        width: 100%;
        top: -40%;
        max-width: 320px;
        left: 50%;
        transform: translateX(-50%);
        left: 0;
        transform: none;
        margin: 0 auto;
        right: 0;
    }
}

@media (max-width: 500px) {
    body {
        background-color: #C20315;

        background-image:
            url("img/image_1.png"),
            url("img/image_2.png"),
            url("img/image_3.png"),
            url("img/image_1.png"),
            url("img/image_2.png"),
            url("img/image_3.png"),
            url("img/image_1.png");


        background-position:
            left 5% top 0%,
            right 0% top 15%,
            left 5% top 33%,
            right 0% top 54%,
            left 5% top 62%,
            right 0% top 80%,
            left 12% top 100%;


        background-size:
            120px,
            120px,
            110px,
            130px,
            130px,
            120px,
            150px;

        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}


@keyframes blink1 {
    0%,60%,100% { opacity: 0; transform: scale(1); }
    66%,72% { opacity: 1; transform: scale(1.2); }
}

@keyframes blink2 {
    0%,10%,20%,25%,100% { opacity: 0; transform: scale(1); }
    12%,22% { opacity: 1; transform: scale(1.2); }
}

@keyframes blink3 {
    0%,70%,100% { opacity: 0; transform: scale(1); }
    30%,55%,92% { opacity: 1; transform: scale(1.2); }
}
