@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap');

#captcha button:focus,
#captcha input:focus {
    outline: none;
    box-shadow: none;
}

#captcha a,
a:hover {
    text-decoration: none;
}

#captcha {
    font-family: 'Roboto', sans-serif;
}

#captcha .block {
    position: absolute;
    left: 0;
    top: 0;
}

#captcha .slidercaptcha {
    margin: 0 auto;
    width: 100%;
    height: 300px;
    border-radius: 4px;
    margin-top: 0;
}

#captcha .slidercaptcha canvas:first-child {
    border-radius: 5px;
    border: 1px solid #e6e8eb;
}

#captcha .sliderContainer {
    position: relative;
    text-align: center;
    line-height: 40px;
    background: #f7f9fa;
    color: #45494c;
    border-radius: 2px;
}

#captcha .sliderbg {
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    background-color: #f7f9fa;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #e6e8eb;
}

#captcha .sliderText {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
}

#captcha .sliderContainer_active .slider {
    top: -1px;
    border: 1px solid #1991FA;
}

#captcha .sliderContainer_active .sliderMask {
    border-width: 1px 0 1px 1px;
}

#captcha .sliderContainer_success .slider {
    top: -1px;
    border: 1px solid #02c076;
    background-color: #02c076 !important;
    color: #fff;
}

#captcha .sliderContainer_success .sliderMask {
    border: 1px solid #52CCBA;
    border-width: 1px 0 1px 1px;
    background-color: #D2F4EF;
}

#captcha .sliderContainer_success .sliderIcon:before {
    content: "\f00c";
}

#captcha .sliderContainer_fail .slider {
    top: -1px;
    border: 1px solid #f35c59;
    background-color: #f35c59;
    color: #fff;
}

#captcha .sliderContainer_fail .sliderMask {
    border: 1px solid #f35c59;
    background-color: #f7dcdd;
    border-width: 1px 0 1px 1px;
}

#captcha .sliderContainer_fail .sliderIcon:before {
    content: "\f00d";
}

#captcha .sliderContainer_active .sliderText,
#captcha .sliderContainer_success .sliderText,
#captcha .sliderContainer_fail .sliderText {
    display: none;
}

#captcha .sliderMask {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    border: 0 solid #d1e9fe;
    background: #d1e9fe;
    border-radius: 2px;
    z-index: 1;
}

#captcha .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background .2s linear;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#captcha .slider:hover {
    background: #009efb;
    color: #fff;
    border-color: #009efb;
}

#captcha .slider:hover .sliderIcon {
    background-position: 0 -13px;
}

#captcha .sliderText {
    position: relative;
}

#captcha .sliderIcon {}

#captcha .refreshIcon {
    position: absolute;
    right: 5px;
    top: 5px;
    cursor: pointer;
    padding: 6px;
    color: #fff;
    background-color: #ff4c4c;
    font-size: 14px;
    border-radius: 50px;
}

#captcha .refreshIcon:hover {
    color: #fff;
}

/* notRobot Container */
.notbot-container .input-container {
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    height: 74px;
    width: 300px;
    display: inline-block;
    padding: 0 10px;
}

.notbot-container .input-container input {
    margin-top: 28px;
}

.notbot-container img {
    /* width: 32px;
    display: inline;
    margin-left: -60px; */
}

.notbot-container span,
.notbot-container a {
    /* color: #9b9b9b; */
    color: #000000;
}

.notbot-container .captcha {
    font-size: 12px;
    margin-left: -70px;
    position: relative;
    bottom: 0px;
}

.notbot-container a,
.notbot-container .dash {
    font-size: 8px;
    text-decoration: none;
    display: inline;
    position: relative;
    top: -22px;
    right: -232px;
}

.notbot-container a:hover {
    text-decoration: underline;
}

.notbot-container .triangle {
    width: 0px;
    height: 0px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ccc;
    border-top: 7px solid transparent;
    position: relative;
    left: 10px;
    top: -55px;
}

.notbot-container .not-human {
    /* width: 340px;
    height: 250px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 15px;
    position: relative;
    top: -55px;
    left: 3px; */
    /* width: 310px;
    height: 230px; */
    /* background-color: white; */
    /* border: 1px solid #ccc; */
    /* padding: 12px; */
    position: absolute;
    /* top: 30px; */
    top: -40px;
    left: 20px;
    z-index: 1;
    width: 100%;
}

.notbot-container .not-human .captcha-code {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    width: 90%;
    margin-left: 50%;
    transform: translateX(-50%);
}

.notbot-container .not-human .captcha-code:focus {
    outline: none;
    border-bottom: 1px solid #4a90e2;
}

.notbot-container .not-human img {
    /* display: inline-block;
    position: relative;
    left: 75px;
    top: -80px;
    width: 300px;
    height: 57px; */
}

.notbot-container .not-human .line {
    width: 280px;
    height: 1px;
    background-color: #ccc;
    margin-top: 90px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.notbot-container .not-human .img {
    width: 24px;
    height: 24px;
    position: relative;
    top: -36px;
    margin: 0 4px 75px 4px;
    display: inline-block;
    cursor: pointer;
    background-size: 24px 24px;
    opacity: 0.55;
}

.notbot-container .not-human .img:hover {
    opacity: 1;
}

.notbot-container .not-human .verify {
    float: right;
    position: relative;
    top: -42px;
    margin-right: 5px;
    background-color: #4a90e2;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
}

.notbot-container .disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}


:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.section-map__wrapper-info {
    z-index: 99;
}

.challenge-poweredby {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-top: 10px;
}

.challenge-container {
    font-family: 'Roboto', sans-serif;
    color: #333;
    min-width: 310px;
    /* max-width: 310px; */
    max-width: 100%;
    line-height: 1.6;
    width: 100%;
    margin: 30px auto;
    /* padding: 30px; */
    padding: 15px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.challenge-header {
    text-align: center;
    /* margin-bottom: 25px; */
    position: relative;
    margin-bottom: 0px;
}

.challenge-header p {
    margin: 0px;
}

.challenge-header::after {
    /* content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px; */
}

.challenge-title {
    color: var(--dark-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.challenge-subtitle {
    color: var(--gray-color);
    font-size: 14px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-color);
}

.status-dot.active {
    background: var(--primary-color);
}

.status-dot.error {
    background: var(--danger-color);
}

.status-dot.success {
    background: var(--success-color);
}

.message {
    /* padding: 15px; */
    padding: 10px;
    border-radius: 8px;
    /* margin-bottom: 20px; */
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    /* color: #0f5132; */
    color: #000000;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
}

.success-message .fas.fa-check-circle {
    color: #0f5132;
}

.error-message {
    /* color: #842029; */
    color: #ffffff;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

.error-message .fas.fa-exclamation-circle {
    color: #842029;
}

.warning-message {
    /* color: #664d03; */
    color: #000000;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
}

.warning-message .fas.fa-exclamation-circle {
    color: #664d03;
}

.challenge-content {
    /* margin: 25px 0; */
    margin: 12px 0;
}

.challenge-instruction {
    text-align: left;
    /* font-size: 18px; */
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    /* margin-bottom: 20px; */
    margin-bottom: 15px;
    color: var(--dark-color);
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    line-height: 1.2;
}

.options-container {
    /* display: grid;
    gap: 12px; */
    display: flex;
    /* flex-direction: column; */
    flex-direction: row;
}

.pattern-options-container.options-container {
    flex-direction: column;
}

.option-item {
    /* padding: 15px; */
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-size: 14px;
    line-height: 1;
}

.option-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.option-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
}

.option-input {
    margin-right: 12px;
}

.text-input {
    width: 100%;
    /* padding: 15px;
    font-size: 16px; */
    padding: 8px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s;
}

.text-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.slider-container {
    margin: 30px 0;
    position: relative;
}

.slider-track {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.slider-thumb {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: -9px;
    left: 0;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.1s;
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider-thumb::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: var(--gray-color);
    font-size: 12px;
}

.slider-hint {
    /* text-align: center; */
    text-align: left;
    margin: 15px 0;
    color: var(--gray-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.captcha-container {
    /* margin: 20px 0; */
    margin: 0px 0px 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.captcha-slider {
    background: #e9ecef;
    /* width: 250px; */
    /* height: 40px; */
    height: 50px;
    /* border-radius: 20px; */
    border-radius: 30px;
    position: relative;
    margin-top: 15px;
}

.captcha-handle {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* width: 40px; */
    width: 50px;
    background: var(--primary-color);
    /* border-radius: 20px; */
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.captcha-handle:hover {
    background: #0069d9;
}

.target-indicator {
    position: absolute;
    top: 50%;
    /* width: 40px;
    height: 40px; */
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed var(--primary-color);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    /* padding: 16px; */
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    /* font-size: 16px; */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn .fas.fa-lock {
    /* margin-right: 10px; */
}

.submit-btn:hover:not(:disabled) {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn.success {
    background: var(--success-color);
}

.submit-btn.success:hover {
    background: #218838;
}

.attempts-warning {
    text-align: center;
    color: var(--danger-color);
    margin: 15px 0;
    font-size: 14px;
    padding: 12px;
    background: #fff5f5;
    border-radius: 8px;
}

/* .lockout-message {
    text-align: center;
    color: var(--danger-color);
    margin: 20px 0;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
} */
.lockout-message {
    text-align: center;
    /* color: #dc3545; */
    color: #000000;
    /* margin: 20px 0; */
    margin: 15px 0;
    /* padding: 20px; */
    padding: 10px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
    line-height: 1.6;
}

.lockout-message strong {
    color: #721c24;
    /* color: #000000; */
}

.lockout-message i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.countdown-message {
    text-align: center;
    color: #856404;
    margin: 15px 0;
    /* padding: 15px; */
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.countdown-message i {
    font-size: 16px;
}

.refresh-now-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.refresh-now-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

#countdown-timer,
#js-countdown-timer,
#countdown-timer-zh,
#js-countdown-timer-zh {
    font-weight: bold;
    color: #dc3545;
    font-size: 16px;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

.attempts-warning {
    text-align: left;
    color: #856404;
    margin: 15px 0;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-size: 14px;
    display: flex;
    justify-content: left;
    align-items: center;
}

.attempts-warning i {
    color: #ffc107;
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 576px) {
    .countdown-message {
        flex-direction: column;
        gap: 10px;
    }

    .lockout-message {
        padding: 15px;
        font-size: 14px;
    }

    .refresh-now-btn {
        width: 100%;
        justify-content: center;
    }
}

.pattern-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    /* margin: 20px 0; */
    margin: 12px 0px;
}

.pattern-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.pattern-item {
    padding: 0px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    min-width: 70px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pattern-item-img {
    width: 50px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.pattern-item-text {
    width: 100%;
    min-height: 80px;
    padding: 10px;
}

.pattern-item-text .pattern-item-img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.pattern-item-icon {
    width: 70px;
    height: 70px;
}

.pattern-item-icon .pattern-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    border-radius: 12px;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.challenge-success {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.image-captcha-container {
    text-align: center;
    margin: 10px 0;
}

.captcha-image {
    width: 100%;
    /* height: 160px; */
    /* object-fit: cover; */
    display: block;
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    /* margin: 10px 0; */
    margin: 0px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.captcha-input-container {
    margin: 10px 0;
}

.rotation-captcha-container {
    text-align: center;
    margin: 15px 0;
}

.rotation-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rotation-image-container {
    text-align: center;
}

.rotation-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.rotation-image {
    width: 120px;
    height: 120px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.rotation-controls {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.rotate-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.rotate-btn:hover {
    background: #0069d9;
}

.rotation-info {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 10px;
    padding: 10px;
    background: var(--light-color);
    border-radius: 6px;
    font-weight: 500;
}

/* 3D Cube */

.cube3d-container {
    text-align: center;
    margin: 15px 0;
}

/* #cube3d-canvas {
    width: 250px;
    height: 250px;
    margin: 0 auto 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
} */

#cube3d-canvas {
    width: 250px;
    height: 250px;
    margin: 0 auto 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.cube3d-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.cube3d-inputs .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cube3d-inputs label {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-color);
}

.cube3d-inputs input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
}

.cube3d-inputs input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* For Chrome, Safari, Edge, and Opera */
.cube3d-inputs input[type="number"]::-webkit-outer-spin-button,
.cube3d-inputs input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
.cube3d-inputs input[type="number"] {
  -moz-appearance: textfield;
}

@media (max-width: 576px) {
    .challenge-container {
        /* padding: 20px; */
        margin: 15px auto;
        max-width: 310px;
    }

    .challenge-title {
        font-size: 20px;
    }

    .challenge-instruction {
        font-size: 16px;
    }

    .pattern-item {
        /* padding: 12px 15px; */
        padding: 0px;
        font-size: 16px;
        min-width: 60px;
    }

    .pattern-item-text {
        min-height: 70px;
    }

    .pattern-item-text .pattern-item-img {
        max-height: 100px;
    }

    .pattern-item-icon {
        width: 60px;
        height: 60px;
    }

    .pattern-item-icon .pattern-item-img {
        width: 40px;
        height: 40px;
    }

    .rotation-images {
        flex-direction: column;
        align-items: center;
    }

    .rotation-image {
        width: 100px;
        height: 100px;
    }

    .rotation-controls {
        flex-direction: column;
        align-items: center;
    }

    .rotate-btn {
        width: 200px;
        justify-content: center;
    }

    /* 3D Cube */
    /* #cube3d-canvas {
        width: 200px;
        height: 200px;
    }

    .cube3d-inputs {
        flex-direction: column;
        gap: 10px;
    } */
    
    .cube3d-inputs {
        /* flex-direction: column; */
        gap: 10px;
    }
    
    .cube3d-inputs input {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
}