body {
    margin: 0;
    font-family: "Bai Jamjuree", Arial, sans-serif;
    background-color: #002444;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* WebKit tabanlı tarayıcılar için (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px; /* Daha ince kaydırma çubuğu */
    height: 8px; /* Alt kaydırma çubuğunun yüksekliği */
}

*::-webkit-scrollbar-track {
    background: #062445; /* Kaydırma çubuğu arka plan rengi, arka planla uyumlu */
    border-radius: 4px; /* Kenarları hafif yuvarlat */
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2); /* Hafif transparan beyaz */
    border-radius: 4px; /* Kenarları hafif yuvarlat */
    border: 2px solid #062445; /* İç boşluk ve çerçeve efekti */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Hover üzerindeyken biraz daha belirgin */
}

/* Firefox için */
* {
    scrollbar-width: thin; /* İnce kaydırma çubuğu */
    scrollbar-color: rgba(255, 255, 255, 0.2) #062445; /* Hafif transparan beyaz ve arka plan rengi */
}

.container {
    display: flex;
    flex-direction: column;
    padding: 0rem 1rem;
    height: 100vh;
}

#ball-light {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999999;
    width: 200px;
    height: auto;
    will-change: transform; /* Animasyon veya hareketli ışık efekti için */
}

.content {
    width: 1920px;
    height: 1080px;
}

.header {
    margin: 20px 0 20px 0;
     /* UI Properties */
    background: #001E38 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 1;
    border-radius: 1rem;
}

.header-container {
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 214px;
    padding: 0 3rem;
}

.right-pane {
    display: flex;
    align-items: center;
}

.info {
    margin-right: 50px;
    display: flex;
    flex-flow: column;
}

.empty-ball {
    width: 72px;
    height: 72px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%23476574FF' stroke-width='3' stroke-dasharray='8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    opacity: 1;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.bold {
    font-weight: bold;
    font-size: 1.5em;
}

.info-title {
    font-size: 29px;
    color: #adafb2;
}

.next-session-info {
    font-size: 27px;
    color: #adafb2;
}

.time {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number-circle {
    background: url(assets/ball.png) no-repeat center;
    background-size: contain;
    width: 414px;
    height: 414px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform; /* Dönüşüm animasyonları için optimize edildi */
}

.number-circle-placed {
    width: 77px;
    height: 77px;
}

.main-content {
    display: flex;
    height: 100%;
}

/*.main-content {
    justify-content: c;
}*/
.header, .grid-container {
    width: 100%;
    margin-right: 3%;
}

.grid-container {
    padding: 1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    background: transparent linear-gradient(180deg, #00091173 0%, #17435B 49%, #54545400 100%) 0% 0% no-repeat padding-box;
    box-shadow: inset 0px 1px 1px #FFFFFF29;
    border-radius: 20px;
    height: calc(100% - 230px);
}

.grid-item {
    background: url('assets/dark-blue-square.svg') no-repeat center;
    background-size: contain;
    width: calc(10% - 56px);
    margin: 10px 5px;
    padding: 23px;
    position: relative;
    will-change: transform; /* Grid elemanlarının dönüşümlerini optimize eder */
}

.grid-item span {
    font-size: 29px;
    font-weight: 700;
    display: flex;
    font-style: normal;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ball span {
    font-size: 22px;
    font-weight: bold;
    color: black;
}

.right-panel {
    position: relative;
    width: 50%;
}

.numbers-container {
    padding: 3rem 1rem;
    display: flex;
    margin-top: 0.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: transparent linear-gradient(180deg, #00091100 0%, #17435B 49%, #54545400 100%) 0% 0% no-repeat padding-box;
}

.right-panel-container {
    opacity: 1;
    border-top-left-radius: 16rem;
    border-top-right-radius: 16rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.big-number-ball-container {
    position: relative;
    background: #17435B 0% 0% no-repeat padding-box;
    border-radius: 50%;
    width: 413px;
    height: 409px;
    padding: 0 0 0;
    margin: 0;
    will-change: transform; /* Animasyonlu büyük numara topu için optimize edildi */
}

.col-6 {
    display: flex;
    justify-content: center;
    width: 20%;
}

#bigCircle {
    position: relative;
    z-index: 99999;
    transform-origin: 207px 204px;
    will-change: transform; /* Büyük çember dönüşüm animasyonları için optimize edildi */
}

h4 {
    font-size: 27px;
}

.text-center {
    text-align: center;
}

.m-0 {
    margin: 0;
}

.m-1 {
    margin: 1rem;
}

.ball {
    background: url('assets/ball.png') no-repeat center;
    background-size: contain;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform; /* Top animasyonları için optimize edildi */
}

.number-circle-bold {
    font-size: 112px;
    font-weight: bold;
    color: #000000;
    top: -4px;
    position: relative;
}

.font-bold {
    font-weight: bold;
}

.f-big {
    font-size: 28px;
}

.text-black {
    color: #000000;
}

.left-pane {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-pane .info {
    margin-left: 2rem;
}

.info-count {
    font-size: 40px;
}

.text-yellow {
    color: #f68c14;
}

.text-right {
    text-align: right;
    align-items: end;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-v-center {
    align-items: center;
}

.align-h-center {
    justify-content: center;
}

/* Last 3 Page BEGIN */
.last-3-title {
    font-size: 50px;
    text-align: center;
    margin: 0 0 2rem;
    font-weight: bold;
}

.last-3-box-container {
    padding: 1rem 3rem;
}

.last-3-box-info .title {
    font-size: 50px;
    color: #808c97;
}

.last-3-box-info .count {
    font-size: 68px;
    font-weight: bold;
}

.last-3-box-info .multipler {
    font-size: 34px;
    color: #0F212D;
    border-radius: 50%;
    background-color: #ffffff;
    width: 70px;
    font-weight: bold;
    text-align: center;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5rem;
}

.last-3-box {
    border-radius: 1rem;
    background: transparent linear-gradient(90deg, #01192d 0%, #1d4056 60%, #032444 100%) 0% 0% no-repeat padding-box;
    margin-bottom: 1.8rem;
}

.last-3-box-info {
    margin: 0 6rem 0 2rem;
}

.ball-number {
    font-size: 24px;
}

.number-circle-normal {
    width: 80px;
    height: 80px;
    margin: 0 1.7rem;
}

.number-circle-large .ball-number {
    font-size: 55px;
}

.number-circle-large {
    width: 150px;
    height: 150px;
    margin: 0 1.7rem;
}

/* Last 3 Page END*/

/* Winning Board BEGIN*/
table {
    border-collapse: separate;
    width: 100%;
    border-spacing: 0 1rem;
}

th, td {
    border: 0;
    padding: 5px;
    text-align: center;
    width: 9%;
    font-size: 26px;
    position: relative;
}

.number-cell {
    background-color: #fddf4d;
    color: #000;
    font-size: 25px;
    font-weight: bold;
}

.no-left-radius {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.no-right-radius {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.table-box {
    background: transparent linear-gradient(180deg, #00091173 0%, #17435b 49%, #54545400 100%) 0% 0% no-repeat padding-box;
    border-radius: 20px;
    padding: 1rem 8rem;
}

.rotate-text {
    writing-mode: vertical-lr; /* Yazının dikey olarak yerleştirilmesini sağlar (LTR) */
    transform: rotate(180deg); /* Yazıyı 180 derece döndürür (saat yönünün tersine) */
    /* Opsiyonel olarak aşağıdaki stil ayarları kullanılabilir */
    white-space: nowrap; /* Yazının satır atlamamasını sağlar */
    text-align: center; /* Yazının ortalanmasını sağlar */
    width: 20px; /* Yazının genişliğini ayarlar */
    will-change: transform; /* Döndürme animasyonları için optimize edildi */
}

td:not(:first-child):not(.number-cell)::before {
    content: '';
    padding: 0px;
    position: absolute;
    top: 22px;
    height: 0px;
    left: 0;
    width: 100%;
    z-index: 0;
    border: 0.5px solid #17435B;
}

/* Winning Board END*/

.mobile-header {
    display: none;
}

.mobile-home-header {
    display: none;
}

@media (max-width: 768px) {
    h4 {
        font-size: 14px;
    }

    .header {
        border-radius: 0;
    }

    .logo {
        width: 82px;
        padding: 0 0 0 0;
    }

    .left-pane .info {
        margin-left: 1rem;
    }

    .info {
        margin-right: 16px;
    }

    .info-title {
        font-size: 12px;
    }

    .m-1 {
        margin: 0.5rem;
    }

    .info-count {
        font-size: 16px;
    }

    .last-3-title {
        display: none;
    }

    .next-session-info {
        font-size: 12px;
    }

    .mobile-header {
        display: flex;
        background-color: #17212b;
        padding: 0.4rem;
    }

    .mobile-home-header {
        display: flex;
        background-color: #17212b;
        padding: 0.5rem 1rem;
    }

    .header-container {
        padding: 0 2rem;
    }

    .header {
        margin: 0;
    }

    .container {
        padding: 0;
        height: auto;
    }

    #ball-light {
        position: absolute;
        right: 10px !important;
        top: 2px !important;
        z-index: 999999 !important;
        width: 62px !important;
        height: auto !important;
    }
    .menu-hidden{
        display: none !important;
    }
}

#dynamic-content {
    position: relative;
    height: 100%;
}

@media (max-width: 2560px) {
    .content {
        width: 2560px;
    }

}

@media (min-width: 1921px) {
    /* getLast3Game start */
    .number-circle-normal {
        width: 120px;
        height: 120px;
    }

    .ball-number {
        font-size: 44px;
    }
    /* getLast3Game finish */

    /* getHotColdNumbersPage start */
    .hot-icon {
        height: 660px !important;
        margin: -110px -95px -98px !important;
    }

    .hot-numbers {
        border-radius: 100px 10px 10px !important;
    }

    .icon-title-title h2 {
        font-size: 75px !important;
    }

    .icon-title-title p {
        margin: 10px 0 0 0 !important;
        font-size: 40px !important;
    }

    .numbers-section {
        margin-bottom: 70px !important;
        width: 36% !important;
    }

    .number-container span {
        border-radius: 20px !important;
        width: 122px !important;
        height: 119px !important;
        font: normal normal bold 54px / 55px Bai Jamjuree !important;
    }

    .cold-numbers {
        position: relative !important;
        border-radius: 100px 10px 10px !important;
        padding: 20px !important;
        flex: 1 1 45% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 98% !important;
        margin-bottom: 65px !important;
    }

    .cold-icon {
        margin: -47px -8px -68px -48px !important;
        height: 600px !important;
    }
    /* getHotColdNumbersPage finish */

    /* ball selection start*/
    .grid-container {
        height: calc(100% - 100px) !important;
    }

    .grid-item span {
        font-size: 49px !important;
    }

    .big-number-ball-container {
        width: 613px !important;
        height: 606px !important;
        will-change: transform; /* Büyük numara topu için optimize edildi */
    }

    .big-number-ball-container .number-circle {
        width: 614px;
        height: 614px;
        will-change: transform; /* Büyük numara topu için optimize edildi */
    }

    .big-number-ball-container .empty-ball {
        width: 108px !important;
        height: 108px !important;
        will-change: transform; /* Büyük numara topu için optimize edildi */
    }

    .number-circle-placed {
        width: 110px !important;
        height: 110px !important;
        will-change: transform; /* Numara yerleştirme animasyonları için optimize edildi */
    }

    .empty-ball {
        width: 108px;
        height: 108px;
        will-change: transform; /* Boş top için optimize edildi */
    }

    #bigCircle {
        transform-origin: 307px 301px;
        will-change: transform; /* Büyük çember dönüşümleri için optimize edildi */
    }

    #ball-light {
        width: 300px !important;
        will-change: transform; /* Işık efekti için optimize edildi */
    }

    .number-circle-bold {
        font-size: 152px !important;
    }
    /* ball selection finish*/
}

.rotate-text {
    font-size: 32px;
    will-change: transform; /* Döndürme animasyonları için optimize edildi */
}

.justify-content-between {
    justify-content: space-between;
}

.button-link, .button {
    text-decoration: none;
}

.button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #f34000;
    color: #ffffff;
    border-radius: 7px;
    border: 1px solid #f34000;
}

.outline {
    color: #f34000;
    background-color: transparent;
}

.align-right {
    align-items: end;
}

.align-content-center {
    align-content: center;
}

.col-20 {
    width: 20%;
}

.my-1 {
    margin: 0.5rem 0 0.5rem;
}

#ball-light {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999999;
    width: 200px;
    height: auto;
    will-change: transform; /* Işık efekti için optimize edildi */
}

/* COUNTDOWN BEGIN*/
#countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
}

#countdown {
    position: absolute;
    margin: auto;
    zoom: 8;
    height: 40px;
    width: 40px;
    text-align: center;
}

#countdown-number {
    color: white;
    display: inline-block;
    line-height: 40px;
}

#countdown svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    transform: rotateY(-180deg) rotateZ(-90deg);
    will-change: transform; /* SVG animasyonları için optimize edildi */
}

#countdown svg circle {
    stroke-dasharray: 113px;
    stroke-dashoffset: 0px;
    stroke-linecap: round;
    stroke-width: 2px;
    stroke: white;
    fill: none;
    animation: countdown 20s linear infinite forwards;
}

@keyframes countdown {
    from {
        stroke-dashoffset: 113px;
    }
    to {
        stroke-dashoffset: 0px;
    }
}

@media (max-width: 768px) {
    #countdown {
        position: relative;
        margin: 25px auto auto auto;
        zoom: 3;
        height: 40px;
        width: 40px;
        text-align: center;
    }
}

/* COUNTDOWN END*/

:root {
    --dark: #34495e;
    --light: #fff;
    --success: #0abf30;
    --error: #f24d4c;
    --warning: #e9bd0c;
    --info: #3498db;
}
.notifications {
    position: fixed;
    top: 30px;
    right: 0px;
}

.notifications :where(.toast, .column) {
    display: flex;
    align-items: center;
}

.notifications .toast {
    width: 400px;
    position: relative;
    overflow: hidden;
    list-style: none;
    border-radius: 4px;
    padding: 16px 17px;
    margin-bottom: 10px;
    background: var(--light);
    justify-content: space-between;
    animation: show_toast 0.3s ease forwards;
}

@keyframes show_toast {
    0% {
        transform: translateX(100%);
    }
    40% {
        transform: translateX(-5%);
    }
    80% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-10%);
    }
}

.notifications .toast.hide {
    animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
    0% {
        transform: translateX(-10%);
    }
    40% {
        transform: translateX(0%);
    }
    80% {
        transform: translateX(-5%);
    }
    100% {
        transform: translateX(calc(100% + 20px));
    }
}

.toast::before {
    position: absolute;
    content: '';
    height: 3px;
    width: 100%;
    bottom: 0;
    left: 0;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        width: 0%;
    }
}

.toast.success::before, .btn#success {
    background: var(--success);
}

.toast.error::before, .btn#error {
    background: var(--error);
}

.toast.warning::before, .btn#warning {
    background: var(--warning);
}

.toast.info::before, .btn#info {
    background: var(--info);
}

.toast .column i {
    font-size: 1.75rem;
}

.toast.success .column i {
    color: var(--success);
}

.toast.error .column i {
    color: var(--error);
}

.toast.warning .column i {
    color: var(--warning);
}

.toast.info .column i {
    color: var(--info);
}

.toast .column span {
    font-size: 1.07rem;
    margin-left: 12px;
    color: #000;
}

.toast i:last-child {
    color: #aeb0d7;
    cursor: pointer;
}

.toast i:last-child:hover {
    color: var(--dark);
}

@media screen and (max-width: 530px) {
    .notifications {
        width: 80%;
    }

    .notifications .toast {
        width: 100%;
        font-size: 2rem;
        margin-left: 20px;
    }
}
