@charset "utf-8";
/* CSS Document */

#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    height: 100%;
    width: 100%;
}

.modalPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 100%;
    height: 100%;
    padding: 20px;
    border-radius: 0;
    -webkit-box-shadow: 0 2px 10px 3px rgba(0,0,0,.2);
    -moz-box-shadow: 0 2px 10px 3px rgba(0,0,0,.2);
    box-shadow: 0 2px 10px 3px rgba(0,0,0,.2);
    overflow-y: auto;
    box-sizing: border-box;
}

.modalContent {
    padding: 2em;
    overflow-y: auto;
    height: 100%;
}

.headerBar {
    width: 100%;
    background: #edcb04 url(http://cognex.com/gfx/site/bg-global-header.png) repeat-x 0 0;
    margin: 0;
    text-align: center;
    padding: 15px 0;
}

.headerBar img {
    margin: 1em .7em;
}

h1 {
    margin-bottom: .2em;
    font-size: 26px;
    text-transform: capitalize;
}

p {
    margin: .75em 0 1.5em;
}

.buttonStyle {
    border: transparent;
    border-radius: 0;
    background: #6d6d6d;
    color: #eee !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 6px 25px;
    text-decoration: none;
    background: -moz-linear-gradient(top, #6d6d6d 0%, #1e1e1e 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6d6d6d), color-stop(100%,#1e1e1e));
    background: -webkit-linear-gradient(top, #6d6d6d 0%,#1e1e1e 100%);
    background: -o-linear-gradient(top, #6d6d6d 0%,#1e1e1e 100%);
    background: -ms-linear-gradient(top, #6d6d6d 0%,#1e1e1e 100%);
    background: linear-gradient(to bottom, #6d6d6d 0%,#1e1e1e 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6d6d6d', endColorstr='#1e1e1e',GradientType=0 );
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.buttonStyle:hover {
    background: #1e1e1e;
    color: #fff;
}

.returnToProfile {
    text-align: center;
    margin: 3em;
}

.returnToProfile a, .returnToProfile a:visited {
    color: #ddd;
}

.returnToProfile a:hover {
    color: #fff;
}

/* Close Button Styling */
.closeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}

.closeButton:hover {
    color: #333;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .modalPopup {
        width: 100%;
        height: 100%;
        padding: 2px;
    }

    h1 {
        font-size: 22px; /* Smaller font for mobile screens */
    }

    .buttonStyle {
        font-size: 12px; /* Smaller button font on mobile */
        padding: 6px 20px; /* Adjust button padding */
    }
}

@media (max-width: 480px) {
    .modalPopup {
        width: 100%;
        height: 100%;
        padding: 2px;
    }
    
@media (max-width: 240px) {
    .modalPopup {
        width: 100%;
        height: 100%;
        padding: 2px;
    }

    h1 {
        font-size: 20px; /* Further reduce the font size for small screens */
    }

    .buttonStyle {
        font-size: 12px; /* Keep button font smaller */
        padding: 5px 15px; /* Adjust button padding for small screens */
    }
}

/* Media Query for Laptop/Desktop (Max 70% of Screen) */
@media (min-width: 769px) {
    .modalPopup {
        width: 50%;
        height: 100%;
        padding: 2px;
    }

    h1 {
        font-size: 26px; /* Keep the font size large for desktop */
    }

    .buttonStyle {
        font-size: 14px; /* Maintain button font for larger screens */
        padding: 8px 25px; /* Adjust button padding */
    }
}
