/*
Theme Name: CLP Wellbeing Index (A)
Description: Theme for the "Wellbeing Index" Web App, based on Wordpress. A child theme of Avada Theme
Author: m:gnu
Author URI: https://www.mgnu.net/
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/* Custom lists */

fieldset {
    width: 100%;
}

li {
    list-style: none;
}

.list-group-item {
    padding: 0 0 0 0.5rem !important;
    border: none !important;
}

/* Silhouette */
.wireframe-3d-wrapper {
    width: 200px;
    height: 200px;
    margin: 4% auto;
    perspective: 800px;
    position: relative;
}

/* Container that rotates around the vertical axis */
.wireframe-3d-rotator {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: wireframe-rotate 8s linear infinite;
}

/* Panels with silhouettes */
.wireframe-3d-figure {
    position: absolute;
    inset: 0;
/*    background-image: url('/wp-content/themes/clp-welidx-a/assets/imgs/clp-silhouette-spiral-placeholder-500x400.png');*/
    background-image: url('/wp-content/themes/clp-welidx-a/assets/imgs/Spirale.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: center center;
}

/* First panel: front */
.wireframe-3d-front {
    transform: rotateY(0deg);
    animation: wireframe-front-fade 8s linear infinite;
}

/* Second panel: intersecting, orthogonal but always vertical */
.wireframe-3d-cross {
    transform: rotateY(90deg);
    animation: wireframe-cross-fade 8s linear infinite;
}

/* Rotation of the entire block (0° → 360°) */
@keyframes wireframe-rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Front panel fading:
   - most visible around 0° and 180°
   - least visible around 90° and 270°
*/
@keyframes wireframe-front-fade {
    0% {
        opacity: 1;
    }
    15% {
        opacity: 0.9;
    }
    25% {
        opacity: 0.4;
    }
    35% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3; /* slightly visible even halfway through the turn */
    }
    65% {
        opacity: 0.1;
    }
    75% {
        opacity: 0.4;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

/* Orthogonal panel fading:
   - most visible around 90° and 270°
   - least visible around 0° and 180°
*/
@keyframes wireframe-cross-fade {
    0% {
        opacity: 0.1;
    }
    15% {
        opacity: 0.4;
    }
    25% {
        opacity: 0.9;
    }
    35% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    65% {
        opacity: 1;
    }
    75% {
        opacity: 0.9;
    }
    85% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.1;
    }
}

/* Buttons */

div.btn-submit {
    display: inline-flex;
    width: 100%;
    margin: 0 auto;
    padding: 0 20%;
    text-align: center;
}

.clp-btn {
    cursor: pointer;
    font-family: var(--button_typography-font-family);
    font-weight: var(--button_typography-font-weight);
    font-style: var(--button_typography-font-style,normal);
    letter-spacing: var(--button_typography-letter-spacing);
    text-transform: var(--button_text_transform);
    text-decoration: none;
    border: none;
    box-shadow: none !important;
    border-radius: 10px !important;
    outline: none;
}

.clp-btn-availability {
    width: 100%;
    margin: 29px 0 0 0 !important;
    padding: 0;
    line-height: 17px;
    font-size: 14px;
    text-transform: uppercase;
}

.clp-btn-medium {
    width: 50%;
    padding: 13px 29px;
    line-height: 17px;
    font-size: 14px;
    text-transform: uppercase;
}

.clp-btn-large-flex {
    display: flex;
}

.clp-btn-large,
.clp-btn-large-flex {
    width: 100%;
    padding: 13px 29px;
    line-height: 17px;
    font-size: 14px;
    text-transform: uppercase;
}

.clp-btn-square {
    display: flex;
    height: 100px;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.clp-btn-default {
    transition: all .2s ease;
    color: var(--awb-color6);
    /*background-image: linear-gradient(90deg, var(--awb-color4), #5a8d9e, #4f7684, #44606b, var(--awb-color2));*/
    background-image: linear-gradient(var(--button_gradient_angle, 90deg), var(--button_gradient_top_color) var(--button_gradient_start, 0%), var(--button_gradient_bottom_color) var(--button_gradient_end, 100%));
}
.clp-btn-default:hover {
    color: var(--awb-color2);
    background-image: none;
    background-color: var(--awb-color3);
}

.clp-btn-new-search {
    transition: all .2s ease;
    color: var(--awb-color6);
    background-color: var(--awb-color7);
}
.clp-btn-new-search:hover {
    color: var(--awb-color2);
    background-color: var(--awb-color3);
}

.clp-btn-new-visit {
    transition: all .2s ease;
    color: var(--awb-color6);
    background-color: var(--awb-color4);
}
.clp-btn-new-visit:hover {
    color: var(--awb-color2);
    background-color: var(--awb-color3);
}

.clp-btn-edt-visit {
    transition: all .2s ease;
    color: var(--awb-color2);
    background-color: var(--awb-color3);
}
.clp-btn-edt-visit:hover {
    color: var(--awb-color6);
    background-color: var(--awb-color4);
}

.clp-btn-txt-centered {
    margin: 0 auto;
    text-align: center;
}

/* Custom Forms */

select#avb {
    width: 100%;
}

.clp-margins-tb {
    margin: 10px 0;
}
