

/* Your existing CSS */
#trQuiz {
    background-image: url(images/fallback-gradient.png);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#023E54), to(#10AAC0));
    background-image: -webkit-linear-gradient(top, #023E54, #10AAC0);
    background-image: -moz-linear-gradient(top, #023E54, #10AAC0);
    background-image: -o-linear-gradient(top, #023E54, #10AAC0);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    overflow: hidden;

}

#trQuiz ul {
    display: inline-block;
    padding: 6px;
}

#trQuiz h1 {
    font-weight: 100;
    font-size: 2em;
    text-transform: uppercase;
    margin: 0px;
    position: absolute;
    top: 25px;
    left: 36px;
}
#trQuiz h1 span {
    display: block;
    font-weight: 900;
    font-family: 'Titillium Web', sans-serif;
    font-size: 3.2em;
    line-height: 65px;
}

#trQuiz h2 {
    font-size: 3em;
    margin: 0px;
    font-weight: 100;
}

#trQuiz h3 {
    font-size: 2.4em;
    margin: 0px;
    font-weight: 100;
}

#trQuiz p {
    color: #fff;
    margin: 0px 0px 14px 0px;
}

#trQuiz .btn {
    display: inline-block;
    cursor: pointer;
    background-color: #C61C6F;
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 6px;
}

/* Intro */
#trQuiz .intro {
    position: absolute;
    top: 80px;
    left: 660px;
    width: 550px;
}
#trQuiz .intro p {
    margin: 0px 0px 0px 0px;
}

/* Progress Bar */
#trQuiz .mprogress {
    width: 850px;
    position: absolute;
    top: 1px;
    left: 40px;
}
#trQuiz .nprogress {
    width: 850px;
    position: absolute;
    top: 10px;
    left: 400px;
}
#trQuiz .iprogress {
    width: 850px;
    position: absolute;
    top: 10px;
    left: 400px;
}
#trQuiz .mprogress div {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 30px;

    border-radius: 50%;
    background-color: rgba(255, 255, 255, .2);
    transition: background-color 1s;
}


#trQuiz .iprogress img {
    position: absolute;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 300px;
}

#trQuiz .nprogress span {
    position: absolute;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 300px;
}

#trQuiz .mprogress div.correct::after {
    content:'';
    display: block;
    position: absolute;
    top: -60px;
    left: -1px;
    width: 50px;
    height: 30px;
    background: url(https://timeraider.co.uk/images/icon_correct.svg) no-repeat 0px 0px;
    transition: opacity 1s, top 1s;
    opacity: 0;
}
#trQuiz .mprogress div.incorrect::after {
    content:'';
    display: block;
    position: absolute;
    top: -60px;
    left: -1px;
    width: 50px;
    height: 30px;
    background: url(https://timeraider.co.uk/images/icon_rincorrect.svg) no-repeat 0px 0px;
    transition: opacity 1s, top 1s;
    opacity: 0;
}
#trQuiz .mprogress div.on,
#trQuiz .mprogress div.answered {
    background-color: #bd3613;
}
#trQuiz .mprogress div.correct::after {
    top: -5px;
    opacity: 1;
}
#trQuiz .mprogress div.incorrect::after {
    top: -5px;
    opacity: 1;
}

#trQuiz .scprogress {
    position: relative;          /* relative to parent */
    white-space: nowrap;          /* force children on one line */
    overflow-x: auto;             /* scroll if container too wide */
    width: 100%;                  /* responsive */
    padding: 5px 0;
}

#trQuiz .scprogress div {
    display: inline-block;        /* keeps them on one line */
    width: 20px;
    height: 20px;
    margin-right: 15px;           /* spacing between circles */
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    vertical-align: middle;       /* aligns with spans */
    transition: background-color 1s;
}

#trQuiz .scprogress span {
    display: inline-block;
    font-weight: bold;
    color: red;
    vertical-align: middle;
    margin-left: 5px;
}

#trQuiz .scprogress div.on,
#trQuiz .scprogress div.answered {
    background-color: #bd3613;
}


#trQuiz .scprogress div.correct::after {
    top: -5px;
    opacity: 1;
}
#trQuiz .scprogress div.incorrect::after {
    top: -5px;
    opacity: 1;
}

/* Custom Progress Bar: cmprogress */
#trQuiz .cmprogress {
    width: 850px;
    position: absolute;
    top: 1px;
    left: 40px;
}

#trQuiz .cmprogress div {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 30px;
    margin-top: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .2);
    transition: background-color 1s;
}
/* Messages inside the progress bar */
#trQuiz .cmprogress span {
    display: inline-block;
    font-weight: bold;
    color: red;

    /* Make text align vertically with the 30px circles */
    height: 50px;            /* match the circle height */
    line-height: 30px;       /* vertically center text */
    vertical-align: middle;  /* fallback alignment */
    text-align: center;      /* center if multi-character */
    padding: 0 5px;          /* horizontal spacing if needed */
}


#trQuiz .cmprogress div.on,
#trQuiz .cmprogress div.answered {
    background-color: #bd3613;
}

#trQuiz .cmprogress div.correct::after {
    top: -5px;
    opacity: 1;
}

#trQuiz .cmprogress div.incorrect::after {
    top: -5px;
    opacity: 1;
}

#trQuiz .cmprogress div {
    margin-right: 30px;
}

/* iPad / medium screens */
@media (max-width: 1024px) {
    #trQuiz .cmprogress {
        width: 100%;
        left: 0;
    }

    #trQuiz .cmprogress div {
        margin-right: 20px;
    }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
    #trQuiz .cmprogress div {
        margin-right: 12px;
        width: 25px;
        height: 25px;
    }
}


/* Mobile */
@media (max-width: 480px) {
    #trQuiz .cmprogress div {
        margin-right: 8px;
        width: 20px;
        height: 20px;
    }
    #trQuiz .cmprogress span {
        display: inline-block;
        font-weight: bold;
        color: red;
        vertical-align: middle;
        margin-left: 5px;
    }

}
#trQuiz {
    position: relative; /* create positioning context */
}

/* Toolbar always pinned top-right */
#trQuiz {
    position: relative; /* positioning context */
}

/* Toolbar pinned bottom-right */

#trQuiz {
    position: relative; /* positioning context */
}

/* Toolbar pinned bottom-left */
/* Only one relative positioning */
#trQuiz {
    position: relative; /* positioning context for all absolute children */
}

/* Correct / Incorrect icons */
#trQuiz .mprogress div.correct::after,
#trQuiz .mprogress div.incorrect::after {
    content:'';
    display: block;
    position: absolute;
    width: 50px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    top: -5px; /* final top */
    left: -1px;
    opacity: 1;
    transition: opacity 1s, top 1s;
    z-index: 1; /* keep behind buttons */
}

/* Positioning context */
#trQuiz {
    position: relative;
}

/* Progress bar top-left */
#trQuiz .mprogress {
    position: absolute;
    top: 10px;       /* vertical offset from top */
    left: 10px;      /* horizontal offset from left */
    z-index: 10;
}

/* Correct / Incorrect icons centered vertically in their parent */
#trQuiz .mprogress div.correct::after,
#trQuiz .mprogress div.incorrect::after {
    content:'';
    display: block;
    position: absolute;
    width: 50px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%; /* vertical center of parent */
    transform: translateY(-50%);
    left: -1px;
    opacity: 1;
    transition: opacity 1s, top 1s;
    z-index: 1; /* behind button */
}

/* Toolbar pinned top-right */
#trQuiz .btn-toolbar {
    position: absolute;
    top: 10px;      /* same top offset as progress bar */
    right: 10px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    z-index: 999;   /* always above overlays */
}

/* Toggle button */
#trQuiz .btn-bd3613 {
    background-color: #bd3613;
    border-color: #bd3613;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    min-width: 120px;
    max-width: 200px;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
    transition: background-color 0.2s ease;
}

/* Hover effect */
#trQuiz .btn-bd3613:hover {
    background-color: #a63310;
}

/* Tablet */
@media (max-width: 1024px) {
    #trQuiz .btn-bd3613 {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #trQuiz .btn-bd3613 {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 90px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    #trQuiz .btn-bd3613 {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 80px;
    }
}

#trQuiz .span.odometer > div {
      display: inline-block !important;
      vertical-align: middle !important;
  }
/* Questions */
#trQuiz .question {
    width: 550px;
    position: absolute;
    top: 2px;
}
#trQuiz .question .txt {
    font-size: 1.3em;
    margin: 0px 0px 20px 0px;
}

#trQuiz .question .ans {
    display: inline-block;
    font-size: 1.1em;
    width: 260px;
    height:160px;
    border: 2px solid rgba(238,189,102,.4);
    border-radius: 6px;
    padding: 10px;
    margin: 0px 15px 15px 0px;
    position: relative;
}
#trQuiz .queer .ans {
    display: inline-block;
    font-size: 1.1em;
    width: 20px;
    height:65px;
    border: 2px solid rgba(238,189,102,.4);
    border-radius: 6px;
    padding: 10px;
    margin: 0px 15px 15px 0px;
    position: relative;
}

#trQuiz .question .ans.selected {
    border-color: #be4b16;
}
#trQuiz .question .ans.correct {
    border-color: #459a2e;
}
#trQuiz .question .ans.oob {
    border-color: #be4b16;
}

#trQuiz .question .ans::after {
    content:'';
    display: block;
    width: 20px;
    height: 5px;
    background:  no-repeat 0px 0px;
    background-size: 20px 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}

#trQuiz .question .ans.selected::after {
    background-image: url(http://77.68.88.28/images/icon_rincorrect.svg);
}
#trQuiz .question .ans.correct::after {
    background-image: url(http://77.68.88.28/images/icon_correct.svg);
}

#trQuiz .question.unanswered .ans {
    cursor: pointer;
}
#trQuiz .question.unanswered .ans:hover {
    background-color: rgba(238,189,102,.2);
}

#trQuiz .question.answered .ans {
    cursor: default;
}
#trQuiz .question .ans.image {
    display: inline-block;
    min-height: 80px;
    padding: 0px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
}

/* Feedback */

/* Questions */
#trQuiz .question {
    width: 100%;
    position: absolute;
    top: 25px;
    left: 660px;
}
#trQuiz .question .txt {
    font-size: 1.3em;
    margin: 0px 0px 20px 0px;
}

#trQuiz .question .ans2 {
    display: inline-block;
    padding:1px;
    font-size: 1.1em;
    width: 260px;
    height:110px
    border: 2px solid rgba(238,189,102,.4);
    border-radius: 6px;
    padding: 1px;
    margin: 0px 10px 10px 0px;
}
#trQuiz .question .ans2.selected {
    border-color: #be4b16;
}
#trQuiz .question .ans2.correct {
    border-color: #459a2e;
}

#trQuiz .question .ans2::after {
    content:'';
    width: 20px;
    height: 20px;
    background:  no-repeat 0px 0px;
    background-size: 20px 20px;
    top: 5px;
    right: 5px;
}

#trQuiz .question .ans2.selected::after {
    background-image: url(http://77.68.88.28/images/icon_rincorrect.svg);
}
#trQuiz .question .ans2.correct::after {
    background-image: url(http://77.68.88.28/images/icon_correct.svg);
}

#trQuiz .question.unanswered .ans2 {
    cursor: pointer;
}
#trQuiz .question.unanswered .ans2:hover {
    background-color: rgba(238,189,102,.2);
}

#trQuiz .question.answered .ans2 {
    cursor: default;
}
#trQuiz .question .ans2.image {
    min-height: 80px;
    padding: 0px;
}

/* Questions */
#trQuiz .question {
    width: 1050px;
    position: absolute;
    top: 10px;
    left: -660px;
}


#trQuiz .hints {
    width: 550px;
    position: absolute;
    top: 25px;
    left: -660px;
}
#trQuiz .question .txt {
    font-size: 1.3em;
    margin: 0px 0px 20px 0px;
}

#trQuiz .question .ans3::after {
    content:'';
    width: 0px;
    height: 30px;
    background:  no-repeat 0px 0px;
    background-size: 20px 20px;
    top: 5px;
    right: 5px;
}

#trQuiz .question .ans3.selected::after {
    background-image: url(http://77.68.88.28/images/icon_rincorrect.svg);
}
#trQuiz .question .ans3.correct::after {
    background-image: url(http://77.68.88.28/images/icon_correct.svg);
}

#trQuiz .question.unanswered .ans3 {
    cursor: pointer;
}
#trQuiz .question.unanswered .ans3:hover {
    background-color: rgba(238,189,102,.2);
}

#trQuiz .question.answered .ans3 {
    cursor: default;
}
#trQuiz .question .ans3.image {
    min-height: 80px;
    padding: 0px;
}

/* Feedback */
#trQuiz .feedback .btn {
    margin-top: 5px;
}
#trQuiz .feedback .strong {
    color: #fff;
}
#trQuiz .answered .feedback .strong {
    visibility: visible;
    opacity: 1;
    margin-top: 10px;
}

/* results.incomplete */
#trQuiz .results.incomplete {
    position: absolute;
    top: 300px;
    left: 40px;
    width: 550px;
}
#trQuiz .results.incomplete .share {
    margin-top: 40px;
}

#trQuiz .results.incomplete .share  a.btn {
    margin-right: 20px;
    padding: 9px 15px 8px 42px;
    background-repeat: no-repeat;
    background-position: 10px 5px;
    background-size: 25px 25px;
}

#trQuiz .results.incomplete .share  a.btn.email {
    background-color: #f0a121;
    background-image: url(http://77.68.88.28/images/icon_email.svg);
}

#trQuiz .results.incomplete .share  a.btn.twitter {
    background-color: #59adeb;
    background-image: url(http://77.68.88.28/images/icon_twitter.svg);
}
#trQuiz .results.complete {
    position: absolute;
    top: 60px;
    left: 40px;
    width: 550px;
}
#trQuiz .results.complete .share {
    margin-top: 10px;
}

#trQuiz .results.complete .share  a.btn {
    margin-right: 20px;
    padding: 9px 15px 8px 42px;
    background-repeat: no-repeat;
    background-position: 10px 5px;
    background-size: 25px 25px;
}

#trQuiz .results.complete .share  a.btn.email {
    background-color: #f0a121;
    background-image: url(http://77.68.88.28/images/icon_email.svg);
}

#trQuiz .results.complete .share  a.btn.twitter {
    background-color: #59adeb;
    background-image: url(http://77.68.88.28/images/icon_twitter.svg);
}

#trQuiz .activate, #trQuiz .inactivate {
    left: -1350px;
}
#trQuiz .active, #trQuiz .inactive {
    transition: left 1.5s ease-in-out;
}
#trQuiz .incomplete, #trQuiz .complete {
    transition: top 2s ease-in-out;
}
#trQuiz .unfinished, #trQuiz .finished {
    transition: opacity 2s linear;
}

#trQuiz .active {
    left: 35px;

}
#trQuiz .activate {
    left: 10px;
}
#trQuiz .intro.inactive, #trQuiz .inactive.answered {
    left: -1350px;
}

#trQuiz .promo.unfinished {
    opacity: 0;
}
#trQuiz .promo.finished {
    opacity: 1;
}

#trQuiz .unfinished, #trQuiz .finished {
    transition: opacity 5s linear;
}

/* test */

#trQuiz .results.incomplete {
    top: 1220px !important;
    left: 40px  !important;
}
#trQuiz .results.complete {
    top: 80px !important;
    left: 40px  !important;
}

#trQuiz .li.source, .target {
    width: 40%;
    display: inline-block;
    vertical-align: top;
}

#trQuiz .li.lr-drop-target-after {
    border-bottom: 2px solid orange;
}
#trQuiz .li.lr-drop-target-before {
    border-top: 2px solid orange;
}
#trQuiz .li.lr-drop-target-after:before, .lr-drop-target-before:before {
    position: absolute;
    content: '';
    border: 5px solid transparent;
    border-left-color: orange;
    display: inline-block;
}
#trQuiz .li.lr-drop-target-after:before {
    z-index: 10;
    left: -5px;
    bottom: -6px;
}
#trQuiz .li.lr-drop-target-before:before {
    z-index: 10;
    left: -5px;
    top: -6px;
}
#trQuiz .li.lr-drop-target-after:after, .lr-drop-target-before:after {
    position: absolute;
    content: '';
    border: 5px solid transparent;
    border-right-color: orange;
    display: inline-block;
}
#trQuiz .li.lr-drop-target-after:after {
    right: -5px;
    bottom: -6px;
}
#trQuiz .li.lr-drop-target-before:after {
    right: -5px;
    top: -6px;
}




.switch {
    position: relative;
    display: inline-block;
    width:240px;
    height: 34px;
    bottom: 7px;
}
.switch input {
    opacity: 50;
    width: 0;
    height: 0;
}

.hider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #337ab7;
    -webkit-transition: .4s;
    transition: .4s;
    padding: 7px;
}
.hider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 180px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .hider {
    background-color:#C61C6F;
}
input:focus + .hider {
    box-shadow: 0 0 1px #C61C6F;
}
input:checked + .hider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(030px);
    transform: translateX(30px);
}

/* Rounded hiders */
.hider.round {}
.hider.round:before {
    border-radius: 50%;
}
/* Default size for all devices */
/* Base responsive image sizing */
#trQuiz .responsive-img {
    width: 75px;
    height: 75px;
    transition: border 0.3s ease, box-shadow 0.3s ease; /* smooth border/box-shadow changes */
}

/* Blurred images (with category border) */
#trQuiz .responsive-img.img_blur {
    filter: blur(4px); /* or whatever blur you use */
    border: 2px solid green; /* fallback, replaced by ng-style inline for dynamic color */
    box-shadow: 0 0 8px green; /* fallback, replaced by ng-style inline */
}

/* Pulse animation class */
#trQuiz .responsive-img.pulse-correct {
    animation: sustainedColumnPulse 1s ease-in-out 3; /* 3 pulses */
}

/* iPhone 12 (small screens) */
@media (min-width: 310px) and (max-width: 429px) {
    #trQuiz .responsive-img { width: 70px; height: 70px; }
}

/* iPhone 14 / medium screens */
@media (min-width: 430px) and (max-width: 932px) {
    #trQuiz .responsive-img { width: 75px; height: 75px; }
}

/* Larger screens (desktop / tablets) */
@media (min-width: 933px) {
    #trQuiz .responsive-img { width: 110px; height: 110px; }
}
#trQuiz .rebuild-panel .responsive-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}
#trQuiz .rebuild-panel .responsive-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

@media (min-width: 430px) {
    #trQuiz .rebuild-panel .responsive-img {
        width: 105px;
        height: 105px;
    }
}

@media (min-width: 933px) {
    #trQuiz .rebuild-panel .responsive-img {
        width: 130px;
        height: 130px;
    }
}
#trQuiz .rebuild-slot-empty {
    width: 85px;
    height: 85px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eee;
    font-size:24px;
}


/* Keyframes for green pulse */
@keyframes sustainedColumnPulse {
    0%   { box-shadow: 0 0 6px 4px rgba(0, 255, 0, 0.7); }
    50%  { box-shadow: 0 0 6px 4px rgba(0, 255, 0, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

#trQuiz .cart-item.selected .responsive-img {
    border: 2px white;
    transition: border 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 10px white;
}

#trQuiz .cart-item.connected .responsive-img {
    border-color: white;
    box-shadow: 0 0 15px white;
}

#trQuiz .cart-item.connected:before,
#trQuiz .cart-item.connected:after {
    content: '';
    position: absolute;
    width: 2px;
    background: white;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.5s ease;
}

#trQuiz .cart-item.connected:before {
    transform: translateX(-100%);
}

#trQuiz .cart-item.connected:after {
    transform: translateX(100%);
}

#trQuiz .cart-item.pulsing .responsive-img {
    animation: border-pulse 1s infinite;
}

@keyframes border-pulse {
    0% { box-shadow: 0 0 10px white; }
    50% { box-shadow: 0 0 20px white; }
    100% { box-shadow: 0 0 10px white; }
}


#trQuiz .lucky-dip-button {
    background-color: #C61C6F; /* Active button color */
    color: white;
}

#trQuiz .lucky-dip-button.muted {
    background-color: rgba(198, 28, 111, 0.5); /* Muted color: 50% faded version of #C61C6F */
    color: rgba(255, 255, 255, 0.3); /* Muted text color: 50% white */
}

#trQuiz .lucky-dip-button:disabled {
    background-color: rgba(198, 28, 111, 0.5); /* Disabled button color: same as muted */
    color: rgba(255, 255, 255, 0.3); /* Disabled text color: same as muted */
    cursor: not-allowed;
}

#trQuiz {
    min-height: 200px;
    max-height: 300px

transition: height 0.5s ease-in-out; /* Smooth transition for height change */
}


@media (min-width: 500px) and (max-width: 768px) {



    #trQuiz .responsive-img {
        width: 100px;
        height: 100px;
    }

    #trQuiz {
        min-height: 330px;
        max-height:470px

    transition: height 0.5s ease-in-out; /* Smooth transition for height change */
    }

    #trQuiz .question .ans {
        display: inline-block;
        font-size: 1.1em;
        width: 260px;
        height:160px;
        border: 2px solid rgba(238,189,102,.4);
        border-radius: 6px;
        padding: 10px;
        margin: 0px 15px 15px 0px;
        position: relative;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {
    #trQuiz {
        min-height: 500px;
        max-height: 550px

    transition: height 0.5s ease-in-out; /* Smooth transition for height change */
    }


    #trQuiz .responsive-img {
        width: 150px;
        height: 150px;
    }


}

@media (min-width: 1025px) and (max-width: 1440px) {
    #trQuiz .responsive-img {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 1441px) {
    #trQuiz .responsive-img {
        width: 125px;
        height: 125px;
    }
}






/* Ensure the container is correctly positioned */
#trQuiz .cart-item {
    display: inline-block;
    position: relative; /* Requiwhite for pseudo-elements */
}

/* Border and glow for selected items */
#trQuiz .cart-item.selected .responsive-img {
    border: 2px white;
    transition: border 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 0 10px white;
}

/* Brighter effect for connected items */
#trQuiz .cart-item.connected .responsive-img {
    border-color: white;
    box-shadow: 0 0 15px white;
}

/* Add connecting lines for connected items */
#trQuiz .cart-item.connected:before,
#trQuiz .cart-item.connected:after {
    content: '';
    position: absolute;
    width: 2px;
    background: white;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.5s ease;
}

/* Align the pseudo-elements left and right */
#trQuiz .cart-item.connected:before {
    transform: translateX(-100%);
}

#trQuiz .cart-item.connected:after {
    transform: translateX(100%);
}

/* Animation effect on connected items */
@keyframes border-pulse {
    0% { box-shadow: 0 0 10px white; }
    50% { box-shadow: 0 0 20px white; }
    100% { box-shadow: 0 0 10px white; }
}

/* Apply the pulsing effect on images within pulsing items */
#trQuiz .cart-item.pulsing .responsive-img {
    animation: border-pulse 1s infinite;
}

/* Glow effect for connected items */
#trQuiz .cart-item[data-connected="true"] .responsive-img {
    border-color: white;
    box-shadow: 0 0 15px white;
}

/* Ensure no styles are applied to non-connected items */
#trQuiz .cart-item[data-connected="false"] .responsive-img {
    border: none;
    box-shadow: none;
}

@media (min-width: 310px) and (max-width: 389px) {
    #trQuiz {
        min-height: 340px;
        max-height: 500px;
        transition: height 0.5s ease-in-out; /* Smooth transition for height change */
    }

/* iPhone 14 and larger screens (like iPhone 14 Pro) */
@media (min-width: 390px) and (max-width: 843px) {
    #trQuiz {
    min-height: 360px;
    max-height: 560px;
    transition: height 0.5s ease-in-out; /* Smooth transition for height change */
}
/* Media Queries for Responsive Images */
@media (min-width: 500px) and (max-width: 768px) {
    #trQuiz .responsive-img {
        width: 100px;
        height: 100px;
    }


    #trQuiz .question .ans {
        display: inline-block;
        font-size: 1.1em;
        width: 260px;
        height: 160px;
        border: 2px solid rgba(238, 189, 102, .4);
        border-radius: 6px;
        padding: 10px;
        margin: 0px 15px 15px 0px;
        position: relative;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #trQuiz {
        min-height: 430px;
        max-height: 480px;
        transition: height 0.5s ease-in-out; /* Smooth transition for height change */
    }

    #trQuiz .responsive-img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    #trQuiz .responsive-img {
        width: 110px;
        height: 110px;
    }
}

@media (min-width: 1441px) {
    #trQuiz .responsive-img {
        width: 125px;
        height: 125px;
    }
}


#trQuiz.cart-item {
    display: inline-block;
    position: relative;
    padding: 10px;
}

#trQuiz.cart-item.highlighted {
    border: 2px solid green; /* Green border for highlighted item */
    box-shadow: 0 0 15px green; /* Glow effect */
}

/* Optionally, for the images */
#trQuiz.cart-item.highlighted .responsive-img {
    transition: box-shadow 0.3s ease, border 0.3s ease;
    box-shadow: 0 0 15px green;
}
/* New CSS class for connected items */
/* Keyframes to animate the light traveling around the border */
@keyframes travel-light {
    0% {
        box-shadow: 0 0 5px white, 0 0 10px white, 0 0 20px white, 0 0 30px white, 0 0 40px white, 0 0 50px white;
    }
    50% {
        box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white, 0 0 40px white, 0 0 50px white, 0 0 60px white;
    }
    100% {
        box-shadow: 0 0 5px white, 0 0 10px white, 0 0 20px white, 0 0 30px white, 0 0 40px white, 0 0 50px white;
    }
}


/* New CSS class for connected items with traveling light effect */
#trQuiz.cart-item.heist-item {
    border: 2px solid white;  /* White border to distinguish */
    background-color: rgba(255, 255, 255, 0.1);  /* Light transparent background */
    animation: travel-light 2s infinite;  /* Apply the traveling light animation */
}

