/* Basics */
p{
    font-size: 15px;
}

input{
    border: none;
}

input::placeholder, textarea::placeholder{
    color: #999aa09f;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
  text-decoration: none;
  outline: none;
}

/* Real content */
.surveyOverallContainer{
    padding: 20px;
    background-image: var(--surveyCurrent);
    overflow-y: auto;
}

.surveyHeader{
    position: relative;
    max-width: 660px;
    align-items: center;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: var(--backgroundColor1);
    max-height: fit-content;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
}

.surveyHeader img{
    width: auto;
    height: 150px;
    border-radius: 20px;
}

.surveyHeader .text{
    height: auto;
    max-width: 400px;
}

.surveyElement{
    position: relative;
    height: auto !important;
    max-height: auto !important;
    min-height: auto !important;
    max-width: 660px;
    margin: 0 auto;
    margin-bottom: 20px;
    background-color: var(--backgroundColor1);
    text-align: left;
}

.surveyElement .surveyInner{
    position: relative;
    max-height: fit-content;
    padding: 20px;
}

.surveyElement .label{
    font-size: 15px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 5px;
    height: auto;
    color: var(--writeColor3);
}

.surveyElement .label:first-of-type{
    margin-top: 0px;
}

.surveyElement .label b{
    cursor: pointer;
    transition: 0.4s;
}

.surveyElement .label b:hover{
    color: var(--surveyColor);
}

.surveyElement .labelButton{
    font-weight: 500;
    text-align: center;
    white-space: nowrap;

    border: none;
    padding: 0 25px;
    font-size: 16px;
    height: 31px;
    line-height: 27px;

    border-radius: 15px;
    color: var(--surveyColor);
    background-color: var(--secondaryColor);
    border: none;
    margin-top: 10px;
    margin-bottom: 10px;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    cursor: pointer;
    transition: 0.4s;
}

.surveyElement .labelButton:hover{
    background-color: var(--secondaryHoverColor);
}


input.surveyEditable, input.surveySelectionEditable{
    -webkit-user-select: text;
	user-select: text;
    pointer-events: text;
	outline: none;
    background-color: var(--secondaryColor);
    border-radius: 10px;
    padding: 7px 10px;
    border: 2px solid transparent;
    -webkit-transition: 0.2s;
    transition: 0.2s;
    font-weight: 600;
    width: 100%;
}

input.surveyEditable:focus, input.surveySelectionEditable:focus{
    border: 2px solid var(--surveyColor);
}


input[type="text"].surveyTemplate{
    -webkit-user-select: text;
	user-select: text;
    pointer-events: text;
	outline: none;
    background-color: var(--secondaryColor);
    border-radius: 7px;
    padding: 7px 10px;
    border: 2px solid transparent;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    width: 100%;
}


input[type="text"].surveyTemplate:focus{
    border: 2px solid var(--primaryColor);
}

/* Text */
.surveyElement textarea{
    height: auto;
    width: 100%;
    line-height: 20px;
    font-size: 15px;
    color: var(--writeColor2);
    background-color: var(--secondaryColor);
    padding: 5px 10px;
    border-radius: 10px;
}

/* Rating  */
.surveyElement .ratingBox{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.surveyElement .ratingBox i{
    font-size: 30px;
    color: var(--writeColor2);
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.surveyElement .ratingBox i.checked{
    color: var(--surveyColor);
}


.surveyElement .ratingBox i:hover{
    color: var(--surveyColor);
}






/* Selection */
.surveyElement .selectionBox{
    position: relative;
    margin-top: 10px;
    height: fit-content;
}

.surveyElement .selectionBox .inner{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 20px;
    margin-bottom: 10px;
}

.surveyElement .selectionBox .inner:last-of-type{
    margin-bottom: 0;
}


.surveyElement .selectionBox .inner p.surveySelectionEditable{
    width: 100%;
}

.surveyElement .selectionBox .inner .checkbox{
    width: 30px;
    min-width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 5px;
    background-color: var(--secondaryColor);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.surveyElement .selectionBox .inner .checkbox.single{
    border-radius: 50%;
}

.surveyElement .selectionBox .inner .checkbox:hover{
    background-color: var(--secondaryHoverColor);
}

.surveyElement .selectionBox .inner .checkbox i{
    font-size: 22px;
    color: var(--backgroundColor1);
}

.surveyElement .selectionBox .inner .checkbox.checked{
    background-color: var(--surveyColor);
}

.surveyElement .selectionBox .inner i{
    line-height: 30px;
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.surveyElement .selectionBox .inner i:hover{
    color: var(--surveyColor);
}

[contenteditable].surveySelectionEditable{
    -webkit-user-select: text;
	user-select: text;
    pointer-events: text;
    outline: none;
    font-size: 14px;
    background-color: var(--secondaryColor);
    border-radius: 5px;
    padding: 3px 10px;
    margin: 0;
    border: 2px solid transparent;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

[contenteditable].surveySelectionEditable:focus{
    border: 2px solid var(--surveyColor);
}


.surveyElement .selectionBox .addButton{
    width: auto;
    max-width: fit-content;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 14px;
    border-radius: 0;
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.surveyElement .selectionBox .addButton:hover{
    color: var(--surveyColor);
}







/* Bottom line */
.surveyElement .bottomLine{
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: var(--secondaryColor);
    height: 45px;
    padding: 0 20px;
    border-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.surveyElement .bottomLine .optionalSelection{
    width: auto;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-right: 10px;
}
.surveyElement .bottomLine .optionalSelection.first{
    width: 180px;
}
.surveyElement .bottomLine .optionalSelection.second{
    width: 170px;
}

.surveyElement .bottomLine .optionalSelection p{
    line-height: 45px;
}

.surveyElement .bottomLine .editContainer{
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: fit-content;
    line-height: 45px;
    margin-right: 0px;
    margin-left: auto;    
}

.surveyElement .bottomLine .editContainer div{
    transition: 0.3s;
    -webkit-transition: 0.3s;
    cursor: pointer;
}

.surveyElement .bottomLine .editContainer div:hover{
    color: var(--surveyColor);
}

.surveyElement .bottomLine p.deleteStatement{
    line-height: 45px;
    margin-right: 40px;
}

.surveyElement .bottomLine button.deleteButton{
    height: 25px;
    line-height: 25px;
    margin-top: 10px;
    margin-right: 20px;
    padding: 0 20px;
    border-radius: 5px;
    position: relative;
    text-align: center;
    white-space: nowrap;
    border: none;
    font-size: 15px;
    transition: 0.5s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: var(--secondaryHoverColor);
    color: var(--writeColor2);
    cursor: pointer;
}

.surveyElement .bottomLine button.deleteButton.selected{
    background-color: var(--surveyColor);
    color: var(--buttonWriteColor);
}


.surveyElement .bottomLine button.deleteButton:hover{
    background-color: var(--surveyColorFade);
}




/* Slider for optional */
.surveyElement .bottomLine .optionalSelection .switch{
    position: absolute;
    left: 100px;
    top: 11px;
    display: inline-block;
    width: 47px;
    height: 25px;
}

.surveyElement .bottomLine .optionalSelection.first .switch{
    left: 95px;
}
.surveyElement .bottomLine .optionalSelection.second .switch{
    left: 105px;
}
.surveyElement .bottomLine .optionalSelection.third .switch{
    left: 60px;
}

  
.surveyElement .bottomLine .optionalSelection .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.surveyElement .bottomLine .optionalSelection .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background-color: var(--secondaryHoverColor);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}
  
.surveyElement .bottomLine .optionalSelection .slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    bottom: 3px;
    border-radius: 50%;
    background-color: var(--backgroundColor1);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.surveyElement .bottomLine .optionalSelection input:checked + .slider {
    background-color: var(--surveyColor);
}

.surveyElement .bottomLine .optionalSelection input:focus + .slider {
    box-shadow: 0 0 1px var(--surveyColor);
}

.surveyElement .bottomLine .optionalSelection input:checked + .slider.disabled {
    background-color: var(--writeColor3);
}

.surveyElement .bottomLine .optionalSelection input:focus + .slider.disabled {
    box-shadow: 0 0 1px var(--writeColor3);
}

.surveyElement .bottomLine .optionalSelection input:checked + .slider:before {
    -webkit-transform: translateX(19px);
    -ms-transform: translateX(19px);
    transform: translateX(19px);
}
  
/* Check mobile */
.modalMedia iframe.mobileView, .modalMedia .surveyPreview.mobileView .surveyElement .bottomLine{
    display: none;
}


.surveyTable{
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.surveyTable tr{
    height: 30px;
    line-height: 30px;
    transition: 0.4s;
    cursor: pointer;
    border: 2px solid var(--buttonWriteColor);
}

.surveyTable tr.alt{
    background-color: var(--secondaryColor);
}

.surveyTable tr:hover{
    background-color: var(--secondaryHoverColor);
}

.surveyTable tr.selected{
    background-color: var(--surveyColor);
    color: var(--buttonWriteColor);
}

.surveyTable td{
    border-radius: 10px;
    padding: 0 15px;
    font-size: 15px;
}
