@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/cocogoose');

@font-face {
    font-family: 'CocogoosePro';
    src: url('fonts/CocogoosePro/WOFF/CocogoosePro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CocogoosePro-regular';
    src: url('fonts/CocogoosePro/WOFF2/CocogoosePro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham-bold';
    src: url('../fonts/Gotham-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham-light';
    src: url('../fonts/Gotham-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #20b1e6;
    /*--secondary-color: #f68a1e;*/
    --secondary-color: #e84d56;
    --green-color: #17b9ac;
    --dark-color: #1e1e1e;
    --white-color: #ffffff;
    --black-color: #000000;
    /*--red-color: #e74d56;*/
    --red-color: #3d3f99;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

html, body {
    background-color: white;
    text-align: center;
    font-family: 'Gotham-bold', sans-serif;
    color: #000;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

.wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.row.mt-5 {
    flex: 1;
    min-height: 0;
}

.resultErrors{
    padding: 20px;
    border-radius: 20px;
    border: 4px solid var(--secondary-color);
    text-align: left;
    font-family: Gotham-bold;
}
.resultError {
    font-family: Gotham;
    font-size: 16px;
}
.resultError span{
    font-family: Gotham-bold;
}
/* Main Layout Structure */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.data-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Main Heading */
.main-heading {
    font-family: 'CocogoosePro', sans-serif;
    background-color: var(--primary-color);
    padding: 12px 20px;
    color: var(--white-color);
    text-align: center;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: clamp(24px, 4vw, 40px);
    margin: 10px auto;
    width: 99%;
    font-size: 32px;
}

/* Utility Classes */
.color-ffffff{ color: #fff; }
.color-black{ color: #000000; }
.primary-color-bg{ background-color: #3d3f99; }
.color-primary{ color: #3d3f99; }
.secondry-color-bg{ background-color: #2773ba; }
.success-bg{ background-color: #17b9ac; }
.color-success{ color: #17b9ac; }
.error-bg{ background-color: #e84d56; }

/* Success and Error Items */
.successItem, .successItem:hover {
    background-color: var(--white-color) !important;
    border: 4px solid var(--green-color) !important;
    color: #000 !important;
    cursor: default !important;
}

.sensitiveContainer .successItem, .sensitiveContainer .successItem:hover {
    background-color: var(--white-color) !important;
    border: 4px solid var(--red-color) !important;
    color: #000 !important;
    cursor: default !important;
}

.errorItem, .errorItem:hover {
    background-color: var(--white-color) !important;
    border: 4px solid var(--secondary-color) !important;
    color: #000 !important;
    cursor: default !important;
}

/* Font Size Utilities */
.font-size-10 { font-size: 10px !important; }
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-14 { font-size: 14px !important; }
.font-size-16 { font-size: 16px !important; }
.font-size-18 { font-size: 18px !important; }
.font-size-19 { font-size: 19px !important; }
.font-size-20 { font-size: 20px !important; }
.font-size-21 { font-size: 21px !important; }
.font-size-22 { font-size: 22px !important; }
.font-size-24 { font-size: 24px !important; }
.font-size-26 { font-size: 26px !important; }
.font-size-28 { font-size: 28px !important; }
.font-size-32 { font-size: 32px !important; }
.font-size-46 { font-size: 46px !important; }
.font-size-48 { font-size: 48px !important; }
.font-size-58 { font-size: 58px !important; }

/* Font Weight Utilities */
.font-w-400 { font-weight: 400 !important; }
.font-w-500 { font-weight: 500 !important; }
.font-w-700 { font-weight: 700 !important; }

/* Padding Utilities */
.padding-t-b-2{ padding: 2px 0; }
.padding-t-b-5{ padding: 5px 0; }
.padding-t-b-10{ padding: 10px 0; }
.border-radiu-50{ border-radius: 50px; }

/* Button Styles */
.buttonTry {
    background-color: #2773ba;
    text-transform: capitalize;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
}

.buttonTry:hover {
    background-color: #1d5a94;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Box Container */
.box-container {
    border-radius: 30px 30px 25px 25px;
    background-color: #f1f1f1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.box-header-style {
    width: 90%;
    margin-top: -20px;
    align-self: center;
}

/* Box Items with Custom Scrollbar */
.box-items {
    height: auto;
    min-height: 200px;
    max-height: 280px;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
}

/* Custom Scrollbar Styles */
.box-items::-webkit-scrollbar {
    width: 8px;
}

.box-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

.box-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.box-items::-webkit-scrollbar-thumb:hover {
    background: #1a9dce;
}

.box-items {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
    scroll-behavior: smooth;
}

/* Option Container */
.option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    cursor: move;
    padding: 15px;
    border-radius: 15px;
}
.option-selected {
    flex: 1 1 calc(25% - 12px);
    min-width: 120px;
}

.option-box {
    flex: 1 1 calc(25% - 10px);
    max-width: calc(25% - 10px);
}

.option-box, .option-selected {
 /*   flex: 1 1 calc(25% - 12px);
    min-width: 120px;*/
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: clamp(14px, 1.8vw, 18px);
    text-align: center;
    border-radius: 20px;
    font-weight: 700;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: move;
    text-transform: uppercase;
    background-color: var(--white-color);
    box-shadow: 4px 5px 1px rgba(0, 0, 0, 0.15);
}

.option-selected {
    flex: 1 1 calc(50% - 12px);
    height: 85px;
    font-size: clamp(16px, 2vw, 22px);
}

.option-box:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 6px 7px 1px rgba(0, 0, 0, 0.2);
}

.info-box-container-1 {
    background-color: var(--primary-color);
    border-radius: 24px;
}
.info-box-container-2 {
    background-color: var(--secondary-color);
    border-radius: 24px;
}
/* Layout Adjustments */
.p-left-0 { padding-left: 0; }
.p-right-0 { padding-right: 0; }

/* Footer */
.footer {
    background-color: #3d3f99;
    text-align: center;
    width: 100%;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    margin-top: auto;
}

.footer a {
    color: white !important;
    text-decoration: none;
}

/* Character Images */
.letsplayContainer,.trayagainContainer {
    z-index: 2;
    position: relative;
    margin-top: auto; /* This pushes it to the bottom */
    padding-bottom: 10px;
}
.successContainer {
    position: relative;
    margin-top: auto; /* This pushes it to the bottom */
    padding-bottom: 10px;
}

.imageWrapper {
    position: relative;
    display: inline-block;
}

.msgImage {
    width: 100%;
}
.containerMainDuplicate{
    z-index: 10;
    pointer-events: none;
}
.optionContainerMain{
    margin-top: -2px !important;
}
.margin0Imp {
    margin-left: 0 !important;
    padding: 0 !important;
    margin-right: 0 !important;
}

.daniMainImage .imageWrapper {
    position: absolute;
    left: 55%;
    transform: translateX(-150%);
    top: 10%;
    width: 300px;
    height: auto;
}

.closeIcon {
    width: 62px;
    position: absolute;
    top: -12px;
    right: 14px;
    cursor: pointer;
}

.daniMainImage {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1;
}

/*.daniMainImage img {*/
.daniMainImage .daniMain {
    width: min(300px, 30vw);
    height: auto;
}

.daniEndImage {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.daniEndImage img {
    width: min(350px, 35vw);
    height: auto;
}

/* Text Utilities */
.text-underline {
    text-decoration: underline 4px;
}

.bg-orange {
    background-color: var(--secondary-color) !important;
}

/* Info Box */
.info-box {
    background-color: var(--primary-color);
    border-radius: 24px;
    padding: 20px 30px;
    color: var(--white-color);
    font-size: clamp(20px, 3vw, 32px);
}

.successContainer .info-box {
    background-color: var(--primary-color);
    padding: 20px 30px;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.text-section {
    flex: 0 0 75%;
    max-width: 75%;
    text-align: left;
    line-height: 1.2;
    font-family: 'Gotham';
    padding-right: 15px;
    font-size: 30px;
    font-weight: 700;
}

.image-section {
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-section img:hover {
    transform: scale(1.05);
}

.margin-bottom-10{
    margin-bottom: 10px;
}

/* ==================== COMPREHENSIVE RESPONSIVE MEDIA QUERIES ==================== */

/* Extra Extra Large Screens (1600px and above) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 30px;
    }

    .box-items {
        grid-template-columns: repeat(2, 1fr);
        max-height: 350px;
        gap: 15px;
        padding: 20px;
    }

    .option-box {
        height: 90px;
        font-size: 22px;
        min-width: 140px;
    }

    .option-selected {
        height: 100px;
        font-size: 26px;
    }

    .info-box {
        padding: 30px 50px;
        font-size: 34px;
    }

    .text-section {
        font-size: 34px;
    }

    .main-heading {
        font-size: 38px;
        padding: 15px 25px;
    }
}

/* Extra Large Screens (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    .container {
        max-width: 1400px;
        padding: 0 20px;
    }

    .box-items {
        grid-template-columns: repeat(2, 1fr);
        max-height: 320px;
    }

    .option-box {
        height: 85px;
        font-size: 20px;
    }

    .option-selected {
        height: 95px;
        font-size: 24px;
    }

    .info-box {
        padding: 25px 40px;
    }

    .text-section {
        font-size: 32px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 0 15px;
    }

    .box-items {
        grid-template-columns: repeat(2, 1fr);
        max-height: 300px;
    }

    .option-box {
        height: 80px;
        font-size: 18px;
    }

    .option-selected {
        height: 90px;
        font-size: 22px;
    }

    .info-box {
        padding: 20px 35px;
        font-size: 28px;
    }

    .text-section {
        font-size: 28px;
    }

    .main-heading {
        font-size: 30px;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 12px;
    }

    .box-items {
        grid-template-columns: repeat(2, 1fr);
        min-height: 220px;
        max-height: 260px;
        gap: 10px;
        padding: 12px;
    }

    .option-box {
        flex: 1 1 calc(33.33% - 12px);
        height: 70px;
        font-size: 16px;
    }

    .option-selected {
        flex: 1 1 calc(50% - 12px);
        height: 80px;
        font-size: 18px;
    }

    .info-box {
        font-size: 26px;
        padding: 18px 25px;
    }

    .text-section {
        font-size: 24px;
        padding-right: 12px;
    }

    .main-heading {
        font-size: 28px;
        padding: 10px 18px;
    }

    .image-section img {
        max-width: 180px;
    }
}

/* Tablets Landscape (768px - 991px) */
@media (min-width: 711px) and (max-width: 991px) {
    .wrapper {
        padding: 8px;
        width: 94%;
        justify-content: center;
        display: inline-flex;
    }

    .padZero{
        padding: 0 !important;
    }

    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .main-heading {
        font-size: 28px;
        padding: 10px 15px;
    }

    .box-container {
        min-height: 240px;
        margin: 8px;
    }

    .box-items {
        grid-template-columns: repeat(2, 1fr);
        min-height: 200px;
        max-height: 240px;
        padding: 12px;
        gap: 10px;
    }

    .option-container {
        gap: 10px;
        padding: 12px;
    }

    .image-section img {
        width: 90%;
    }
    .option-box {
        flex: 1 1 calc(25% - 10px);
        height: 65px;
        font-size: 15px;
        padding: 10px 6px;
    }

    .option-selected {
        flex: 1 1 calc(50% - 10px);
        height: 75px;
        font-size: 17px;
    }

    .info-box {
        font-size: 22px;
        padding: 15px 20px;
        margin-top: 10px;
    }
    .successContainer .text-section {
        font-size: 18px;
        padding-right: 10px;
    }

    .text-section {
        font-size: 20px;
        padding-right: 10px;
    }

    /*.daniMainImage img {*/
    .daniMainImage .daniMain {
        width: 226px;
    }

    .daniMainImage .imageWrapper {
        position: absolute;
        left: 55%;
        transform: translateX(-150%);
        top: 10%;
        width: 250px;
        height: auto;
    }

    .closeIcon {
        width: 54px;
        position: absolute;
        top: -9%;
        right: 4%;
        cursor: pointer;
    }

    .daniEndImage img {
        width: 231px;
    }

    .daniEndImage {
        right: 8px;
    }
}

/* Tablets Portrait (600px - 710px) */
@media (min-width: 600px) and (max-width: 710px) {
    .wrapper {
        padding: 6px;
        width: 100%;
    }
    .padZero{
        padding: 0 !important;
    }
    .container {
        padding: 0 8px;
    }

    .main-heading {
        font-size: 24px;
        padding: 8px 12px;
        width: 95%;
    }

    .box-container {
        min-height: 220px;
        margin: 6px;
    }

    .box-items {
        grid-template-columns: 1fr;
        min-height: 180px;
        max-height: 220px;
        padding: 10px;
        gap: 8px;
    }

    .option-container {
        gap: 8px;
        padding: 10px;
    }

    .option-box {
        flex: 1 1 calc(33.33% - 8px);
        height: 60px;
        font-size: 14px;
        padding: 8px 4px;
    }

    .option-selected {
        flex: 1 1 calc(50% - 8px);
        height: 65px;
        font-size: 16px;
    }

    .info-box {
        font-size: 20px;
        padding: 12px 18px;
        margin: 8px 6px;
    }

    .content-wrapper {
        gap: 15px;
    }

    .text-section {
        font-size: 18px;
        padding-right: 8px;
    }

    .image-section img {
        max-width: 160px;
    }

    /*.daniMainImage img {*/
    .daniMainImage .daniMain {
        width: 200px;
    }

    .daniMainImage .imageWrapper {
        position: absolute;
        left: 55%;
        transform: translateX(-150%);
        top: 10%;
        width: 200px;
        height: auto;
    }

    .closeIcon {
        width: 40px;
        position: absolute;
        top: -9%;
        right: 4%;
        cursor: pointer;
    }
    .daniEndImage img {
        width: 210px;
    }
}

/* Mobile Devices Landscape (481px - 599px) */
@media (max-width: 599px) {

    html, body {
        overflow-x: hidden;
        padding: 0;
    }
    .padZero{
        padding: 0 !important;
    }
    .wrapper {
        height: auto;
        min-height: 100vh;
        padding: 5px;
        overflow-y: auto;
    }

    .container {
        overflow: visible;
        padding: 0 5px;
    }

    .row.mt-5 {
        flex-direction: column;
    }

    .main-heading {
        font-size: 22px;
        padding: 8px 12px;
        width: 90%;
    }

    .box-container {
        min-height: 250px;
        margin: 8px 5px;
    }

    .box-items {
        grid-template-columns: 1fr;
        min-height: 180px;
        /*max-height: 220px;*/
        padding: 10px;
        gap: 8px;
    }

    .option-container {
        gap: 8px;
        padding: 10px;
        margin: 8px 5px;
    }

    .option-box {
        /*flex: 1 1 calc(50% - 8px);
        height: 60px;
        font-size: 14px;
        padding: 8px 4px;
        min-width: 100px;*/
        flex: 1 1 calc(50% - 4px); /* 50% minus half the gap */
        max-width: calc(50% - 4px);
        min-width: 0; /* optional: prevents forced wrapping due to min-width */
        height: 60px;
        font-size: 14px;
        padding: 8px 4px;
        box-sizing: border-box;
    }

    .option-selected {
        flex: 1 1 calc(100%);
        height: 50px;
        font-size: 14px;
        padding: 10px;
    }

    .info-box {
        font-size: 18px;
        padding: 12px 15px;
        margin: 10px 5px;
        border-radius: 20px;
    }

    .content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .text-section, .image-section {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .text-section {
        padding-right: 0;
        font-size: 18px;
        text-align: center;
    }

    .image-section {
        margin-top: 8px;
    }

    .image-section img {
        max-width: 150px;
    }

    .box-header-style {
        margin-top: -5px;
    }
    .daniMainImage, .daniEndImage {
        /*position: relative;
        justify-content: center;
        margin-top: 15px;*/
        /*display: none;*/
    }

    .daniMainImage .imageWrapper {
        position: absolute;
        left: 55%;
        transform: translateX(-150%);
        top: 16%;
        width: 120px;
        height: auto;
    }

    .closeIcon {
        width: 29px;
        position: absolute;
        top: -9%;
        right: 4%;
        cursor: pointer;
    }

    /*.daniMainImage img, .daniEndImage img {*/
    .daniMainImage .daniMain, .daniEndImage img {
        width: 300px;
    }

    .buttonTry {
        padding: 10px 25px;
        font-size: 18px;
        min-width: 110px;
    }
}

/* Print Styles */
@media print {
    .buttonTry,
    .daniMainImage,
    .daniEndImage {
        display: none !important;
    }

    .box-container {
        break-inside: avoid;
    }

    .info-box {
        background-color: #f1f1f1 !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}

/* High DPI Screens */
/*@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .box-container {
        border-width: 1.5px;
    }

    .option-box, .option-selected {
        border-width: 3px;
    }
}*/

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .option-box:hover,
    .image-section img:hover {
        transform: none;
    }
}


/* Landscape Phones: Allow Scrollable */
@media (orientation: landscape) and (max-width: 1100px) {
    html, body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto; /* let body scroll */
    }

    .wrapper {
        height: auto !important;
        min-height: 100vh;
        flex: 0 0 auto;
        overflow: visible; /* remove inner scrolling */
        padding: 5px;
        position: relative;
    }

    .container {
        flex: 0 0 auto;
        max-height: none;
        overflow: visible; /* remove inner scrolling */
    }

    .box-items {
        max-height: none; /* allow content to grow */
        overflow: visible; /* remove inner scroll */
    }

    .option-container {
        flex-wrap: wrap;
        overflow: visible; /* remove inner scroll */
    }

    /*.daniMainImage, .daniEndImage {
        position: relative; !* don't fix at bottom *!
        bottom: auto;
        left: auto;
        right: auto;
        justify-content: center;
        margin-top: 10px;
        display: flex;
    }*/

    .daniEndImage{
        right: -10px;
    }
}
