/* creds.css
 * Styles for the credits section and modal popups
 * Includes responsive adjustments for different screen sizes
 */

/* Fixed-position credits bar at the bottom of the screen */
div.credits-container {
    position: fixed;
    left: 30%;
    right: 30%;
    bottom: 1%;
    z-index: 100;
    text-align: center;
    height: 45px;
    padding-top: 10px;
    background: linear-gradient(rgba(75, 75, 75, 0.43), rgba(87, 87, 87, 0.34)) !important;
    text-shadow: 0 0 20px gray;
    color: white;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(75, 75, 75, 0.43);
    display-model: var(1.3, "");
    /* Add backdrop blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive styles for medium screens (tablets, small desktops) */
@media (max-width: 946px) {
    div.credits-container {
        left: 15%;
        right: 15%;
        font-size: 15px;
    }
}

/* Responsive styles for small screens (phones) */
@media (max-width: 540px) {
    div.credits-container {
        left: 8%;
        right: 8%;
        font-size: 12px;
        padding-top: 12px;
    }
}

p.large-screen { display: block; }

p.small-screen { display: none; }

/* Toggle paragraph visibility based on very small screen width */
@media (max-width: 358px) {
    p.large-screen { display: none; }
    p.small-screen { display: block; }
}

/* Reset position for elements using 'd-block' class */
div.d-block {
    position: static;
}

/* Frosted-glass style modal popup box */
.modal-content {
    margin: 10px 10px 20px;
    padding: 5%;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.27);
}

/* Mobile responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5px;
        padding: 4%;
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
    }

    .modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .modal-content {
        margin: 2px;
        padding: 3%;
        font-size: 14px;
    }

    .modal-dialog {
        margin: 5px;
    }
}

/* Modal header positioning and interaction fix */
.modal-header {
    border: none !important;
    position: absolute;
    right: 2%;
    top: 2%;
    z-index: 999;
    pointer-events: all;
}

/* Customize close button focus outline */
.btn-close:focus {
    outline: 2px solid #007bff; /* Change to a blue outline */
    box-shadow: none;
}

/* Style for main heading in modal */
.modal-content h1 {
    font-size: 40px !important;
    font-weight: bolder;
    margin-top: 0;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
    .modal-content h1 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .modal-content h1 {
        font-size: 24px !important;
    }
}

/* Style for sub-heading in modal */
.modal-content h3 {
    font-weight: bolder;
    margin-top: 50px;
}

/* Responsive sub-heading adjustments */
@media (max-width: 768px) {
    .modal-content h3 {
        font-size: 18px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .modal-content h3 {
        font-size: 16px;
        margin-top: 25px;
    }
}

/* Responsive paragraph text */
@media (max-width: 480px) {
    .modal-content p {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

/* Style for links inside the credits container */
.credits-container a {
    cursor: pointer;
    border-bottom: white solid 1px;
}

/* Style override for LinkedIn profile link */
a.linkedin-plug {
    outline: none;
    cursor: pointer;
    color: #1C75D3;
}

/* Gradient effect on Instagram handle */
a.instagram-plug {
    cursor: pointer;
    outline: none;
    background: linear-gradient(45deg, #C13584, #F77737);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
