/**
 ** Color Selector Tool Styles
 ** JMI 2017-12-20
 **/

/* Elements */
h1 {
    color: #ffffff;
    display: none;
    line-height: 1em;
    margin-bottom: 0;
}

/* Structure */
html,
body {
    color: #666464;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    font-size: 1em;
    min-height: 100vh;

}
header {
    background-color: #414141;
    height: 50px;
    padding: 11px;
}
.logo {
    height: 30px;
}
header h1{
    font-size: 20px;
    text-transform: uppercase;
}
.wrapper {
    overflow: hidden;
    position: relative;
}
.flex-container {
    height: calc(100vh - 300px);
}
main {
    height: 100%;
    max-height: 100%;
    padding: 22px;
}
aside {
    background-color: #e5e5e5;
    bottom: 0;
    left: -100%;
    overflow: auto;
    padding: 22px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* IDs and Classes */
.colors-selected {
    background-color: #e5e5e5;
    height: 125px;
    padding: 5.5px 0;
}
.mobile-configure {
    background-color: #ffffff;
    height: 125px;
    padding: 11px;
    width: 100%;
}
.colors-selected__options {
    height: 100%;
}
.colors-selected__options,
.mobile-configure__options {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
}
.colors-selected__option,
.mobile-configure__option {
    padding: 0 0.5em;
}
.colors-selected__image {
    height: 65%;
    overflow: hidden;
}
.selected-options__title,
.options__title {
    color: #666464;
    padding-left: 3px;
}
.selected-options__selected-option,
.options__name {
    font-size: 11px;
}
.colors-selected__selected-option {
    font-size: 11px;
}
.colors-selected__selected-option,
.selected-options__selected-option,
.options__selected {
    color: #006496;
}
.options__set {
    padding-bottom: 5.5px;
}
.options__list {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
}
.options__option {
    height: 9vh;
    display: block;
    max-height: 94px;
    min-height: 46px;
    overflow: hidden;
    padding: 2px;
    width: 33%;
}
.options__list img {
    display: block;
    height: 95%;
    padding: 2px;
}
.options__list a img {
    border: 2px solid transparent;
}
.options__list a.curr img{
    border: 2px solid #00aacd;
}
.options__list li {
    position: relative;
}
.options__name {
    color: #ffffff;
    display: none;
    left: 5px;
    position: absolute;
    text-shadow: 1px 1px #1e262a;
    top: 2px;
}
.options--closed {
    -webkit-transform:translate(0,0);
    -ms-transform:translate(0,0);
    transform:translate(0,0);
    -webkit-transition:-webkit-transform .25s ease;
    transition:transform .25s ease;
}
.options--open {
    -webkit-transform:translate(100%,0);
    -ms-transform:translate(100%,0);
    transform:translate(100%,0);
    -webkit-transition:-webkit-transform .25s ease;
    transition:transform .25s ease;
}
.canvas {
    height: 75%;
    max-height: 75%;
    position: relative;
    text-align: center;
}
.canvas img {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.canvas img,
.product-grouping img {
    max-width: 100%;
    max-height: 100%;
}
.product-grouping img {
    position: absolute;
    top: 0;
    left: 0;
}
.product-grouping {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
}
.product-grouping__product {
    height: 100%;
    position: relative;
    width: 100%;
}
.product-name {
    bottom: 0;
    color: #666464;
    display: none;
    position: absolute;
    right: 0;
    text-align: right;
}
.product-name span {
    font-weight: bold;
}
.product-grouping {
    height: 25%;
    max-height: 25%;
    text-align: center;
}
.disclaimer {
    color: #666464;
    font-size: 11px;
    line-height: 16px;
}
.cta-button-flat {
    padding: 11px 22px;
}
.cta-button-flat--dark {
    background-color: #666464;
    color: #ffffff;
}
.cta-button-flat--alt {
    background-color: transparent;
    color: #00aacd;
}
.user-options {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    padding: 22px 0;
}
.user-options__legal {
    order: 1;
    text-align: center;
}
.share {
    background-color: #e5e5e5;
    bottom: 0;
    height: 100%;
    overflow: hidden;
    padding: 22px;
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    z-index: 1;
}
.share--closed {
    -webkit-transform:translate(0,0);
    -ms-transform:translate(0,0);
    transform:translate(0,0);
    -webkit-transition:-webkit-transform .25s ease;
    transition:transform .25s ease;
}
.share--open {
    -webkit-transform:translate(-100%,0);
    -ms-transform:translate(-100%,0);
    transform:translate(-100%,0);
}
.share__close {
    color: #00aacd;
    cursor: pointer;
    display: block;
    text-align: right;
}
.share__input {
    padding: 11px;
    width: 65%;
}
.share__copy {
    padding: 11px 33px;
}
.share__icons {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    padding: 11px 0 22px;
}
.share__icons a {
    display: block;
    padding: 0 5.5px;
}
.share__icons svg {
    color: #666464;
}
.alt-canvas-images {
    display: none;
}
.desktop {
    display: none;
}

/*
 * Lets make this responsive
 */
@media all and (min-width: 25em) {
    h1 {
        display: block;
    }
    header {
        height: 75px;
    }
    .flex-container {
        height: calc(100vh - 325px);
    }
    .product-name {
        display: block;
    }
    .options__option {
        width: 25%;
    }
    .share__input {
        width: 70%;
    }
}
@media all and (min-width: 43.75em) {
    header {
        height: 90px;
    }
    header h1 {
        font-size: 27px;
    }
    .colors-selected {
        height: 125px;
    }
    .flex-container {
        height: calc(100vh - 340px);
    }
    .product-name {
        bottom: 35px;
        right: 35px;
    }
    .options__option {
        width: 20%;
    }
    .share__input {
        width: 75%
    }
}
@media all and (min-width: 63em) {
    header {
        height: 55px;
    }
    main {
        -webkit-box-flex: 2;
        -moz-box-flex: 2;
        -webkit-flex: 2;
        -ms-flex: 2;
        flex: 2;
    }
    aside {
        -webkit-box-flex: 1;
        -moz-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
        height: 100%;
        position: static;
        width: auto;
    }
    .flex-container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        height: calc(100vh - 55px);
    }
    header h1 {
        font-size: 30px;
        float: right;
    }
    .options__option {
        width: 25%;
    }
    .share {
        bottom: 0;
        height: calc(100% - 56px);
        right: -30em;
        top: auto;
        width: 30em;
        z-index: 2;
    }
    .share--open {
        -webkit-transform:translate(-30em,0);
        -ms-transform:translate(-30em,0);
        transform:translate(-30em,0);
    }
    .mobile {
        display: none;
    }
    .desktop {
        display: inline;
    }
}
@media all and (min-width: 91em) {
    .wrapper {
        margin: 0 auto;
        max-width: 91em;
    }
    .share {
        right: -35em;
        width: 35em;
    }
    .share--open {
        -webkit-transform:translate(-35em,0);
        -ms-transform:translate(-35em,0);
        transform:translate(-35em,0);
    }
}
