$white: #fff;
$header-font-color: #565b6c;
$campaign_card-claimable_button-bg: #32676f;
$campaign_card-claimable_button-color: #fff;
$campaign_card-unclaimable_button-bg: rgba(2,15,32,.25);
$campaign_card-unclaimable_button-color: $white;
$header-title-color: $header-font-color;

.icons-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 15px;

    .icon-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        cursor: pointer;

        // Styles for the icon images
        img {
            width: 50vw;
            height: 50vw;
            max-width: 70px;
            max-height: 70px;
            border-radius: 30%;
            margin-bottom: 10px;
            padding: 5px;
        }

        // Styles for the icon labels
        div {
            text-align: center;
            color: #0a0a0a;
        }
    }
}

.header-title {
    color: $header-title-color;
    font-weight: 800;
    font-size: 1.4em;
    text-transform: inherit;
    margin-top: 20px;
    margin-bottom: 20px;
}

.promocard {
    &:not(last-child) {
        margin-bottom: 10px;
    }
    border-radius: 15px;

    a {
        color: $header-font-color;

        &:hover,
        &:active,
        &:visited {
            text-decoration: underline;
        }
    }

    .promocard_wrapper {
        margin: 0 5px;
        align-items: stretch;
        display: flex;
        box-shadow: 0 1px 5px rgba(2,15,32,.15);
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        position: relative;
        transition: .3s ease!important;
        z-index: 0;
        border-radius: 15px;


        .promocard_copy {
            margin-top: 10px;
            margin-bottom: 5px;
            padding-left: 5px;
            padding-right: 5px;

            .line-clamp {
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            label {
                display: block;
                min-height: 16px;
            }

            .promocard_copy_title {
                font-weight: 800;
                font-size: 1em;

                // -webkit-line-clamp: 3;
            }

            .promocard_copy_detail {
                font-size: .7em;
                padding-bottom: 10px;
                // -webkit-line-clamp: 5;
            }

        }

        div.promocard_tnc, div.promocard_expiry_date {
            .promocard_copy_tnc, label.promocard_expiry_date_label {
                min-height: 15px;
                margin-bottom: 5px;
            }

            .promocard_copy_tnc {
                font-size: 0.7em;
                text-align: left;

                &.btn {
                    padding: 0.09rem 0.75rem;
                }
            }

            label.promocard_expiry_date_label {
                font-size: 0.8em;
            }
        }
    }
}

.card-container{
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
}

.imageblur {
    overflow: hidden;
    position: relative;

    .imageblur-main {
        background-size: contain;
        padding-top: 100% !important;
        position: relative;
        z-index: 1;
    }

    .imageblur-blur {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        background-size: cover;
        display: block;
        filter: blur(15px);
        height: 100%;
        left: 50%;
        overflow: hidden;
        -webkit-perspective: none;
        perspective: none;
        top: 50%;
        transform: translate(-50%,-50%) scale(1.25) translateZ(0);
        -webkit-transform: translate(-50%,-50%) scale(1.25) translateZ(0);
        z-index: 0;
        position: absolute;
    }
}

.promocard_cta_container {
    height: 50px;
    .promocard_cta {
        position: relative;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
        overflow: hidden;
        border: 0;
        padding: 5px;
        font-weight: 800;
        min-height: 33px;

        &:hover, &:focus {
            -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
            filter: alpha(opacity=80);
            -moz-opacity:0.8;
            -khtml-opacity: 0.8;
            opacity: 0.8;
        }
    }

    .claimable {
        background-color: $campaign_card-claimable_button-bg;
        color: $campaign_card-claimable_button-color;
        height: 100%;
    }

    .unclaimable {
        background-color: $campaign_card-unclaimable_button-bg;
        color: $campaign_card-unclaimable_button-color;
        cursor: not-allowed;
    }

    .redeem {
        background: linear-gradient(90deg,#ff4d67,#fa6448);
        color: $white;
    }
}

.modal-dialog {
    max-width: 80%;
    margin: 50px auto;
}

.modal-content {
    overflow: hidden;
    border-radius: 14px;
}

.modal-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 20px;
    text-align: justify;
}

.modal-header{
    .close {
        border-radius: 50%;
        background-color: red;
        padding: 0 5px;
        outline: none;
        align-items: center;
    }

    .close span {
        color: white;
    }

    .modal-title{

    }
}

.swiper-container,
.swiper-slider-container {
    width: 100%;
    overflow: hidden;

    .swiper-slide {
        text-align: center;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }
}

.swiper-slider-container {
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    &.slider-footer {
        bottom: 10px;
        border-radius: 10px;
    }

    .swiper-wrapper {
        .swiper-slide {
            font-size: 18px;
            background: $white;

            img {
                width: 100%;
                display: none;
                cursor: grab;

                @media only screen and (max-width: 575px) {
                    &.mobile-only {
                        display: block !important;
                        //height: 100%;
                        // -o-object-fit: contain;
                        // object-fit: contain;
                    }
                }

                @media only screen and (min-width: 576px) {
                    &.web-only {
                        display: block !important;
                    }
                }
            }
        }

    }
}

@media (max-width: 480px) {
    .icons-row {
        display: flex;
        justify-content: space-evenly;
        align-items: center;

        .icon-container {
            padding: 5px;

            img {
                padding: 5px;
                width: 15vw;
                height: 15vw;
            }
        }
    }
}

@media (max-width: 768px) {
    #icons-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;

        .icon-container {
            padding: 10px;

            img {
                width: 12vw;
                height: 12vw;
            }
        }
    }
}

@media (max-width: 767px) { // for mobile devices campaign cards
    .card-container {
        padding-right: 50px;
        padding-left: 50px;
    }
}

@media (max-width: 767px) { // for mobile devices campaign cards
    .header-title {
        margin-top: 0px;
    }
}

