/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

.lang-btn.active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#page-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

#welcome-message {
    font-size: 1.1em;
    color: #666;
}

/* Main Content */
main {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reflection-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
}

/* Question Blocks */
.question-block {
    margin-bottom: 30px;
}

.question-block h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

.answer-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.answer-textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.answer-textarea::placeholder {
    color: #999;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #4a90e2;
    color: white;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.submit-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submit-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    #page-title {
        font-size: 2em;
    }
    
    main {
        padding: 25px;
    }
    
    .language-switcher {
        justify-content: center;
    }
    
    .submit-button {
        width: 100%;
        max-width: 300px;
    }
}

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

.question-block {
    animation: fadeIn 0.5s ease-out;
}

.question-block:nth-child(2) {
    animation-delay: 0.1s;
}

.question-block:nth-child(3) {
    animation-delay: 0.2s;
}

.question-block:nth-child(4) {
    animation-delay: 0.3s;
}