.popup {
    position: fixed;
    bottom: 10%;
    left: 15%;
    width: 70%;
    display: none;
    z-index: 20;
    margin: auto;
    border-radius: 20px;

}

.contentpopupBox {
    position: relative;
    width: 100%;
    height: 550px;
    background: #111;
    background: -moz-linear-gradient(45deg, rgb(0, 141, 229) 0%, rgba(57, 0, 139 ,1) 60%, rgba(21, 0, 77, 1) 70%);
    background: -webkit-linear-gradient(45deg, rgb(0, 141, 229) 0%, rgba(57, 0, 139 ,1) 60%, rgba(21, 0, 77, 1) 70%);
    background: linear-gradient(45deg, rgb(0, 141, 229) 0%, rgba(57, 0, 139 ,1) 50%, rgba(21, 0, 77, 1) 70%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f64600",endColorstr="#f600cd",GradientType=1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.contentpopupBox .contentpopup {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

}

.contentpopupBox .contentpopup h3 {
    font-family: neue-haas-grotesk-display, sans-serif;
    color: #fff;
    line-height: 1.35em;
    font-weight: 500;
    font-size: 1rem;
    padding: 20px 0;
    text-align: left;
    letter-spacing: 0.5px;
}
.contentpopupBox .contentpopup h2 {
    font-family: var(--new-script-font), serif;
    color: #fff;
    background: rgb(249, 184, 107);
    background: linear-gradient(90deg, rgba(249, 184, 107, 1) 0%, rgba(208, 226, 230, 1) 0%, rgba(228, 246, 250, 1) 50%, rgba(208, 226, 230, 1) 100%);
    background: -webkit-linear-gradient(90deg, rgba(249, 184, 107, 1) 0%, rgba(208, 226, 230, 1) 0%, rgba(228, 246, 250, 1) 50%, rgba(208, 226, 230, 1) 100%);
    background: linear-gradient(90deg, rgba(249, 184, 107, 1) 0%, rgba(208, 226, 230, 1) 0%, rgba(228, 246, 250, 1) 50%, rgba(208, 226, 230, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#f64600",endColorstr="#f600cd",GradientType=1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    font-size: 3em;
    line-height: 1.25em;
    text-align: left;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contentpopupBox .contentpopup h2 span {
    font-family: neue-haas-grotesk-display, sans-serif;
    color: #333;
    font-size: 0.75em;
    text-transform: uppercase;
}

.contentpopupBox .contentpopup p {
    font-family: neue-haas-grotesk-display, sans-serif;
    font-weight: 300;
    padding-top: 1rem;
    line-height: 1.25rem;
}

.contentpopupBox .contentpopup a {
    font-family: neue-haas-grotesk-display, sans-serif;
    position: relative;
    display: inline-block;
    padding: 5px 50px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.5s;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.contentpopupBox .contentpopup a:hover {
    color: #fff;

}

.contentpopupBox .img {
    position: absolute;
    left: 3%;
    top: 5%;
}

.contentpopupBox .img img {
    width: 150px;
}

.subcontent {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    gap: 2rem;
}

.subcontent h3 {
    flex: 1;

}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #f3f3f3 url('../icons/close.png') no-repeat center;
    background-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.5s;
    z-index: 30;

}

/* now, make it responsive */

@media (max-width: 1480px) {

    .contentpopupBox .contentpopup {
        text-align: center;
        width: 80%;
        height: auto;
        padding: 120px 20px 80px 20px;
    }
    .contentpopupBox .contentpopup h2 {
        font-size: 2.5rem;
        padding-top: 10px;
        margin: auto;
    }

    .contentpopupBox .contentpopup h3 {
        font-size: 1rem;
        padding-top: 20px;
    }

    .contentpopupBox .img img {
        width: 80px;
    }

    .subcontent {
        display: flex;
        justify-content: center;
        padding-top: 10px;
        gap: 1rem;
    }

    .close {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 767px) {

    .popup {
        z-index: 2000;
        top: 20%;
        bottom: 0;
    }

    .contentpopupBox {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


    .contentpopupBox .contentpopup {
        text-align: center;
        width: 90%;
        height: auto;
        padding: 120px 20px 80px 20px;
    }

    .contentpopupBox .contentpopup h3 {
        font-size: 0.85rem;
        line-height: 1.35;
        padding: 0 0 10px 0;
    }


    .contentpopupBox .contentpopup h2 {
        font-size: 2rem;
        line-height: 1;
        padding-top: 10px;
        margin: auto;
    }

    .contentpopupBox .contentpopup p {
        padding: 20px;
        width: 80%;
        margin: auto;
        text-align: center;
        font-size: 1rem;
    }

    .contentpopupBox .contentpopup a {
        display: block;
        width: 80%;
        font-size: 0.75rem;
    }

    .contentpopupBox .img {
        top: 3%;
        left: 10%;
    }

    .close {
        top: 30px;
        right: 30px;
        width: 30px;
        height: 30px;
        transform: translate(50%, -50%);
        background-size: 10px;
        background: #fff url('../icons/close.png') no-repeat center;
        background-size: 10px;
    }

    .subcontent {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 10px;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    .popup {
        z-index: 2000;
        top: 20%;
        bottom: 0;
    }

    .contentpopupBox {
        height: 500px;
    }

    .contentpopupBox .img {
        top: 5%;
        left: 10%;
    }

    .contentpopupBox .contentpopup {
        text-align: center;
        width: 90%;
        height: auto;
        padding: 10px;
    }

    .contentpopupBox .contentpopup h2 {
        font-size: 1.5rem;
        line-height: 1.15;
        padding-top: 25px;
        margin: auto;
    }

    .contentpopupBox .contentpopup h3 {
        font-size: 0.75rem;
        padding: 0;
    }

    .contentpopupBox .contentpopup a  {
        letter-spacing: 2px;
        width: 100%;
        margin-bottom: 0;
    }
    .subcontent {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }

    .subcontent h3 {
        padding: 0;
    }

    .close {
        width: 30px;
        height: 30px;
        top: 40px;
        right: 40px;
    }
}