/*!
 * Custom CSS for Public Welfare
 */

/* Generic */
.medium {
    font-size: 85%;
    font-weight: 400;
}

/* NavBar Custom */
.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 0;
    align-items: center;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper {
    width: 24px;
    display: inline-block;
    text-align: center;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu a::after {
        transform: rotate(-90deg);
        position: absolute;
        right: 6px;
        top: .8em;
    }

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: .1rem;
        margin-right: .1rem;
    }

/* Chat & Help button and widget */
.toggle-chat, .toggle-help {
    position: fixed;
    padding: 0.5rem;
    padding-left: 1rem;
    z-index: 2147483000;
    cursor: pointer;
    border-radius: 30px 8px 30px 30px;
    color: white;
    right: 2vw;
    animation: slidebottomright 3.0s ease;
    border: none;
    outline: none !important;
}

    .toggle-chat:hover, .toggle-help:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }

.toggle-chat {
    bottom: 12vh;
    background-color: #FF9000;
}

.toggle-help {
    bottom: 5vh;
    background-color: #006063;
}

.toggle-text {
    min-width: 6vw;
}

@media (max-width: 768px) {
    .toggle-text {
        display: none !important;
    }
}

#freshworks-frame-wrapper {
    bottom: 11vh !important;
    right: 2vw !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.chat-container {
    padding: 1rem;
    position: fixed;
    bottom: 18vh;
    right: 2vw;
    display: none;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, rgba(255, 240, 173, 1), rgba(255, 209, 182, 1)) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: slidetopright 0.3s ease;
    width: 400px;
    height: 600px;
}

.chat-container-frame {
    border-radius: 10px;
    width: 100%;
    height: 90%;
}

@media (max-width: 768px) {
    .chat-container-frame {
        height: 80%;
    }
}

.chat-container-close {
    border-radius: 10px;
    padding: 0.1rem;
    color: white;
}

@media (max-width: 768px) {
    .chat-container {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999999999;
    }
}

@keyframes slidebottomright {
    0% {
        transform: scale(0);
        transform-origin: top right;
    }

    100% {
        transform: scale(1);
        transform-origin: top right;
    }
}

@keyframes slidetopright {
    0% {
        transform: scale(0);
        transform-origin: bottom right;
    }

    100% {
        transform: scale(1);
        transform-origin: bottom right;
    }
}

/* Login page */
.pw-login-bg {
    background: linear-gradient(to right, rgba(255, 240, 173, 0.5), rgba(255, 209, 182, 0.5)) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@media (min-width: 768px) {
    .pw-login-bg {
        background: url('../../../Images/Platform/images/login_wp_background.png'), linear-gradient(to right, rgba(255, 240, 173, 0.5), rgba(255, 209, 182, 0.5)) !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}

/* Home background */
.pw-home-bg {
    background-image: url('../../../Images/Platform/images/cheerful-colleagues-digital-device-1432942.jpg')
}

.dynamic-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Main card properties */
.pw-card-custom {
    min-height: 77vh;
    max-height: 77vh;
}

    .pw-card-custom > .card-header {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

@media (min-width: 1200px) {
    .container.container-custom {
        max-width: 1500px;
    }
}

/* Category & bonus card properties (pc and mobile) */
.pw-card {
    box-shadow: 0 4px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);
    border-radius: 1.25rem;
    overflow: hidden
}

.img-card-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .img-card-custom {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
    }
}

@media (min-width: 768px) {
    .img-card-custom {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
}

.card-title-custom {
    min-height: 6rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .card-title-custom {
        font-size: 0.8rem;
    }
}

/* Custom col-* (to insert a custom number of elements for each row) */
@media (min-width: 1200px) {
    .col-xl-2-3 {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }

    .col-xl-2-3 {
        position: relative;
        width: 100%;
        min-height: 1px;
        padding-right: 15px;
        padding-left: 15px;
    }
}
