@charset "utf-8";

:root {
    --primary-yellow: #f2b100;
    --primary-red: #b71c1c;
    /* --dark-blue: #060B19; */
    --dark-blue: #061434;
    --light-gray: #f9f9f9;
    --gray: #dcdcdc;
    --black: #000;
    --white: #fff;
    --font-300: 'Aller_Lt';
    --font-400: 'Aller_Rg';
    --font-600: 'Aller_Bd';
    --font-800: 'Aller_Ex';
    --nav-height: 0px;
}

body {
    font-family: 'Aller_Bd';
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--dark-blue);
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}

.banner {
    /* background: var(--primary-yellow);
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch; */
    /* height: 300px; */
    margin-bottom: 2rem;
}



@media (min-width: 1024px) {
    .banner img {
    margin: auto;
    max-height: 15rem;
}
}
.carousel-container {
    /* height: 30vh; */
    /* padding: 10px; */
}


/* .banner .text {
    flex: 1;
    padding: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-600);
    text-shadow: 10px 10px 5px rgba(0, 0, 0, 0.16);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #707070;
} */

/* .banner img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-right-radius: 2rem;
} */

/* .banner .cta-btn {
    background: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 900;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray);
    background: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.arrow-btn {
    position: relative;
    z-index: 1;
}

.arrow-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.arrow-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.arrow-btn {
    position: relative;
    z-index: 10;
}

/* .arrow-btn img {
        pointer-events: none;
    } */

.scrollable-container,
.live-scroll {
    position: relative;
    z-index: 0;
}

.scrollable-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.scrollable-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 1; /*0 0 auto;*/
    width: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #fff;
}

.card-content>div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-label {
    font-size: 0.7rem;
    opacity: 0.85;
    color: #fff;
}  

.card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-contests .detail {
    position: relative;
    display: inline-flex;
    align-items: center; 
    gap: 0.5rem;
    color: #fff; 
    font-size: 0.8rem; 
    font-weight: 900; 
}

/*truncation of featured contest tags*/
.featured-contests .detail h3 {
    display: block;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    max-width: 90px; 
    font-size: 0.8rem; 
    font-weight: 900; 
    color: #fff; 
}

.featured-contests .detail::after {
    content: "";
    display: inline-block;
    width: 6rem; 
    /* max-width: 150px; */
    height: 2.5px;
    margin-top: 8px;
    background-color: #fff;
    z-index: 0;
}

.featured-contests .arrow-btn {
    z-index: 1;
}

/*truncation of winning descriptions*/
.featured-contests .card-title .title-all {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.featured-contests .card-title {
    width: 100%; 
    max-width: 180px;
}
  
.play-btn {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    font-size: 0.7rem;
    margin-right: 1.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* .play-btn:hover {
    background: transparent !important;
    border: 1px solid var(--dark-blue) !important;
    color: var(--dark-blue) !important;
    cursor: pointer;
} */

.recent-winners-wrapper {
    display: flex;
    background: var(--primary-yellow);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.recent-winners-label {
    background: var(--primary-yellow);
    color: var(--dark-blue);
    padding: 1rem;
    font-weight: bold;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.recent-winners-bar {
    flex: 1;
    background: var(--dark-blue);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
}

.recent-winners-bar .inner {
    display: flex;
    animation: scroll-winners 25s linear infinite;
    align-items: center;
    white-space: nowrap;
    padding: 1rem 0;
}

.winner-slide {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 2rem;
}

.winner-info {
    color: #fff;
    font-size: 0.75rem;
}

.winner-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 25px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
}

@keyframes scroll-winners {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.live-section {
    margin: 2rem 0;
}

.tab-group {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    background: var(--light-gray);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    color: var(--dark-blue);
}

.tab-button.active {
    background: var(--gray);
    color: var(--dark-blue);
}

/* .live-scroll {
    display: grid;
    grid-template-columns: repeat(4, 320px);
    grid-auto-rows: 460px;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
} */


.live-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
    align-items: start;
    overflow-x: visible;
    padding-bottom: 1rem;
}

/* .live-scroll::-webkit-scrollbar {
    display: none;
} */

.live-item {
    display: block;
}

.live-card {
    width: 100%;
    /* height: 100%; */
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.time-block-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 10px; */
    /* width: 90%; */
    max-width: 15rem;
    padding: 5px;
    border-radius: 25px;
    box-sizing: border-box;
    position: relative;
    top: 20px;
    margin: 0 auto;
}

.time-block-custom.timer-active {
    /* font-size: 22px !important;
    color: var(--dark-blue) !important; */
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.time-block-custom.date-active {
    /* font-size: 25px !important;
    color: var(--white) !important; */
    background: var(--dark-blue) !important;
    color: var(--white) !important;
}

.time-block-custom.date-active figure {
    display: none;
}

.common-detail.timer-active {
    /* font-size: 22px !important; */
    color: var(--dark-blue);
    /* background: var(--primary-yellow) !important; */
    /* width: 100%; */
    text-align: center;
    line-height: normal;
    padding: 5px 0 5px 5px;
}

.common-detail.date-active {
    /* padding-left: 10px !important; */
    /* font-size: 22px !important; */
    color: var(--white) !important;
    width: 100%;
    text-align: center;
    line-height: normal;
    padding: 5px 0;
    /* background: var(--dark-blue) !important;  */
}

/* .draw-details-btn {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: 16px;
    border: 1px solid var(--gray);
    color: var(--dark-blue);
    background: transparent;
    text-decoration: none;
    font-size: 0.8rem;
} */

/* .live-card {
    width: 320px;
    height: 440px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
} */

.live-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.live-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.live-card-label {
    font-size: 0.75rem;
    color: var(--dark-blue);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.live-card-title {
    font-size: 1.3rem;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.live-card .play-btn {
    background: var(--dark-blue);
    color: #fff;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 20px;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.live-section .arrow-btn { display: none; }

.img-time-block {
    /* width: 40px !important;
    height: 40px !important; */
}

/* for draw details */
.modal .btn-close:focus,
.modal .btn-close:active {
  outline: none !important;
  box-shadow: none !important;
}

.modal .btn-close:focus-visible {
  outline: 2px solid rgba(6,20,52,0.12);
  outline-offset: 2px;
}
  
.banner {
    margin-top: var(--nav-height, 0px);
    transition: margin-top 0.2s ease;
}

/* Push banner nav controls */
#bannerCarousel {
    position: relative;
    width: 100%;
}
  
#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8; 
  }
  

#bannerCarousel .carousel-control-prev {
    left: 9px;
}
  
#bannerCarousel .carousel-control-next {
    right: 9px;
}

.carouselContainer{
    height: 400px;
    object-fit: cover;
}

/* tables on the transaction history page */
.blank-table::before {
    content: none !important;
}

.no-transactions {
    /* height: 100%; */
    padding: 2rem 1rem; 
}

.no-transactions figure img {
    max-width: 150px; 
    margin: auto; 
}

.blank-table {
    height: 250px;
    vertical-align: middle;
}
/* end it here */


/* media queries */
/*This media query block was added to target pages with navbar overlap issue */
@media (max-width: 1199.98px) {
    header.header-two {
      position: relative !important;
      z-index: 10; 
    }
  
    header.header-two .navbar-collapse {
      position: static !important;
      height: auto !important;
      overflow: visible !important;
    }
  
    .content {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
}
  
@media (min-width: 767px) and (max-width: 910px) {
    .banner .text {
        font-size: 1.5rem;
    }

    .banner .cta-btn {
        margin-top: 1.5rem;
    }

    /* .draw-details-img{
        width: 100%;
    }

    .draw-details-detail{
        margin-top: 2px !important;
    } */
}

@media (max-width: 792px) {
    .banner {
        flex-direction: column;
        height: auto;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    /* .banner .text {
        padding: 1.5rem;
        font-size: 1.5rem;
        text-align: center;
        font-family: var(--font-600);
        text-shadow: 10px 10px 5px rgba(0, 0, 0, 0.16);
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: #707070;
    }

    .banner .cta-btn {
        margin-top: 2rem;
    } */

    .section-header {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    /* .banner .cta-btn {
        margin-top: 1.5rem;
    } */

    .banner {
        margin-top: var(--nav-height, 0px);
        transition: margin-top 0.2s ease;
    }

    .scrollable-container,
    .live-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        scroll-snap-type: x mandatory !important;
        overflow-x: auto; 
    } 
    
    /* vertical scroll for live cards */
    .live-section .live-scroll {
        display: flex !important;
        flex-direction: column !important;  
        flex-wrap: nowrap !important;
        gap: 1rem;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        scroll-snap-type: none !important;
    }
    
    .live-item {
        flex: 0 0 80%;
        width: 100%;
    }


    .card,
    .live-card {
        flex: 0 0 80% !important;
        width: 80% !important;
        margin: 0 auto;
        scroll-snap-align: start !important;
    }

    .card img,
    .live-card img {
        height: 150px !important;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .play-btn,
    /* .arrow-btn, */
    .tab-button {
        padding: 0.6rem 1rem !important;
    }

    .recent-winners-wrapper {
        /* flex-direction: column !important; */
    }

    .recent-winners-label {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .recent-winners-label,
    .recent-winners-bar {
        border-radius: 0 !important;
        /* width: 100% !important; */
    }

    .recent-winners-bar .inner {
        justify-content: center !important;
    }

    .live-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        font-size: 13px;
    }

    .live-section .arrow-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .live-section .section-header h2 {
        width: 100%;
        justify-content: items-start;
    }

    .live-section .tab-group {
        display: flex !important;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .live-section .tab-group .tab-button {
        flex: 0 0 auto !important;
        margin-right: 0.5rem;
        padding: 0.5rem 1rem !important;
        white-space: nowrap;
    }

    .live-section .tab-group .tab-button:last-child {
        margin-right: 0;
    }

    .live-section .live-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        scroll-snap-type: x mandatory !important;
    }

    /* .draw-details-img{
        width: 100%;
    }

    .draw-details-detail{
        margin-top: 2px;
    } */

    #bannerCarousel .carousel-control-prev {
        left: 1px;
    }
      
    #bannerCarousel .carousel-control-next {
        right: 1px;
    }
}

@media (max-width: 500px) {
    .recent-winners-label {
        min-width: 50px;
    }
    .recent-winners-bar .inner {
        padding: 0.5rem 0;
    }
    .recent-winners-label {
        font-size: 0.75rem;
    }
}
  
.time-block-custom.one-hour, .time-block-custom.ended {
  background: #b71c1c; /* example urgent bg */
  color: #fff;
}

.contest-date-color {
    color: white !important;
}