/* CSS VERSION 1.1 */
/* 2 Mar 2026 */

/* =============================== */
/*  PAGE: AGE GATE SECTION MAIN
/* =============================== */


main {
    position: relative;
    width: 100%;
    padding-top: min(20%, 200px);
    padding-bottom: min(20%, 200px);
    overflow: hidden
}



#age-gate {
    background-image: url('../images/bg.webp');
    background-size: 100% auto;
    background-position: right top;
    background-repeat: no-repeat;
}



.gate-logo {
    width: max(80%, 200px);
}

.gate-content {
    background-color: #ffffff;
    color: #000;
    width: min(90%, 500px);
    border: 3px solid #000000;
    padding: 30px 5%;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.75);
    z-index: 10;

    & h2 {
        font-family: 'Intro Bold', sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
    }

    & p {
        font-size: 0.8rem;
    }
}


.age-gate-consent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.age-gate-buttons {
    display: flex;
    gap: 20px;
}


/*SECTION AGE FORM ============================================================ */
.promo-code-wrapper input {
    font-weight: 600;
    border: 3px solid #000 !important;
    box-shadow: none !important;
    background: rgba(182, 179, 173, 0.25) !important;

    &:hover {
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.25) !important;
    }

    &:focus {
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5) !important;
    }

}

.age-gate-consent h3 {
    font-family: 'Intro Bold', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.age-gate-button {
    color: #000;
    font-weight: 600;
    min-width: 100px;
    padding: 7px 10px 5px 10px;
    border: 3px solid #000;
    background: #fff;
    transition: 0.4s ease-in-out;
    font-family: 'Intro Bold Caps', sans-serif;

    &:hover {
        background: #000;
        color: #fff;
        box-shadow: 0 0 25px 0 rgba(255, 255, 255, 0.90);
    }
}

#age-gate-no {
    background-color: #000;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 5px #525252;

    &:hover {
        background: #fff;
        color: #000;
        border: 3px solid #000;
        box-shadow: 0 0 0 5px #878787;
    }
}

.promo-code-error {
    margin-top: 10px;
    color: #fff;
    background: var(--red);
    padding: 2px 12px;
    border-radius: 0;
    text-align: center;
    font-size: 14px;
}



/* =============================== */
/*  PAGE: START SECTION BANNER
/* =============================== */
#home {
 padding-top: 100px;
 padding-bottom: 0;
}

#banner {
    position: relative;
    margin-top: -100px;
    padding-top: 100px;
    overflow: hidden;
    isolation: isolate;
    /* background-image: url('../images/bg.webp'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    --background-y: 0px;
    --trees-y: 0px;
}


.banner-bg {
    position: absolute;
    inset: -280px 0;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    min-height: 100dvh;
    
    translate: 0 var(--parallax-y, 0px);
    will-change: translate;


    & img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


}

.trees {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 1;

    translate: 0 var(--trees-y);
    will-change: translate;

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }


    &:after {
        content: "";
        position: absolute;
        bottom: -400px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 500px;
        background: #000000;
        z-index: 1;
    }

}

.bats {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 80%;
    z-index: 1;
}

#banner .bats img {
    transform-origin: center;
    animation: bats-scale-in 4.5s cubic-bezier(.01,.41,0,.97);
}

@keyframes bats-scale-in {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #banner .bats img {
        animation: none;
    }
}

h1 {
    font-family: 'Jolly Lodger', sans-serif;
    font-size: 10rem;
    line-height: 8rem;
    color: #fff;
    -webkit-text-stroke: 1px #271C07;
    text-shadow: 4px 4px 10px #271C07;

}

h1 span {
    font-size: 5rem;
    display: inline-block;
    transform: rotate(5deg) translateY(-3.5rem);
    margin-right: 10px;
}


.claim {
    z-index: 2;

    & h2 {
        font-family: "Jolly Lodger", sans-serif;
        font-size: 4rem;
        text-shadow: 0 0 10px #000;
        margin-top: -2rem;
        margin-bottom: 30px;
        text-align: center;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.banner-content-main {
    display: flex;
    align-items: end;
    gap: 20px;
}

.prizes {
    display: flex;
    flex-direction: column;
    width: 50%;
    z-index: 2;
}

.prize-item {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    width: 200px;

    & .prize-text {
        font-size: 1.6rem;
        text-shadow: 0 3px 0px #271C07;

        & span {
            font-size: 2rem;
        }
    }

    & img {
        max-height: 150px;
        width: 150px;
    }
}

.product-wrapper {
    width: 50%;
    position: relative;   
}

.pumpkins {
    z-index: 2;
}

.banner-bottles {
    position: absolute;
    bottom: 28dvw;
    left: 45%;
    transform: translateX(-50%);
    z-index: 1;
    width: 70%;
}

.banner-bottles {
    transform-origin: center;
    animation: bottles-pop 2s cubic-bezier(.01,.41,0,.97);
}


@keyframes bottles-pop {
    from {
        transform: translateX(-50%) translateY(100%);
    }

    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* MEDIA QUERIES ---------------------------- */

@media (min-width: 1200px) {
    .banner-bottles {
        bottom: 330px
    }
}

@media (max-width: 768px) {
    .banner-content-main {
        align-items: center;
    }
}

@media (max-width: 576px) {

    #banner {
        /* margin-top: -50px; */
        padding-top: 70px;
    }

    .claim h1 {
        font-size: 6rem;
        line-height:5rem;
    }
    .claim h1 span {
        font-size: 3rem;
        transform: rotate(5deg) translateY(-2.5rem);
    }
    .claim h2 {
        font-size: 2rem;
        margin-top: -1rem;
        margin-bottom: 20px;
    }

    .banner-content-main {
        flex-direction: column;
        align-items: center;
    }
    .prizes {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: start;
        margin-bottom: 70px;
    }
    .prize-item {
        display: flex;
        flex-direction: column;    
        justify-content: space-between;
        width: 33.33%;
        height: 220px;

        & .prize-text {
            display: block;
            width: 100%;
            /* height: 110px; */
            text-align: center;
            font-size: 1rem;
        }

        & .prize-image {
            width: 100%;
            height: 120px;
            display: flex;
            justify-content: center;
            align-items: center;

            & img {
                height: 100px;
                width: 100%;
            }
        }
    }

    #jbl {
        transform: translateY(-10px);
    }

    #watch {
        width: 100px;
        /* height: 90px; */
    }

    #zabka-metka {
        width: 100px;
        /* height: 90px; */
    }

    .product-wrapper {
        width: 60%;
    }
    
    .banner-bottles {
        bottom: 32dvw;
    }
}


@media (prefers-reduced-motion: reduce) {
    #banner .banner-bg,
    #banner .trees {
        translate: none;
        will-change: auto;
    }
}

/* =============================== */
/*  SECTION RULES
/* =============================== */

#rules {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

#rules .container {
    position: relative;
    z-index: 2;
}

.rule-items {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.rule-item {
    width: 33.33%;
}


.rule-text p {
        font-size: 1.5rem;
        color: #fff;
        text-transform: uppercase;
        font-weight: 700;
}
.rule-numeral {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    color: var(--brown);
    font-size: 2.5rem;
    font-weight: 700;
}

.rules-logo {
    --parallax-y: 0px;
    position: absolute;
    display: flex;
    justify-content: center;
    top: 25%;
    left: 50%;
    width: 100%;
    max-width: 200px;
    z-index: 1;
    opacity: 0.3;

    transform: translateX(-50%) translateY(var(--parallax-y));
    will-change: transform;

    & img {
        margin: auto;
    }
}

#rules .cta-outline, #rules h3 {
    font-size: 2.5rem;
}

#rules h3 {
    margin-top: -15px;
}

/* MEDIA QUERIES ---------------------------- */

@media (max-width: 992px) {
    .rule-items {
        flex-direction: column;
    }

    .rule-item {
        width: 100%;
    }

    .rule-text p {
        font-size: 1.2rem;
    }
}

/* ================================================ */
/* SECTION LOADING OVERLAY */
/* ================================================ */
.loading-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: #0e0e0ea7;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -moz-backdrop-filter: blur(5px);
    -ms-backdrop-filter: blur(5px);
    -o-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 2;
}

.loading-spinner img {
    width: 180px;
    height: 180px;
}

.loading-text {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 40px #0000006f;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: loadingBounceSway 3s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

.loading-spinner img {
    display: block;
    max-width: 100%;
    height: auto;
}

@keyframes loadingBounceSway {
    0% {
        transform: translateY(0)  rotate(0deg) scale(1);
    }

    20% {
        transform: translateY(-14px)  rotate(-2deg) scale(1.03);
    }

    40% {
        transform: translateY(0) rotate(1.5deg) scale(0.98);
    }

    60% {
        transform: translateY(-8px)  rotate(2deg) scale(1.02);
    }

    80% {
        transform: translateY(0)  rotate(-1deg) scale(0.99);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}
/* ================================================ */
/* PAGE: THANKS*/
/* ================================================ */

#thanks {
    background-image: url('../images/bg.webp');
    background-size: 100% auto;
    background-position: right top;
    background-repeat: no-repeat;
}

.thanks-content {
   min-height: 500px;

   & img {
    max-width: 200px;
    margin-bottom: 20px;
   }

   & h1 {
    font-family: 'Intro Bold Caps', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-shadow: none;
   }

   & h2 {
    font-size: 1.8rem;
   }

   & p {
    font-size: 1.2rem;
   }
}

@media (max-width: 576px) {
    #thanks .thanks-content h1 {
        font-size: 2.5rem;
    }
}

/* ================================================ */
/* PAGE: REGULAMIN*/
/* ================================================ */

.regular-page {
    background-color:#fff;
    color: #000;
    padding: 30px 5%;
    border-radius: 40px;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;

    & h1 {
        font-family: 'Intro Bold Caps', sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
        color: #000;
        text-align: center;
        text-shadow: none;
    }

    & h2 {
        text-align: center;
        width: 100%;
    }
}
/* SECTION MEDIA QUERIES   /////////////////////////////// */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

