@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-Regular.ttf");
}
@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-DemiBold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-Italic.ttf");
    font-style: italic, oblique;
}
@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-Light.ttf");
    font-weight: 200;
}
@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-Regular.ttf");
    font-weight: normal;
}
@font-face {
    font-family: "Hoves";
    src: url("/css/hoves/TT-Hoves-Medium.ttf");
    font-weight: 600;
}

html {
    height: 100%;
}

body {
    font-family: 'Hoves', sans-serif;
}

.home{
    background-position: center;
    width: 100%;
    background-origin: content-box;
    background-size: cover;
    overflow-x: hidden;
    text-align: center;
    background-color: #fff;
}

.homeinput{
    font-size: 14px;
    padding: 15px 15px;
    max-width: 250px;
    width:90%;
    outline: none;
    border: none;
    border-radius: 30px;
    background-color: #F6F9FF;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
    color: #000;
}

.homeinput::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #BCC8E0;
  opacity: 1; /* Firefox */
}

.homebtn{
    font-size: 14px;
    padding: 15px 15px;
    max-width: 250px;
    width:90%;
    outline: none;
    border:none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    background: #2C68FF; 
    /*linear-gradient(180deg, #5587ff, #163587);*/
    color: white;
    font-weight: 600;
}

.homebtn:hover{
    color: white;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.coverc{
    margin-top: 30px;
    width: 95%;
    height: auto;
    border-radius: 1vw;
}

.covert{
    margin-top: 30px;
    width: 95%;
    height: auto;
}

.hyper{
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

.hyper:hover{
    text-decoration: underline;
}

.segmented {
  --bg-light: #eef6fb;
  --pill-bg: linear-gradient(180deg, #f6fbfe 0%, #eef6fb 100%);
  --accent-shadow: rgba(30,96,255,0.28);
  --muted-blue: #9fc7f7;

  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px;
  background: var(--pill-bg);
  border-radius: 20px;
  /*box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);*/
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  max-width: 270px;
}

/* Buttons */
.segmented .option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 180ms cubic-bezier(.2,.9,.3,1);
  color: var(--muted-blue);
  background: transparent;
  border: none;
  outline: none;
  max-width: 130px;
}

/* Icon and label */
.segmented .option .icon {
  width: 168px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.segmented .option .label {
  font-weight: 600;
  font-size: 13px;
  color: inherit;
  line-height: 1;
}

/* Selected state */
.segmented .option.selected {
  color: #fff;
  background: linear-gradient(180deg, #2b82ff 0%, #1e56d6 100%);
  box-shadow:
    0 10px 26px var(--accent-shadow),
    0 2px 8px rgba(27,84,214,0.12);
  transform: translateY(-2px);
  margin-top: 2px;
  max-width: 130px;
}

/* Unselected muted look */
.segmented .option:not(.selected) .icon,
.segmented .option:not(.selected) .label {
  color: #8fbbe9;
}

/* Focus */
.segmented .option:focus-visible {
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
  border-radius: 20px;
}

.help-btn{
    width: 20px;
    position: absolute;
    right: 8px;
    top: 1.9vw;
    cursor:pointer;
    z-index: 998;
}

.back-btn{
    left: -0.8vw;
    width: 32px;
    position: absolute;
    top: -0.8vw;
    cursor: pointer;
    z-index: 998;
    border: 5px solid white;
    border-radius: 50%;
}


#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Style for the gift reveal popup */
#giftReveal {
    position: relative;
    opacity: 0; /* Start with hidden */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling for the reveal content */
.reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styling for the image */
.reveal-img {
    width: 300px;
    opacity: 0; /* Start with hidden image */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
    cursor: pointer;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.zaawar{
    display: flex; justify-content: space-between; align-items: center; width: 100%; height: 47px; border-radius: 21.5px; background: #F6F9FF; 
    box-shadow: rgba(0, 0, 15, 0.06) 1px 2px 4px 1px inset;
}

.gift_winners{
    text-align: left;
    padding-left: 10px;
    margin-left:10px; margin-top:5px;
    color: #000;
    font-size: calc(11px + 0.1vw);
    line-height: 14px;
}

.erhLabel{
    background-color:#FF6833;width:28px;height:28px;border-radius: 50%;position: absolute;top: -8px;right: -5px;color: white;
    font-size: 13px;
    padding-top: 5px;
}

.erkh{
    width: 65px;display: flex; justify-content: center; align-items: center;border-radius: 14px;
    height: 28px;color:white; font-size:11px;
    margin-right: 5px;
    /*background: linear-gradient(180deg, #5587ff, #163587);*/
    background: linear-gradient(180deg, #2b82ff 0%, #1e56d6 100%);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.tanyErh{
    --bg-light: #eef6fb;
  --pill-bg: linear-gradient(180deg, #f6fbfe 0%, #eef6fb 100%);
  --accent-shadow: rgba(30,96,255,0.28);
  --muted-blue: #9fc7f7;

  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--pill-bg);
  border-radius: 30px;
  /*box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);*/
  box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
  font-size: calc(12px + 0.1vw);
  margin-top: -10px;
}

.close-btn {
    background-color: white;
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 17.35px;

}
.durem{
    color: #000;
    text-align: center;
    font-family: 'Hoves', sans-serif;
    font-size: calc(14px + 0.15vw);
    font-style: normal;
    line-height: normal;
    max-width: 600px;
    width: 100%;
}
.durem2{
    max-width: 600px;
    width: 80%;
    color: #000;
    text-align: center;
    font-family: 'Hoves', sans-serif;
    font-size: calc(12px + 0.12vw);
    font-style: normal;
    line-height: normal;
}

input[type='number'] {
    -moz-appearance:textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.rowcenter{
    margin-top: calc(4vw + 20px);
    width: 100%;
    display: flex;
    justify-content: center;  
    align-items: center;   
    text-align: center;
    margin-top: 10px;
    padding: 20px;
}

.logo22{
    width:14vw;
    max-width: 80px;
    position:absolute; 
    top:10px;
    right: 10px;
    display:none;
}

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

.reveal-img {
    width: 300px;
    opacity: 0; /* Start with hidden image */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
    cursor: pointer;
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Style for the gift reveal popup */
#loader2 {
    position: relative;
    opacity: 1; /* Start with hidden */
    transform: translateX(0); /* Start off-screen to the right */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transition */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* When the gift is revealed, we apply this class */
.animate-gift {
    opacity: 1; /* Fade in the image */
    transform: translateX(0); /* Slide the image to the center */
}

.surpbtn{
    font-size: 13px;
    padding: 6px 8px;
    width: 130px;
    outline: none;
    border: none;
    border-radius: 30px;
    /*background-image: linear-gradient(#2754d6, #1a33bb);*/
    /*font-weight: bold;*/
    box-sizing: border-box;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(180deg, #2b82ff 0%, #1e56d6 100%);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transform: translateY(-2px);
    /*background: linear-gradient(180deg, #5587ff, #163587);*/
    
}

.surpbtn:hover{
    color: white;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

    
.social-pills {
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  /* transparent container so it won't add any background */
  background: transparent;
  margin-top: -10px;
}

/* Individual buttons: flat, no bg color, no drop shadows */
.social-btn {
  --size: 64px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: transparent;   /* no background color */
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 160ms cubic-bezier(.2,.9,.3,1);
  -webkit-tap-highlight-color: transparent;
}

/* Gentle hover/active visual (scale only) */
.social-btn:hover,
.social-btn:focus {
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

/* Service-specific svg sizing */
.social-btn.youtube svg { width: 34px; height: 22px; }
.social-btn.facebook svg { width: 24px; height: 24px; }
.social-btn.instagram svg { width: 34px; height: 34px; }

.levels-wrapper {
  margin-top: 0px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  border: 2px solid rgba(208,226,239,0.7);
  box-shadow: inset 0 6px 12px rgba(236,243,248,0.9);
  max-width: 600px;
}

/* add vertical spacing between rows of columns in Bootstrap 3 */
.level-grid > [class*="col-"] {
  margin-bottom: 18px;
}

/* Card */
.level-card {
  width: 100%;
  height: 120px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
  position: relative;
  outline: none;
}

/* Active (selected) */
.level-card.active {
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: 0 10px 20px rgba(30,90,220,0.12);
  transform: translateY(-6px);
}

/* Dimmed / placeholder */
.level-card.dimmed {
  /*background: linear-gradient(180deg, rgba(245,249,252,0.9) 0%, #fbfdff 100%);*/
  color: rgba(70,90,110,0.28);
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Star */
.level-card .star {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #ffbf3a;
  font-size: 14px;
  display: none;
}
.level-card.active .star { display: block; }

/* Text */
.level-card .roman {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
  color: #0b1220;
}

.dimmed .roman {
    color:#555;
}
.level-card .small {
  font-size: 12px;
  color: #6d7f93;
  margin-bottom: 6px;
}
.level-card .big {
  font-weight: 800;
  font-size: 15px;
  color: #0b1220;
}
.level-card .muted { color: #999 }

/* Focus */
.level-card:focus { outline: none; }
.level-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(30,120,255,0.12);
  border-radius: 14px;
}

/* Responsive tweak for small screens */
@media (max-width: 480px) {
  .level-card { height: 110px; padding: 10px; }
}

.countdown{
  width: 160px;
  background: #0b0b0b;
  color: #ffffff;
  border-radius: 20px;
  padding: 7px 12px 5px 12px;
  position: absolute;
  top: -6px;
  right: 9px;
  border: 12px solid white;
}

/* Улаан цэг дээд баруунд */
.countdown .dot{
  position: absolute;
  top: 6px;
  right: 6px;
  width:6px;
  height:6px;
  background: #ff3b30;
  border-radius:50%;
  box-shadow: 0 0 6px rgba(255,59,48,0.6);
}

/* Дижит болон шошго */
.time-grid{
  display:flex;
  gap:6px;
  align-items:flex-end;
  justify-content:space-between;
}

/* Нэг сегмент (хоног, цаг...) */
.segment{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
  min-width:0;
}

/* Тоон утга */
.value{
  font-weight:600;
  color:#ffffff;
  /* Фонт хэмжээг width-ээс харгалзуулав */
  font-size: 18px; /* 150px * 0.18 ≈ 27px */
  line-height:1;
  letter-spacing: 1px;
}

/* Шошго */
.label{
  font-size: 8px; /* ≈9px */
  margin-top:3px;
  color: #e6e6e6;
  font-weight:100;
}

.gradBtn {
    color: #fff;
    background: linear-gradient(180deg, #2b82ff 0%, #1e56d6 100%);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transform: translateY(-2px);
    padding: 10px 10px;
    max-width: 200px;
}

/* Responsive tweak */
@media (max-width: 480px) {
  .social-btn { --size: 56px; border-radius: 12px; }
}

.socialIcon{
    width:58px;
}

@media(min-width:370px){
    .homebtn{
        width:80%;
        padding: 11px 20px;
    }
    
    .homeinput{
        width:80%;
        padding: 13px 30px;
    }
    
    .clickbtn{
        width:80%;
        padding: 10px 20px;
    }
}

@media(min-width:400px){
    .popup{
        margin-top: -240px;
    }
    .belegtext{
        margin-top: 35px;
    }
    .little{
        font-size: 20px;
    }
    .homeinput{
        margin-top: 25px;
    }
    .gift-img{
        height: 90px;
        width: 90px;
    }

    .flip-card {
      width: 90px;
      height: 90px;
    }
    .top3{
        max-height: 300px;
    }
    .top-point{
        bottom: 85px;
    }
    .topposition{
        margin: 10px 25px;
    }
}

@media(min-width:460px){
/*    .myPos{
        width: 320px;
        bottom: 10px;
        padding: 8px 25px;
    }*/
   
    .popup{
        margin-top: -250px;
    }
    .listTable tr td{
        padding: 5px 5px;
        font-size: 15px;
    }
    .homeinput{
        margin-top: 35px;
    }
    .help-icon{
        max-width:18px;
        margin-top:-8px;
    }
    .giftDiv{
        height: 160px;
    }
    .top3{
        max-height: 360px;
    }
    .top-point{
        bottom: 120px;
    }
    .top-number{
        bottom: 95px;
    }
    
    .button-div{
        max-width:380px;
    }
    
    .progress1{
        width:220px;
    }
    .surpbtn{
        font-size: 16px;
        padding: 8px 8px;
        width: 130px;
        
    }
    .surprise4{
        margin-top:35px;
    }
    .surprise3{
        margin-top:140px;
    }
    .surprise2{
        margin-top:120px;
    }
    .surprise1{
        margin-top:70px;
    }
    .homeinput{
        font-size: 16px;
    }
    .homebtn{
        font-size: 16px;
    }
    .clickbtn{
        font-size: 16px;
    }
    
}

@media(min-width:500px){
    .surpbtn{
        font-size: 16px;
        width: 180px;
    }
    .help{
        font-size: 28px;
    }

    .menuBtn{
        width: 150px !important;
    }
    .homebtn{
        max-width: 280px;
    }
    .homeinput{
        max-width: 280px;
    }
    .clickbtn{
        max-width: 280px;
    }
    
    .countdown{
        top: 18px;
        right: 2.5vw;
      }
      
      .gradBtn{
            padding: 13px 13px;
            max-width: 240px;
      }
}

@media(min-width:600px){
    .footer-logo{
        max-width: 107px;
    }
    .close img{
        width:35px;
    }
    .little-text{
        font-size: 15px;
    }
    .popup{
        margin-top: -330px;
    }
    .helpIcon{
        max-width:26px;
        margin-top:-10px;
    }
    .bigtext{
        font-size: 30px;
    }
    .prizetext{
        font-size: 22px;
    }
    
    .hyper{
        font-size: 16px;
    }

    .homebtn{
        font-size: 17px;
    }
    .clickbtn{
        font-size: 17px;
    }
    .valtext{
        font-size: 17px;
    }
    .helptext{
        font-size: 20px;
    }
    
    .surpbtn{
        width:200px;
        font-size: 17px;
    }
    
    .segmented .option.selected {
        max-width: 170px;
      }
      
    .segmented .option {
        max-width: 170px;
    }
}


@media(max-width:500px){
    .coverb{
        padding-left: 0px;
        padding-right: 0px;
    }
    
    .coverc{
        margin-top: -2px;
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    .covert{
        margin-top: -2px;
        width: 100%;
        height: auto;
        border-radius: 0;
    }
}

@media(min-width:768px){
    .help-btn{
        width: 35px;
        right: 35px;
    }
    .back-btn{
        left: 9.8vw;
        top: 1.4vw;
        width: 45px;
    }
    
    .segmented {
        gap: 10px;
        padding: 8px;
        border-radius: 40px;
        max-width: 350px;
      }

      /* Buttons */
      .segmented .option {
        gap: 10px;
        padding: 11px 20px;
        border-radius: 28px;
      }

      /* Icon and label */
      .segmented .option .icon {
        width: 18px;
        height: 18px;
        flex: 0 0 20px;
      }
      .segmented .option .label {
        font-weight: 600;
        font-size: 15px;
      }

      /* Focus */
      .segmented .option:focus-visible {
        box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
        border-radius: 28px;
      }
}

.zleft {
    margin-bottom: 15px;
}
.zright {
    margin-bottom: 15px;
}

@media(min-width:900px){
    .zleft {
        width: 56.7%;
        max-width: 1050px;
    }

    .zright {
        width: 28.8%;
    }
    
    .rowcenter{
        margin-top: 70px;
    }
    
    .logo22{
        width:15vw;
        position:absolute; 
        top:20px;
        right: 20px;
        display:block;
    }
    
    
}

