/* Base body styles */
body {
    font-family: 'Poppins', sans-serif;
}

/* Styles for legal page content containers */
.content-container h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.content-container p {
    margin-bottom: 1rem;
}

/* Styles for the main application views and transitions */
.view {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

.view.active {
    display: block;
}

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

.question-wrapper {
    display: none;
    animation: slideIn 0.5s forwards;
}

.question-wrapper.active {
    display: block;
}

.question-wrapper.exiting {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-50px); }
}

/* Interactive element styles */
.quiz-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.interest-tag {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.interest-tag.selected {
    background-color: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Star rating styles */
.star-rating button {
    color: #d1d5db;
    transition: color 0.2s;
}

.star-rating button.selected,
.star-rating:hover button {
    color: #f59e0b;
}

.star-rating:hover button:hover ~ button {
    color: #d1d5db;
}
