/* Add CSS rules to override Primer */

svg {
    width: 1.25em;
    height: 1.25em;
}

/* Basic modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

/* Modal content styling */
.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    background-color: #1a1a1a; /* Matches a dark theme color */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff; /* Text color */
}

/* Add a 'visible' class to show the modal */
.modal.visible {
    display: flex; /* Show modal */
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #ccc;
}

/* Animation for modal appearance */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation for modal disappearance */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Add this class to handle the modal's fade-out */
.modal.fade-out {
    animation: fadeOut 0.5s ease-out;
}

/* Close button hover effect */
.close-btn:hover {
    color: #fff;
}

/* Styling for modal headers and content */
.modal h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.modal p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* For responsive design */
@media (max-width: 600px) {
    .modal {
        width: 95%; /* Make the modal a bit wider on small screens */
    }
}

.modal-content {
    max-height: 80vh; /* Adjust this value as needed */
    overflow-y: auto;
}

