.bg-require {
    background: #e52e2e;
    color: white;
}

.bg-title-box {
    background: #f6f6f6;
    margin-bottom: 12px;
}

.mic-img,
.begin-recorder,
.stop-recorder {
    height: 44px;
    cursor: pointer;
}

.mic-img.none-active {
    pointer-events: none;
    opacity: 0.5;
}

.bg-input-group {
    background: #0062b7;
    color: white;
}

.tag-item {
    border: 1px solid #b5b5b6;
    cursor: pointer;
}

.tag-item.active {
    background: #0062b7;
    color: white;
}

.tag-item.active label{
    font-weight: bold !important
}

.tag-item:not(:last-child) {
    margin-right: 10px;
}

.box-item {
    margin-bottom: 2rem;
}

.info-box-icon {
    border-radius: initial !important;
    border-right: 1px solid #333333;
    font-size: 1rem !important;
}

input.choose-radio[type="radio"]:checked + label .info-box-icon  {
    border-right: 1px solid #ccc;
}

input.choose-radio[type="radio"]:checked + label.label-gender, 
input.choose-radio[type="radio"]:checked + label.label-residence, 
input.choose-radio[type="radio"]:checked + label.label-family_structure, 
input.choose-radio[type="radio"]:checked + label.label-adl_iadl {
    border: none !important;
}

.bg-input-group .info-box-icon {
    border-right: 1px solid #f6f6f6;
}

.bg-dark-box {
    background: #333333;
    color: #fff;
}

.btn-submit, .btn-close-success,
.btn-submit:hover, .btn-close-success:hover {
    background: #0062b7;
    color: #fff;
}

textarea {
    resize: none;
}

.date-icon {
    height: 24px;
}

.swal2-popup {
    width: 38em;
    font-size: 12px !important;
}

.swal2-cancel {
    color: #0062b7 !important;
    border: 1px solid #0062b7 !important;
}

.swal2-actions {
    flex-direction: row-reverse;
}

#modal_recorder .modal-dialog {
    -webkit-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    top: 50%;
    margin: 0 auto;
}

#animation_recorder {
    position: relative;
    top: 25px;
}

#animation_recorder span {
    display: block;
    bottom: 0px;
    width: 9px;
    height: 5px;
    background: #9b59b6;
    position: absolute;
    animation: audio-wave 1.5s infinite ease-in-out;
}

#animation_recorder span:nth-child(2) {
    left: 11px;
    animation-delay: 0.2s;
}

#animation_recorder span:nth-child(3) {
    left: 22px;
    animation-delay: 0.4s;
}

#animation_recorder span:nth-child(4) {
    left: 33px;
    animation-delay: 0.6s;
}

#animation_recorder span:nth-child(5) {
    left: 44px;
    animation-delay: 0.8s;
}

input.choose-radio[type="radio"] + label {
    background: #fff;
}

input.choose-radio[type="radio"]:checked + label {
    background: #0062b7;
    color: white;
    font-weight: bold !important;
}

input.choose-radio[type="radio"]:checked + label.info-box div span {
    font-weight: bold !important;
}

.rounded-left {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.rounded-right {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

input.form-control, select.form-control, .input-group {
    height: calc(2.25rem + 8px);
}

.placeholder-indent {
    text-indent: 10px;
}

.close-modal {
    background: #FFFFFF;
    color: #0062B7;
    border: 1px solid #0062B7
}

.accept-confirm {
    background:#0062B7 !important;
    color:#FFFFFF
}

.text-danger {
    padding-left: 5px;
}

select, option {
    -webkit-appearance: none;
}
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper:after {
    content: '';
    background: url('/images/icon-select.svg');
    color: white;
    right: 10px;
    top: 6px;
    height: 91px;
    padding: 15px 0px 0px 8px;
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 30px;
}

/* loading */
#loading {
    background-color: rgb(248 249 250 / 60%);
    z-index: 99999999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    flex-direction: column;
    color: #fff;
    align-content: center;
    justify-content: center;
}
#loading.show {
    display: flex;
}
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgb(5 88 159 / 90%);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
    border: 1px solid #1d37ec;
}
.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}
/* endloading */

/* keyframes */
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

@keyframes audio-wave {
    0% {
        height: 5px;
        transform: translateY(0px);
        background: #9b59b6;
    }

    25% {
        height: 40px;
        transform: translateY(20px);
        background: #3498db;
    }

    /*effect is to animate the height of each span from 5px to 30px*/
    /*translateY makes Y axis move down to give the effect that it is growing from the center*/

    50% {
        height: 5px;
        transform: translateY(0px);
        background: #9b59b6;
    }

    100% {
        height: 5px;
        transform: translateY(0px);
        background: #9b59b6;
    }
}


.header {
    background: #F4F8FB;
}

.bg-require {
    margin-right:18px;
}

.info-box.type-dementia, .info-box.adl-iadl {
    min-height: 65px !important;
}

.info-box.adl-iadl{
    box-shadow: none;
    margin-bottom: 0px;
}



.btn-submit, .btn-close-success {
    padding-left: 103px;
    padding-right: 103px;
}


.reset-col-right {
    padding-right: 0px;
}

.reset-col-left {
    padding-left: 0px;
}

.bg-require {
    font-size: 12px;
}


@media only screen and (max-width: 600px) {
    .header {
        padding: 12px 20px;
    }
    body{
        font-size: 12px!important;
    }

    .input-group-text-custom {
        line-height: 1;
    }
    
    .info-box .info-box-icon {
        width: 45px;
    }

    .btn-submit, .btn-close-success {
        padding-left: 45px;
        padding-right: 45px;
    }

    ::-webkit-input-placeholder { /* Edge */
        font-size: 12px;
    }
      
    :-ms-input-placeholder { /* Internet Explorer */
        font-size: 12px;
    }
      
    ::placeholder {
        font-size: 12px;
    }
} 

@media only screen and (min-width: 600px) {
    
} 


/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container-tablet {
        max-width: 608px;
    }

    .header {
        padding: 12px 40px;
        font-size: 20px
    }

    

    .reset-col-right {
        padding-right: 0px;
    }

    .reset-col-left {
        padding-left: 0px;
    }
    .form-row div.box-name {
        padding-right: 40px;
    }

    .box-gender {
        padding-right: 20px;
    }
    
    .box-age {
        padding-left: 20px;
    }
    .bg-title-box {
        height: 40px;
    }

    .title-description {
        font-size: 12px;
    }

    .info-box-content-custom {
        font-size: 14px;
        line-height: 1.4 !important
    }

    .input-group-text-custom {
        line-height: 1.88;
    }

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .header {
        padding: 12px ;
        font-size: 20px
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .header {
        padding: 12px 330px;
        font-size: 20px
    }
}