body {
    font-family: 'Work Sans', sans-serif;
    margin: 0;
    padding: 0;
}

#popup-container {
    display: none;
    position: fixed;
    top: 5%;
    left: 4%;
    width: 95%;
    height: 91%;
    background: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

/* 1. Main Popup Container */
#popup-content {
 width: 100%;
max-width: 1500px;
height: 700px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0);
position: relative;

 /* 1. Define the Border Thickness & Radius */
border: 3px solid transparent; /* Must be transparent! */
border-radius: 10px;

/* 2. The Double Background Trick */
background:
 /* Layer 1: The White Background (Restricted to inside the border) */
 linear-gradient(#fff, #fff) padding-box,

/* Layer 2: The Gradient Border (Extends to the edge) */
linear-gradient(90deg, #333333, #5a5a5a) border-box;

 overflow: hidden;
}

/* 2. Top Button Bar */
#button-bar {
  display: flex;
justify-content: flex-end;
align-items: center;
 padding: 0;

/* 1. Define the width and style, but make color TRANSPARENT */
 border-bottom: 2px solid transparent;

 /* 2. Define your Gradient here */
 background-image: linear-gradient(90deg, #333333, #3c3b3b);

 /* 3. This is the key: Tell the background to paint strictly from the edge of the border */
 background-origin: border-box;
 background-clip: border-box;
}


.view-button {
    padding: 10px;
    cursor: pointer;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.view-button img {
    width: 30px;
    height: auto;
    margin-right: 5px;
}

#embed-container {
    position: relative;
    padding-bottom: 0;
    height: 100%;
    overflow: hidden;
}

#embedded-website {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
}

#loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #555;
}

/* Media queries */
@media (max-width: 668px) {
    #popup-content {
        height: 550px;
    }

    #embedded-website {
        height: 550px;
    }

    .view-button span {
        display: none;
    }

    .tablet-button,
    .desktop-button {
        display: none;
    }
}

@media (min-width: 669px) and (max-width: 1080px) {
    #popup-container {
        padding-top: 5%;
    }

    #embedded-website {
        width: 870px;
        height: 700px;
    }

    .desktop-button {
        display: none;
    }
}

@media (min-width: 1081px) {
    #popup-container {
        padding-top: 5%;
    }

    #embedded-website {
        width: 100%;
        height: 100%;
    }
}
