.popup {
    display: flex;
    z-index: 9999;
}
.popup.hidden {
    display: none;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: #ff5252;
    border: none;
    border-radius: 50%;  
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .close-popup {
        top: -10px;
        right: 0px;
    }
}

.close-popup:hover {
    transform: scale(1.2);
    background-color: #ff1744;
}

.close-popup:active {
    transform: scale(0.9);
    background-color: #d50000;
}

.popup-tooltip {
    color: #282626;
    padding: 8px;
    border-radius: 5px;
    font-size: 1em;
    white-space: normal;  /* Allows text wrapping */
    text-align: left;
}

/* Social Row Container */
.social-row {
    /* General positioning */
    position: absolute;
    height: 50px;
    width: auto;
    display: flex;
    left: 30px;
    top: 20px;
    /* coloring */
    gap: 5px;
}
@media (max-width: 768px) {
    .social-row  {
        height: 20px;
        width: auto;
        left: 10px;
        top: 10px;
    }
}
/* Social Icons Style */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5; /* Minimalistic background */
    color: #333; /* Neutral icon color */
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.705); /* Subtle shadow for modern look */
}
@media (max-width: 768px) {
    .social-icon  {
        width: 30px;
        height: 30px;
    }
}
/* Hover Effects */
.social-icon:hover {
    transform: scale(1.1); /* Slight zoom effect */
    color: #fff; /* Icon color on hover */
}

.social-icon.facebook:hover {
    background-color: #3b5998;
}

.social-icon.twitter:hover {
    background-color: #1da1f2;
}

.social-icon.instagram:hover {
    background-color: #e4405f;
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
}

.social-icon.pinterest:hover {
    background-color: #bd081c;
}

.popup-content {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    width: 100%; /* Full width of the container */
    height: auto; /* Let content define height */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgb(255, 255, 255);
    overflow: hidden; /* Prevent overflow */
    border: solid;
    border-width: 10px;
    border-color: #000000;
    background-color: #d8d8d8;
}
@media (max-width: 768px) {
    .popup-content {
        flex-direction: column; /* Stack all sections vertically */
        height: fit-content;
        margin: 10px;
        border: solid;
        border-width: 2px;
        border-color: #000000;
    }
}
.top-row {
    display: flex; /* Row layout for image and middle panel */
    width: 100%; /* Full width of the container */
    flex-grow: 1; /* Expand to take available height */
}
@media (max-width: 768px) {
    .top-row {
        flex-direction: column; /* Row layout for image and middle panel */
        width: 100%; /* Full width of the container */
        flex-grow: 1; /* Expand to take available height */
        
    }
    ::-webkit-scrollbar {
        display: none; /* For WebKit browsers like Chrome, Safari */
    }
}
.image-section {
    flex: 7; /* 80% width of the top row */
    display: flex; /* Center the image */
    justify-content: center;
    align-items: center;
    background: #ffffff; /* Optional background color */
}

.image-section img {
    margin: 20px;
    max-width: 100%; /* Scale image proportionally to container */
    max-height: 100%; /* Ensure it doesn't exceed the available space */
    object-fit: contain; /* Prevent image distortion */
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.middle-panel-section {
    flex: 2; /* 20% width of the top row */
    padding: 20px; /* Add spacing around the content */
    background: #ffffff; /* Optional background color */
    overflow-y: auto; /* Scrollable if content overflows */
}

.bottom-panel-section {
    border: none;
    border-color: white;
    display: flex;
    flex-direction: row;
    width: 100%; /* Full width of the container */
    background: #ffffff; /* Optional background color */
    padding: 20px; /* Add spacing around the content */
    text-align: center; /* Center align the content */
}

.popup-tags-container {
    gap: 3px;
}

.popup-tag-button {
   background-color: #1100ff17;   
   color: rgb(134, 134, 134);
   border: none;
   border-radius: 5px;
   padding: 5px 10px;
   margin: 2px;
   font-size: 0.9em;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.popup-tag-button:hover {
    background-color: #f03c3ccf;
    color: rgb(255, 255, 255);
}

.popUpdate {
    position: relative;
    font-size: 12px;
    color: #474646;
    margin: 5px 0;
    text-align: right;
  }
.file_format-container{
    position: relative;
    font-size: 12px;
    color: #474646;
    margin: 5px 0;
    text-align: right;
}
.commercial-use-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9; /* Subtle light background */
    color: #333; /* Neutral dark text color */
    border-radius: 10px; /* Rounded corners */
    padding: 10px 20px; /* Padding around the text */
    margin: 10px; /* Spacing around the banner */
    font-family: 'Roboto', sans-serif; /* Clean, modern font */
    font-size: 12px; /* Adjust font size */
}
@media (max-width: 768px) {
    .commercial-use-banner{
        width: 100px;
    }
}
.commercial-use-banner p {
    margin: 0; /* Remove extra margin from the <p> tag */
    font-weight: bold; /* Bold text */
    text-align: center; /* Center the text */
}

.commercial-use-banner a {
    color: #ecc21a; /* Link color */
    font-weight: bold; /* Emphasize the link */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Smooth hover effects */
}

.commercial-use-banner a:hover {
    color: #b77502; /* Change color on hover */
    text-shadow: 0 4px 6px rgba(255, 255, 255, 0.5); /* Add glow effect */
    text-decoration: underline; /* Add underline on hover */
}
/* Free download Button Styling */
.popup-download { 
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #c5fa70, #04e94993); /* Gradient background */
    color: #3b3b3b; /* Text color */
    border-radius: 10px; /* Rounded corners */
    padding: 10px 20px; /* Padding around the text */
    margin: 10px; /* Spacing around the banner */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    font-family: 'Roboto', sans-serif; /* Clean, modern font */
    font-size: 12px; /* Adjust font size */
}
.popup-download:hover {
    transform: scale(1.05);
    background-color: #d9ff00;
    color: #044691;
}
/* Container styling */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Base styling for the main link */
.popup-download {
    text-decoration: none;
    color: #007BFF; /* Link color */
    font-weight: bold;
}

/* Tooltip styling */
.tooltip {
    display: none;
    position: absolute;
    left: 80%; /* Center horizontally */
    top: -55%; /* Position below the main link */
    transform: translateX(-50%);
    background-color: #222; /* Dark background for contrast */
    color: #fff; /* White text for readability */
    padding: 10px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: lighter;
    width: 300px; /* Optional: Set a max width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it stays above other elements */
}

/* Show tooltip on hover or focus */
.tooltip-container:hover .tooltip,
.tooltip-container:focus-within .tooltip {
    display: block;
}

/* Styling for clickable links inside the tooltip */
.tooltip a {
    color: #FFD700; /* Highlighted link color */
    text-decoration: underline;
}

.tooltip a:hover {
    text-decoration: none;
}



