/* Styling for aperture drag instruction popup */
.aperture-popup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 20px;
    z-index: 1000;
    width: 320px;
    font-family: Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.aperture-popup.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

.aperture-popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

.aperture-popup-title::before {
    content: "ℹ️";
    margin-right: 8px;
}

.aperture-popup-content {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.aperture-popup-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.aperture-popup-checkbox {
    margin-right: 8px;
}

.aperture-popup-buttons {
    display: flex;
    justify-content: flex-end;
}

.aperture-popup-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4a90e2;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.aperture-popup-button:hover {
    background-color: #3a7bc8;
}

/* Overlay to prevent interaction with the page while popup is shown */
.aperture-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s 0.3s;
}

.aperture-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s;
}

/* Animation highlight for the newly created aperture */
@keyframes highlight-aperture {
    0% { box-shadow: 0 0 0 3px rgba(74, 144, 226, 0); }
    50% { box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.8); }
    100% { box-shadow: 0 0 0 3px rgba(74, 144, 226, 0); }
}

.aperture-highlight {
    animation: highlight-aperture 1.5s ease-in-out;
}