
/* ===========================================
4. Pop-up
=============================================================== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000; 
}

.popup-content {
  position: relative;
  margin: 10% auto;
  width: 100%;
  max-width: 700px;
  height: auto;
  text-align: center;
  opacity: 0;
  transform: scale(0.7);
  animation: zoomIn 0.8s forwards ease-out; 
  border: 4px solid #18d26e;
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------------------
Laptop and larger screens 
-------------------------------------------------------*/
@media (min-width: 1401px) {
    .popup-content {
        max-width: 50%;
        margin: 7.9% auto;
        height: 63.7%;
    }

    .popup-content iframe {
        height: 433px;
    }
}

@media (max-width: 1400px) {
    .popup-content {
        max-width: 49.6%;
        margin: 7.9% auto;
        height: 63%;
    }

    .popup-content iframe {
        height: 385px;
    }
}

/* -------------------------------------------
  Nest Hub Max 
  --------------------------------------------------------- */
@media (max-width: 1300px) and (max-height: 800px) {
    .popup-content {
        max-width: 65%;
        margin: 12% auto;
        height: 58.6%;
    }

    .popup-content iframe {
        height: 462px;
    }
}

/* ------------------------------------------
  Nest Hub 
  --------------------------------------------------------- */
@media (max-width: 1100px) and (max-height: 620px) {
    .popup-content {
        max-width: 68%;
        margin: 10% auto;
        height: 65.7%;
    }

    .popup-content iframe {
        height: 387px;
    }
}

/* ------------------------------------------
    Tablet - iPad Pro 
  --------------------------------------------------------- */
@media (max-width: 1100px) and (min-height: 1300px) {
    .popup-content {
        max-width: 84%;
        margin: 30% auto;
        height: 35.5%;
    }

    .popup-content iframe {
        height: 477.5px;
    }
}

/* ------------------------------------------
  Tablet - Surface Pro 7 
  -------------------------------------------------------- */

@media (max-width: 1000px) and (min-height: 1300px) {
    .popup-content {
        max-width: 85%;
        margin: 30% auto;
        height: 32%;
    }

    .popup-content iframe {
        height: 430px;
    }
}

/* ------------------------------------------
  Tablet - Asus Zenbook Fold
  -------------------------------------------------------- */
@media (max-width: 900px) {
    .popup-content {
        max-width: 84.7%;
        margin: 30% auto;
        height: 32.4%;
    }

    .popup-content iframe {
        height: 406px;
    }
}

/* ------------------------------------------
  Tablet - iPad Air 
  -------------------------------------------------------- */
@media (max-width: 850px) {
    .popup-content {
        max-width: 84.7%;
        margin: 30% auto;
        height: 33.3%;
    }

    .popup-content iframe {
        height: 385px;
    }
}

/* --------------------------------------------------
  Tablet - IPad Mini 
  ---------------------------------------------------------------*/
@media (max-width: 800px) {
    .popup-content {
        max-width: 90.2%;
        margin: 25% auto;
        height: 38.4%;
    }
}

/* --------------------------------------------------
  Mobile - 
  --------------------------------------------------------------*/
@media (max-width: 767px) {
    .popup-content {
        max-width: 80%;
        margin: 20% auto;
        height: 28.5%;
    }

    .popup-content iframe {
        max-height: 315px;
    }
}

/* ----------------------------------------------------
Tablet - Surface Duo
---------------------------------------------------------------*/

@media (max-width: 576px) {
    .popup-content {
        max-width: 80%;
        margin: 15% auto;
        height: 34%;
    }

    .popup-content iframe {
        max-height: 238px;
    }
}

/* --------------------------------------------------
  Mobile - iPhone 14 Pro Max 
  --------------------------------------------------------------*/
@media (max-width: 440px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 24.35%;
    }

    .popup-content iframe {
        max-height: 220px;
    }
}

/* -------------------------------------------------
  Mobile - iPhone XR 
  ------------------------------------------------------------*/
@media (max-width: 420px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 24%;
    }

    .popup-content iframe {
        max-height: 206px;
    }
}

/* -------------------------------------------------
  Mobile - Pixel 7
  ------------------------------------------------------------*/
@media (max-width: 413px) and (max-height: 920px) {
    .popup-content {
        max-width: 86%;
        margin: 40% auto;
        height: 22.1%;
    }

    .popup-content iframe {
        max-height: 195px;
    }
}

/* ------------------------------------------------
  Mobile - iPhone 12 Pro
  ---------------------------------------------------------- */
@media (max-width: 400px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 23.8%;
    }

    .popup-content iframe {
        max-height: 193px;
    }
}

/* ------------------------------------------------
  Mobile - iPhone SE 
  -----------------------------------------------------------*/
@media (max-width: 380px) {
    .popup-content {
        max-width: 90%;
        margin: 30% auto;
        height: 29%;
    }

    .popup-content iframe {
        max-height: 186px;
    }
}

/* ------------------------------------------------
  Mobile - Galaxy S8 | S8+
  -----------------------------------------------------------*/
@media (max-width: 360px) and (max-height: 750px) {
    .popup-content {
        max-width: 90%;
        margin: 40% auto;
        height: 25.1%;
    }

    .popup-content iframe {
        max-height: 178px;
    }
}

/* ------------------------------------------------
  Mobile - Oppo Reno 8 
  -----------------------------------------------------------*/
@media (max-width: 360px) and (max-height: 715px) {
    .popup-content {
        max-width: 90%;
        margin: 30% auto;
        height: 26.3%;
    }

    .popup-content iframe {
        max-height: 178px;
    }
}

/* ----------------------------------------------
  Mobile - Galaxy Z Fold 5 
  ---------------------------------------------------------*/
@media (max-width: 350px) {
    .popup-content {
        max-width: 90.2%;
        margin: 40% auto;
        height: 20.1%;
    }

    .popup-content iframe {
        max-height: 170px;
    }
}