html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
    background-color: #C20315;
    overflow: hidden;
    font-family:"masqualero-stencil";
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-wrapper h1 {
    font-size: 113px;
    font-weight: 400;
    color: #D1B265;
    margin-bottom: 0px;
    margin-top: 44px;
}

.sparkle-title {
    /* display: inline-block; */
    font-size: 45px;
    line-height: 1.0;
    text-align: center;
    position: relative;
}

.sparkle-title .sparkle {
    display: block;
    margin-left: -290px;  
}

.sparkle-title .season {
    display: block;
    margin-left: 11px;
}

.trees {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin: 0 100px;
}

.trees img.tree {
    width: 100%;
    max-width: 550px;
}

.trees img.ribbon {
    width: 74%;
    margin-top: -129px;
    left: -5px;
    position: relative;
    z-index: 2;
}

.tree-block {
    position: relative;
    text-align: center;
}

.tree-block .star {
    position: absolute;
    top: -12px; /* */
    left: 50%;
    transform: translateX(-50%);
    width: 75px; /* */
    z-index: 3;
}

.tree-block .tree {
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.tree-block a {
    text-decoration: none;
    color: inherit;
}

.title-wrapper {
    text-align: center;
    margin: 4vh 0 0 4vh;
}

/* .tree-block {
    text-align: center;
} */

.tree-block.second {
    top: 79px;
    position: relative;
}

.tree-block h2 {
    font-size: 50px;
    line-height: 10px;
    font-weight: 400;
    color: #D1B265;
    margin: 0;
}

.xmas-tree-decor {
    position: absolute;
    aspect-ratio: 1 / 1.65;
    transform: translate(50%, -50%);
    width: 100%;
    top: 59%;
    right: 52.5%;
    z-index: 10;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.art-zvjezdice {
    position: absolute;
    content: url(img/blink-zvjezdica-zl.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 10;
}

.art-zvjezdice:nth-child(1) { 
    width: 6%;
    top: -2%;
    right: 40%;         
}

.art-zvjezdice:nth-child(2) { 
    width: 6.4%;
    top: 15%;
    right: 50%;
}

.art-zvjezdice:nth-child(3) { 
    width: 6%;
    top: 17%;
    right: 34%;        
}

.art-zvjezdice:nth-child(4) { 
    width: 6.5%;
    top: 26%;
    right: 42%;
    transform: rotate(8deg);
}

.art-zvjezdice:nth-child(5) { 
    width: 9%;
    top: 23%;
    right: 53%;
}

.art-zvjezdice:nth-child(6) { 
    width: 5.8%;
    top: 34%;
    right: 60%;
    transform: rotate(68deg);
}

.art-zvjezdice:nth-child(7) { 
    width: 6.4%;
    top: 37%;
    right: 50%;
    transform: rotate(8deg);
}

.art-zvjezdice:nth-child(8) { 
    width: 9%;
    top: 68%;
    right: 44%;     
}

.art-zvjezdice:nth-child(9) { 
    width: 6.2%;
    top: 44%;
    left: 30%;
    transform: rotate(68deg);
}

.art-zvjezdice:nth-child(10) { 
    width: 6.2%;
    top: 39%;
    left: 66%;      
}

.art-zvjezdice:nth-child(11) { 
    width: 6.2%;
    top: 52.5%;
    left: 63%;      
}

.art-zvjezdice:nth-child(12) { 
    width: 6.5%;
    top: 55%;
    left: 19%;
}

.art-zvjezdice:nth-child(13) { 
    width: 6%;
    top: 57%;
    left: 35%;        
}

.art-zvjezdice:nth-child(14) { 
    width: 6.5%;
    top: 59%;
    left: 48%;
    transform: rotate(8deg);
}

.art-zvjezdice:nth-child(15) { 
    width: 9%; 
    top: 62%;
    left: 80%;    
}

.art-zvjezdice:nth-child(16) { 
    width: 6%;
    top: 65%;
    right: 26%;
    transform: rotate(68deg);
}

.art-zvjezdice:nth-child(17) { 
    width: 6.5%;
    top: 69%;
    left: 32%;
    transform: rotate(8deg);
}

.art-zvjezdice:nth-child(18) { 
    width: 9%;
    top: 69%;
    left: 14%;     
}

.art-zvjezdice:nth-child(19) { 
    width: 5.5%;
    top: 67%;
    left: 60%;
    transform: rotate(68deg);
}

.art-zvjezdice:nth-child(20) { 
    width: 5.5%;
    top: 74%;
    left: 9.2%;
    transform: rotate(68deg);
}

/* zvjezdice na naslov*/
.title-wrapper {
    position: relative;
}

.title-stars {
    position: absolute;
    pointer-events: none;
}

.title-stars .art-zvjezdice {
    position: absolute;
    width: 28px;
}

.title-stars .art-zvjezdice:nth-child(1) {
    top: -40px;
    left: 10%;
}

.title-stars .art-zvjezdice:nth-child(2) {
    top: -30px;
    left: 70%;
}

.title-stars .art-zvjezdice:nth-child(3) {
    top: 10px;
    left: -5%;
}

.title-stars .art-zvjezdice:nth-child(4) {
    top: 20px;
    right: -5%;
}

.title-stars .art-zvjezdice:nth-child(5) {
    top: -60px;
    left: 40%;
}

.global-stars {
    top: -80px;
    left: 50%;
    width: 500px;
    height: 260px;
    transform: translateX(-50%);
}

.global-stars .art-zvjezdice:nth-child(1) { 
    top: 10px;
    left: 5%; 
}

.global-stars .art-zvjezdice:nth-child(2) {
    top: -20px;
    left: 35%; 
}

.global-stars .art-zvjezdice:nth-child(3) { 
    top: -40px; 
    left: 70%; 
}

.global-stars .art-zvjezdice:nth-child(4) {
    top: 20px;
    right: 5%; 
}

.global-stars .art-zvjezdice:nth-child(5) { 
    top: 80px; 
    left: 10%; 
}

.global-stars .art-zvjezdice:nth-child(6) { 
    top: 110px; 
    left: 60%; 
}

.global-stars .art-zvjezdice:nth-child(7) { 
    top: 140px; 
    left: 25%; 
}

.global-stars .art-zvjezdice:nth-child(8) { 
    top: 160px; 
    right: 15%; 
}

.global-stars .art-zvjezdice:nth-child(9) { 
    top: 190px; 
    left: 45%; 
}

.global-stars .art-zvjezdice:nth-child(10){ 
    top: 200px; 
    right: 5%; 
}

.global-stars .art-zvjezdice:nth-child(11){ 
    top: 50px; 
    left: 75%; 
}

.global-stars .art-zvjezdice:nth-child(12){ 
    top: -10px; 
    right: 30%; 
}

.season-stars {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 300px;
    height: 120px;
    transform: translateX(-50%);
}

.season-stars .art-zvjezdice:nth-child(1) {
    top: -10px;
    left: 20%;
}

.season-stars .art-zvjezdice:nth-child(2) {
    top: -20px;
    left: 60%;
}

.season-stars .art-zvjezdice:nth-child(3) {
    top: 20px;
    left: 10%;
}

.season-stars .art-zvjezdice:nth-child(4) {
    top: 30px;
    left: 75%;
}

.season-stars .art-zvjezdice:nth-child(5) {
    top: 50px;
    left: 40%;
}


@media (min-width: 1600px) {

    .title-wrapper h1 {
        font-size: 95px;
    }

    .container {
        top: 53%;
    }
    .container h1 {
        font-size: 60px;
    }

    .trees img.tree {
        max-width: 430px;
    }

    .tree-block h2 {
        font-size: 40px;
        line-height: 40px;
    }

    .trees {
        gap: 140px;
    }

    .xmas-tree-decor {
        width: 93%;
        top: 52%;
        right: 59%;
    }
}

@media (min-width: 1800px) {

    .title-wrapper h1 {
        font-size: 106px;
    }

    .tree-block h2 {
        margin-top: 20px;
    }
}

@media (max-width: 1599px) {
    .container h1 {
        font-size: 50px;
    }

    .trees img.tree {
        max-width: 350px;
    }

    .tree-block h2 {
        font-size: 35px;
        line-height: 38px;
    }

    .trees {
        gap: 80px;
    }

}

@media (max-width: 1199px) {

    .title-wrapper {
        margin: 101px 0 78px 130px;
    }

    .title-wrapper h1 {
        font-size: 90px;
    }

    .trees {
        gap: 60px;
        margin: 0 40px;
    }

    .trees img.tree {
        max-width: 400px;
    }

    .tree-block h2 {
        font-size: 27px;
        line-height: 1.2;
    }

    .xmas-tree-decor {
        width: 78%;
        top: 50%;
        right: 52.2%;
    }
}

@media (max-width: 991px) {

    body {
        overflow-y: auto;
    }

    .container {
        position: static;
        transform: none;
        padding-bottom: 40px;
    }
    .trees {
        gap: 40px;
    }

    .trees img.tree {
        max-width: 330px;
    }

    .tree-block.second {
        top: 40px; 
    }

    .container h1 {
        font-size: 42px;
    }

    .tree-block h2 {
        font-size: 36px;
    }

    .xmas-tree-decor {
        width: 80%;
        top: 36%;
        right: 53.5%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    body {
        overflow: hidden;
    }

    .title-wrapper {
        margin:86px 0 0 133px;
    }

    .title-wrapper h1 {
        font-size: 93px;
    }

    .container {
        margin-top: 26px;
    }

    .tree-block:nth-child(2) {
        transform: translateY(62px);
    }

    .tree-block:nth-child(3) {
        transform: translateY(177px);
    }
}


@media (max-width: 767px) {
    body {
        overflow: auto;
        padding-top: 40px;
    }

    .title-wrapper h1 {
        font-size: 60px;
    }

    .container {
        position: static;
        transform: none;
        max-width: 100%;
    }

    .trees {
        flex-direction: column;
        gap: 40px;
        margin: 0;
         display: flex;
        flex-direction: column;
        gap: 40px; 
        align-items: center;
    }

    .tree-block:nth-child(1) {
        align-self: flex-start;
    }

    .tree-block:nth-child(2) {
        align-self: flex-end;
    }

    .tree-block:nth-child(3) {
        align-self: flex-start;
    }

    .tree-block .tree {
        max-width: 220px;
    }

    .trees img.tree {
        max-width: 320px;
    }

    .tree-block.second {
        top: 0;
    }

    .container h1 {
        font-size: 38px;
    }

    .tree-block h2 {
        font-size: 34px;
    }
}

@media (max-width: 575px) {
    .trees img.tree {
        max-width: 260px;
    }

    .title-wrapper {
        margin-bottom: 78px;
        margin-left: 0;
    }

    .container h1 {
        font-size: 32px;
    }

    .tree-block h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .trees {
        gap: 50px;
    }

    .sparkle-title .sparkle {
        margin-left: 0;
    }

    .xmas-tree-decor {
        width: 80%;
        top: 48%;
        right: 53.5%;
    }

    .global-stars {
        width: 260px;
        height: 150px;
        top: 0px;
    }

    .global-stars .art-zvjezdice {
        width: 18px;
    }

    .global-stars .art-zvjezdice:nth-child(1) {
        top: 0; 
        left: 5%; 
    }

    .global-stars .art-zvjezdice:nth-child(2) {
        top: -10px; 
        left: 40%; 
    }

    .global-stars .art-zvjezdice:nth-child(3) {
        top: -20px;
        left: 75%;
    }

    .global-stars .art-zvjezdice:nth-child(4) {
        top: 30px;
        left: 5%;
    }

    .global-stars .art-zvjezdice:nth-child(5) {
        top: 45px;
        left: 70%;
    }

    .global-stars .art-zvjezdice:nth-child(6) {
        top: 70px;
        left: 15%; 
    }

    .global-stars .art-zvjezdice:nth-child(7) {
        top: 80px;
        left: 50%;
    }

    .global-stars .art-zvjezdice:nth-child(8) {
        top: 95px;
        left: 80%;
    }

    .global-stars .art-zvjezdice:nth-child(9) { 
        top: 120px;
        left: 35%;
    }

    .global-stars .art-zvjezdice:nth-child(10) { 
        top: 110px; 
        left: 10%; 
    }

    .global-stars .art-zvjezdice:nth-child(11) { 
        top: 15px; 
        left: 85%; 
    }

    .global-stars .art-zvjezdice:nth-child(12) {
        top: 55px;
        left: 45%;
    }

    .season-stars {
        bottom: -5px;
        width: 180px;
        height: 80px;
    }

    .season-stars .art-zvjezdice {
        width: 16px;
    }

    .season-stars .art-zvjezdice:nth-child(1) {
        top: -5px;
        left: 10%;
    }

    .season-stars .art-zvjezdice:nth-child(2) {
        top: -10px;
        left: 55%;
    }

    .season-stars .art-zvjezdice:nth-child(3) {
        top: 20px;
        left: 5%;
    }

    .season-stars .art-zvjezdice:nth-child(4) {
        top: 30px;
        left: 80%;
    }

    .season-stars .art-zvjezdice:nth-child(5) {
        top: 40px;
        left: 40%;
    }
}


@keyframes sway  {
    0% { transform: rotate(8deg); }
    50% { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}

.blink1,
.blink2,
.blink3 {
    animation-name: blink1;
    animation-timing-function: ease;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    }

.blink2 {
    animation-name: blink2;
    animation-duration: 6s;
    }

.blink3 {
    animation-name: blink3;
    animation-duration: 7s;
}

@keyframes blink1 {
    0% { transform: scale(1,1)    translateY(0); opacity: 0; }
    60% { transform: scale(1,1)    translateY(0); opacity: 0; }
    66% { transform: scale(1.2,1.2)    translateY(0); opacity: 1; }
    72% { transform: scale(1,1)    translateY(0); opacity: 0; }        
    100% { transform: scale(1,1)    translateY(0); opacity: 0; }
}

@keyframes blink2 {
    0% { transform: scale(1,1)    translateY(0); opacity: 0; }
    10% { transform: scale(1,1)    translateY(0); opacity: 0; }
    12% { transform: scale(1.2,1.2)    translateY(0); opacity: 1; }
    15% { transform: scale(1,1)    translateY(0); opacity: 0; } 
    20% { transform: scale(1,1)    translateY(0); opacity: 0; }
    22% { transform: scale(1.2,1.2)    translateY(0); opacity: 1; }
    25% { transform: scale(1,1)    translateY(0); opacity: 0; }        
    100% { transform: scale(1,1)    translateY(0); opacity: 0; }
}

@keyframes blink3 {
    0% { transform: scale(1,1)    translateY(0); opacity: 0; }
    30% { transform: scale(1.2,1.2)    translateY(0); opacity: 1; }
    42% { transform: scale(.9,.9)    translateY(0); opacity: .3; }
    55% { transform: scale(1,1)    translateY(0); opacity: 1; } 
    70% { transform: scale(1,1)    translateY(0); opacity: 0; }
    92% { transform: scale(1.2,1.2)    translateY(0); opacity: 1; }  
    100% { transform: scale(1,1)    translateY(0); opacity: 0; }
}