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

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

main {
    position: relative;
    width: 100%;
    margin-top: -50px;
    padding-top: min(20%, 50px);
    padding-bottom: min(20%, 50px);
    overflow: hidden;   
    isolation: isolate;

    /* JS will update this */
    --parallax-y: 0px;
}


/* keep content above background */
main > * {
    position: relative;
    z-index: 1;
}

#gate-content .container {
    background: url('../images/doodle.webp') no-repeat center 10%;
    background-size: 100%;
    position: relative;
}

.gate-content {
    position: relative;
    width: min(90%, 500px);
    padding: 30px 5%;

    & h1 {
        visibility: hidden;
        height: 0;
    }

    & h3 {
        font-family: 'Myriad-Pro', sans-serif;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 2rem;
        line-height: 2rem;
    }
}


.gate-clan-logo {
    width: max(30%, 250px);
    margin-bottom: 20px;
}

.gate-title {
    & h1 {
        font-size: 2.5rem;
        line-height: 2.8rem;
        font-weight: 900;
        text-transform: uppercase;

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

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

    & h3 {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

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


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

.promo-code-wrapper input {
    border: 3px solid var(--red) !important;
    font-weight: 600;
    font-size: 1.5rem;

    &::placeholder {
        color: var(--red);
        opacity: 0.5;
    }
}

.age-gate-button {
    color: #fff;
    font-family: 'Minion-Pro', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 100px;
    padding: 3px 10px;
    border-radius: 8px;
    border: 2px solid #fff;
    background: transparent;
    transition: 0.3s ease-in-out;

    &:hover {
        background: #fff;
        color: var(--red);
    }
}

#age-gate-no {
    background: #fff;
    color: var(--red);

    &:hover {
        background: var(--red);
        color: #fff;
    }
}

.gate-crowd {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}



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

#banner .container {
    --parallax-y: 0px;

    position: relative;
    min-height: 500px;
    z-index: 10;

}

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

.banner-logo {
    width: min(90%, 250px);
    margin-bottom: 20px;
}

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

.main-claim  {
    transform: rotate(-2deg);

    & h1 {
        font-size: 4rem;
        line-height: 4rem;
    }
}

.apla {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    font-family: 'Minion-Pro', sans-serif;
    color: var(--red);
    background-color: #fff;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 3rem;
}

/* =============================== */
/*  SECTION BOTTLE
/* =============================== */

#bottle {
    position: relative;
    margin-top: -500px;
    z-index: -1;
}

.bottle-wrapper {
    position: relative;
    left: 0;
    width: 100%;
    height: 50dvh;
    min-height: 500px;
    max-height: 700px;
    z-index: 1;
    overflow: visible;

    & .bottle-images {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    & .bottle {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 20%;
        height: auto;
        z-index: 3;
        filter: drop-shadow(10px 5px 10px rgba(0, 0, 0, 0.35));

        opacity: 0;
        transform: translateX(-120%);
    }

    & .bottle-image-1 {
        position: absolute;
        bottom: 2%;
        left: 15%;
        width: 25%;
        height: auto;
        z-index: 2;
        filter: drop-shadow(10px 5px 10px rgba(0, 0, 0, 0.2));

        opacity: 0;
        transform: translateX(-55%) translateY(15px) rotate(-4deg);
    }

    & .bottle-image-2 {
        position: absolute;
        bottom: -8%;
        left: 30%;
        width: 20%;
        height: auto;

        /* Keep it behind the bottle while emerging. */
        z-index: 2;
        filter: drop-shadow(10px 5px 10px rgba(0, 0, 0, 0.15));

        opacity: 0;
        transform: translateX(-130%) translateY(20px) rotate(4deg);
    }

    /* Start animations after the section becomes visible. */
    &.is-visible {
        & .bottle {
            animation: bottle-slide-in 0.9s
                cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        & .bottle-image-1 {
            animation: photo-1-slide-out 0.8s
                cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
        }

        & .bottle-image-2 {
            animation: photo-2-slide-out 0.8s
                cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s forwards;
        }
    }
}

@keyframes bottle-slide-in {
    from {
        opacity: 0;
        transform: translateX(-120%);
    }

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

@keyframes photo-1-slide-out {
    from {
        opacity: 0;
        transform: translateX(-55%) translateY(15px) rotate(-4deg);
    }

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

@keyframes photo-2-slide-out {
    from {
        opacity: 0;
        transform: translateX(-130%) translateY(20px) rotate(4deg);
    }

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

@media (prefers-reduced-motion: reduce) {
    .bottle-wrapper {
        & .bottle,
        & .bottle-image-1,
        & .bottle-image-2 {
            animation: none !important;
            opacity: 1;
            transform: none;
        }
    }
}

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

@media (min-width: 992px)  {
    .bottle-wrapper {
        min-height: 800px;
    }
}

@media (max-width: 767px)  {

    #bottle {
        margin-top: -450px;
    }

    .main-claim h1 {
        font-size: 3rem;
        line-height: 3rem;
    }
    .bottle-wrapper {
        height: 650px;
        min-height: unset;
        max-height: unset;

        & .bottle {
            width: 30%;
        }

        & .bottle-image-1 {
           left: 28%;
           width: 30%;
        }
        & .bottle-image-2 {
            left: 40%;
            bottom: -3%;
            width: 25%;
        }
    }
   
}

/* =============================== */
/*  SECTION PRIZES
/* =============================== */

#prizes {
    position: relative;
    z-index: 5;
    overflow: visible;
    padding-top: max(8%, 50px);
    padding-bottom: max(8%, 50px);

    & .container {
        z-index: 2;
    }

    & .section-title, .cta-row {
        z-index: 10;
    }
}


.prizes-wrapper {
    position: relative;
    border-radius: 40px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(20px, 8vw, 100px);

    z-index: 10;
    isolation: isolate;
}

.prize-item {
    position: relative;
}

.prize-count {
    font-family: 'Dolis', sans-serif;
    font-size: 3.5rem;
    line-height: 4rem;
    margin-bottom: 10px;
}

.prize-count {
    font-size: 4rem;
    -webkit-text-stroke: 2px #000;
    -moz-text-stroke: 2px #000;

}

.prize-text {
    height: 12rem;
}

.prize-line-1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

.prize-line-2 {
    font-family: 'Myriad-Pro', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.prize-image {
    width: 100%;
    max-width: 160px;
    margin-top: 10px;
}

.main-prize {
    & .prize-image {
        height: 150px;
    }
}


@media (max-width: 768px) {

    .prizes-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .prize-text {
        height: auto;
    }
    
    .prize-image {
        max-width: 120px;
        margin-top: 0;
    }

}

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

#rules {
    position: relative;
}

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

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

.rule-item {
    position: relative;
    width: 33.33%;
}

.rule-numeral {
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rule-text {
    & p {
        font-size: 1.5rem;
        line-height: 1.8rem;
        font-weight: 300;
    }
}

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

}

@media (max-width: 576px) {
    .rule-items {
        max-width: 300px;
    }
}


/* ================================================ */
/* 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;
   max-width: 500px;

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

   & h1 {
    font-family: "Dolis", sans-serif;
    font-size: 4rem;
    line-height: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    -webkit-text-stroke: 2px #000;
    -moz-text-stroke: 2px #000;
    text-stroke: 2px #000;
   }

   & h2 {
    font-family: "Minion-Pro", sans-serif;
    font-size: 2.5rem;
    line-height: 2.5rem;
    font-weight: 700;
   }

   & p {
    font-size: 1.5rem;
    line-height: 1.8rem;
    text-transform: uppercase;
   }
}

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

.regular-page {
    background-color:#fff;
    color: var(--graphite);
    padding: 30px 5%;
    border-radius: 40px;
    /* box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.1); */
    margin-top: 50px;
    margin-bottom: 20px;
    max-width: 100%;


    & h1 {
        font-family: "Myriad-Pro", sans-serif;
        font-size: 2.5rem;
        font-weight: 900;
        text-align: center;
        color: var(--graphite);
        text-transform: uppercase;
    }

    & h2 {
        font-family: "Myriad-Pro", sans-serif;
        text-align: center;
        width: 100%;
        font-size: 1.8rem;
    }

    & h3, h4, h5, h6, p {
        color: var(--graphite);
    }

    & a {
        color: var(--red);

        &:hover {
            color: var(--red-hover);
        }
    }
}


/* SECTION MEDIA QUERIES   /////////////////////////////// */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

