@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --medium_purple: hsl(244, 11%, 50%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
    --button: rgba(133, 133, 168, 95%);
}

body.noscroll {
    overflow: hidden;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#popup-box {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 1000px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

#popup-overlay.active {
    opacity: 1;
}

#popup-overlay.active #popup-box {
    transform: scale(1);
    opacity: 1;
}

#popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 0 4px black;
}

.tg_popup_inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    color: #fff;
    padding: 5%;
}

.tg_popup_img_with_circle {
    position: relative;
    display: inline-block;
}

.tg_popup_img {
    border-radius: 50%;
    border: 8px solid #fff;
    max-width: 100%;
    display: block;
}

.tg_popup_img_with_circle::after {
    content: "";
    position: absolute;
    width: 20%;
    height: 20%;
    background: #373555;
    background: linear-gradient(100deg, rgba(55, 53, 85, 1) 0%, rgba(143, 143, 183, 1) 100%);
    border: 8px solid #fff;
    border-radius: 50%;
    bottom: 5%;
    right: 5%;
    z-index: 1;
}

.tg_popup_text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tg_popup_caption {
    font-size: 4rem;
    line-height: 90%;
    font-weight: 600;
}

.tg_popup_description {
    font-size: 1.3rem;
    font-weight: 300;
}

.tg_popup_button {
    background-color: #fff;
    color: var(--dark_purple);
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-transform: none;
    font-size: 1.3rem;
    letter-spacing: normal;
}

.tg_popup_button:hover {
    background-color: var(--beige);
}

.tg_popup_button img {
    width: 30px;
    height: auto;
}

@media (max-width: 1100px) {
    #popup-box {
        display: block;
    }

    .tg_popup_inner {
        flex-direction: column;
    }

    .tg_popup_img_with_circle {
        width: 325px;
    }

    .tg_popup_text {
        text-align: center;
    }

    .tg_popup_caption {
        font-size: 2rem;
    }
    .tg_popup_description {
        font-size: 1rem;
    }

    .tg_popup_button {
        align-self: center;
    }
}

@media (max-width: 690px) {
    .tg_popup_img_with_circle {
        width: 300px;
    }

    .tg_popup_button {
        width: 250px;
        padding: 0.5rem;
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .tg_popup_img_with_circle {
        width: 250px;
    }
}
