/* global definitions */
:root {
    --banner-titel-bg-color: #000000;
    --banner-titel-text-color: #fcbf00;
    --banner-titel-border-color: #fcbf00;
    --carousel-card-bg-color: #505050;
    --carousel-card-text-color: #e0e0e0;
    --carousel-card-title-color: #fcbf00;
    --carousel-card-border-color: #fcbf00;
    --flyer-border-color: #000000;
    --flyer-title-color: #fcbf00;
    --flyer-text-color: #e0e0e0;
    --flyer-close-color: #e0e0e0;
    --flyer-close-hover-color: #fcbf00;
}

.sec_banner {
    display: block;
    width: 100%;
    background-image: url(../images/pics/ind_banner_bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    cursor: pointer;
    overflow: hidden;

    .banner-title {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--banner-titel-bg-color);
        border: 3px solid var(--banner-titel-border-color);
        /* box-shadow: inset 0px 0px 15px 0px var(--banner-titel-border-color), 0px 0px 25px 0px var(--banner-titel-border-color); */

        & h1 {
            text-transform: uppercase;
            color: var(--banner-titel-text-color);
            animation: title-flicker 7s linear infinite;
            text-align: center;
        }

        & p {
            text-transform: uppercase;
            color: var(--banner-titel-text-color);
            animation: title-flicker 7s 30ms linear infinite;
            text-align: center;
        }
    }

    .banner-carousel {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        white-space: nowrap;
        transform: translateX(-50%);

        & .carousel-block {
            display: inline-flex;
            flex-direction: row;
            animation: 30s roll infinite linear;

            & .carousel-card {
                flex: 0 0 auto;
                display: flex;
                flex-direction: column;
                background-image: url(../images/textures/bg_ripple.jpg);
                background-position: center;
                background-repeat: no-repeat;
                background-size: cover;

                border: 2px solid var(--carousel-card-border-color);
                opacity: 0.85;

                & h2 {
                    flex: 0 0 auto;
                    color: var(--carousel-card-title-color);
                }

                & p {
                    flex: 0 0 auto;
                    color: var(--carousel-card-text-color);
                }
            }
        }
    }


    .banner-carousel:hover {
        animation-play-state: paused;
    }
}

.flyer {
    position: absolute;

    & .flyer-inner {
        position: relative;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 2px solid var(--flyer-border-color);
        border-radius: 15px;
        background-image: url(../images/textures/bg_flyer.jpg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;

        & .flyer-title {
            position: relative;
            color: var(--flyer-title-color);
            text-transform: uppercase;
            text-align: center;
            font-weight: bold;
        }

        & .flyer-content {
            display: flex;
            flex-direction: column;
            color: var(--flyer-text-color);

            & .flyer-row {
                display: flex;

                & .flyer-detail {
                    flex: 0 0 auto;
                    display: flex;
                    flex-direction: column;

                    & .flyer-info {
                        flex: 0 0 auto;
                    }

                    & .flyer-detail {
                        flex: 0 0 auto;
                    }
                }

                & .flyer-price {
                    flex: 0 0 auto;
                }
            }
        }

        & .flyer-valid {
            color: var(--flyer-text-color);
            font-weight: bold;
            text-align: center;
        }

        & .btn-close {
            position: absolute;
            color: var(--flyer-close-color);
        }

        & .btn-close:hover {
            color: var(--flyer-close-hover-color);
        }
    }
}

@keyframes title-flicker {
    0% { opacity: 0.5; }
    2% { opacity: 1; }
    8% { opacity: 0.5; }
    9% { opacity: 1; }
    12% { opacity: 0.8; }
    20% { opacity: 1; }
    25% { opacity: 0.3; }
    30% { opacity: 1; }
    70% { opacity: 0.7; }
    72% { opacity: 0.2; }
    77% { opacity: 0.9; }
    100% { opacity: 0.9; }
}

@keyframes roll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media screen and (min-width: 1200px) {
    .sec_banner {
        min-height: 620px;
        height: 70svh;

        & .banner-title {
            padding: 1.5rem 4rem;
            gap: 1rem;
            border-radius:3rem;

            &  h1 {
                text-shadow: 0 0 10rem hsl(0 0% 100% / 0.3), 0 0 5rem var(--banner-titel-text-color);
                font-size: 6rem;
                letter-spacing: 1rem;
            }

            & p {
                text-shadow: 0 0 10rem hsl(0 0% 100% / 0.3), 0 0 5rem var(--banner-titel-text-color);
                font-size: 2.5rem;
            }
        }

        & .banner-carousel {
            & .carousel-block {
                & .carousel-card {
                    margin: 0 3rem;
                    padding: 2.5rem 4rem;
                    border-radius: 3rem;
                    padding: 2.5rem 3rem;
                    margin: 0 3rem;

                    & h2 {
                        font-size: 3rem;
                    }

                    & p {
                        font-size: 2.5rem;

                        & b {
                            font-size: 3rem;
                        }
                    }
                }
            }
        }
    }

    .flyer {
        width: 750px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        & .flyer-inner {
            gap: 3rem;
            padding: 1.5rem 3rem;

            & .flyer-title {
                font-size: 4rem;
            }

            & .flyer-content {
                gap: 1.5rem;

                & .flyer-row {
                    flex-direction: row;
                    justify-content: space-between;

                    & .flyer-detail {

                        & .flyer-info {
                            font-size: 2.5rem;
                        }

                        & .flyer-detail {
                            font-size: 1.8rem;
                        }
                    }

                    & .flyer-price {
                        font-size: 2.5rem;
                    }
                }
            }

            & .flyer-valid {
                font-size: 2.8rem;
            }

            & .btn-close {
                top: 3rem;
                right: 3rem;
                font-size: 2.5rem;
            }
        }
    }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    .sec_banner {
        height: 530px;

        & .banner-title {
            padding: 1.8rem 2.9rem;
            gap: 1.2rem;
            border-radius:2.9rem;

            & h1 {
                font-size: 4rem;
            }

            & p {
                font-size: 2.1rem;
            }
        }

        & .banner-carousel {

            & .carousel-card {
                margin: 0 2rem;
                padding: 1.8rem 2.9rem;
                border-radius: 2.9rem;

                & h2 {
                    text-shadow: 0 0 10rem hsl(0 0% 100% / 0.3), 0 0 5rem var(--banner-titel-text-color);
                    font-size: 3rem;
                }

                & p {
                    text-shadow: 0 0 10rem hsl(0 0% 100% / 0.3), 0 0 5rem var(--banner-titel-text-color);
                    font-size: 2.5rem;
                }
            }
        }
    }

    .flyer {
        width: 700px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        & .flyer-inner {
            gap: 2.5rem;
            padding: 1.5rem 3rem;

            & .flyer-title {
                font-size: 3.5rem;
            }

            & .flyer-content {
                gap: 1.1rem;

                & .flyer-row {
                    flex-direction: row;
                    justify-content: space-between;

                    & .flyer-detail {

                        & .flyer-info {
                            font-size: 2.2rem;
                        }

                        & .flyer-detail {
                            font-size: 1.6rem;
                        }
                    }

                    & .flyer-price {
                        font-size: 2.2rem;
                    }
                }
            }

            & .flyer-valid {
                font-size: 2.6rem;
            }

            & .btn-close {
                top: 3rem;
                right: 3rem;
                font-size: 2.5rem;
            }
        }
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    .sec_banner {
        height: 500px;

        & .banner-title {
            padding: 1.8rem 2.9rem;
            border-radius:2.6rem;
            width: fit-content;

            & h1 {
                font-size: 3rem;
            }

            & p {
                font-size: 1.8rem;
            }
        }

        & .banner-carousel {
            max-width: 90svw;

            & .carousel-card {
                margin: 0 2rem;
                padding: 1.8rem 2.9rem;
                border-radius: 2.6rem;

                & h2 {
                    font-size: 2.6rem;
                }

                & p {
                    font-size: 1.9rem;
                }
            }
        }
    }

    .flyer {
        width: 700px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        & .flyer-inner {
            gap: 2rem;
            padding: 1.5rem 2rem;

            & .flyer-title {
                font-size: 2.5rem;
            }

            & .flyer-content {
                gap: 1rem;

                & .flyer-row {
                    flex-direction: row;
                    justify-content: space-between;

                    & .flyer-detail {

                        & .flyer-info {
                            font-size: 2rem;
                        }

                        & .flyer-detail {
                            font-size: 1.4rem;
                        }
                    }

                    & .flyer-price {
                        font-size: 2rem;
                    }
                }
            }

            & .flyer-valid {
                font-size: 2.2rem;
            }

            & .btn-close {
                top: 2rem;
                right: 2rem;
                font-size: 2.5rem;
            }
        }
    }
}

@media screen and (min-width: 480px) and (max-width: 768px) {
    .sec_banner {
        height: 300px;

        & .banner-title {
            width: fit-content;
            padding: 1rem 2.5rem;
            border-radius: 2rem;

            & h1 {
                font-size: 2.2rem;
            }

            & p {
                font-size: 1.4rem;
            }
        }

        & .banner-carousel {
            max-width: 90svw;
            gap: 2rem;

            & .carousel-card {
                margin: 0 1.5rem;
                padding: 0.7rem 2.2rem;
                border-radius: 2rem;

                & h2 {
                    font-size: 2.2rem;
                }

                & p {
                    font-size: 1.6rem;
                }
            }
        }
    }

    .flyer {
        width: 470px;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);

        & .flyer-inner {
            gap: 2rem;
            padding: 1rem;

            & .flyer-title {
                font-size: 2rem;
            }

            & .flyer-content {
                gap: 1rem;

                & .flyer-row {
                    flex-direction: row;
                    justify-content: space-between;

                    & .flyer-detail {

                        & .flyer-info {
                            text-align: left;
                            font-size: 1.6rem;
                        }

                        & .flyer-detail {
                            text-align: left;
                            font-size: 1.4rem;
                        }
                    }

                    & .flyer-price {
                        text-align: right;
                        font-size: 1.6rem;
                    }
                }
            }

            & .flyer-valid {
                font-size: 2rem;
            }

            & .btn-close {
                top: 1rem;
                right: 2rem;
                font-size: 2.5rem;
            }
        }
    }
}

@media screen and (max-width: 480px) {
    .sec_banner {
        height: 300px;

        & .banner-title {
            padding: 1rem 2.5rem;
            border-radius: 2rem;
            width: 90dvw;

            & h1 {
                flex: 0 0 auto;
                text-wrap: nowrap;
                font-size: 2.2rem;
            }

            & p {
                font-size: 1.4rem;
            }
        }

        .banner-carousel {
            max-width: 90svw;
            gap: 2rem;

            & .carousel-card {
                margin: 0 1.5rem;
                padding: 1rem 2rem;
                border-radius: 2rem;

                & h2 {
                    font-size: 2rem;
                }

                & p {
                    font-size: 1.4rem;
                }
            }
        }
    }

    .flyer {
        width: 95dvw;
        top: 25px;
        left: 50%;
        transform: translateX(-50%);

        & .flyer-inner {
            gap: 2rem;
            padding: 1rem;

            & .flyer-title {
                font-size: 2rem;
            }

            & .flyer-content {
                gap: 1rem;

                & .flyer-row {
                    flex-direction: row;
                    justify-content: space-between;

                    & .flyer-detail {

                        & .flyer-info {
                            text-align: left;
                            font-size: 1.3rem;
                        }

                        & .flyer-detail {
                            text-align: left;
                            font-size: 1rem;
                            text-wrap: wrap;
                        }
                    }

                    & .flyer-price {
                        text-align: right;
                        font-size: 1.3rem;
                    }
                }
            }

            & .flyer-valid {
                font-size: 2rem;
            }

            & .btn-close {
                top: 1rem;
                right: 2rem;
                font-size: 2.5rem;
            }
        }
    }
}