/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px 'Raleway', Helvetica, Helvetica Neue, Arial;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
    text-align: center;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 20px solid #e44d26;
}

.footer-container,
.main aside {
    border-top: 20px solid #e44d26;
}

.header-container,
.footer-container,
.main aside {
    background: #f16529;
}

.title {
    color: white;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: white;
    background: #e44d26;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}


/* ==========================================================================
   Responsive Grid Columns
   ========================================================================== */
/*  SECTIONS  */
.section {
    clear: both;
    padding: 0px;
    margin: 0px;
}

/*  COLUMN SETUP  */
.col {
    display: block;
    float:left;
    margin: 1% 0 1% 1.6%;
}
.col:first-child { margin-left: 0; }

/*  GROUPING  */
.group:before,
.group:after { content:""; display:table; }
.group:after { clear:both;}
.group { zoom:1; /* For IE 6/7 */ }

/*  GRID OF THREE  */
.span_3_of_3 { width: 100%; }
.span_2_of_3 { width: 66.13%; }
.span_1_of_3 { width: 32.26%; }

/*  GO FULL WIDTH BELOW 480 PIXELS */
@media only screen and (max-width: 480px) {
    .col {  margin: 1% 0 1% 0%; }
    .span_3_of_3, .span_2_of_3, .span_1_of_3 { width: 100%; }
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

#step-1 {
    border: 2px dashed #b7b7b7;
    min-height:290px;
    cursor:pointer;
    text-align:center;
    padding: 30px;
}
.btn {
    font-family: 'Raleway', sans-serif;
    color: #ffffff;
    background: #7cc24e;
	border-color: #7cc24e;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    margin:0 20px;
}

.btn:hover, .btn:focus, .btn:active {
    background: #5ac232;
	border-color:#5ac232;
    text-decoration: none;
}

.top-gap { margin-top: 10px; }

/* Back button */
.back-btn {
    font-family: 'Raleway', sans-serif;
    color: #5a8c39;
    background: #ffffff;
    padding: 10px 30px 10px 30px;
    border: solid #b7b7b7 1px;
    text-decoration: none;
    margin:0 20px;
}
.back-btn:hover {
    background: rgba(216, 223, 223, 0.23);
    text-decoration: none;
}
/* Back button */

.demo-droppable {
    background: #f4f4f4;
    color: #000000;

    text-align: center;
}
.demo-droppable.dragover {
    background: rgba(38, 83, 42, 0.32);
}

.steps { display: none; }
.active { display: block; }

div.loading {
    height: 6px;
    margin: auto;
    width: 50%;
    font-family: Verdana, Geneva, Arial, Tahoma, Helvetica, sans-serif;
    text-shadow: 1px 1px 0px #39383F;
    color: #fff;
    border-style: solid;
    border-radius:15px;
    background-color:#b7b7b7;
}
div.loading div.process { display: list-item; }
.process { height: 5px; }
.process {
    -webkit-transition: width 0.5s;
    transition: width 0.5s;
}

.viewer {
    /*width: 100%;*/
    height: 15.54vw;
    /*border: 1px solid black;*/
    position: relative;
}
#casket { margin: 0 auto; }
/*.viewer > img { position: relative !important; }*/
#frame > img { position: absolute;top: 0;left: 0; height: auto; width: 100%; }
#frame { background-color: #ffffff; }

#zoom-in, #zoom-out {
    font-size: 56px !important;
    color:#7cc24e !important;
}

#zoom-in:hover, #zoom-out:hover {
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    border-radius: 60px;
    color: #ffffff !important;
    font-size: 56px !important;
    background: #b7b7b7;
    padding: 0 21px 0 21px;
    text-decoration: none;
    cursor: pointer;
}

#zoom-in:focus, #zoom-out:focus {
    text-decoration: none;
}
#warning-message { margin-top: 20px; }
/* ==========================================================================
   Range Input
   ========================================================================== */

input[type=range].range-slider {
    -webkit-appearance: none;
    width: 100%;
    margin: 11px 0;
}
input[type=range].range-slider:focus {
    outline: none;
}
input[type=range].range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    /*box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;*/
    background: rgba(183, 183, 183, 0.78);
    border-radius: 0px;
    border: 0px solid rgba(246, 246, 246, 0.84);
}
input[type=range].range-slider::-webkit-slider-thumb {
    /*box-shadow: 0.9px 0.9px 1px #000031, 0px 0px 0.9px #00004b;*/
    border: 3px solid #7cc24e;
    height: 26px;
    width: 26px;
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -11px;
}
input[type=range].range-slider:focus::-webkit-slider-runnable-track {
    background: rgba(198, 198, 198, 0.78);
}
input[type=range].range-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
    background: rgba(183, 183, 183, 0.78);
    border-radius: 0px;
    border: 0px solid rgba(246, 246, 246, 0.84);
}
input[type=range].range-slider::-moz-range-thumb {
    box-shadow: 0.9px 0.9px 1px #000031, 0px 0px 0.9px #00004b;
    border: 3px solid #7cc24e;
    height: 26px;
    width: 26px;
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
}
input[type=range].range-slider::-ms-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
}
input[type=range].range-slider::-ms-fill-lower {
    background: rgba(168, 168, 168, 0.78);
    border: 0px solid rgba(246, 246, 246, 0.84);
    border-radius: 0px;
    box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range].range-slider::-ms-fill-upper {
    background: rgba(183, 183, 183, 0.78);
    border: 0px solid rgba(246, 246, 246, 0.84);
    border-radius: 0px;
    box-shadow: 0px 0px 1px #000000, 0px 0px 0px #0d0d0d;
}
input[type=range].range-slider::-ms-thumb {
    box-shadow: 0.9px 0.9px 1px #000031, 0px 0px 0.9px #00004b;
    border: 3px solid #7cc24e;
    height: 26px;
    width: 26px;
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
    height: 4px;
}
input[type=range].range-slider:focus::-ms-fill-lower {
    background: rgba(183, 183, 183, 0.78);
}
input[type=range].range-slider:focus::-ms-fill-upper {
    background: rgba(198, 198, 198, 0.78);
}
.range-slider { margin: 0 20px; }

.form-control, .btn {
    -webkit-border-radius:0;
    -moz-border-radius:0;
    border-radius:0;
}

#step-4 > form > input { border-radius: 0px; }
/* ==========================================================================
   Media Queries
   ========================================================================== */

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

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        width: 27%;
        margin: 0 1.7%;
        padding: 25px 2%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

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

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }

/* ============
    WIDE: Menu
   ============ */

    .title {
        float: left;
    }

    nav {
        float: right;
        width: 38%;
    }

/* ============
    WIDE: Main
   ============ */

    .main article {
        float: left;
        width: 57%;
    }

    .main aside {
        float: right;
        width: 28%;
    }
}

@media only screen and (max-width: 1140px) {
    /*.viewer {width:1026px;}*/
    .viewer { height:24.5vw;}
}

@media only screen and (min-width: 800px) {
    /*.viewer {width:740px;}*/
    .viewer { height:24.5vw;}
}

@media only screen and (min-width: 300px) and (max-width:799px) {
    /*.viewer {width:300px;}
    .viewer { height:18.5vw;}*/
	#zoom-in:hover, #zoom-out:hover { border-radius: 60px; font-size: 25px !important; padding: 5px 15px;}
	.slider-handle { 
		width: 34px !important;
		height: 34px !important;
		top: -3px !important;
	}
}

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

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
    .viewer {
        /*width: 1026px;*/
        height:20vw;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
	
}

/* New CSS - 03April2017 by Naeem */
input[type=checkbox]:not(old),
input[type=radio   ]:not(old){
  width     : 2em;
  margin    : 0;
  padding   : 0;
  font-size : 1em;
  opacity   : 0;
}

input[type=checkbox]:not(old) + label,
input[type=radio   ]:not(old) + label{
  display      : inline-block;
  margin-left  : -2em;
  line-height  : 1.5em;
}

input[type=checkbox]:not(old) + label > span,
input[type=radio   ]:not(old) + label > span{
  display          : inline-block;
  width            : 25px;
  height           : 25px;
  margin           : 0px 10px 1px 0px;
  border           : 0.0625em solid rgb(192,192,192);
  border-radius    : 1em;
  
  vertical-align   : bottom;
}


input[type=checkbox]:not(old):checked + label > span:before{
  content     : '✓';
  display     : block;
  width       : 1em;
  color       : rgb(153,204,102);
  font-size   : 0.875em;
  line-height : 1em;
  text-align  : center;
  font-weight : bold;
}

input[type=radio]:not(old):checked + label > span > span{
  display          : block;
  width            : 13px;
  height           : 13px;
  margin           : 5px;
  border           : 1px solid rgb(153,204,102);
  border-radius    : 1em;
  background       : rgb(153,204,102);
  background-image :    -moz-linear-gradient(rgb(179,217,140),rgb(153,204,102));
  background-image :     -ms-linear-gradient(rgb(179,217,140),rgb(153,204,102));
  background-image :      -o-linear-gradient(rgb(179,217,140),rgb(153,204,102));
  background-image : -webkit-linear-gradient(rgb(179,217,140),rgb(153,204,102));
  background-image :         linear-gradient(rgb(179,217,140),rgb(153,204,102));
}