* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Welcome Screen */
.welcome-screen {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 126, 234, 0.2);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-screen h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.welcome-screen > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.banks-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bank-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 244, 255, 0.9) 100%);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bank-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4), 0 0 20px rgba(118, 75, 162, 0.3);
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(240, 244, 255, 1) 100%);
}

.bank-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.bank-card p {
    color: #666;
    margin-bottom: 15px;
}

.start-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.start-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.start-btn:active {
    transform: scale(1.05) translateY(0);
}

/* Test Screen */
.test-screen {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideIn 0.5s ease-out;
}

.test-header {
    margin-bottom: 30px;
}

.test-header h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    animation: progressGradient 2s ease infinite;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

@keyframes progressGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.question-counter {
    color: #666;
    font-size: 1em;
    text-align: right;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
}

.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #4facfe 100%);
    background-size: 400% 400%;
    animation: countdownGradient 2s ease infinite, countdownPulse 1s ease infinite, countdownRotate 3s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(118, 75, 162, 0.4),
        0 0 90px rgba(240, 147, 251, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.countdown-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        rgba(255, 255, 255, 0.3) 90deg,
        transparent 180deg,
        rgba(255, 255, 255, 0.3) 270deg,
        transparent 360deg
    );
    animation: countdownRotate 2s linear infinite reverse;
}

.countdown-circle span {
    color: white;
    font-size: 3em;
    font-weight: 900;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(102, 126, 234, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: numberPop 0.5s ease;
}

@keyframes countdownGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes countdownRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes numberPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.question-container {
    margin: 30px 0;
}

.question-card {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
}

.question-text {
    font-size: 1.4em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.5;
}

.options-list {
    list-style: none;
}

.option-item {
    margin-bottom: 12px;
}

.option-label {
    display: block;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.option-label:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.option-input {
    margin-right: 10px;
}

.option-input:checked + .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-label.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(240, 244, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.option-label.correct {
    border-color: #4caf50;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 50%, #66bb6a 100%) !important;
    color: white !important;
    box-shadow: 0 5px 25px rgba(76, 175, 80, 0.5), 0 0 20px rgba(76, 175, 80, 0.3);
    transform: scale(1.02);
    animation: correctPulse 0.5s ease;
}

.option-label.correct .option-text {
    color: white !important;
    font-weight: 700;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.02); }
}

.option-label.incorrect {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.test-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Results Screen */
.results-screen {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.results-screen h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 2.8em;
    font-weight: 900;
    animation: textShine 2s ease-in-out infinite;
}

.subscribe-message {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 50%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6em;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: textShine 2s ease-in-out infinite;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.score-display {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(5px);
}

.score-display p {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.score-display #scoreDisplay {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

.percentage {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-screen,
    .test-screen {
        padding: 20px;
    }
    
    .welcome-screen h1 {
        font-size: 2em;
    }
    
    .banks-list {
        grid-template-columns: 1fr;
    }
    
    .test-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

