/* Image container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}


/* Fade-in animation */
@keyframes fadeInFast {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

/* Corner lines like a camera frame */
.corner-line {
    position: absolute;
    opacity: 0; /* Hidden initially */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

/* Top-left corner line: Horizontal and vertical parts */
.top-left-horizontal {
    top: 10px; /* Positioned slightly away from the top edge */
    left: 10px; /* Positioned slightly away from the left edge */
    width: 30px; /* Initial width */
    height: 2px; /* Thickness */
    background-color: rgb(210, 211, 210);
}

.top-left-vertical {
    top: 10px;
    left: 10px;
    width: 2px; /* Thickness */
    height: 30px; /* Initial height */
    background-color: rgb(210, 211, 210);
}

/* Bottom-right corner line: Horizontal and vertical parts */
.bottom-right-horizontal {
    bottom: 10px;
    right: 10px;
    width: 30px; /* Initial width */
    height: 2px; /* Thickness */
    background-color: rgb(210, 211, 210);
}

.bottom-right-vertical {
    bottom: 10px;
    right: 10px;
    width: 2px; /* Thickness */
    height: 30px; /* Initial height */
    background-color: rgb(210, 211, 210);
}

/* Hover effect to show and expand the corner lines */
.card:hover .corner-line {
    opacity: 1;
}

/* Expand the lines on hover */
.card:hover .top-left-horizontal {
    width: 40px; /* Expanded width */
}

.card:hover .top-left-vertical {
    height: 40px; /* Expanded height */
}

.card:hover .bottom-right-horizontal {
    width: 40px; /* Expanded width */
}

.card:hover .bottom-right-vertical {
    height: 40px; /* Expanded height */
}

/* Info icon initial state */
.info-icon {
    opacity: 0; /* Start with opacity 0 (hidden) */
    position: absolute; 
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: #fbf0f0; 
    background-color: transparent; 
    border: 2px solid white;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer; 
    z-index: 10; 
    text-decoration: none;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 35px; 
    height: 35px; 
    transition: opacity 0.3s ease-in; /* Smooth opacity transition */
}

/* Fade-in effect when hovering over the card */
.card:hover .info-icon {
    opacity: 1; /* Show the icon */
    animation: fadeInFast 0.4s ease-in; /* Quick fade-in animation */
}

/* Info icon inner content */
.info-icon i {
    font-size: 22px; 
    color: #fbf0f0;
}



/* Fade-in animation for the modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-modal {
    display: none; /* Initially hidden */
    opacity: 0; /* Start with opacity 0 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out; /* Smooth transition for opacity */
}

/* When modal is shown, use fade-in */
.custom-modal.show {
    display: flex;
    opacity: 1; /* Set opacity to 1 when shown */
    animation: modalFadeIn 0.3s ease-in-out; /* Apply fade-in animation */
}

.modal-content {
    background-color: #374151; /* Dark background for the dialog */
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    transition: opacity 0.3s ease-in-out; /* Smooth transition for opacity */
}


/* New styles for the scrolling content */
.modal-body {
    max-height: calc(80vh - 50px); /* Adjust height based on the modal-content height and close button size */
    overflow-y: auto; /* Enable vertical scrolling for this container */
    margin-top: 24px ;
}

/* Make the dialog take full width on laptops/desktops */
@media (min-width: 1024px) {
    .modal-content {
        width: 90%; /* Full width on larger screens */
        max-width: 90%; /* Prevent any max-width */
        padding-left: 16px; /* 16px padding on left */
        padding-right: 16px; /* 16px padding on right */
        height: 60vh;
        max-height: 75vh; /* Max height for large screens */
        margin: 0;
        border-radius: 10px; /* Rounded corners */
    }
    
    /* Increase text size for desktop view */
    .modal-body h2 {
        font-size: 30px; /* Increase size for heading */
    }

    .modal-body h3 {
        font-size: 22px; /* Increase size for subheadings */
    }

    .modal-body p {
        font-size: 16px; /* Increase size for paragraphs */
    }

    .modal-body ul li {
        font-size: 16px; /* Increase size for list items */
    }
}

/* Ensure consistent padding and width for mobile devices */
@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 32px); /* 16px padding on each side for small screens */
        height: 60vh; /* Slightly smaller height for phones */
        padding-left: 16px; 
        padding-right: 16px; 
        max-height: 75vh; /* Max height for phones */
    }
}

/* Close button styling */
.close-button {
    color: #aaa; 
    position: absolute; /* Keep it fixed within modal-content */
    top: 4px; /* Position from the top */
    left: 6px; /* Position from the left */
    font-size: 28px; 
    font-weight: bold;
}

.close-button:hover, .close-button:focus {
    color: black; 
    text-decoration: none; 
    cursor: pointer;
}
