@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicBook.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicBold.ttf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicDemi.ttf') format('opentype');
    font-weight: normal;
    font-style: demi;
}
@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicExtraBold.ttf') format('opentype');
    font-weight: extra-bold;
    font-style: normal;
}

@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicLight.ttf') format('opentype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'FurutaCyrillic';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/07-raikanilmu-vsh/fonts/FuturaCyrillicMedium.ttf') format('opentype');
    font-weight: 600;
    font-style: normal;
}


body {
    font-family: 'FurutaCyrillic';
    background: #f6bfec;
    background: linear-gradient(90deg,#F7B7D3 0%, #FEF16D 100%);
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    justify-content: center !important;
    align-items: center;
    overflow-x: hidden;
}

#cameraSelect {
    display: none !important;
}

.app-container {
    position: relative;
    height: 120rem;
    width: 67.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

@media (max-width: 450px) {
    .app-container {
        width: 100%;
        height: 100dvh;
    }
}

.wrapper {
    /* max-width: 500px;
    margin: auto;
    background-color: white;
    width: 100%;
    flex: 1; */
}

#footer {
    /* max-width: 500px;
    margin: auto;
    padding-top: 64px !important; */
}

#header,
#footer {
    /* width: 100%;
    background-color: white;
    text-align: center;
    padding: 10px; */
}

#header-main {
    width: 100%;
    padding: 10px;
}

#header-main img {
    width: 4em;
}

#header img {
    width: 7rem;
}

#footer img {
    width: 15rem;
}


.alert {
    font-size: 14px;
}

#contact-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #CE3B27;
    border-radius: 5px;
    max-width: 500px;
    border: 1px solid #ddd;
    transition: transform 0.2s ease-in-out;
    color: white;
}


#user-info {
    display: flex;
    flex-direction: column;
}

#username {
    font-size: 24px;
    font-weight: bold;
}

#miles-points {
    font-size: 18px;
    font-weight: bold;
}

#btn-actions a {
    font-size: 16px !important;
    font-weight: bold;
}

#btn-actions i {
    font-size: 24px;
}


#btn-actions .custom-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 80px;
    border-width: 2px;
    font-size: 14px !important;
    font-weight: bold;
    padding: 15px 10px;
    border-radius: 5px;
    text-align: left;
}

#btn-actions .custom-btn i {
    font-size: 28px;
    margin: 0;
}

.btn-outline-danger,
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger.active {
    background-color: transparent !important;
    color: #E02612 !important;
    border-color: #E02612 !important;
    box-shadow: none !important;
    font-weight: bold !important;
}

#reader {
    background-color: #000;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

#reader video {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover;
}

#camera-error-div {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#camera-container {
    width: 100%;
    position: relative;
  }

#logos {
    width: 100%;
}

.logo-tag {
    position: absolute;
    top: 5px;
    font-size: 10px;
    left: 7px;
}

.logo-tag .logo-stand {
    font-size: 12px;
    font-weight: bold;
}


.logo-div {
    position: relative;
    border: 1px solid #ccc;
    text-align: center;
    padding-top: 18px;
    padding-left: 5px;
    padding-right: 5px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #111C3E;
    color: white;
}

.logo-div.visited::before {
    display: none !important;
}

.visited-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background-image: url('https://cdn-azure.searix.net/searixcdn/2025/04-meetingshow/done-badge.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 4;
    pointer-events: none;
}


.logo-div.star{
    background-color: #CE3B27;
}

.logo-box {
    background-color: white;
    border-radius: 5px;
    height: 80px;
    padding: 5px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 28, 62, 0.9);
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.logo-div.star .custom-overlay {
    background-color: rgba(224, 38, 18, 0.8);
}

.logo-div.show-overlay .custom-overlay {
    opacity: 1;
}

.youtube-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cdn-video-container {
    position: relative;
    width: 100%;
}

#rewards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.reward-item{
    transition: all 0.2s ease-in-out;
}

.reward-item.selected {
    box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.075) !important;
    background: rgba(193, 38, 36, 0.1);
} 

.left-column {
    flex: 1;
    border-right: 2px solid black;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.reward-label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
}

.reward-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 5px auto;
}

.reward-logo-container{
    width: 3rem;
    height: 3rem;
}

@media (max-width: 390px) {

    .reward-label {
        font-size: 0.65em !important;
    }

    .reward-logo-container {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
}

@media (max-width: 768px) {
    .reward-label {
        font-size: 0.7em;
        padding: 0.25rem 0.5rem;
    }

    .reward-logo-container {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.miles-badge {
    background: #E02612;
    color: #fff;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
}

.right-column {
    flex: 2;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.reward-image {
    width: 90px;
    height: 140px;
    object-fit: cover;
    background-color: #ddd;
    border-radius: 5px;
    border: 1px solid #cecece;
}

.reward-name {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

#submit-reward {
    margin-top: 20px;
    width: 100%;
    background-color: #CE3B27;
    color: white;
}

video {
    width: 100%;
}

.miles-bar {
    background-color: #CE3B27;
}

.text-dark-blue {
    color: #111C3E;
}

.border-dark-blue {
    border-color: #111C3E !important;
}


.progress-wrapper {
    position: relative;
}

.progress{
    background-color: #efefef;
}

.trophy-icon {
    pointer-events: none;
    background-color: #efefef;
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trophy-icon i{
    color:grey;
    opacity: 0.7;
    padding-left: 3px;
}

.trophy-icon.complete{
    background-color:#A6D66A;
}

.trophy-icon.complete i{
    color:white;
    opacity: 1;
}

#searixLogo{
    text-align: center;
    color: white;
    font-size:12px;
    padding-top: 10px;
    padding-bottom: 15px;
    background-color: #000000 !important;
}

#searixLogo img{
    width:120px;
}

#scan-completed{
    text-align: center;
    font-weight: bold;
}

#lottie-trophy{
    height: 200px !important;
    margin: auto;
    padding: 0 !important;
}

#scan-completed-text{
    margin-top: -30px;
    margin-bottom: 20px;
}

#modalIcon.success {
    background-color: #d4edda;
    border-radius: 50%;
    display: inline-block;
    padding: 10px;
  }
  #modalIcon.error {
    background-color: #f8d7da;
    border-radius: 50%;
    display: inline-block;
    padding: 10px;
  }
  #modalIcon img {
    width: 40px;
    height: 40px;
  }
  
  .lottie-wrapper {
    width: 210px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .lottie-wrapper svg {
    width: 420px !important;
    height: 300px !important;
    transform: scale(0.5);
    transform-origin: center center;
  }
  
  .logo-tag.text-truncate {
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
.header-title h6.fw-bold {
    padding-left: 2rem;
    padding-right: 2rem;
    word-break: break-word;
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert.alert-custom{
    background-color: #111C3E;
    color: white;
}

.card-header{
    background-color: #0E1D40; 
    color: white; 
    font-weight: bold;
    line-height: 1.2;
    font-size: 20px;
}

.screen-card{
    border-radius: 5px; 
    overflow: hidden; 
    background-color: white; 
    margin-top: -50px; 
}

.card-shadow{
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.modal {
    --bs-modal-margin: 1.5rem !important;
}

.modal-backdrop.show{
    opacity: 0.8 !important;
}

#custom-play-btn {
    z-index: 10;
    font-size: 1.2rem;
    border-radius: 50px;
    border: none;
    background-color: #CE3B27;
}

.fully-redeemed {
    pointer-events: none;
    position: relative;
}

.redeemed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    pointer-events: all;
}

.register-status-label {
    font-size: 2rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    line-height: 1;
    color: #ffffff ;
    border-radius: 0.5rem;
    background-color: var(--bs-success);
}

.register-status-label.danger {
    background-color: var(--bs-danger);
}


.custom-btn{
    border-radius: 99rem;
    background: linear-gradient(0deg, #FDB81A 0%, #FFE29F 100%);
    color: #863706;
    font-weight: bold;
    font-size: 3.5rem;
    border: none;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    padding: 1.5rem 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.btn-back{
    font-size: 2.5rem;
    font-weight: 600;
}

.modal-gradient{
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 63%, rgb(255, 255, 255) 50%, #F9C5BB 100%);
}

.main-gradient{
    background: #ffffff;
    background: linear-gradient(180deg, #FFE29F 0%, #FDB81A 100%);
}

.page-gradient{
    background: #FFFFFF;
    background: linear-gradient(180deg, #FFFFFFA8 0%, #f9c5bba7 100%);
}

.qk7i3 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
}

.nruq7 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.ev834 {
    padding: 4rem 2rem;
}

.wt4k5 h3 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.wt4k5 h6 {
    font-size: 2.75rem;
    font-weight: 400;
    line-height: 1.2;
}

.wt4k5 .modal-content {
    padding: 2rem;
    border-radius: 1rem !important;
}

/* iOS-specific fixes for logo centering */
.logo-main {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

/* Ensure parent container is properly centered */
.d-flex.justify-content-center.align-items-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    text-align: center;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .app-container {
        /* Use viewport units that are more reliable on iOS */
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for iOS */
        max-height: 120rem;
    }
    
    .logo-main {
        /* Ensure consistent sizing on iOS Safari */
        max-width: min(85vw, 35rem) !important;
        width: auto !important;
        transform: translateX(0) !important; /* Reset any potential transforms */
        transition: none !important; /* No transitions on iOS */
        -webkit-transition: none !important;
    }
    
    /* Force re-layout on iOS */
    .d-flex.justify-content-center.align-items-center {
        -webkit-box-pack: center !important;
        -webkit-justify-content: center !important;
        -webkit-box-align: center !important;
        -webkit-align-items: center !important;
    }
}

/* Additional iOS device specific targeting */
@media only screen and (device-width: 393px) and (device-height: 852px), /* iPhone 14 Pro */
       only screen and (device-width: 428px) and (device-height: 926px), /* iPhone 14 Pro Max */
       only screen and (device-width: 390px) and (device-height: 844px), /* iPhone 14 */
       only screen and (device-width: 375px) and (device-height: 812px), /* iPhone 13 mini */
       only screen and (device-width: 414px) and (device-height: 896px), /* iPhone 11 Pro Max */
       only screen and (device-width: 375px) and (device-height: 667px), /* iPhone SE */
       only screen and (device-width: 320px) and (device-height: 568px)  /* iPhone 5s */ {
    
    .logo-main {
        display: block !important;
        margin: 0 auto !important;
        max-width: min(90vw, 32rem) !important;
        width: auto !important;
        height: auto !important;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        transition: none !important;
        -webkit-transition: none !important;
    }
}

/* Additional responsive fixes for smaller iOS devices */
@media screen and (max-width: 480px) {
    .logo-main {
        max-width: min(95vw, 28rem) !important;
    }
}

@media screen and (max-height: 667px) {
    .logo-main {
        max-width: min(85vw, 30rem) !important;
    }
}

/* Fallback centering that doesn't depend on JavaScript */
.logo-main {
    /* Multiple centering methods for maximum compatibility */
    display: block !important;
    margin: 0 auto !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(90vw, 35rem);
    width: auto;
    height: auto;
    /* Remove any transitions for instant positioning */
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

/* Reset transform for @supports that might override */
@supports (display: flex) {
    .d-flex .logo-main {
        position: static;
        left: auto;
        transform: none;
        margin: 0 auto;
    }
}

.iti{
    width: 100%;
}
.iti__search-input{
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    padding: 1.5rem 1rem;
}
.form-control{
    padding: 1rem !important;
}
.iti__country-list{
    font-size: 2.5rem;
}

.corner-logo {
    /* Corner logos use viewport units that adjust with keyboard */
    width: 14rem !important;
    max-width: 25vw !important;
    height: auto !important;
    object-fit: contain !important;
}

.corner-logo.top-left {
    position: absolute !important;
    top: 2vh !important;
    left: 2vw !important;
}

.corner-logo.top-right {
    position: absolute !important;
    top: 2vh !important;
    right: 2vw !important;
    width: 12rem !important;
    max-width: 20vw !important;
}
}