body .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1em; /* Added padding to prevent content from touching the edges */
}


.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 90%; /* Adapt width for better responsiveness */
    max-width: 640px; /* Maximum width */
    max-height: 90%; /* Maximum height for modal content */
    box-sizing: border-box; /* Include padding and border in the width */
    overflow-y: auto; /* Enable vertical scrolling */
}

.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
}

.close-button:hover {
    background-color: darkgray;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Make sure this is above other content but below modal windows */
}

.loading-content {
    padding: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.loading-content span {
    font-size: 16px;
    color: #333;
}

.job-description {
    margin: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevents content from spilling out */
}

.job-description h3 {
    color: #2A4C8B; /* Dark blue color */
    margin-top: 20px;
}

.job-description p {
    margin-left: 10px; /* Adjusted for smaller screens */
    font-size: 14px; /* Smaller font size for better readability on small devices */
    text-align: justify;
    overflow-wrap: break-word; /* Ensures text breaks properly to avoid overflow */
}

@media (max-width: 768px) { /* Adjustments for tablets and mobile devices */
    .modal-content {
        width: 95%; /* Slightly larger width for smaller devices */
        padding: 15px;
    }

    .job-description p {
        font-size: 13px; 
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        padding: 10px;
    }

    .job-description p {
        font-size: 12px;
        margin-left: 5px;
    }
}

#copyButton {
    width: 30%;
    height: 100%;
    color: #FFFFFF;
	background-color: #1B74E4;
	transition: .4s;
	border-radius: 5px;
	border: unset;
	cursor: pointer;
    font-size: 14px;
}

#successMessage {
    display: none; /* Initially hidden */
}

.success-message-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: fixed; /* Use fixed to keep it centered on the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the div */
    z-index: 1000; /* Ensure it appears above other content */
    animation: fadeIn 0.8s ease-out;
}

.success-message-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-message-text {
    font-size: 18px;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 30px;
}

.success-message-icon {
    font-size: 50px;
    color: #007BFF;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.success-message-button {
    display: inline-block;
    padding: 12px 30px;
    background: #007BFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.success-message-button:hover {
    background: #0061c9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

.success-message-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.1) 0%, transparent 70%);
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%); /* Adjust transform for animation */
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.success-message-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 999; /* Below the success message but above other content */
}