

/******************* POP UP CREATION NOUVELLE QUESTION ******************/



.popup-new-question-wrapper{
    position: fixed;
    background-color: rgba(120,142,159,0.8);
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    align-content: center;
    top:0;
    left:0;
    z-index:2000;
    transition: all 0.3s;
}

.popup-new-question-content {
    padding: 40px;
    width: 100%;
}

.popup-new-question-background-click{
    position: absolute;
    width: 100vw;
    height: 100vh;
    top:0;
    left:0;
    z-index:2001;
}
.popup-new-question-inner{
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
    z-index:2002;
    position: relative;
    width:503px;
    min-height: 275px;
    border-radius: 15px;
    background-color: white;
    max-height: 100%;
}

.popup-new-question-close{
    cursor: pointer;
    width:21px;
    height:21px;
    border: solid 2px white;
    border-radius: 10px;
    background-color: #17DA87;
    top:-10px;
    right:-10px;
    position: absolute;
    content: url(../img/form/icons/cross.svg);
    padding: 4px;
}

.popup-new-question-mood-wrapper{
    display: flex;
    flex-wrap:wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 85%;
    margin: 0 auto 30px auto;
}


.popup-new-question-content h2 {
    margin-bottom: 0;
    margin-top: 0;
}

.popup-new-question-content h3 {
    margin: 0 0 20px 0;
    color: #8B929B;
    font-weight: 300;
    font-size: 16px;
}

.question-bubble{
    position: relative;
    cursor: pointer;
    width: 90px;
    height: 90px;
    border-radius: 100%;
    margin: 2%;
    padding: 10px;
    background: #F2F2F2;
    display: flex;
    justify-content: center;
    align-items: center;
    animation-name: floating;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.question-bubble:nth-child(1)
{
    margin-top: 50px;
    margin-left: 30px;
    animation-delay:2s;
}
.question-bubble:nth-child(3)
{
    margin-top: 50px;
    margin-right: 30px;
    animation-delay:0.3s;
}
.question-bubble:nth-child(5)
{
    margin-top: -35px;
    animation-delay:0.5s;
}
.question-bubble:nth-child(7)
{
    margin-left: 30px;
    animation-delay:1s;
}
.question-bubble:nth-child(8)
{
    margin-top: -30px;
    animation-delay:0.2s;
}
.question-bubble:nth-child(9)
{
    margin-right: 30px;
    animation-delay:3.1s;
}

@keyframes floating {
    from { transform: translate(0,  0px); }
    20%  { transform: translate(2px, 2px); }
    40%  { transform: translate(0px, 4px); }
    60%  { transform: translate(3px, 5px); }
    80%  { transform: translate(0px, 4px); }
    to   { transform: translate(0px, 0px); }
}

.question-bubble.selected .question-bubble-title{
    display: block;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 12px;
    padding: 1px 5px;
    z-index: 2;
}
.question-bubble-title{
    display: none;
    position: absolute;
    left: 65%;
    top: 0;
    background-color: #17DA87;
}
.question-bubble.selected {
    background-color:#FFF;
    box-shadow: 1px 4px 18px rgb(0 0 0 / 30%);
}

.popup-new-question-types{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 30px;
}
.popup-new-question-types .question-type-image{
    width:62px;
    height:62px;
    background-color:#8B929B;
}
.popup-new-question-types #question-type-choice .question-type-image{

    -webkit-mask: url(/wp-content/themes/opinions-bm/img/form/icons/choice.svg) no-repeat center;
    mask: url(/wp-content/themes/opinions-bm/img/form/icons/choice.svg) no-repeat center;

}
.popup-new-question-types #question-type-images .question-type-image{
    -webkit-mask: url(/wp-content/themes/opinions-bm/img/form/icons/images.svg) no-repeat center;
    mask: url(/wp-content/themes/opinions-bm/img/form/icons/images.svg) no-repeat center;

}
.popup-new-question-types #question-type-ratings .question-type-image{
    -webkit-mask: url(/wp-content/themes/opinions-bm/img/form/icons/ratings.svg) no-repeat center;
    mask: url(/wp-content/themes/opinions-bm/img/form/icons/ratings.svg) no-repeat center;

}

.popup-new-question-type-icon.question-type {
    cursor: pointer;
}


.popup-new-question-types .question-type.selected {
    color:#17DA87;
}
.popup-new-question-types .question-type.selected .question-type-image{
    fill:#17DA87;
    background-color: #17DA87;
}

.popup-new-question-create{
    display: flex;
    flex-direction: column;
}

.popup-new-question-create-wrapper #question{
    width:100%;
}
.popup-new-question-create-wrapper .choice{
    width:75%;
}
.popup-new-question-create-wrapper  #add-image-button{
    cursor: pointer;
    width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    color: #8B929B;
    height: 100%;
}

.cover-image-add-button {
    height: 100%;
}

.add-image-buton-label {
    width: 200px;
    margin: 10px auto;
}

.popup-new-question-create-wrapper  #add-image-button > img,
.popup-new-question-create-wrapper  .add-image-answer-button img {
    max-height: 50px;
}

label#add-image-button {
    cursor: pointer;
    /* Style as you please, it will become the visible UI component. */
}

#upload-cover-image {
    opacity: 0;
    position: fixed;
    z-index: -1;
}

.cover-image-container {
    width: calc(100% - 80px);
    border: 2px solid #F2F2F2;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    height: 200px;
    padding: 0;
}

.cover-image,
.cover-image > img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.cover-image .popup-new-question-remove {
    top: 10px;
    left: calc(100% - 25px);
}

.popup-new-question-remove{
    cursor: pointer;
    width: 18px;
    height: 18px;
    border: solid 2px #ff3d33;
    border-radius: 10px;
    background-color: white;
    position: absolute;
    left: calc(100% + 10px);
    top: calc(50% - 7px);
    font-size: 20px;
    color: #ff3d33;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-new-question-remove > span {
    width: 7px;
    height: 2px;
    background: #ff3d33;
}

.popup-new-question-create-wrapper .images-answer {
    width:100%;
    height:100%;
}

.popup-new-question-create-wrapper  .add-image-answer-button{
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.popup-new-question-create-wrapper .input-upload-answer-image{
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.popup-new-question-wrapper .image-answer-src img{
    height: 60px;
}

.loading-text {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8B929B;
}

.images-answers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}


.vue-text-input-erase, .popup-new-question-remove-image {
    position: absolute;
    right: 0;
    top: calc(50% - 7px);
    border: 2px solid #4cda87;
    width: 17px;
    height: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 3px;
    cursor: pointer;
}

.popup-new-question-remove-image,
.image-answer-src .popup-new-question-remove {
    left: initial;
    right: 8px;
    top: 8px;
}

.images-answer-container {
    border: 2px solid #f2f2f2;
    min-height: 140px;
    width: calc(50% - 10px);
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
}

.popup-new-question-wrapper .image-answer-src img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-answer-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;
}



.choices-section {
    display: flex;
    margin-bottom: 0px;
}

.choices-container {
    width: calc(100% - 80px);
}

.vue-text-input.choice-input {
    border: 2px solid #F2F2F2F2;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.add-choice-container {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 80px;
}

.add-choice-container img {
    cursor:pointer;
    transform:rotate(0deg);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.add-choice-container img:hover {
    cursor:pointer;
    transform:rotate(90deg);
}

.optional-choice-container {
    position: relative;
}

.images-answers .add-choice-container{
    width: calc(50% - 10px);
    justify-content: center;
    margin: 20px 0 30px 0;
}






.suggested-companies {
    display: none;
}



/* ------------------------------------------------- COMPANY PANEL ------------------------------------------------- */

.popup-new-question-wrapper .my-company,
.company-search .company {
    text-align: left;
}


.popup-new-question-wrapper .company-panel,
.company-search .company {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 3px 10px 0px #00000026;
    padding: 8px 10px;
    margin: 20px 0 25px 0;
    cursor: pointer;
}

.popup-new-question-wrapper .company-name,
.company-search .company .company-name {
    font-size: 14px;
    font-weight: 600;
}

.popup-new-question-wrapper .company-address,
.company-search .company .company-address
{
    font-size: 12px;
}

.popup-new-question-wrapper .company-infos,
.company-search .company .company-infos
{
    line-height: 1.2;
    text-align: left;
}

.popup-new-question-wrapper .popup-new-question-company {
    margin-bottom: 30px;
}


.popup-new-question-wrapper .suggested-companies-search-container {
    margin-top: 20px;
}

.popup-new-question-wrapper .company-panel-change {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #4cda87;
}

.vs-dropdown.visibility-selector {
    max-width: 250px;
}

.visibility-select-container {
    margin-bottom: 30px;
}

.vue-text-input.question-input {
    margin-bottom: 30px;
}




.company-search {
    position: relative;
    min-height: 330px;
}

.company-search-container {
    width: 100%;
    position: relative;
}

.company-search-container > input {
    width: 100%;
    border: none;
    outline: none;
    border-bottom: 2px solid #F2F2F2;
    padding: 20px 10px;
}


.popup-new-question-wrapper .company-search .company-panel {
    margin: 0;
    box-shadow: none;
    border: none;
    border-bottom: 2px solid #F2F2F2;
    border-radius: 0;
}

.company-search .vs-dropdown-menu-container {
    border-radius: 15px;
    border: none;
    padding: 10px;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
}

.company-search.open ul.vs-dropdown-menu {
    position: initial;
    max-height: initial;
    overflow: initial;
    margin: 0px;
}

.company-search .vs-dropdown-menu-container {
    max-height: 0;
}

.company-search ul.vs-dropdown-menu > li {
    border: none;
}

.company-search.open .vs-dropdown-menu-container {
    max-height: 236px;
    overflow-y: auto;
    border: none;
    outline: none;
    background: #FFFFFF;
    padding: 0;
    box-shadow: 0px 3px 10px 0px #00000026;
}
