﻿/* Copyright 2019, Sciamble Corp. All Rights Reserved. We will take legal action against those who copy our HTML content, CSS style sheets and JavaScript functions. */

.form-box {
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    text-align: left;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-table {
    border: none;
}

    .form-table * {
        border: none;
        padding-top: 0;
        padding-bottom: 0;
    }

    .form-table td:not(:last-child) {
        padding-right: 0;
    }

.form-font {
    font-size: 18px;
}

    .form-font * {
        font-size: 18px;
    }

.form-control {
    display: block;
    width: 100%;
    max-width: 100%; /* Set for textarea control that can be resized. */
    min-width: 100%; /* Set for textarea control that can be resized. */
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-font-smoothing: antialiased;
    border: 1px solid #bbb;
    border-top-color: #999;
    font-size: 18px;
}

.form-control-allowwebKit {
    display: block;
    width: 100%;
    max-width: 100%; /* Set for textarea control that can be resized. */
    min-width: 100%; /* Set for textarea control that can be resized. */
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    -webkit-font-smoothing: antialiased;
    border: 1px solid #bbb;
    border-top-color: #999;
    font-size: 18px;
}

/* Invalid input validation */
.form-invalid {
    display: block;
    color: red;
    min-height: 0px;
}

/* Button */
.button {
    overflow: hidden;
    border: none;
    background-color: dodgerblue;
    font-size: 20px;
    color: white;
    width: 100%;
    max-width: 100%;
    height: 50px;
    line-height: 50px; /* If button placed with <a> tag, text is displayed on top rather than veritcal middle. Hence line-height = height to center text. */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

    .button:hover {
        background-color: limegreen;
    }

/* Slider */
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 2px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: gray;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -o-transition: .2s;
    transition: opacity .2s;
}

    .slider:hover {
        opacity: 1;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 100%;
        background-color: dodgerblue;
        cursor: pointer;
    }

    .slider::-moz-range-thumb {
        width: 15px;
        height: 15px;
        border-radius: 100%;
        background-color: dodgerblue;
        cursor: pointer;
    }

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .switch-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked ~ .switch-slider {
    background-color: dodgerblue;
}

input:focus ~ .switch-slider {
    box-shadow: 0 0 1px dodgerblue;
}

input:checked ~ .switch-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Two tab form option box. */
/*******************************************************************************/
#option1-tab, #option2-tab {
    height: 40px;
    border: none;
    background-color: gainsboro;
    width: 50%;
    padding-top: 10px;
    font-size: 20px;
    text-align: center;
}

#option1-tab {
    float: left;
}

#option2-tab {
    float: right;
}

#option1-radio, #option2-radio {
    display: none;
    visibility: hidden;
}

    #option1-radio:checked ~ #option1-tab, #option2-radio:checked ~ #option2-tab {
        border-top: 4px solid dodgerblue;
        background-color: white;
    }

    #option1-radio:checked ~ #option2-box {
        display: none;
    }

    #option2-radio:checked ~ #option1-box {
        display: none;
    }
/*******************************************************************************/

/* File upload */
.file-control {
    padding: 0 0 0 12px;
}

    .file-control input[type='file'] {
        display: none;
    }

.file-info {
    float: left;
    line-height: 45px;
    width: 65%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.file-browse-btn {
    background-color: dodgerblue;
    color: white;
    height: 45px;
    border: none;
    width: 35%;
}

    .file-browse-btn:hover {
        background-color: limegreen;
    }



/* Image array */
.imageArray {
    display: table;
    width: 100%;
}

    .imageArray img {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -o-transition: all 1s ease;
        transition: all 1s ease;
    }

        .imageArray img:hover {
            cursor: pointer;
            -moz-transform: scale(1.5);
            -webkit-transform: scale(1.5);
            -o-transform: scale(1.5);
            transform: scale(1.5);
        }

.imageArray-cell {
    display: table-cell;
    vertical-align: middle;
}

.imageArray-hide {
    display: none;
}

.imageArray-prevArrow {
    display: block; /* initally hidden untill navigated to next image in the array. */
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-right: 25px solid lightgray; /* initally prev arrow disabled until next arrow is clicked because there is no image before first image. */
    margin: 0;
    margin-right: 10px;
    cursor: pointer;
}

.imageArray-nextArrow {
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 25px solid dimgray;
    margin: 0;
    margin-left: 10px;
    cursor: pointer;
}

.imageArray-prevArrow:hover {
    border-right-color: black;
}

.imageArray-nextArrow:hover {
    border-left-color: black;
}