﻿/* Question */
.QuestionContent div[data-style] {
    padding: 40px;
    min-height: 200px;
    transition: all 1s;
    box-sizing: border-box;
}

.QuestionContent img {
    transition: 0.5s;
}

.Question {
    position: relative;
    float: left;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 5px 5px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
    background-color: #ffffff;
    width: 100%;
    margin-bottom: 20px;
}

.ckeditor_question {
    padding: 10px;
    position: relative;
}

.QuestionBackground {
    position: absolute;
    left: 0px;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.DropHover,
.DropHover img {
    opacity: 0.5;
}

.QuestionContent[data-size="half"] .Question {
    width: 100%;
}

.QuestionContent[data-size="full"] .Question {
    width: 46%;
}


/* Answers */
.Answers {
    width: 48%;
    float: right;
    position: relative;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

    .Answers input {
        float: left;
    }

.answer-accordion {
    position: relative;
}

    .answer-accordion:hover .ButtonRemoveAnswer {
        opacity: 1;
    }

    .answer-accordion.selected .answer-header {
        background: linear-gradient(to right, #d24444 50%, #ffffff 50%);
        background-position: left bottom;
        background-size: 200% 100%;
        transition: background 1s ease-in;
    }

    .answer-accordion.selected.correct .answer-header {
        background: linear-gradient(to right, #24a558 50%, #ffffff 50%);
        background-position: left bottom;
        background-size: 200% 100%;
        transition: background 1s ease-in;
    }

.answer-header {
    position: relative;
    width: 100%;
    padding: 15px 10px 15px 10px;
    cursor: pointer;
    box-sizing: border-box;
    border-left: #1F9EE5 30px solid;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: all 1s;
    background: linear-gradient(to right, #ffffff 50%, #ffffff 50%);
    background-size: 200% 100%;
    background-position: right bottom;
}

    .answer-header i {
        font-size: 30px;
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto;
        height: 30px;
    }

    .answer-header .chevron {
        position: absolute;
        left: -24px;
        font-size: 20px;
        color: #EFEFEF;
        transition: all .5s;
        transform: rotate(90deg);
        height: 20px;
    }

.answer-accordion.selected .chevron {
    transform: rotate(180deg);
}

.answer-header .ButtonRemoveAnswer {
    position: absolute;
    right: 5px;
    top: 5px;
    font-size: 20px;
    opacity: 0;
    transition: 0.5s;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: 50%;
    z-index: 1;
    height: 20px;
}

    .answer-header .ButtonRemoveAnswer:hover {
        background-color: #d24444;
        color: #ffffff;
    }

.answer-header .answer_green {
    color: #24a558;
}

.answer-header .answer_amber {
    color: yellow;
}

.answer-header .answer_red {
    color: #d24444;
}

.QuestionContent[data-size="half"] .Answers {
    width: 100%;
}

.QuestionContent[data-size="full"] .Answers {
    width: 47%;
}


/* Feedback */
.answer-feedback {
    display: none;
    background-color: #ffffff;
    width: 92%;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    color: #000;
    position: relative;
    right: -18px;
    margin: 0 0px 5px 10px;
}

    .answer-feedback.answer_green {
        background-color: #24a558;
    }

    .answer-feedback.answer_amber {
        background-color: yellow;
    }

    .answer-feedback.answer_red {
        background-color: #d24444;
    }


/* 2/3rds image question */
div[data-style="image2/3"] .QuestionBackground,
div[data-style="image2/3"] .QuestionBackground img {
    position: absolute;
    left: 0px;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.QuestionContent[data-size="full"] div[data-style="image2/3"] .Question {
    width: 57%;
}

.QuestionContent[data-size="full"] div[data-style="image2/3"] .QuestionBackground {
    width: 60%;
}

.QuestionContent[data-size="full"] div[data-style="image2/3"] .Answers {
    width: 38%;
}


/* card question */
div[data-style="card"] img {
    border-radius: 5px 5px 0px 0px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.QuestionContent[data-size="full"] div[data-style="card"] .QuestionBackground {
    width: 50%;
}


/* colour question */
div[data-style="colour"] .Question {
    background-color: transparent;
    box-shadow: none;
}

div[data-style="colour"] .ckeditor_question {
    color: white;
}

div[data-style="colour"] .fa-question-circle {
    color: white;
    font-size: 200px;
    opacity: 0.3;
    position: absolute;
    bottom: 10px;
    left: 10px;
}


/* Free Text */
div[data-style="freetext"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div[data-style="freetext"] .Button {
    border: 0;
    margin-bottom: 10px;
    float: right;
}

div[data-style="freetext"] .Question {
    margin-bottom: 0px;
    width: 100% !important;
}

div[data-style="freetext"] .Question {
    margin-bottom: 0px;
    width: 100% !important;
    flex: none !important;
}

.FreeTextAnswer {
    width: 100%;
    height: 100px;
    padding: 10px;
    box-sizing: border-box;
}

    .FreeTextAnswer textarea {
        width: 100%;
        height: 100%;
        padding: 10px;
        border-radius: 5px;
        overflow-y: auto;
        resize: none;
        outline: none;
        box-sizing: border-box;
    }

.free-text-feedback {
    position: relative;
    background-color: #EFEFEF;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    color: #000;
    top: -100%;
    float: left;
    width: 100%;
    margin-bottom: 40px;
    display: none;
}


@media all and (max-width: 800px) {

    .QuestionContent div[data-style] {
        padding: 0;
    }

}