/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
.progress-bar {
    background-color: #8c8ac2!Important;
 }
.question-container {
    border: 1px solid #8C8AC2;
    border-radius: 5px;
}
.question-title-container {
    background-color: #F5F7F8;
    color: #1c1b26;
    font-weight: bold;
    border-left: 20px solid #8C8AC2;
    font-size: 14pt;
}
.question-title-container {
    border-radius: 5px 5px 0px 0px;
}
.question-valid-container {
    background-color: #F5F7F8;
    color: #a4a3a8;
    border-left: 20px solid #8C8AC2;
}




.answer-container {
    background-color: #fff;
    border-radius: 0px 0px 5px 5px; 
    padding-top:1.2em;
    padding-bottom:1.2em;
    font-size: 12pt;
}
.question-help-container {
    border-top: 1px solid #F5F7F8;
}
.btn-primary {
    background-color: #8c8ac2!Important;
    border-color: #626087!Important;
}
.btn-primary:hover {
    background-color: #626087!Important;
    border-color: #8c8ac2!Important;
}
 
.btn-primary:active, 
.btn-primary.active {
    background-color: #626087!Important;
    border-color: #626087!Important;
}
    
.fruity .text-info {
  color: #adb5bd!Important;
}
 
/* colors of active radio-buttons, checkboxes */
    .radio-item label::before {
        border-color: black;
    }
 
    .radio-item input[type="radio"]:checked + label::before {
        border-color: #8c8ac2;
    }
 
    .radio-item input[type="radio"]:checked + label::after {
        background: #8c8ac2;
    }
 
    .checkbox-item label::before {
        border-color: black;
    }
 
    .checkbox-item input[type="checkbox"]:checked + label::before {
        border-color: #8c8ac2;
    }
 
    .checkbox-item input[type="checkbox"]:checked + label::after {
        background: #8c8ac2;
    }
/*Широка кнопка "далі"*/   
#ls-button-submit {
    width: 50%;
}

/*мобільний = відповіді з картинкам в 2 стовпчики*/
@media (max-width: 768px) {
  .answer-container.col-12 ul.list-unstyled {
    display: flex;
    flex-wrap: wrap;
  }

  /* Вибір лише тих li, які містять зображення */
  .answer-container.col-12 ul.list-unstyled li:has(img) {
    width: 48% !important;
    margin-right: 2%;
    margin-bottom: 10px;
  }

  /* Для кожного другого елемента у рядку (щоб прибрати правий відступ) */
  .answer-container.col-12 ul.list-unstyled li:has(img):nth-child(2n) {
    margin-right: 0;
  }

  /* Окреме стилізування для текстових відповідей */
  .answer-container.col-12 ul.list-unstyled li:not(:has(img)) {
    width: 100% !important;
    margin-right: 0;
    margin-bottom: 10px;
  }
}



/*Footer стиль*/
/* кнопка для питання */
.ls-tts-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
    padding: 0;
    transition: transform 0.15s ease;
}

.ls-tts-btn svg {
    width: 18px;
    height: 18px;
    fill: #8C8AC2;
    transition: fill 0.2s ease;
}

.ls-tts-btn:hover svg {
    fill: #6f6cb3;
    transform: scale(1.1);
}

.ls-tts-btn.playing svg {
    animation: wave 1s infinite ease-in-out;
}

@keyframes wave {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}