﻿
#dialChallengeModal {
    display: none;
}

.modal-instruction {
    font-size: 14pt;
    color: #626161;
    margin-bottom: 20px;
}

.modal-header {
    border: none;
}

#divDialChallengeBody {
    padding-top: 70px;
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 27pt;
    color: #333333;
    z-index: 99999;
}

#dialChallengeModalText {
    font-size: 15pt;
    color: #333333;
    text-align: center;
}

/* Dial Challenge Styles */
#dialContainer {
    text-align: center;
    width: 250px;
    height: 250px;
    position: relative;
    margin: auto;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: box-shadow 0.3s ease;
    border-radius: 50%;
}

    #dialContainer.correct {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }

    #dialContainer.interaction-started::after {
        display: none;
    }


@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

#dialContainer::after {
    content: '👆 Drag me';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #626161;
    animation: fadeOut 3s ease-in-out forwards;
    animation-delay: 2s;
    pointer-events: none;
}

/* Shake animation on CONTAINER instead of dial */
#dialContainer.shake {
    animation: shake 0.5s;
}

#dial {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50px;
    left: 50px;
    background-image: url('../../images/dial-challenge/dial.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    cursor: grab;
    transition: filter 0.3s ease;
}

    #dial.grabbing {
        cursor: grabbing;
        transition: none;
    }

    #dial.correct-glow {
        filter: drop-shadow(0 0 15px #4CAF50);
    }

    #dial.no-transition {
        transition: none;
    }

/* Legacy slider - can be hidden or removed */
#horizontalSlider {
    width: 160px;
    cursor: grabbing;
    display: none; /* Hidden since we're using drag interaction */
}

/* Challenge Label States */
#lblChallenge.error {
    color: #ff6b6b;
}


#lblChallenge {
    margin-top: 15px;
    min-height: 20px;
}

    #lblChallenge.critical-error {
        color: red;
    }


#btnChallengeSubmit {
    display: inline-block;
    font-family: "raleway-bold", sans-serif;
    font-size: 14pt;
    padding: 8px 20px;
    margin: 30px 10px 10px 10px;
    background: #d8d8d8;
    color: #252525;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: 1000px;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
