/* Overlay Styling */
.overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Black background with 80% opacity */
    z-index: 999; /* Behind the modal but on top of other content */
}

/* Modal Container Styling */
.modal, .art-modal, .art-full-modal, .news-modal, .notes-modal {
    display: none; /* Initially hidden */
    position: fixed; /* Fixed to the viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    background: #0d0d0d;
    padding: 1.5rem;
    z-index: 1000; /* Ensure it stays on top */
    border: 1px solid #5acebf;
    overflow-y: auto;
    max-height: 80vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close Modal Button */
.close-modal {
    cursor: pointer; /* Make the cursor a pointer for better UX */
    font-size: 1rem;
    color: #ff66cc;
    width: 30px;
    height: 31px;
    border: 1px solid #5acebf;
    background: #222;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: fixed; 
    top: 10px;
    right: 15px;
}

.close-modal:hover {
    background: #5acebf; 
    color: #111; /* Invert colors on hover */
}

/* Pagination Controls */
.pagination-controls button {
    background: #5acebf; 
    color: #111; 
    border: 1px solid #5acebf; 
    border-radius: 4px; 
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-controls button:hover {
    background: #ff66cc; 
    color: #fff; 
}

/* Custom Scrollbar Styling */
.modal-content, .art-modal-content, .news-content, .notes-content {
    scrollbar-width: thin;
    scrollbar-color: #5acebf #222;
    padding-right: 10px;
}

.modal-content::-webkit-scrollbar, .art-modal-content::-webkit-scrollbar, .news-content::-webkit-scrollbar, .notes-content::-webkit-scrollbar-thumb {
    width: 5px;
}

.modal-content::-webkit-scrollbar-thumb, .art-modal-content::-webkit-scrollbar-thumb, .news-content::-webkit-scrollbar-thumb , .notes-content::-webkit-scrollbar-thumb{
    background: #5acebf;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover, .art-modal-content::-webkit-scrollbar-thumb:hover, .news-content::-webkit-scrollbar-thumb:hover, .notes-content::-webkit-scrollbar-thumb:hover {
    background: #ff66cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal, .art-modal, .art-full-modal, .news-modal, .notes-modal {
        width: 95%; /* Make the modal take up more space on smaller screens */
        padding: 1rem; /* Reduce padding to fit content better */
    }
}
