/* --- ★ AI/Tech Theme ★ --- */
/* (This CSS is identical to the last example) */

/* --- Main Topics Grid --- */
#topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 20px auto;
}

.topic-button {
    background-color: #ffffff;
    border: 1px solid #4f46e5; /* AI Indigo/Blue */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f46e5; /* AI Indigo/Blue */
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.topic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #4f46e5; /* AI Indigo/Blue */
    color: #ffffff; /* White text on hover */
}

/* --- Modal (Popup Card) --- */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#modal-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#modal-title {
    margin-top: 0;
    color: #4338ca; /* Darker AI Indigo */
}

#modal-explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}
pre {
    background-color: silver;
    color: black;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
}

#close-modal-btn {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff; /* White text */
    background-color: #4f46e5; /* AI Indigo/Blue */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#close-modal-btn:hover {
    background-color: #4338ca; /* Darker AI Indigo */
}
