* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin: 0;
    flex: 1;
    text-align: center;
}


.topic-selector {
    text-align: center;
    margin-bottom: 20px;
}

.topic-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.topic-selector select {
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    min-width: 200px;
}

.topic-selector select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.controls {
    text-align: center;
    margin-bottom: 30px;
}

.topics-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.topic-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.topic-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-section .refresh-topic-btn {
    background-color: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

.topic-section .refresh-topic-btn:hover {
    background-color: #229954 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.topic-section .refresh-topic-btn:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.refresh-topic-btn {
    background-color: #27ae60 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    min-width: auto !important;
    height: auto !important;
}

.refresh-topic-btn:hover {
    background-color: #229954 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

.refresh-topic-btn:disabled {
    background-color: #95a5a6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.new-questions-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.new-questions-btn:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.new-questions-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.question {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.question-topic {
    font-size: 0.8em;
    color: #7f8c8d;
    font-style: italic;
    margin-left: 10px;
}

.question-number {
    font-weight: bold;
    color: #e74c3c;
    margin-right: 8px;
}

.show-answer-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.show-answer-btn:hover {
    background-color: #2980b9;
}

.answer {
    margin-top: 15px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2em;
        text-align: center;
    }


    .new-questions-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .topic-section {
        padding: 20px;
    }

    .topic-title {
        font-size: 1.5em;
        flex-direction: column;
        align-items: flex-start;
    }

    .refresh-topic-btn {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .question-card {
        padding: 15px;
    }
    
}

