

/* 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;
}

/* 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 */
#trQuiz .responsive-img {
    width: 75px;
    height: 75px;
}

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

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


#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: 350px;
    max-height:440px

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;
    }
}

    border: 2px solid green; /* Green border for highlighted item */
    box-shadow: 0 0 15px green; /* Glow effect */
}
#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 */
}

