/* --- Global Styles --- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
    color: #333;
    text-align: center;
    min-height: 100vh; 
    padding-bottom: 50px;
}

h1, h2 {
    margin: 0 0 15px 0;
    color: #333;
}

/* --- Container --- */
.captcha-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    margin: 40px auto;
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden; 
    position: relative;
}

/* --- CAPTCHA 1 --- */
#captcha1Block {
    background-color: #333; 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    height: 750px; 
}

.captcha-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#captcha1Block h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    margin-top: 15px;
    position: relative;
    z-index: 10; 
}

/* --- CAPTCHA 2 --- */
#captcha2Block {
    text-align: center;
}

.image-container {
    width: 100%;
    max-width: 500px;
    height: 350px;
    padding: 0;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

#illusionQuestionText {
    font-weight: 600; 
    margin-bottom: 20px; 
    font-size: 1.2rem;
    color: #444;
}

#illusionInput {
    padding: 15px;
    font-size: 18px;
    width: 300px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

#illusionInput:focus {
    border-color: #74ebd5;
    box-shadow: 0 0 10px rgba(116, 235, 213, 0.3);
}

#refreshIllusionBtn {
    margin-top: 25px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ccc;
    color: #777;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#refreshIllusionBtn:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #999;
}

/* --- Buttons & Interactables --- */
.answer-zone {
    position: absolute;
    bottom: 150px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100px;
    border: 2px dashed rgba(255,255,255,0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(0,0,0,0.5);
    color: white;
    z-index: 5;
    backdrop-filter: blur(2px); 
}

#verifyAllBtn {
    background: #28a745;
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.2s ease;
}

#verifyAllBtn:hover {
    transform: translateY(-3px);
    background: #218838;
    box-shadow: 0 15px 25px rgba(40, 167, 69, 0.4);
}

.draggable-wrapper {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: grab;
    animation: fall 6s linear infinite;
    transition: transform 0.2s ease;
    z-index: 3;
    --drift: 0px;
    animation-delay: var(--delay, 0s);
    opacity: 0; 
}

.object {
    width: 100%;
    height: 100%;
    animation: float 3s infinite ease-in-out;
    pointer-events: none;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3)); 
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes fall {
    0%   { transform: translateY(-100px) translateX(0px); opacity: 0; }
    5%   { opacity: 1; } 
    90%  { opacity: 1; }
    100% { transform: translateY(850px) translateX(calc(var(--drift) * 1.5)); opacity: 0; } 
}

.hidden { display: none !important; }
#hintText { display: none; margin-top: 10px; color: #fff; background: rgba(0,0,0,0.7); padding: 8px; border-radius: 8px; font-size: 14px;}

/* --- LOGIN PAGE STYLES --- */
.login-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 350px;
    color: #333;
    text-align: left;
    margin: 0 auto; 
    /* Center vertically if needed, usually flex on body handles it but body is text-center here */
    position: relative;
    top: 100px; 
}
.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; 
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #74ebd5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(116, 235, 213, 0.2);
}
.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: #74ebd5;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.submit-btn:hover {
    background: #4bb3a7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(116, 235, 213, 0.4);
}