* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.screen {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* Password Screen */
.password-content {
    padding: 20px 0;
}

.password-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.password-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.password-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-input::placeholder {
    color: #999;
}

.password-error {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-error.show {
    opacity: 1;
}

/* Welcome Screen */
.welcome-content {
    padding: 20px 0;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.welcome-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Crossword Screen */
.crossword-content {
    padding: 20px 0;
    text-align: left;
}

.crossword-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
}

.crossword-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.crossword-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.crossword-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    background: #333;
    padding: 10px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.crossword-cell {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.crossword-cell:focus {
    background: #e3f2fd;
    outline: none;
    box-shadow: 0 0 0 2px #667eea;
}

.crossword-cell.filled {
    background: #f0f8ff;
    color: #333;
}

.crossword-cell.correct {
    background: #d4edda;
    color: #155724;
}

.crossword-cell.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.crossword-cell.black {
    background: #333;
    cursor: not-allowed;
}

.crossword-cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.6rem;
    color: #666;
    font-weight: normal;
}

.crossword-clues {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clues-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    text-align: left;
}

.clue-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.9rem;
    line-height: 1.4;
}

.clue-item.completed {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.clue-number {
    font-weight: 600;
    color: #667eea;
}

.crossword-progress {
    margin-bottom: 20px;
}

.progress-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.crossword-feedback {
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.crossword-feedback.show {
    opacity: 1;
}

.crossword-feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.crossword-feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Quiz Screen */
.quiz-content {
    padding: 20px 0;
}

.question-counter {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.option.correct {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.feedback {
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback.show {
    opacity: 1;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Results Screen */
.results-content {
    padding: 20px 0;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.results-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .screen {
        padding: 30px 20px;
    }
    
    .crossword-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .crossword-grid {
        max-width: 320px;
    }
    
    .crossword-cell {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .password-title {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .crossword-title {
        font-size: 2rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .score-display {
        font-size: 2.5rem;
    }
    
    .password-form {
        gap: 15px;
    }
    
    .password-input {
        padding: 12px 18px;
        font-size: 1rem;
    }
} 