/* 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-content {
    background-color: #000;
    color: #fff;
    width: min(90%, 500px);
    border: 2px solid #fff;
    padding: 30px 5%;
    box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.5);

    & p {
        font-size: 0.8rem;
    }

    & h1 {
        font-size: 3.5rem;
    }
}

.gate-clan-logo {
    width: max(50%, 150px);
}
.age-gate-consent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

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


.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;
}


.banner-bg {
    position: absolute;
    bottom: -65%;
    right: -15px;
    width: 100%;
    height: 100%;
    z-index: -1;
    translate: 0 var(--parallax-y, 0px);
    will-change: translate;
}

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

.claim {
    position: relative;
}

.lines {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.lines img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
}


.claim-image {
    max-width: min(95%, 600px);
}


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

.banner-bottles {
    width: max(30%, 100px);
    animation: bottles-slide-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bottles-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.prizes {
    width: 70%;
 
}

.main-prize {
    width: min(100%, 500px)
}

.secondary-prizes  {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: -0.5%;

    & img {
        width: min(100%, 250px);
    }
}

@media (min-width: 992px) {
    .banner-bg {
        bottom: unset;
        top: 1000px;
        transform: translateY(-50%);
    }
}

/* =============================== */
/*  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-family: hackney, sans-serif;
        font-size: 2rem;
        line-height: 2rem;
        color: #fff;
    }
}
.rule-numeral {
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;

}

.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%;
    }
}

/* ================================================ */
/* 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-content {
   min-height: 500px;

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

   & h2 {
    font-size: 1.8rem;
   }

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

/* ================================================ */
/* 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-size: 2.5rem;
        color: var(--navy-blue);
        text-align: center;
    }

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

