/**
 * Plugin Name:     Wowbiz: portagon
 * Plugin URI:      https://nxiglobal.com/
 * Description:     portagon widgets for Avada PageBuilder
 * Author:          Felix Erdmann & NXI GmbH & Co. KG
 * Author URI:      https://wowbiz.de/
 * Text Domain:     wowbiz-portagon
 * Domain Path:     /languages
 */


/**
 * PTW
 */
.ptw {
    border: 1px solid #e9ebec;
    border-radius: 15px;
    padding: 34px 29px 46px;
    font-family: Nunito;
    background-color: #F4F5F5;
}

.ptw__headline {
    color: #293647 !important;
    font-size: 23px !important;
    margin-bottom: 31px !important;
    font-family: Nunito !important;
    font-weight: bold !important;
}

.ptw__wrapper {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}

.ptw__row {
    display: flex;
    flex: 1 0 auto;
    margin-bottom: 25px;
}

.ptw__row:last-child {
    margin-bottom: 0;
}

.ptw__row--spaceless {
    /*margin-bottom: 14px;*/
    margin-bottom: 0;
}

.ptw__col {
    display: flex;
    align-items: flex-end;
    width: 50%;
}

.ptw__label {
    font-size: 18px;
    font-weight: lighter;
    color: #293647;
}

.ptw__value {
    font-size: 22px;
    font-weight: bold;
    color: #293647;
}

.ptw__value--big {
    font-size: 50px;
    line-height: 50px;
}

.ptw__col--right {
    justify-content: flex-end;
}


.ptw__progress_bar {
    width: 100%;
    height: 24px;
    border-radius: 8px;
    background-color: #e7b23e;
    margin-top: 16px;
    overflow: hidden;
}

.ptw__progress_bar--active {
    display: inline-block;
    height: 100%;
    background-color: #7195C7;
}

.ptw__button {
    width: 100%;
    background-color: #8cd148;
    color: white;
    font-size: 30px;
    text-align: center;
    border-radius: 10px;
    line-height: 80px;
    margin-top: 20px;
    transition: 0.5s;
}

.ptw__button:hover {
    box-shadow: 0 10px 20px hsla(300, 15%, 25%, 0.3);
    color: white;
}

.ptw__button--green {
    background-color: #8cd148;
}

.ptw__button:hover {
    box-shadow: 0 10px 20px hsla(300, 15%, 25%, 0.3);
    color: white;
}

.ptw__button--blue {
    background-color: #7195C7;
}

@media (max-width: 480px) {
    .ptw__value--big {
        font-size: 32px;
        white-space: nowrap;
    }
}


/**
 * PCW
 */
.pcw {
    display: flex;
    font-family: Nunito;
    color: #293647;
    flex-direction: column;
    padding: 30px;
    font-size: 16px;
    background-color: #F4F5F5;
    box-shadow: 0px 3px 30px #00000066;
    border-radius: 10px;
    border: 1px solid #E9EBEC;
}

.pcw__row {
    display: flex;
}

.pcw__col {
    display: flex;
    flex-direction: column;
}

.pcw__col--center {
    align-items: center
}

.pcw__col--bottom {
    justify-content: flex-end;
}

.pcw__col--2 {
    flex: 1 1 50%;
}

.pcw__col-2-3 {
    flex: 1 1 66.666%;
}

.pcw__col-2-3 .pcw__row {
    justify-content: space-between;
    align-content: center;
}

.pcw__col-1-3 {
    flex: 1 1 33.333%;
}

.pcw__main-info {
    padding-left: 16px;
}

.pcw__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.pcw__project_type {
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.pcw__project_type img {
    margin-right: 5px;
}

.pcw__project_name {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.4;
}

.pcw__project_subtitle {
    color: #293647CC;
}

.pcw__project_description {
    margin: 1.1em 0;
}

.pcw__row:nth-child(2) {
    margin-top: 55px;
}

.pcw__col-2-3 .pcw__row:nth-child(2) {
    margin-top: 20px;
}

.pcw__label {
    /*font-size: 18px;*/
    /*font-weight: lighter;*/
    /*color: #293647;*/
}

.pcw__value {
    font-size: 22px;
    margin-top: 7px;
    font-weight: 600;
}

.pcw__value--big {
    font-size: 2em;
    font-weight: 800;
}

.pcw__button {
    display: block;
    width: 90%;
    background: #8CD148 0 0 no-repeat padding-box;
    border-radius: 5px;
    text-align: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
}

.pcw__button:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .pcw {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .pcw {
        font-size: 12px;
    }

    .pcw__project_type_icon {
        height: 14px;
        width: 14px;
    }

    .pcw__row {
        flex-direction: column;
    }

    .pcw__main-info {
        padding: 15px 0 0 0;
    }

    .pcw__col-mobile {
        flex-direction: row;
    }

    .pcw__row:nth-child(2) {
        margin-top: 10px;
    }

    .pcw__button {
        margin-top: 10px;
    }
}

/**
 * PSW
 */
.psw {
    font-family: Nunito;
    color: #e9ebec;
    background-color: #293647;
    padding: 60px 15px;
    font-size: 23px;
    justify-content: center;
}

.psw__heading {
    font-size: 50px;
    color: #e9ebec !important;
    margin-bottom: 0;
    font-weight: 400;
}

.psw__header {
    text-align: center;
}

.psw__subheading {
    margin-top: 10px;
}

.psw__stacks {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.psw__stack {
    width: 100%;
}

.psw__stack_chart-wrapper {
    height: 200px;
    display: flex;
    align-items: flex-end;
}

.psw__stack_chart {
    height: 100%;
    min-height: 2px;
    width: 60%;
    border-radius: 10px 10px 0 0;
    background-color: #e9ebec;
    text-align: center;
    margin: 0 auto;
}

.psw__stack:last-child .psw__stack_chart {
    color: #669933;
    background-color: #669933;
}

.psw__stack_chart span {
    margin-top: -40px;
    transition: all 1s ease-out;
    display: block;
    font-weight: bold;
}

.psw__stack_description {
    border-top: 1px solid #707070;
    text-align: center;
}

.psw__stack_description > div {
    color: #fff;
    margin: 20px 0;
    font-weight: bold;
    word-break: break-word;
    hyphens: auto;
}

.psw__stack_description > p {
    line-height: 1.1;
}


.psw__range-wrap {
    position: relative;
    width: 100%;
    padding: 2em 0; /*  Giving more room for hover  */
}

.psw__range-wrap::before {
    content: "";
    background: var(--background);
    width: 100%;
    height: 20px;
    display: block;
    position: absolute;
    border-radius: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 100ms ease;
}

.psw__range {
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.psw__range-bubble {
    background: white;
    position: absolute;
    border-radius: 20px;
    width: 150px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Remove pointer events on Bubble so user can click on the actual thumb beaneath it!  */
    color: black;
    display: grid;
    place-items: center; /*  Place the number on the center  */
    font-weight: bold;
    transition: color 100ms ease, transform 100ms ease;
    user-select: none; /*  Prevent Accidentally highlighting the number while sliding the cursor  */
}

.psw__text--center {
    text-align: center;
}

.psw__footnotes {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    width: 100%;
}

@media (max-width: 1024px) {
    .psw {
        font-size: 18px;
    }

    .psw__heading {
        font-size: 36px;
    }

    .psw__stacks {
        margin-top: 70px;
    }

    .psw__stack {
        width: 75%;
    }

    .psw__range-bubble {
        width: 100px;
    }

    .psw__range-wrap::before {
        height: 15px;
    }
}

@media (max-width: 600px) {
    .psw {
        font-size: 14px;
    }

    .psw__heading {
        font-size: 30px;
    }

    .psw__stack_chart-wrapper {
        margin-top: 40px;
        height: 160px;
    }

    .psw__stack {
        width: 85%;
    }

    .psw__footnotes {
        font-size: 12px;
    }

    .psw__range-bubble {
        width: 60px;
        height: 25px;
    }

    .psw__range-wrap::before {
        height: 12px;
    }
}


.ptblw__button {
    color: #E7B23E;
}

.ptblw__button--success {
    color: #8CD148;
}
