:root {
    --light: #ffffff;
    --dark: #000000;
    --primary: #990000;
    --bs-red: #990000;
    --bs-danger-rgb: 153, 0, 0;
    --bs-info-rgb: 0, 47, 108;
    --secondary: #002f6c;
    --color: pink;
    --blur-1-size: clamp(400px, 60vw, 60vw);
    --blur-2-size: clamp(300px, 40vw, 40vw);
    --blur-3-size: clamp(100px, 10vw, 10vw);
    --blur-amount: clamp(40px, 5vw, 90px);
}

body {
    height: 100vh;
    font-family: "Open Sans", serif;
    font-size: 14px;
    font-weight: 400;
}

header {
    position: relative;
    z-index: 2;
}

.blur {
    position: absolute;
    z-index: 1;
    border-radius: 900px;
    filter: blur(var(--blur-amount));
    background: var(--color);
}

.blur:nth-child(1) {
    height: var(--blur-1-size);
    width: calc(var(--blur-1-size) * 1.1);
}

.blur:nth-child(2) {
    filter: blur(var(--blur-amount)) hue-rotate(135deg) brightness(1.3);
    height: var(--blur-2-size);
    width: calc(var(--blur-2-size) * 0.75);
    top: 20vh;
    right: 20vh;
}

.blur:nth-child(3) {
    filter: blur(var(--blur-amount)) hue-rotate(-135deg);
    height: var(--blur-3-size);
    width: calc(var(--blur-3-size) * 2);
    bottom: 20vh;
    left: 20vw;
}

.wrapper {
    width: 100%;
    height: 100%;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    overflow: hidden;
    z-index: -1;
    opacity: .8;
    top: 0;
    left: 0;
    display: none;
}

main {
    padding: 60px;
    position: relative;
}

.main_card {
    width: 80%;
    background-color: rgb(255 255 255 / 20%);
    border-radius: 1rem;
    margin: auto;
    backdrop-filter: blur(1rem);
    border: 1px solid rgba(0, 0, 0, 0.175);
}

.logo img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    overflow: hidden;
    border-radius: 100px;
    background-color: var(--light);
}

.loading {
    min-height: 65vh;
    align-items: center;
    margin: auto;
    display: flex;
    width: 100%;
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
}

.progress_bars {
    position: relative;
    max-width: 100%;
    width: 100vw;
}

.progress_logo {
    position: absolute;
    width: fit-content;
    padding-inline: 1.5rem;
    height: 50px;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 0;
    right: 0;
    border-radius: 100px;
    background-color: var(--light);
}

.progress_logo {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.progress_logo img {
    width: 80px;
    object-fit: contain;
}

.progress_logo span {
    opacity: .8;
}

.modal-sheet .bi {
    font-size: 48px;
    vertical-align: -.125em;
}

.progress,
.progress-stacked {
    --bs-progress-height: 12px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.blink {
    animation: blink 1.5s infinite;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    width: fit-content;
    height: fit-content;
    align-self: center;
}

.modal-sheet .modal-dialog {
    max-width: 480px;
    transition: bottom .75s ease-in-out;
}

.animate_card {
    box-shadow: 0 1px 5px #00000099;
    border-radius: 22px;
    position: relative;
    transition-duration: 300ms;
    transition-property: transform, box-shadow;
    transition-timing-function: ease-out;
}

.animate_card:hover {
    transition-duration: 150ms;
    box-shadow: 0 5px 20px 5px #00000044;
}

.animate_card .glow {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 22px;
    background-image: radial-gradient(circle at 50% -20%, #ffffff22, #0000000f);
}

.inner-screen {
    background-image: url('./images/bg-main.jpg?65');
    background-size: 100% 100%;
    background-position: center;
    min-height: 88vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* footer */
footer {
    background-color: var(--primary);
    padding: 1rem;
    text-align: center;
}

footer p {
    color: var(--light);
}

.footer_border {
    padding: 0 10px;
    line-height: 2;
    border: 4px solid var(--light);
}

.footer_border p {
    margin-bottom: 0;
}

.head_logo {
    width: fit-content;
    height: 50px;
    object-fit: contain;
}

header i {
    font-size: 24px;
    text-align: center;
    vertical-align: -.125em;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transition: .5s ease-in-out;
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
    transition: .5s ease-in-out;
}

.btn-outline-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--light);
}

.w-fit {
    width: fit-content;
}

.play_screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play_screen .btn {
    min-width: 200px;
}

.btn_game {
    background: repeating-linear-gradient(45deg, #ffc800, #ffc800 5px, #ffc200 5px, #ffc200 10px);
    box-shadow: 0 6px 0 #b76113, 0 8px 1px 1px rgba(0, 0, 0, .3), 0 9px 0 5px #75421f;
    border-bottom: 3px solid rgba(205, 102, 0, 0.5);
    color: #75421f;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.btn_game:hover {
    top: 2px;
    box-shadow: 0 4px 0 #b76113, 0 6px 1px 1px rgba(0, 0, 0, .3), 0 8px 0 5px #75421f;
}

/*
 * Background styles for cards
 */
.svg {
    display: none;
    background-color: transparent;
    fill: currentColor;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.display-icon {
    display: inline-block;
    animation: showicon 0.4s;
    animation-iteration-count: 1;
}

.fallback {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 60%;
    height: 60%;
}

.deck_card {
    max-width: 100%;
    background: var(--light);
    padding: 1rem;
    border-radius: 22px;
    box-shadow: 12px 15px 20px 0 rgba(0, 0, 0, .2);
}

.deck {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}

.deck .card {
    height: 80px;
    width: 80px;
    background: var(--light);
    font-size: 0;
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 5px 12px -14px #545454;
}

.deck .card:before {
    content: "";
    background-image: url('https://game.cardinalgps.com/images/question-mark.jpg?12');
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    opacity: 0.2;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    margin: auto;
    right: 0;
    bottom: 0;
}

.deck .card.open:before, .deck .card.match:before {
    display: none;
}

.deck .card.open {
    border: 1px solid var(--primary);
    cursor: default;
    animation: flip 0.4s;
    animation-iteration-count: 1;
    overflow: hidden;
    box-shadow: 6px 5px 16px -13px var(--primary);
}

.deck .card.show {
    font-size: 33px;
}

.deck .card.match {
    cursor: default;
    background: var(--primary);
    font-size: 33px;
    overflow: hidden;
    animation: flip 0.4s;
    animation-iteration-count: 1;
    transition: background 0.6s;
    border: 3px solid limegreen;
}

/*
 * Styles for the Score Panel
 */

.score-panel {
    margin-bottom: 10px;
}

.score-panel .stars {
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
    color: orange;
    font-size: 20px;
    line-height: 1;
}

.f-20 {
    font-size: 20px;
    line-height: 1;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .timer {
    display: inline;
}

.score-panel .restart {
    cursor: pointer;
}

/*
 * Styles for the Final Score Modal
 */

.final-score.modal {
    position: absolute;
    width: 340px;
    min-height: 300px;
    color: #fff;
    background: linear-gradient(160deg, #7494b3 0%, #1b8edc 100%);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);
    display: none;
    z-index: 100;
    left: 0;
    right: 0;
    margin: auto;
    height: fit-content;
    top: 0;
    bottom: 0;
}

.final-score.modal h1 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 1rem;
}

.final-score.modal .controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.final-score.modal .play-again {
    cursor: pointer;
    font-size: 1rem;
}

.final-score.modal .fa.fa-times {
    cursor: pointer;
    font-size: 22px;
}

.final-score.modal .modal-stars {
    color: #f5ce67;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 1.5em 0;
}

.final-score.modal p.comment {
    font-size: 1.2em;
    padding: 0;
    margin: 0 0 -0.6em 0;
}

.final-score.modal .fa.fa-star {
    margin: 0.2em;
    font-size: x-large;
}

.final-score.modal p {
    text-align: center;
}

.backdrop {
    display: none;
    width: 100%;
}

.backdrop-show {
    display: block;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100% !important;
    top: 0;
    left: 0;
    z-index: 99;
}

/*
* Footer styles
*/
footer p {
    padding: 0 0 1em;
}

.left,
.right,
.left a:hover,
.right a:hover {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #d5dee2;
    text-align: left;
    text-decoration: none;
}

.left a,
.right a {
    color: #effaff;
    text-decoration: none;
}

.left {
    float: left;
    margin-left: -324px;
}

.right {
    float: right;
    margin-right: -310px;
}

/*
* CSS Animations
*/

@keyframes flip {
    0% {
        transform: rotateY(180deg);
        background: #083961;
    }
    49% {
        background: #083961;
    }
    50% {
        transform: rotateY(90deg);
        background: #1f92e7;
    }
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes reverseflip {
    0% {
        transform: rotateY(0deg);
        background: #1f92e7;
    }
    49% {
        background: #1f92e7;
    }
    50% {
        transform: rotateY(90deg);
        background: #083961;
    }
    100% {
        transform: rotateY(180deg);
        background: #083961;
    }
}

@keyframes showicon {
    0% {
        opacity: 0;
    }
    49% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hideicon {
    0% {
        opacity: 1;
    }
    49% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
        background: #f50625;
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    40% {
        transform: translate(2px, -1px) rotate(1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    80% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    100% {
        transform: translate(0px, 0px) rotate(-1deg);
        background: #f50625;
    }
}

/* MEDIA QUERIES */
/* Ipad */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px) {

    .final-score.modal h1 {
        font-size: 3em;
    }

    .score-panel .timer {
        left: 67%;
    }

    .final-score.modal {
        width: 600px;
        min-height: 562px;
    }

    .final-score.modal .controls {
        font-size: 2em;
    }

    .final-score.modal p.comment {
        font-size: 1.8em;
    }

    .final-score.modal .fa.fa-star {
        font-size: 3em;
    }

    .final-score.modal p {
        font-size: 1.8em;
    }
}

/*  iPhone X, 6, 7, 8  */

@media only screen
and (min-device-width: 375px)
and (max-device-width: 812px) {

    .score-panel .timer {
        left: 67%;
    }

    .left,
    .right,
    .left a:hover,
    .right a:hover {
        font-size: 1.3em;
        letter-spacing: 0.1em;
    }
}

/*  iPhone 5  */

@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px) {

    .score-panel .timer {
        left: 67%;
    }

    .left,
    .right,
    .left a:hover,
    .right a:hover {
        font-size: 1.3em;
        letter-spacing: 0.1em;
    }
}

.screen_card {
    position: relative;
    border-radius: 18px;
    background-color: var(--light);
    transition: .5s ease-in-out;
    border: 1px solid #b4010159;
    box-shadow: 10px 10px 13px -18px #0d0d49;
}

.screen_card:hover {
    transform: scale(1.02);
}

.screen_card .card-body {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
}

.screen_card .card-body img {
    transform: scale(1.04);
}

.screen_card .card-header {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background-color: var(--light);
}

.screen_card .card-header h3 {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary);
}

.screen_card .card-body img {
    border-radius: 18px;
}

.tag_img {
    position: absolute;
    top: -22px;
    right: -16px;
}

.tag_img img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.heading h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}
.deck_card .heading h1, .timer{
    font-size: 1rem !important;
}

@media (max-width: 992px) {
    .deck {
        max-width: 100%;
    }

    main {
        padding: 60px 2rem;
        position: relative;
    }

    .deck {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 786px) {
    .deck {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 550px) {
    .deck {
        grid-template-columns: repeat(4, 1fr);
    }

    .deck .card {
        width: 75px;
        height: 75px;
    }

    .svg {
        width: 75px;
        height: 75px;
    }

}

@media (max-width: 490px) {
    .deck {
        grid-template-columns: repeat(3, 1fr);
    }
}

.unscramble_card {
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

.unscramble_card .card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-weight: 600;
    font-size: 20px;
}

.unscramble_card input {
    height: 100%;
    border-radius: 0;
    border: 0;
}

#successMessage {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    z-index: 100;
    background: #dfd;
}

#questions li, #answers li {
    padding: 5px 1.5rem;
    height: 62px;
    border-radius: 10px !important;
    border: 1px solid #f1f1f1;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    box-shadow: inset 5px 5px 13px -9px rgba(0, 0, 0, .2);
}

#questions li img {
    border-radius: 8px !important;
    height: 50px;
    object-fit: contain;
}

.animate__shakeX {
    background-color: #ffe3e4;
}

.jtk-connected {
    border: 1px solid var(--primary) !important;
    border-radius: 50px;
}

.jtk-endpoint.jtk-endpoint-anchor:after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    left: -30%;
    right: 0;
    margin: 0 auto;
    border: 1px solid var(--primary);
    border-radius: 50px;
    top: -30%;
    bottom: -25%;
    box-shadow: inset 0 0 12px -6px var(--primary), 5px 5px 13px -9px rgba(0, 0, 0, .2);
    background: var(--light);
    z-index: 0;
    transition: .5s ease-in-out;
}

.jtk-endpoint.jtk-endpoint-anchor svg {
    transform: scale(0.3);
    z-index: 1;
}

.jtk-endpoint.jtk-endpoint-connected svg {
    transform: scale(1);
}

.jtk-endpoint.jtk-endpoint-connected:after {
    display: none;
}

.jtk-hover.jtk-endpoint.jtk-endpoint-anchor:after {
    background-color: var(--primary);
}

.jtk-hover svg circle {
    fill: #fff;
    stroke: #fff;
}

.jtk-endpoint-connected svg circle {
    fill: var(--primary);
    stroke: var(--primary);
}

.jtk-endpoint svg {
    transition: .5s ease-in-out;
}

.jtk-hover svg {
    transform: scale(0.5) !important;
}

.btn-danger {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
}
@media (max-width: 400px){
    #questions li, #answers li{
        padding: 5px;
        font-size: 12px;
        max-width: 80px;
        text-align: center;
        white-space: unset;
    }
    .jtk-endpoint.jtk-endpoint-anchor:after{
        width: 25px;
        height: 25px;
        top: -20%;
        left: -20%;
    }
}
@media (max-width: 768px){
    .inner-screen{
        padding-inline: 0;
    }
    .head_logo{
        height: 30px;
    }
    header .nav-link{
        padding: 0 1rem;
        font-size: 14px;
    }
    header .nav-link i{
        font-size: 20px;
    }
    .score-panel .stars{
        font-size: 14px;
    }
    .score-panel h1, .score-panel .timer{
        font-size: 14px !important;
    }
}
.ui-draggable {
    max-width: 140px;
    margin-bottom: .5rem;
}
.draggable-item {
    max-width: 140px;
    display: block;
    position: relative;
    border-radius: 8px;
    margin-bottom: .5rem;
    background-color: var(--light);
}
.image-item {
    width: 100%;
    height: 114px;
    border: 1px dashed var(--primary);
    display: block;
    margin: 0;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 5px 5px 13px -9px rgba(0, 0, 0, .2);
}
.ui-draggable img{
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: 5px 5px 13px -9px rgba(0, 0, 0, .2);
}
.ui-draggable.correct.ui-draggable-disabled img{
    transform: scale(0.92);
    border-radius: 8px;
    border: 0;
}
.words-item {
    display: block;
    background: var(--secondary);
    color: var(--light);
    text-align: center;
    border-radius: 8px;
    line-height: 2;
    position: absolute;
    width: 75%;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 0;
    right: 0;
    height: fit-content;
    font-size: 100%;
    box-shadow: 5px 5px 13px -9px rgba(0, 0, 0, .2);
}
