@font-face {
    font-family: Raleway;
    src: url('../fonts/Raleway-Light.ttf') format('truetype');
}
@font-face {
    font-family: Raleway;
    font-weight: bold;
    src: url('../fonts/Raleway-Bold.ttf') format('truetype');
}

.collateral-frame { 
    position: absolute;
    font-size: 1.1rem;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: -webkit-radial-gradient(center, ellipse cover,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
    background: radial-gradient(ellipse at center,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.3) 100%);
    opacity:0.001;
    -webkit-transition:0.5s opacity ease, 0.5s -webkit-transform ease;
    transition:0.5s opacity ease, 0.5s transform ease;
    pointer-events:none;
    z-index:9999;
}

.collateral-frame.show {
    opacity:1;
    /* pointer-events:auto; */
    
}

.collateral-frame-scale {
    position: absolute;
    top:50%;
    left:50%;
    width: 50%;
    /*bottom:0;    */
    -webkit-transition:0.5s opacity ease, 0.5s -webkit-transform ease;
    transition:0.5s opacity ease, 0.5s transform ease;
    -webkit-transform: translate(-50%, -50%) scale(0.5);
    transform: translate(-50%, -50%) scale(0.5);
}

.collateral-frame.show .collateral-frame-scale {
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
    pointer-events:auto;
}

.collateral-white {
        position:absolute;
        top:0;
        left:0;
        height:10px;
        width:10px;
        background-color:white;
        -webkit-transition: 0.5s -webkit-transform ease;
        transition: 0.5s transform ease;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin:top left;
        transform-origin:top left;
}

.collateral-shadow {
        position:absolute;
        top:0em;
        left:0em;
        height:10px;
        width:10px;
        background-color:rgba(0,0,0,0.1);
        -webkit-transition: 0.5s -webkit-transform ease;
        transition: 0.5s transform ease;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transform-origin:top left;
        transform-origin:top left;
}

.collateral-body {
    opacity:1;
    /*pointer-events:auto;*/
    -webkit-transform:translateY(0);
    transform:translateY(0);
    -webkit-transition: 0.5s -webkit-transform ease, 0.5s opacity ease;
    transition:0.5s transform ease, 0.5s opacity ease;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height: 4em;
}

.collateral-frame.show .collateral-body {
    pointer-events:auto
}

.collateral-middle {
    height:auto;
}

.collateral-divider {
  position: absolute;
  top: 0;
  left: 2%;
  width: 96%;
  background-color: rgba(0,0,0,0.1);
  height: 1px;
}

.collateral-close {
  position: absolute;
  top: 53%;
  left: 2.5em;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  color: transparent;
  /* font-size: 5em; */
  /* font-weight: normal; */
  height: 1.3em;
  width: 1.3em;
  background-image: url(../img/collateral_close.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.collateral-title {
    font-weight: bold;
    font-size: 1.5em;
    position: relative;
    margin-top: 0.8em;
    margin-left: 4em;
    color: #333333;
}

.collateral-title::before {
    content:"";
    position: absolute;
    top: 0;
    height: 100%;
    /* bottom: 2em; */
    left: -0.9em;
    width: 1px;
    background-color: rgba(0,0,0,0.2);
}

.collateral-onOff {
    font-weight:normal;
    display:inline;
}

.collateral-switch {
    position: absolute;
    right: 2em;
    top: 50%;
    -webkit-transform: translate(0,-50%);
    transform: translate(0,-50%);
    height: 4em;
    width: 7em;
    border-radius: 2em;
    background-color: #cecfd1;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
}

.collateral-switch::before {
    content:"";
    position:absolute;
    background-color:#4cd964;
    left:0;
    right:0;
    top:0;
    bottom:0;
    -webkit-transition:0.5s -webkit-transform ease, 0s opacity ease 0.5s;
    transition:0.5s transform ease, 0s opacity ease 0.5s;
    -webkit-transform:translate(-66%);
    transform:translate(-66%);
    opacity:0;
}

.collateral-switch.on::before {
    -webkit-transform:translate(0%);
    transform:translate(0%);   
    -webkit-transition:0.5s -webkit-transform ease, 0s opacity ease 0s;
    transition:0.5s transform ease, 0s opacity ease 0s;
    opacity:1;
}

.collateral-switch::after {
    content:"";
    background-color:white;
    top: 0.1em;
    bottom: 0.1em;
    width: 3.5rem;
    /* height: 100%; */
    border-radius: 50%;
    position: absolute;
    left: 0.1em;
    border: 1px solid #cecfd1;
    -webkit-transition:0.5s -webkit-transform ease;
    transition:0.5s transform ease;
    -webkit-transform:translate(0);
    transform:translate(0);

    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
}

.collateral-switch.on::after {
    -webkit-transform:translate(85%);
    transform:translate(85%);   
}

.collateral-showHide {
    text-align:center;
    font-size:1.5em;
    margin:1em;
}

.collateral-categoryList {
    /*position:absolute;*/
    /* background-color:#333333; */
    color: white;
    overflow:auto;
    width:95%;
    margin: 1em auto;
    max-height:30em;
    min-height: 1em;
}

.collateral-option {
    position:relative;
    color:white;
    border-bottom:0.2em solid rgba(255,255,255,0.1);
    padding:1em;
    margin:0 1em;
    width:90%;
    font-size:1.5em;
}
.collateral-option::last-child {
    border-bottom:none
}

.collateral-option .collateral-switch {
    font-size:0.65em
}

.collateral-option .collateral-switch.on::after {
    -webkit-transform:translate(81%);
    transform:translate(81%);   
}

.collateral-option .collateral-switch.on::before {
    -webkit-transform:translate(-18%);
    transform:translate(-18%);   
}

.collateral-start {
  font-size: 1.5em;
  margin: 2em 1em;
  display: inline-block;

}

.collateral-slider {
  width: 60%;
  position: relative;
  -webkit-transform: translate(0,-50%);
  transform: translate(0,-0.5em);
  height: 0.2em;
  background-color: rgba(0,0,0,0.2);
  display: inline-block;
  margin-left:1em;
  margin-right:1em;
}

.collateral-progress {
    position:absolute;
    top:0;
    left:0;
    bottom:0;
    width:10px;
    -webkit-transform:scale(1,1);
    transform:scale(1,1);
    background-color:#4cd964;
    -webkit-transform-origin:top left;
    transform-origin:top left;
}

.collateral-knob {
    position:absolute;
    left:0;
    width:3em;
    height:3em;
    top:50%;
    -webkit-transform:translate(-50%,-50%);
    transform:translate(-50%,-50%);
    background-color:white;
    border:0.15em solid black;
    border-radius:50%;
}
.collateral-knob::before {
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    height:0.8em;
    width:0.8em;
    -webkit-transform:translate(-50%,-50%) rotate(45deg);
    transform:translate(-50%,-50%) rotate(45deg);
    background-color:black;
}
.collateral-knob::after {
    content:"";
    position:absolute;
    left:50%;
    top:2px;
    bottom:2px;
    width:0.2em;
    -webkit-transform:translate(-50%);
    transform:translate(-50%);
    background-color:white;
}

.collateral-time {
  font-size: 2em;
  display: inline-block;
  margin-left: 1em;
}
.collateral-time::after {
    content:"min";
    font-size: 0.6em;
}

#collateral_menu:not([data-open="true"]) .collateral-divider,
#collateral_menu:not([data-open="true"]) .collateral-middle{
    opacity:0;
    height:0;
    pointer-events:none;
    -webkit-transition:0s opacity ease 0s;
    transition:0s opacity ease 0s;
}



#collateral_menu[data-open="true"] .collateral-frame.show .collateral-divider,
#collateral_menu[data-open="true"] .collateral-frame.show .collateral-middle {
    opacity:1;
    -webkit-transition:0.5s opacity ease 0.5s;
    transition:0.5s opacity ease 0.5s;
    pointer-events:auto;
}

/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/

#collateral_menu {
    /* background-color: #F8F8F8; */
    /* background-color: #CACACA; */
    position: absolute;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display:none;
    font-family: Raleway;
    -webkit-font-smoothing: antialiased;
}
#body[data-collateral-menu-open="true"] #collateral_menu {
    display:block;
    pointer-events:auto;
}
.collMenuBG {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f8f8f8+0,cacaca+100 */
    background: rgb(248,248,248); /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover,  rgba(248,248,248,1) 0%, rgba(202,202,202,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(248,248,248,1)), color-stop(100%,rgba(202,202,202,1))); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover,  rgba(248,248,248,1) 0%,rgba(202,202,202,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover,  rgba(248,248,248,1) 0%,rgba(202,202,202,1) 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover,  rgba(248,248,248,1) 0%,rgba(202,202,202,1) 100%); /* IE10+ */
    background: radial-gradient(ellipse at center,  rgba(248,248,248,1) 0%,rgba(202,202,202,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f8f8f8', endColorstr='#cacaca',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    opacity: 0.5;
    -webkit-transition: opacity 0.5s ease;
    transition: opacity 0.5s ease;
}

.collBox {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    max-height: 60%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    background: white;
    padding: 0.2rem;
    font-size: 0.4rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: flex-start;
}
.collBoxTitleArea {
    height: 3.6rem;
    margin-bottom: 0.2rem;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    position: relative;
}

.collCategories {
    overflow: scroll;
}


.closeCollBox {
    width: 0.5rem;
    height: 0.5rem;
}
.collMenuTitle, .collCategoryTitle {
    font-weight: bold;
    font-size: 1em;
}
.collBoxTitleArea::after {
    content: "";
    position: absolute;
    width: 100%;
    top: 100%;
    height: 2px;
    background-color: black;
    left: 0;
}

.collItem {
    padding: 0.2rem;
    padding-left: 4em;
    /* opacity: 0; */
    /* height: 0; */
    /* margin: 0; */
    position: relative;
    min-height: 28px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}
.collCategoryTitleArea {
    padding: 1em;
    position: relative;
}
.collOpenClose {
    position: absolute;
    right: 1.6em;
    bottom: 0.3em;
    border: 0.6em solid transparent;
    border-top: 0.6em solid black;
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
}

/*counter font-size:2em*/
.collateral-title .collOpenClose {
    font-size: 0.666em;
}
/*counter padding*/
.collCategoryTitleArea .collOpenClose {
    bottom: 1.2em;
    right: 0.8em;
    border-top-color: white;
}
#collateral_menu[data-open="true"] .collateral-top .collOpenClose,
.collCategory[data-open="true"] .collOpenClose {
    -webkit-transform: scale(1,-1);
    transform: scale(1,-1);
}
.collCategory[data-open="true"] .collateral-category-itemList {
  height:auto;
  opacity:1;
  -webkit-transition: opacity 0.5s ease 0.5s;
  transition: opacity 0.5s ease 0.5s;
}
.collOpenClose::before {
    content: "";
    position: absolute;
    left: -3em;
    width: 6em;
    top: -1em;
    height: 2em;
}
.collateral-category-itemList {
    height: 0;
    opacity: 0;
    max-height: 20em;
    overflow: auto;
}

.collCategory {
    position: absolute;
    left: 2%;
    width: 96%;
    top: 0;
    /* background-color: black; */
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    overflow: hidden;
}
.collateral-categoryList-bg {
    background: #333333;
    position: absolute;
    left: 2%;
    top: 0;
    width: 96%;
    height:10px;
    -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
    transition: transform 0.5s ease, opacity 0.5s ease;
    -webkit-transform-origin: top left;
    transform-origin: top left;
}
.collateral-category-bg {
    position: absolute;
    left: -1px;
    top: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background-color: #5F5D5D;
    opacity: 0;
    z-index: -1;
}

.collCategory[data-open="true"] .collateral-category-bg {
    opacity: 1;    
    -webkit-transition: opacity 0.5s ease 0.5s;
    transition: opacity 0.5s ease 0.5s;
}
.collItem:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1em;
    bottom: 0;
    right: 1em;
    height: 0.1em;
    background-color: #A0A0A0;
}

.collItem::before {
    content: "";
    position: absolute;
    left: 1.5em;
    top: 50%;
    -webkit-transform: translate(0,-50%);
    transform: translate(0,-50%);
    width: 1em;
    min-width: 11px;
    height: 1.4em;
    min-height: 14px;
    background-image: url(../img/pdficon.png);
    background-size: 11px 14px;
    background-repeat: no-repeat;
    background-position: center;
    /* background-color: rebeccapurple; */
}
.collCategory:not(:nth-child(2)) .collCategoryTitleArea::after {
    content: "";
    position: absolute;
    left: 1em;
    right: 1em;
    height: 0.1em;
    background-color: #5F5D5D;
    top: 0;
}
::-webkit-scrollbar {
    opacity: 1;
    width: 0.4em;
    height:0;
}

::-webkit-scrollbar-track {
    background:transparent;
}
::-webkit-scrollbar-thumb {
    background: #A0A0A0;
    border-radius: 0.8em;
}

.vcmsEmail, .vcmsEmailFlyer {
    display: none !important;/* removing this for now */
    position: absolute;
    width: 79px;
    height: 52px;
    left: 3px;
    top: 50%;
    margin-top: -26px;
    background-image: url(../img/email.png);
    background-size: auto 34px;
    background-position: center;
    background-repeat: no-repeat;
}
.vcmsEmailFlyer {
    z-index: 999999;
    background-color: rgba(0,0,0,0.05);
    -webkit-transition: -webkit-transform 1s ease-in;
}

.bodyPhone .collateral-frame {
  font-size: 0.8rem;
}

@media screen and (max-width: 800px) {

/*    .collateral-frame {
        font-size: 0.23rem;
    }*/
    .collateral-frame-scale {
        width:65%;
    }
}
@media screen and (max-width: 600px) {

/*    .collateral-frame {
        font-size: 0.25rem;
    }*/
    .collateral-frame-scale {
        width:80%;
    }
}
@media screen and (max-width: 400px) {

/*    .collateral-frame {
        font-size: 0.3rem;
    }*/
    .collateral-frame-scale {
        width:90%;
    }
}

.emailCounter {
    position: absolute;
    z-index: 999;
    right: 0px;
    top: 0px;
    padding: 15px 25px;
    color: red;
    -webkit-text-stroke: white 1px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    background-image: url(../img/email.png);
    background-size: auto 34px;
    background-position: center;
    background-repeat: no-repeat;
}
