.math-challenge-equation-row {
    display: block;
    margin: 15px 0;
    position: relative;
}

.math-number, .math-operator {
    display: inline-block;
    margin: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    visibility: visible;
    font-size: 36px;
    font-weight: 500;
    color: #00bfff;
}

.math-operator {
  width: 28px;
}

.math-number {
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
}

.math-question {
    display: none;
    visibility: hidden;
    opacity: 0;
}

html body #login-register-wrapper #mathAnswer:focus {
  border-color: #000;
  color: #000;
}

.math-number.show, .math-operator.show {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    visibility: visible;
}

.math-number.show {
    color: #00bfff;
}

.math-operator.show {
    color: #00bfff;
}

.hidden {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
}

.verify-button-inside {
    position: absolute;
    right: 1px;
    top: 1px;
    background: #f0f8ff;
    border: none;
    color: #00bfff;
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    width: 52px;
    height: 52px;
    display: block;
}

.verify-button-inside:hover {
    color: #000;
}

.verify-button-inside:active {
    transform: translateY(-50%) scale(0.95);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#verify-answer {
    padding: 15px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#verify-answer:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#verify-answer:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#verify-answer:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.challenge-message {
    text-align: center;
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    min-height: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animation for number reveal */
.math-reveal-effect {
    position: relative;
    overflow: hidden;
}

.math-reveal-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: reveal 0.6s ease-in-out;
}

@keyframes reveal {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Success animation for completed challenge */
.challenge-completed {
    animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

html body #login-register-wrapper #mathAnswer {
  display: block;
  padding: 0;
  margin: 0;
  border: solid 1px #00bfff;
  height: 56px;
  font-size: 36px!important;
  font-weight: 500;
}

.math-input-container {
    position: relative;
    width: 204px;
    margin: 0 auto 32px;
}

html body a.bsl-refresh, html body a.bsl-refresh:hover {
    bottom: 0;
    margin-left: 0;
}