/*
INPUT - CHECKBOX - RADIO - SWITCH - SELECT - UPLOAD

Usage:
Input:
<input type="text" class="text-input" />

Checkbox:
<label class="control control-checkbox control--default control--inline">First checkbox
  <input type="checkbox" checked="checked"/>
  <span class="control__indicator"></span>
</label>

Switch:
<label class="control control-switch control--default control--inline">
    <input type="checkbox" name="" />
    <span class="control__indicator"></span>
    Checkbox Label
</label>

Radio:
<label class="control control-radio control--default control--inline">First radio
  <input type="radio" name="radio" checked="checked"/>
  <span class="control__indicator"></span>
</label>

Select:
<div class="select">
  <select>
    <option>First select</option>
    <option>Option</option>
    <option>Option</option>
  </select>
  <div class="select__arrow"></div>
</div>

Upload:
<label class="t-file-upload" for="file1">
    <input id="file1" type="file" name="file1" accept=".jpg,.jpeg,.png">
    <i class="fa fa-cloud-upload"></i> Resim
</label>

Square Radio
    Hint: add .marked to display check mark on top right
    Usage:
     <div class="t-square-radio">
             <section>
                 <div>
                     <input type="radio" id="control_01" name="Question.TypeId" value="1" checked required>
                     <label for="control_01">
                         Çoktan Seçmeli
                     </label>
                 </div>
                 <div>
                     <input type="radio" id="control_02" name="Question.TypeId"  value="3" required>
                     <label for="control_02">
                         Doğru - Yanlış
                     </label>
                 </div>
                 <div>
                     <input type="radio" id="control_03" name="Question.TypeId"  value="5" required>
                     <label for="control_03">
                         Boşluk Doldurma
                     </label>
                 </div>
                 <div>
                     <input type="radio" id="control_04" name="Question.TypeId"  value="8" required>
                     <label for="control_04">
                         Sözlü Sınav
                     </label>
                 </div>
             </section>
         </div>
     </div>

     <div class="t-square-radio">
         <section>
             <div v-for="(subexam,index) in config.examData.SubExaminations">
                 <input type="radio" :id="'control_'+index" :value="subexam.Id" v-model="picked" name="subexam-selection">
                 <label :for="'control_'+index">
                     {{subexam.QualificationUnit.ReferenceCode}}
                 </label>
             </div>
         </section>
     </div>

*/

/**********************
    Input
**********************/
.text-input {
    overflow: visible;
    display: block;
    width: 100%;
    height: 34px;
    line-height: 1.42857143;
    background-image: none;
    border-radius: 4px;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    font-size: 13px;
    padding: 6px 8px;
    max-width: 100%;
    margin: 1px 0;
    color: #394263;
    box-shadow: none;
    background-color: #f5f7fa !important;
    border: 1px inset #f5f7fa;
    box-sizing: border-box;
}

    .text-input:focus {
        background-color: #f5f7fa !important;
        border: 1px inset #f5f7fa;
        border-bottom: 1px solid #eac4c1;
        border-right: 1px solid #eac4c1;
        box-shadow: none;
        outline: none;
    }

/**********************
Checkbox - Radio
**********************/
.control {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    /* font-size: 16px; */
    font-size: inherit;
    padding-top: 4px;
}

.control--inline {
    display: inline-block;
    margin-left: 10px;
}

.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.control__indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #dedddd;
}

/**********************
    Radio
**********************/
.control-radio .control__indicator {
    border-radius: 50%;
}

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    background: #ccc;
}

.control input:checked ~ .control__indicator {
    background: #2aa1c0;
}

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
    background: #0e647d;
}

.control input:disabled ~ .control__indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}

.control__indicator:after {
    content: '';
    position: absolute;
    display: none;
}

.control input:checked ~ .control__indicator:after {
    display: block;
}

/* Checkbox */
.control-checkbox .control__indicator:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    /*box-sizing needed for bootstrap 3 fix*/
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.control-checkbox input:disabled ~ .control__indicator:after {
    border-color: #7b7b7b;
}

.control-radio .control__indicator:after {
    left: 7px;
    top: 7px;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #fff;
    /*box-sizing needed for bootstrap 3 fix*/
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.control-radio input:disabled ~ .control__indicator:after {
    background: #7b7b7b;
}

/* Switch */
.control-switch {
    padding-left: 0;
}

.control-switch {
    display: inline-block;
    position: relative;
    padding-left: 40px;
    cursor: pointer;
}

    .control-switch input {
        display: none;
    }

    .control-switch span {
        width: 32px;
        border-radius: 20px;
        height: 16px;
        border: 1px solid #dbdbdb;
        background-color: rgb(223, 223, 223);
        border-color: rgb(223, 223, 223);
        box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
        transition: border 0.4s ease 0s, box-shadow 0.4s ease 0s;
        display: inline-block;
        vertical-align: middle;
        margin-right: 5px;
    }

        .control-switch span:before {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgb(255, 255, 255);
            content: " ";
            top: 0;
            position: relative;
            left: 0;
            transition: all 0.3s ease;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

    .control-switch > input:checked + span:before {
        left: 17px;
    }

/**********************
Checkbox - Radio - Switch Color Variations
**********************/
/* Default */
.control--default input:checked ~ .control__indicator {
    background: rgb(243, 84, 41);
}

.control--default:hover input:not([disabled]):checked ~ .control__indicator,
.control--default input:checked:focus ~ .control__indicator {
    background: rgb(206, 70, 33);
}

/* Primary */
.control--primary input:checked ~ .control__indicator {
    background: rgb(0, 105, 217);
}

.control--primary:hover input:not([disabled]):checked ~ .control__indicator,
.control--primary input:checked:focus ~ .control__indicator {
    background: rgb(0, 105, 217);
}

/* Info */
.control--info input:checked ~ .control__indicator {
    background: rgb(23, 162, 184);
}

.control--info:hover input:not([disabled]):checked ~ .control__indicator,
.control--info input:checked:focus ~ .control__indicator {
    background: rgb(23, 162, 184);
}

/* Success */
.control--success input:checked ~ .control__indicator {
    background: rgb(40, 167, 69);
}

.control--success:hover input:not([disabled]):checked ~ .control__indicator,
.control--success input:checked:focus ~ .control__indicator {
    background: rgb(0, 153, 0);
}

/* Warning */
.control--warning input:checked ~ .control__indicator {
    background: rgb(255, 193, 7);
}

.control--warning:hover input:not([disabled]):checked ~ .control__indicator,
.control--warning input:checked:focus ~ .control__indicator {
    background: rgb(230, 138, 0);
}

.control--danger input:checked ~ .control__indicator {
    background: rgb(255, 71, 26);
}

.control--danger:hover input:not([disabled]):checked ~ .control__indicator,
.control--danger input:checked:focus ~ .control__indicator {
    background: rgb(230, 46, 0);
}

/**********************
Control Group
**********************/
.control-group input {
    display: none;
}

    .control-group input:checked + label,
    .control-group input:checked + label:active {
        background-color: salmon;
    }

.control-group--primary input:checked + label,
.control-group--primary input:checked + label:active {
    background-color: rgb(0, 105, 217);
}

.control-group--info input:checked + label,
.control-group--info input:checked + label:active {
    background-color: rgb(23, 162, 184);
}

.control-group--success input:checked + label,
.control-group--success input:checked + label:active {
    background-color: rgb(40, 167, 69);
}

.control-group--warning input:checked + label,
.control-group--warning input:checked + label:active {
    background-color: rgb(255, 193, 7);
}

.control-group--danger input:checked + label,
.control-group--danger input:checked + label:active {
    background-color: rgb(255, 71, 26);
}

/**********************
Select
**********************/

.select {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    width: 100%;
}

    .select select {
        display: inline-block;
        width: 100%;
        cursor: pointer;
        padding: 10px 15px;
        outline: 0;
        border: 0;
        border-radius: 0;
        background: #e6e6e6;
        color: #7b7b7b;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

        .select select::-ms-expand {
            display: none;
        }

        .select select:hover,
        .select select:focus {
            color: #000;
            background: #ccc;
        }

        .select select:disabled {
            opacity: 0.5;
            pointer-events: none;
        }

.select__arrow {
    position: absolute;
    top: 16px;
    right: 15px;
    width: 0;
    height: 0;
    pointer-events: none;
    border-style: solid;
    border-width: 8px 5px 0 5px;
    border-color: #7b7b7b transparent transparent transparent;
}

.select select:hover ~ .select__arrow,
.select select:focus ~ .select__arrow {
    border-top-color: #000;
}

.select select:disabled ~ .select__arrow {
    border-top-color: #ccc;
}

/**********************
    BUTTON
**********************/

.t-button {
    /* Structure */
    display: inline-block;
    line-height: normal;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
    box-sizing: border-box;
}

.t-button-group {
    letter-spacing: -0.31em;
    /* Webkit: collapse white-space between units */
    text-rendering: optimizespeed;
    /* Webkit: fixes text-rendering: optimizeLegibility */
}

    .t-button-group .t-button {
        letter-spacing: normal;
        word-spacing: normal;
        vertical-align: top;
        text-rendering: auto;
    }

.t-button {
    font-family: inherit;
    font-size: 100%;
    padding: 0.5em 1em;
    color: rgba(0, 0, 0, 0.80);
    border: none rgba(0, 0, 0, 0);
    background-color: #E6E6E6;
    text-decoration: none;
    border-radius: 2px;
}

    .t-button-hover,
    .t-button:hover,
    .t-button:focus {
        background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.10));
    }

    .t-button:focus {
        outline: 0;
    }

    .t-button-active,
    .t-button:active:focus,
    .t-button:active {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.20) inset;
        border-color: #000;
        opacity: 0.8;
    }

    .t-button[disabled],
    .t-button-disabled,
    .t-button-disabled:hover,
    .t-button-disabled:focus,
    .t-button-disabled:active {
        border: none;
        background-image: none;
        opacity: 0.40;
        cursor: not-allowed;
        box-shadow: none;
        pointer-events: none;
    }

.t-button-hidden {
    display: none;
}

/**********************
    Button Groups
**********************/
.t-button-group .t-button {
    margin: 0;
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

    .t-button-group .t-button:first-child {
        border-top-left-radius: 2px;
        border-bottom-left-radius: 2px;
    }

    .t-button-group .t-button:last-child {
        border-top-right-radius: 2px;
        border-bottom-right-radius: 2px;
        border-right: none;
    }

/* Button color variations */
/* Default */
.t-button--default {
    background: rgb(243, 84, 41);
    color: #fff;
}

    .t-button--default:hover {
        background: rgb(220, 69, 28);
        color: #fff;
    }

/* Primary */
.t-button--primary {
    background: rgb(0, 105, 217);
    color: #fff;
}

    .t-button--primary:hover {
        background: rgb(11, 97, 189);
        color: #fff;
    }

/* Info */
.t-button--info {
    background: rgb(23, 162, 184);
    color: #fff;
}

    .t-button--info:hover {
        background: rgb(12, 136, 156);
        color: #fff;
    }

/* Success */
.t-button--success {
    background: rgb(40, 167, 69);
    color: #fff;
}

    .t-button--success:hover {
        background: rgb(18, 141, 46);
        color: #fff;
    }

/* Warning */
.t-button--warning {
    background: rgb(255, 193, 7);
}

    .t-button--warning:hover {
        background: rgb(222, 171, 15);
    }

/* Danger */
.t-button--danger {
    background: rgb(255, 71, 26);
    color: #fff;
}

    .t-button--danger:hover {
        background: rgb(229, 60, 19);
        color: #fff;
    }

/**********************
    Square Radio Button

*/

.t-square-radio {
    all: unset;
}

    .t-square-radio h1 {
        color: #18191b;
        margin-bottom: 2rem;
    }

    .t-square-radio section {
        display: flex;
        flex-flow: row wrap;
    }

        .t-square-radio section > div {
            flex: 1;
            padding: 0.5rem;
        }

    .t-square-radio input[type="radio"] {
        display: none;
    }

        .t-square-radio input[type="radio"]:not(:disabled) ~ label {
            cursor: pointer;
        }

        .t-square-radio input[type="radio"]:disabled ~ label {
            color: #bcc2bf;
            border-color: #bcc2bf;
            box-shadow: none;
            cursor: not-allowed;
        }

    .t-square-radio label {
        height: 100%;
        display: block;
        background: white;
        border: 2px solid #20df80;
        border-radius: 5px;
        padding: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
        /*box-shadow: 0px 3px 10px -2px rgba(161, 170, 166, 0.5);*/
        position: relative;
    }

    .t-square-radio input[type="radio"]:checked + label {
        background: #20df80;
        color: white;
        /*box-shadow: 0px 0px 20px rgba(0, 255, 128, 0.75);*/
    }

    /* .t-square-radio .marked input[type="radio"]:checked + label::after {
        color: #3d3f43;
        font-family: FontAwesome;
        border: 2px solid #1dc973;
        content: "\f00c";
        font-size: 24px;
        position: absolute;
        top: -25px;
        left: 80%;
        transform: translateX(-50%);
        height: 50px;
        width: 50px;
        line-height: 50px;
        text-align: center;
        border-radius: 50%;
        background: white;
        box-shadow: 0px 2px 5px -2px rgba(0, 0, 0, 0.25);
    }*/

    .t-square-radio p {
        font-weight: 900;
    }

@@media only screen and (max-width: 700px) {
    .t-square-radio section {
        flex-direction: column;
    }
}

/**********************
  Upload
*********************/

.t-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
}

    .t-file-upload input[type="file"] {
        display: none;
    }

/*
    File Upload
*/

input[type=file]::-webkit-file-upload-button {
    border: 2px solid #7ccceb;
    padding: .2em .4em;
    border-radius: .2em;
    background-color: #7ccceb;
}

input[type=file]::file-selector-button {
    border: 2px solid #7ccceb;
    padding: .2em .4em;
    border-radius: .2em;
    background-color: #7ccceb;
}

input[type=file]::-webkit-file-upload-button:hover {
    background-color: #1ECFD6;
    border: 2px solid #1ECFD6;
}

input[type=file]::file-selector-button:hover {
    background-color: #1ECFD6;
    border: 2px solid #1ECFD6;
}