/*
@font-face {
    font-family: 'Shurjo';
    src: url('../fonts/Shurjo_Regular_v3001.ttf') format('truetype');
}
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Shurjo', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f0f0f0;
}

#ad-container {
    width: 300px;
    height: 250px;
    background: url('../img/bg2.png') no-repeat center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
}

/* অ্যাড লিঙ্ক লেয়ার */
.ad-link-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* সবচেয়ে নিচে থাকবে */
    cursor: pointer;
}

.status-text {
    position: absolute;
    top: 74px;
    left: 23px;
    width: 160px;
    text-align: center;
    color: #ffffff;
    z-index: 1000; /* ড্রপডাউন সহ এই অংশটি ওপরে থাকবে */
}

.label-main {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 2px;
    font-weight: 600;
}

.district-info-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.custom-select-wrapper {
    cursor: pointer;
    position: relative;
}

.select-trigger {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.district-label {
    font-weight: 600;
    font-size: 13px;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    background: #0a0650; /* সলিড ব্যাকগ্রাউন্ড যাতে টাইমার না দেখা যায় */
    color: #fff;
    border-radius: 8px;
    margin-top: 1px;
    max-height: 110px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;
}

.custom-options.open {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.search-box {
    width: 100%;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    position: sticky;
    top: 0;
    background: #0a0650;
    color: #fff;
    font-family: 'Shurjo', sans-serif;
}

.option-item {
    padding: 10px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* টাইমার ডিজাইন */
.timer-main-container {
    position: absolute;
    bottom: 45px;
    left: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 5; /* ড্রপডাউনের নিচে থাকবে */
}

.timer-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
    position: absolute;
    top: -25px;
}

.time-box {
    width: 55px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.digits {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 32px;
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.digit-exit {
    transform: translateY(-100%) rotateX(-90deg);
    opacity: 0;
}

.digit-enter {
    transform: translateY(100%) rotateX(90deg);
    opacity: 0;
}

.digit-active {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}

.label-wrapper {
    display: flex;
    gap: 7px;
    align-items: center;
    bottom: -23px;
    position: relative;
}

.unit-label {
    width: 55px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.arrow-down {
    height: 12px;
    width: 12px;
    border: 1px solid #05006847;
    border-radius: 50%;
    margin-left: 5px;
    margin-top: 4px;
    background: #ebebeb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -5px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
/* ড্রপডাউন লিস্টের স্ক্রলবার ডিজাইন */
.custom-options::-webkit-scrollbar {
    width: 6px; /* স্ক্রলবারের প্রস্থ */
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* স্ক্রলবার ট্র্যাকের ব্যাকগ্রাউন্ড */
    border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); /* স্ক্রলবার থাম্ব (যেটা নড়াচড়া করে) */
    border-radius: 10px;
    border: 1px solid rgba(10, 6, 80, 0.98); /* থাম্বের চারপাশে বর্ডার */
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4); /* মাউস নিলে থাম্বের রঙ কিছুটা উজ্জ্বল হবে */
}

/* ফায়ারফক্সের জন্য স্ক্রলবার সাপোর্ট */
.custom-options {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}


/*
Full height drodpdown*/

.custom-options {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    background: #0a0650;
    color: #fff;
    border-radius: 8px;
    margin-top: -130px;
    max-height: 230px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 9999;


}